|
- // pages/index/sw/index.js
- Component({
- /**
- * 组件的属性列表
- */
- properties: {
- paramAtoB: String,
- from: String,
- data: {
- value: {},
- type: Object
- },
- },
-
- /**
- * 组件的初始数据
- */
- data: {},
- methods: {
- gotoDetail(e) {
- console.log(e.currentTarget.dataset.couponid);
- console.log(e.currentTarget.dataset.title);
- console.log(e.currentTarget.dataset.id);
- let couponId = e.currentTarget.dataset.couponid;
- let title = e.currentTarget.dataset.title;
- let id = e.currentTarget.dataset.id;
- let targetAd = e.currentTarget.dataset.targetad;
- if (targetAd) {
-
- }
- if (id && targetAd != 7) {
- wx.navigateTo({
- url: `/pages/coupon/detail/index?couponChannelId=${id}&couponId=${couponId}&title=${title}`,
- })
- } else if (targetAd == 7) {
- wx.navigateTo({
- url: `/pages/spellGroup/mySpellGroup/index?couponChannelId=${id}&couponId=${couponId}&title=${title}`,
- })
- }
- }
- }
- });
|