Commit 73a9da20 by chenwq

海报,刷新

1 parent 0b185588
...@@ -427,18 +427,18 @@ Page({ ...@@ -427,18 +427,18 @@ Page({
}, },
/**长按海报 */ /**长按海报 */
async longtouch(e) { async longtouch(e) {
console.log('长按海报', e) // console.log('长按海报', e)
let { activityId } = e.detail let { activityId } = e.detail
const res = await outputApi.reportPosterTrack({ const res = await outputApi.reportPosterTrack({
activityId activityId
}) })
wx.$eventbus.emit('clienRefresh') wx.$eventbus.emit('clientRefresh')
this.getSceneProStatus(this.data.sceneCodeList[this.data.sceneActive - 1]) this.getSceneProStatus(this.data.sceneCodeList[this.data.sceneActive - 1])
}, },
// 母链分享 // 母链分享
posterTrack() { posterTrack() {
wx.$eventbus.emit('clienRefresh') wx.$eventbus.emit('clientRefresh')
this.getSceneProStatus(this.data.sceneCodeList[this.data.sceneActive - 1]) this.getSceneProStatus(this.data.sceneCodeList[this.data.sceneActive - 1])
}, },
......
...@@ -30,7 +30,7 @@ Component({ ...@@ -30,7 +30,7 @@ Component({
}, },
lifetimes: { lifetimes: {
attached() { attached() {
wx.$eventbus.on('clienRefresh', res => { wx.$eventbus.on('clientRefresh', res => {
this.clientRefresh() this.clientRefresh()
}) })
this.getPMerchantInfo() this.getPMerchantInfo()
...@@ -50,7 +50,6 @@ Component({ ...@@ -50,7 +50,6 @@ Component({
}) })
}, },
onBindRefresh() { onBindRefresh() {
this.clientRefresh(true) this.clientRefresh(true)
}, },
clientRefresh(isPull = false) { clientRefresh(isPull = false) {
...@@ -138,7 +137,7 @@ Component({ ...@@ -138,7 +137,7 @@ Component({
/**长按海报 */ /**长按海报 */
async longtouch(e) { async longtouch(e) {
console.log('长按海报', e) console.log('长按海报', e)
this.onBindRefresh() this.clientRefresh()
let { activityId } = e.detail let { activityId } = e.detail
const res = await outputApi.reportPosterTrack({ const res = await outputApi.reportPosterTrack({
activityId activityId
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!