lex-xin hai 4 meses
pai
achega
3cb64e300c

+ 3 - 0
miniprogram/pages/orders/order-detail.ts

@@ -170,6 +170,9 @@ Page({
         console.log('支付失败', ressonInfo)
         // wx.showToast({ title: '支付失败!', icon: 'none' });
         that.onPayError()
+        wx.redirectTo({
+          url: '/pages/orders/order-result?orderNo=' + orderNo
+        })
       }
     })
   },

+ 1 - 1
miniprogram/pages/orders/order-result.wxml

@@ -61,7 +61,7 @@
     </view>
   </scroll-view>
 
-  <view class="order-btn">
+  <view class="order-btn" wx:if="{{ goodsInfo.wechatStatus != 'WAIT_PAY' }}">
     <button type="primary" bind:tap="onSubmit">再来一单</button>
   </view>
 </view>