Commit 53805339 by 李伟康

提交代码

1 parent d3b3bc43
......@@ -38,5 +38,5 @@ module.exports = {
source: "scrm-main",
v: "1.0.0",
},
vconsole: false
vconsole: true
}
\ No newline at end of file
......@@ -13,7 +13,7 @@ export default {
let { tabIndex } = this.getQuery()
if (tabIndex) {
this.tabIndex = Number(tabIndex)
this.updata = new Date().getTime()
// this.updata = new Date().getTime()
this.init()
return
}
......
......@@ -133,16 +133,19 @@ export default {
}
if (shareType == 'h5') {
console.log(h5Params)
if (entryType) this.sendChatMessage(h5Params, 'news')
if (entryType) this.sendChatMessage(h5Params, 'news', () => {
bigdatautilApi.reportTrack(i.id)
})
else wxConfig
.shareAppMessage(h5Params)
.then(() => {
this.hideLoading()
bigdatautilApi.reportTrack(i.id)
})
.catch(() => {
this.hideLoading()
})
bigdatautilApi.reportTrack(i.id)
} else {
if (entryType) this.sendChatMessage({
appid: shopmall_appid,
......@@ -161,7 +164,7 @@ export default {
})
}
},
sendChatMessage (params, msgtype = 'miniprogram') {
sendChatMessage (params, msgtype = 'miniprogram', callBack) {
wxConfig
.sendChatMessage({
msgtype,
......@@ -170,6 +173,7 @@ export default {
})
.then(() => {
this.hideLoading()
if (callBack) callBack()
})
.catch(err => {
console.log('当前会话', err)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!