Browse Source

no message

linwenxin 2 tuần trước cách đây
mục cha
commit
ee016c3b75

+ 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>