Commit 7e0430fc authored by 俞嘉婷's avatar 俞嘉婷

fix: 活动item埋点修复

parent 60e3b96e
...@@ -30,9 +30,10 @@ ComponentWithStore({ ...@@ -30,9 +30,10 @@ ComponentWithStore({
// 跳转活动详情页 // 跳转活动详情页
jumpDetailPage: _asyncThrottle(async function (e) { jumpDetailPage: _asyncThrottle(async function (e) {
const item = e.currentTarget.dataset.item const item = e.currentTarget.dataset.item
console.log('item', item); const index = e.currentTarget.dataset.index
console.log('item', item, index);
store.doLog(508, 5 + item.index) store.doLog(508, 5 + index)
wx.navigateTo({ url: `/pages/activityDetail/activityDetail?imgUrl=${item.detailImg}` }) wx.navigateTo({ url: `/pages/activityDetail/activityDetail?imgUrl=${item.detailImg}` })
}), }),
getPhoneNumber(e: any) { getPhoneNumber(e: any) {
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
hover-stay-time="0" hover-stay-time="0"
bindtap="jumpDetailPage" bindtap="jumpDetailPage"
data-item="{{item}}" data-item="{{item}}"
data-index="{{index}}" data-index="{{idx}}"
/> />
</view> </view>
</view> </view>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment