Pārlūkot izejas kodu

[拼团购买][删除]:[拼团购买待支付跳转的页面修改]

tags/江西版6.1.0
meo pirms 6 gadiem
vecāks
revīzija
26c69f783d
2 mainītis faili ar 19 papildinājumiem un 6 dzēšanām
  1. +1
    -2
      pages/joinFrDpell/index.js
  2. +18
    -4
      pages/spellGroup/mySpellGroup/index.js

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

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


+ 18
- 4
pages/spellGroup/mySpellGroup/index.js Parādīt failu

@@ -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',
})
}
}
}
})


Notiek ielāde…
Atcelt
Saglabāt