mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-22 19:56:43 +08:00
Merge branch 'feature/GFRS-615【待确定】问卷' into dev
This commit is contained in:
@@ -18,9 +18,9 @@ export function weixinShare(options) {
|
|||||||
|
|
||||||
wx.config({
|
wx.config({
|
||||||
//debug: true,
|
//debug: true,
|
||||||
appId: data.appId,
|
appId: data.appid,
|
||||||
timestamp: data.timestamp,
|
timestamp: data.timestamp,
|
||||||
nonceStr: data.nonceStr,
|
nonceStr: data.noncestr,
|
||||||
signature: data.signature,
|
signature: data.signature,
|
||||||
jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage', 'onMenuShareWeibo']
|
jsApiList: ['onMenuShareTimeline', 'onMenuShareAppMessage', 'onMenuShareWeibo']
|
||||||
})
|
})
|
||||||
@@ -47,3 +47,7 @@ export function weixinShare(options) {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export function closeWindow() {
|
||||||
|
wx.closeWindow()
|
||||||
|
}
|
||||||
|
|||||||
@@ -46,7 +46,7 @@
|
|||||||
<img v-if="resultImgUrl != 'PHYSICAL'" style="width: 100%;" src="@/assets/images/shareSurveyResult_1.png" />
|
<img v-if="resultImgUrl != 'PHYSICAL'" style="width: 100%;" src="@/assets/images/shareSurveyResult_1.png" />
|
||||||
<img style="width: 100%;" :src="resultImgUrl" />
|
<img style="width: 100%;" :src="resultImgUrl" />
|
||||||
<div class="mt30 mr2 ml2">
|
<div class="mt30 mr2 ml2">
|
||||||
<van-button type="danger" style="width: 100%;" @click="showType = 'Detail'">返回</van-button>
|
<van-button type="danger" style="width: 100%;" @click="closeWXWindow">返回</van-button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- 底部透明 -->
|
<!-- 底部透明 -->
|
||||||
@@ -66,7 +66,7 @@
|
|||||||
<script>
|
<script>
|
||||||
import { Field, CellGroup, Popup, Picker, List, Cell, Row, Col, RadioGroup, Radio, Button } from 'vant'
|
import { Field, CellGroup, Popup, Picker, List, Cell, Row, Col, RadioGroup, Radio, Button } from 'vant'
|
||||||
import { getSurveyQuestion, saveSurveyAnswer, getSurveyAgentInfo } from '@/api/ebiz/survey/survey'
|
import { getSurveyQuestion, saveSurveyAnswer, getSurveyAgentInfo } from '@/api/ebiz/survey/survey'
|
||||||
import { weixinShare } from '@/assets/js/utils/wxShare.js'
|
import { weixinShare, closeWindow } from '@/assets/js/utils/wxShare.js'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
@@ -174,7 +174,7 @@ export default {
|
|||||||
let returnFlag = true
|
let returnFlag = true
|
||||||
that.questionList.map(item => {
|
that.questionList.map(item => {
|
||||||
if (!that.anwerJson[item.orderCode + '']) {
|
if (!that.anwerJson[item.orderCode + '']) {
|
||||||
that.$toast('请完成全部档案填写')
|
that.$toast('请认真填写问卷的全部内容!')
|
||||||
returnFlag = false
|
returnFlag = false
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@@ -223,6 +223,9 @@ export default {
|
|||||||
callPhone() {
|
callPhone() {
|
||||||
console.log('callPhone')
|
console.log('callPhone')
|
||||||
window.location.href = 'tel://' + this.agentInfo.mobile
|
window.location.href = 'tel://' + this.agentInfo.mobile
|
||||||
|
},
|
||||||
|
closeWXWindow() {
|
||||||
|
closeWindow()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user