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) { gotoBuy(e) {
console.log(22222)
let formId = e.detail.formId; let formId = e.detail.formId;
let that=this; let that=this;
that.setData({ that.setData({
@@ -158,7 +157,6 @@ Page({
* 发起拼团 * 发起拼团
*/ */
gotoSpell() { gotoSpell() {
console.log(111111111)
this.setData({ this.setData({
canSpell: false canSpell: false
}) })
@@ -282,6 +280,7 @@ Page({
* 拼团订单 * 拼团订单
*/ */
data.orderGroupId = orderGroupId data.orderGroupId = orderGroupId

var that = this; var that = this;
Http.get({ Http.get({
url: config.api.checkPhoneStatus, url: config.api.checkPhoneStatus,


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

@@ -306,7 +306,14 @@ Page({
*/ */
let that = this; let that = this;
if (orderGroupId == 0) { if (orderGroupId == 0) {
data.orderGroupId = orderGroupId
data.orderGroupId = orderGroupId,
that.setData({
isFromSpell:true
})
}else{
that.setData({
isFromSpell: false
})
} }
Http.get({ Http.get({
url: config.api.checkPhoneStatus, url: config.api.checkPhoneStatus,
@@ -393,9 +400,16 @@ Page({
success: function (res) { success: function (res) {
console.log(res.confirm) console.log(res.confirm)
if (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