| @@ -296,15 +296,12 @@ Component({ | |||
| }, this, "POST") | |||
| }, | |||
| 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({ | |||
| title: '下订成功', | |||
| mask:true | |||
| }) | |||
| // this.setData({ | |||
| // getBuyState:true | |||
| // }) | |||
| app.globalData.getBuyState = {}; | |||
| app.globalData.getBuyState.success = true; | |||
| app.globalData.getBuyState.cdate = res.data.cdate; | |||
| @@ -317,14 +314,14 @@ Component({ | |||
| } | |||
| }) | |||
| },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(){ | |||
| this.closeXieyi(); | |||