Feat(页面):页面埋点配置
This commit is contained in:
@@ -43,8 +43,10 @@
|
||||
import {
|
||||
customizedGiftContent
|
||||
} from '@/api/product'
|
||||
import { pageListenMixins } from '@/mixins/pageListenMixins'
|
||||
export default {
|
||||
name: 'GiftContent',
|
||||
mixins: [pageListenMixins],
|
||||
data() {
|
||||
return {
|
||||
data: {
|
||||
@@ -55,6 +57,7 @@ export default {
|
||||
mainImage: '',
|
||||
productList1: [],
|
||||
productList2: [],
|
||||
pageKeyId: ''
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -62,7 +65,9 @@ export default {
|
||||
uni.setNavigationBarTitle({
|
||||
title: options.name + '-' + '特色礼品'
|
||||
})
|
||||
this.getPageDataReq(options.id)
|
||||
const id = options.id
|
||||
this.pageKeyId = `customizedGiftContent_id_${id}`
|
||||
this.getPageDataReq(id)
|
||||
},
|
||||
methods: {
|
||||
getPageDataReq(id) {
|
||||
@@ -90,7 +95,7 @@ export default {
|
||||
return
|
||||
}
|
||||
uni.navigateTo({
|
||||
url: `/pages/shop/GoodsCon/index?id=${productId}`
|
||||
url: `/pages/shop/GoodsCon/index?id=${productId}&from=gift`
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user