Browse Source

支付管理-应用信息:添加微信配置项

Xiao_123 9 months ago
parent
commit
898d14bccc
2 changed files with 24 additions and 0 deletions
  1. 4 0
      src/utils/constants.ts
  2. 20 0
      src/views/pay/app/index.vue

+ 4 - 0
src/utils/constants.ts

@@ -113,6 +113,10 @@ export const PayChannelEnum = {
     code: 'wx_bar',
     name: '微信条码支付'
   },
+  WX_NATIVE: {
+    code: 'wx_native',
+    name: '微信 Native 支付'
+  },
   ALIPAY_PC: {
     code: 'alipay_pc',
     name: '支付宝 PC 网站支付'

+ 20 - 0
src/views/pay/app/index.vue

@@ -251,6 +251,26 @@
             </el-button>
           </template>
         </el-table-column>
+        <el-table-column :label="PayChannelEnum.WX_NATIVE.name" align="center">
+          <template #default="scope">
+            <el-button
+              type="success"
+              circle
+              v-if="isChannelExists(scope.row.channelCodes, PayChannelEnum.WX_NATIVE.code)"
+              @click="openChannelForm(scope.row, PayChannelEnum.WX_NATIVE.code)"
+            >
+              <Icon icon="ep:check" />
+            </el-button>
+            <el-button
+              v-else
+              type="danger"
+              circle
+              @click="openChannelForm(scope.row, PayChannelEnum.WX_NATIVE.code)"
+            >
+              <Icon icon="ep:close" />
+            </el-button>
+          </template>
+        </el-table-column>
       </el-table-column>
       <el-table-column label="钱包支付配置" align="center">
         <el-table-column :label="PayChannelEnum.WALLET.name" align="center">