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