Commit 53805339 by 李伟康

提交代码

1 parent d3b3bc43
...@@ -38,5 +38,5 @@ module.exports = { ...@@ -38,5 +38,5 @@ module.exports = {
source: "scrm-main", source: "scrm-main",
v: "1.0.0", v: "1.0.0",
}, },
vconsole: false vconsole: true
} }
\ No newline at end of file \ No newline at end of file
...@@ -13,7 +13,7 @@ export default { ...@@ -13,7 +13,7 @@ export default {
let { tabIndex } = this.getQuery() let { tabIndex } = this.getQuery()
if (tabIndex) { if (tabIndex) {
this.tabIndex = Number(tabIndex) this.tabIndex = Number(tabIndex)
this.updata = new Date().getTime() // this.updata = new Date().getTime()
this.init() this.init()
return return
} }
......
...@@ -133,16 +133,19 @@ export default { ...@@ -133,16 +133,19 @@ export default {
} }
if (shareType == 'h5') { if (shareType == 'h5') {
console.log(h5Params) console.log(h5Params)
if (entryType) this.sendChatMessage(h5Params, 'news') if (entryType) this.sendChatMessage(h5Params, 'news', () => {
bigdatautilApi.reportTrack(i.id)
})
else wxConfig else wxConfig
.shareAppMessage(h5Params) .shareAppMessage(h5Params)
.then(() => { .then(() => {
this.hideLoading() this.hideLoading()
bigdatautilApi.reportTrack(i.id)
}) })
.catch(() => { .catch(() => {
this.hideLoading() this.hideLoading()
}) })
bigdatautilApi.reportTrack(i.id)
} else { } else {
if (entryType) this.sendChatMessage({ if (entryType) this.sendChatMessage({
appid: shopmall_appid, appid: shopmall_appid,
...@@ -161,7 +164,7 @@ export default { ...@@ -161,7 +164,7 @@ export default {
}) })
} }
}, },
sendChatMessage (params, msgtype = 'miniprogram') { sendChatMessage (params, msgtype = 'miniprogram', callBack) {
wxConfig wxConfig
.sendChatMessage({ .sendChatMessage({
msgtype, msgtype,
...@@ -170,6 +173,7 @@ export default { ...@@ -170,6 +173,7 @@ export default {
}) })
.then(() => { .then(() => {
this.hideLoading() this.hideLoading()
if (callBack) callBack()
}) })
.catch(err => { .catch(err => {
console.log('当前会话', 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!