ソースを参照

隐藏其他支付

lifanagju_citu 1 年間 前
コミット
db0cac6b14
2 ファイル変更4 行追加0 行削除
  1. 1 0
      pages/pay/index.vue
  2. 3 0
      sheep/platform/pay.js

+ 1 - 0
pages/pay/index.vue

@@ -18,6 +18,7 @@
         <radio-group @change="onTapPay">
           <label class="pay-type-item" v-for="item in state.payMethods" :key="item.title">
             <view
+              v-if="!item.hide"
               class="pay-item ss-flex ss-col-center ss-row-between ss-p-x-30 border-bottom"
               :class="{ 'disabled-pay-item': item.disabled }"
             >

+ 3 - 0
sheep/platform/pay.js

@@ -292,12 +292,14 @@ export function getPayMethods(channels) {
       title: '微信支付',
       value: 'wechat',
       disabled: true,
+      hide: true,
     },
     {
       icon: '/static/img/shop/pay/alipay.png',
       title: '支付宝支付',
       value: 'alipay',
       disabled: true,
+      hide: true,
     },
     {
       icon: '/static/img/shop/pay/wallet.png',
@@ -310,6 +312,7 @@ export function getPayMethods(channels) {
       title: 'Apple Pay',
       value: 'apple',
       disabled: true,
+      hide: true,
     },
     {
       icon: '/static/img/shop/pay/wallet.png',