diff --git a/pages/joinFrDpell/index.js b/pages/joinFrDpell/index.js index e23452d..0e8501b 100644 --- a/pages/joinFrDpell/index.js +++ b/pages/joinFrDpell/index.js @@ -85,7 +85,6 @@ Page({ * 直接购买 */ gotoBuy(e) { - console.log(22222) let formId = e.detail.formId; let that=this; that.setData({ @@ -158,7 +157,6 @@ Page({ * 发起拼团 */ gotoSpell() { - console.log(111111111) this.setData({ canSpell: false }) @@ -282,6 +280,7 @@ Page({ * 拼团订单 */ data.orderGroupId = orderGroupId + var that = this; Http.get({ url: config.api.checkPhoneStatus, diff --git a/pages/spellGroup/mySpellGroup/index.js b/pages/spellGroup/mySpellGroup/index.js index dfad553..165d45b 100644 --- a/pages/spellGroup/mySpellGroup/index.js +++ b/pages/spellGroup/mySpellGroup/index.js @@ -306,7 +306,14 @@ Page({ */ let that = this; if (orderGroupId == 0) { - data.orderGroupId = orderGroupId + data.orderGroupId = orderGroupId, + that.setData({ + isFromSpell:true + }) + }else{ + that.setData({ + isFromSpell: false + }) } Http.get({ url: config.api.checkPhoneStatus, @@ -393,9 +400,16 @@ Page({ success: function (res) { console.log(res.confirm) if (res.confirm) { - wx.navigateTo({ - url: '/pages/order/index/index?id=all', - }) + console.log(that.data.isFromSpell) + if (that.data.isFromSpell){ + wx.navigateTo({ + url: '/pages/spellGroup/spellGroup?from=myspellList', + }) + }else{ + wx.navigateTo({ + url: '/pages/order/index/index?id=all', + }) + } } } })