ソースを参照

修改

master
suizhijia 5年前
コミット
c7a47b3839
1個のファイルの変更10行の追加13行の削除
  1. +10
    -13
      496_dongfengqichen/pages/orderActivity/orderActivity.js

+ 10
- 13
496_dongfengqichen/pages/orderActivity/orderActivity.js ファイルの表示

}, this, "POST") }, this, "POST")
}, },
paySuccess: function (e) {//支付成功 paySuccess: function (e) {//支付成功
app.wxRequest(app.globalData.urlRoot + "wxPay/paySuccess", { source:2,trade_id:e},res=>{
if(res.code==200){
// app.wxRequest(app.globalData.urlRoot + "wxPay/paySuccess", { source:2,trade_id:e},res=>{
// if(res.code==200){
wx.showToast({ wx.showToast({
title: '下订成功', title: '下订成功',
mask:true mask:true
}) })
// this.setData({
// getBuyState:true
// })
app.globalData.getBuyState = {}; app.globalData.getBuyState = {};
app.globalData.getBuyState.success = true; app.globalData.getBuyState.success = true;
app.globalData.getBuyState.cdate = res.data.cdate; app.globalData.getBuyState.cdate = res.data.cdate;
} }
}) })
},1500) },1500)
} else {
this.data.appointment = true;
wx.showToast({
title: res.msg,
icon:'none'
})
}
},this,"POST");
// } else {
// this.data.appointment = true;
// wx.showToast({
// title: res.msg,
// icon:'none'
// })
// }
// },this,"POST");
}, },
closePage:function(){ closePage:function(){
this.closeXieyi(); this.closeXieyi();

読み込み中…
キャンセル
保存