| @@ -14,9 +14,13 @@ Component({ | |||||
| }, | }, | ||||
| methods: { | methods: { | ||||
| gotoGg: function (e) { | gotoGg: function (e) { | ||||
| console.log(this.data.ggdata) | |||||
| let that = this; | let that = this; | ||||
| wx.navigateTo({ | |||||
| /* wx.navigateTo({ | |||||
| url: '/pages/coupon/detail/index?couponChannelId=' + e.currentTarget.dataset.data.produceId+'&g=1', | url: '/pages/coupon/detail/index?couponChannelId=' + e.currentTarget.dataset.data.produceId+'&g=1', | ||||
| }) */ | |||||
| wx.navigateTo({ | |||||
| url: `/${that.data.ggdata.pagePath}&g=1`, | |||||
| }) | }) | ||||
| }, | }, | ||||
| a: function () { | a: function () { | ||||
| @@ -30,6 +30,7 @@ Component({ | |||||
| let id = (e.currentTarget.dataset.data.pagePath).substring(indexOf); | let id = (e.currentTarget.dataset.data.pagePath).substring(indexOf); | ||||
| let type = (e.currentTarget.dataset.data.pagePath).substr(23,2) | let type = (e.currentTarget.dataset.data.pagePath).substr(23,2) | ||||
| console.log(indexOf, id, type); | console.log(indexOf, id, type); | ||||
| console.log(e.currentTarget.dataset.data.pagePath) | |||||
| if(type == 'cd'){ | if(type == 'cd'){ | ||||
| wx.navigateTo({ | wx.navigateTo({ | ||||
| url: `/${e.currentTarget.dataset.data.pagePath}`, | url: `/${e.currentTarget.dataset.data.pagePath}`, | ||||
| @@ -659,6 +659,7 @@ Page({ | |||||
| openId: that.data.openId | openId: that.data.openId | ||||
| } | } | ||||
| }).then(res => { | }).then(res => { | ||||
| res = JSON.parse('{"code":200,"message":"查询成功","data":{"tenantId":"789","id":"418717151530979328","coverImg":"https://iformall-net.s3.cn-northwest-1.amazonaws.com.cn/789/0296235f-39ef-4968-b076-cd76211fcf2d.jfif","produceId":"418715528452771840","pagePath":"pages/index/index?type=sd&couponChannelId=418715528452771840","status":0,"createTime":1588941559000,"updateTime":1588941559000}}') | |||||
| console.log(res) | console.log(res) | ||||
| if (res.data.id) { | if (res.data.id) { | ||||
| that.setData({ | that.setData({ | ||||