浏览代码

修改

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();

正在加载...
取消
保存