Pārlūkot izejas kodu

参加拼团直接购买跳转方式修改

tags/富茂链客4.1.0
刘晖 pirms 6 gadiem
vecāks
revīzija
2196ea3f10
2 mainītis faili ar 4 papildinājumiem un 9 dzēšanām
  1. +3
    -2
      pages/game/index.js
  2. +1
    -7
      pages/joinFrDpell/index.js

+ 3
- 2
pages/game/index.js Parādīt failu

@@ -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
}); });
} }
} }

+ 1
- 7
pages/joinFrDpell/index.js Parādīt failu

@@ -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 {


Notiek ielāde…
Atcelt
Saglabāt