GFRS-615 问卷调查VUE 初始化回调 --提交人:阳华祥

This commit is contained in:
阳华祥
2020-02-26 17:41:47 +08:00
parent 7b00634f36
commit 7c18b982e4

View File

@@ -121,10 +121,19 @@ export default {
}
},
created() {
// 初始化
window['appCallBack'] = this.appCallBack
// 获取表单列表
this.getSurveyList()
},
methods: {
appCallBack(data) {
if (data.trigger == 'weixin_share') {
console.log('点击了分享')
// 回调 保存分享
this.saveShareInfo()
}
},
// 分享到朋友圈
async shareFriends() {
let that = this
@@ -132,8 +141,6 @@ export default {
await that.getSurveyTableId()
// 调用原生分享
this.callApp()
// 回调 保存分享
this.saveShareInfo()
},
// 获取代理人下问卷调查信息
getSurveyList() {