| @@ -31,12 +31,13 @@ Page({ | |||||
| }; | }; | ||||
| }, | }, | ||||
| onLoad(options) { | onLoad(options) { | ||||
| console.log(options,999) | |||||
| if (options.share){ | if (options.share){ | ||||
| // wx.onShareAppMessage(); | // wx.onShareAppMessage(); | ||||
| }else{ | }else{ | ||||
| this.setData({ | this.setData({ | ||||
| url: options.url + "?token=" + app.globalData.token + "&gameId=" + options.gameId + "&id=" + options.id, | |||||
| // url: "https://game.youlane.cn/guaguale/index.html" + "?token=" + app.globalData.token + "&gameId=" + options.gameId + "&id=" + options.id, | |||||
| url: options.url + "?token=" + app.globalData.token + "&gameId=" + options.gameId + "&id=" + options.id | |||||
| // url: 'http://10.100.10.74:8080/goldEgg/' + "?token=" + app.globalData.token + "&gameId=" + options.gameId + "&id=" + options.id | |||||
| }); | }); | ||||
| } | } | ||||
| } | } | ||||
| @@ -147,12 +147,6 @@ Page({ | |||||
| }) | }) | ||||
| this.orderFunc(this.data.orderGroupId) | this.orderFunc(this.data.orderGroupId) | ||||
| }, | }, | ||||
| //参与别人的拼团 | |||||
| gotoPartner() { | |||||
| wx.reLaunch({ | |||||
| url: `/pages/spellDetail/index?orderId=${this.data.spellData.orderId}&couponId=${this.data.spellData.couponId}&orderGroupId=${this.data.spellData.orderGroupId}` | |||||
| }); | |||||
| }, | |||||
| /** | /** | ||||
| * 获取一个拼团信息 | * 获取一个拼团信息 | ||||
| */ | */ | ||||
| @@ -238,7 +232,7 @@ Page({ | |||||
| .then(res => { | .then(res => { | ||||
| wx.hideLoading() | wx.hideLoading() | ||||
| if (orderGroupId==undefined) { | if (orderGroupId==undefined) { | ||||
| wx.reLaunch({ | |||||
| wx.navigateTo({ | |||||
| url: '/pages/order/detail/index?orderId=' + res.data.id, | url: '/pages/order/detail/index?orderId=' + res.data.id, | ||||
| }) | }) | ||||
| } else { | } else { | ||||