Commit 97a29301 by 程智春

扫码pid

parents 8af70917 32b599d3
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<img src="../../../static/images/contact_img.png" alt=""> <img src="../../../static/images/contact_img.png" alt="">
</div> </div>
<div class="btn-wrap"> <div class="btn-wrap">
<button open-type="contact" show-message-card> <button open-type="contact">
<div class="btn-main"> <div class="btn-main">
<div class="main-img"> <div class="main-img">
<img src="../../../static/images/wx.png" alt=""> <img src="../../../static/images/wx.png" alt="">
......
...@@ -111,9 +111,11 @@ export default { ...@@ -111,9 +111,11 @@ export default {
payData.fail = res => { payData.fail = res => {
console.log("支付失败", res, this.options.orderSn); console.log("支付失败", res, this.options.orderSn);
this.message = "支付失败"; this.message = "支付失败";
if (res.errMsg='requestPayment:fail cancel') {
wxPay.cancelPayment(this.options.orderSn).then(() => { wxPay.cancelPayment(this.options.orderSn).then(() => {
console.log("取消成功"); console.log("取消成功");
}); });
}
this.toPage(); this.toPage();
}; };
payData.complete = res => { payData.complete = res => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment