|
|
@@ -9,9 +9,10 @@ Page({ |
|
|
|
paramData:null |
|
|
|
}, |
|
|
|
onLoad: function (options) { |
|
|
|
if(options.path=='index'){ |
|
|
|
this.path = options.path |
|
|
|
} |
|
|
|
console.log(options,98888) |
|
|
|
this.setData({ |
|
|
|
path: options.path |
|
|
|
}) |
|
|
|
this.setData({ |
|
|
|
paramData: options |
|
|
|
}) |
|
|
@@ -62,20 +63,21 @@ Page({ |
|
|
|
/** |
|
|
|
* 来自拼团详情 |
|
|
|
*/ |
|
|
|
if (that.path == 'spell') { |
|
|
|
console.log(that.data, 98888) |
|
|
|
if (that.data.path == 'spell') { |
|
|
|
wx.redirectTo({ |
|
|
|
url: "pages/spellGroup/mySpellGroup/index?couponChannelId=" + that.data.paramData.couponChannelId + "&couponId" + that.data.paramData.couponId |
|
|
|
url: "/pages/spellGroup/mySpellGroup/index?couponChannelId=" + that.data.paramData.couponChannelId + "&couponId=" + that.data.paramData.couponId |
|
|
|
}) |
|
|
|
return; |
|
|
|
} |
|
|
|
/** |
|
|
|
* fromId若存在来自卡转赠 |
|
|
|
*/ |
|
|
|
if (that.path == 'index' && !that.data.paramData.cuserId) { |
|
|
|
if (that.data.path == 'index' && !that.data.paramData.cuserId) { |
|
|
|
wx.redirectTo({ |
|
|
|
url: "/pages/game/index?url=" + that.data.paramData.url + "&id=" + that.data.paramData.id + "&gameId=" + that.data.paramData.gameId, |
|
|
|
}) |
|
|
|
} else if (that.path == 'index' && that.data.paramData.cuserId){ |
|
|
|
} else if (that.data.path == 'index' && that.data.paramData.cuserId){ |
|
|
|
wx.reLaunch({ |
|
|
|
url: "/pages/coupon/detail/index?cuserId=" + that.data.paramData.cuserId + '&couponChannelId=' + that.data.paramData.couponChannelId + '&coverImg=' + that.data.paramData.coverImg + '&avatarUrl=' + that.data.paramData.avatarUrl + '&userName=' + that.data.paramData.userName + '&couponOrderId=' + that.data.paramData.couponOrderId + "&updateDate=" + that.data.paramData.updateDate |
|
|
|
}) |
|
|
|