瀏覽代碼

no message

linwenxin 2 周之前
父節點
當前提交
ee016c3b75
共有 2 個文件被更改,包括 14 次插入4 次删除
  1. 7 2
      src/packageMaterial/pages/newSale/pay.vue
  2. 7 2
      src/packageMaterial/pages/sale/pay.vue

+ 7 - 2
src/packageMaterial/pages/newSale/pay.vue

@@ -31,8 +31,13 @@
       <template slot="footer">
         <view class="footer-btn-group">
           <u-button v-if="detail.ifCancel" text="取消订单" @click="cancelOrder"></u-button>
-          <!-- <u-button text="扫码支付" type="primary" @click="scanCode"></u-button> -->
-          <u-button text="线下支付" type="primary" @click="scanCodeXX"></u-button>
+          <u-button
+            v-if="detail.greeOrderId && detail.payType == 'WECHAT'"
+            text="扫码支付"
+            type="primary"
+            @click="scanCode"
+          ></u-button>
+          <u-button v-else text="线下支付" type="primary" @click="scanCodeXX"></u-button>
         </view>
       </template>
     </zj-page-layout>

+ 7 - 2
src/packageMaterial/pages/sale/pay.vue

@@ -31,8 +31,13 @@
       <template slot="footer">
         <view class="footer-btn-group">
           <u-button v-if="detail.ifCancel" text="取消订单" @click="cancelOrder"></u-button>
-          <!-- <u-button text="扫码支付" type="primary" @click="scanCode"></u-button> -->
-          <u-button text="线下支付" type="primary" @click="scanCodeXX"></u-button>
+          <u-button
+            v-if="detail.greeOrderId && detail.payType == 'WECHAT'"
+            text="扫码支付"
+            type="primary"
+            @click="scanCode"
+          ></u-button>
+          <u-button v-else text="线下支付" type="primary" @click="scanCodeXX"></u-button>
         </view>
       </template>
     </zj-page-layout>