@@ -100,20 +100,12 @@ Page({
if (data.code === 200) {
const { paymentConfig, paymentType, orderNo } = data.data
this.onExecutePay(paymentConfig, paymentType, orderNo)
-
+ } else if(data.code === 5200) {
- // 测试h5页面支付流程
+ wx.hideLoading()
- // const params = {
+ wx.showToast({
- // paymentType: 'adapay-cooleshow-6560',
+ title: data.message,
- // pay_channel: 'wx_pub',
+ icon: 'none'
- // wxAppId: 'wxbde13f59d40cb4f2',
+ })
- // body: 'aaa',
- // price: '0.01',
- // orderNo,
- // userId: app.globalData.userInfo?.id
- // }
- // wx.navigateTo({
- // url: '../protocol/register?orderInfo=' + encodeURIComponent(JSON.stringify(params))
- // })
} else {
this.onPayError()
}
@@ -25,7 +25,7 @@
</view>
- <view class="qrcode-section" wx:if="{{ (goodsInfo.wechatStatus == 'SUCCESS' || goodsInfo.wechatStatus == 'WAIT_USE') && showCanvas }}">
+ <view class="qrcode-section" wx:if="{{ (goodsInfo.wechatStatus == 'PAID' || goodsInfo.wechatStatus == 'WAIT_USE') && showCanvas }}">
<view class="qrcode-wrap">
<canvas class='my_draw_canvas' data-type="image" canvas-id='canvasCode' id="canvasCode"></canvas>