fanfan 4 months ago
commit 6a251e7990
  1. 3
      src/common/enum/payment/Method.js
  2. 2
      src/common/enum/setting/payment/Method.js
  3. 9
      src/views/setting/payment/Setting.vue

@ -7,5 +7,6 @@ import Enum from '../enum'
export default new Enum([
{ key: 'WECHAT', name: '微信支付', value: 'wechat' },
{ key: 'ALIPAY', name: '支付宝', value: 'alipay' },
{ key: 'BALANCE', name: '余额支付', value: 'balance' }
{ key: 'BALANCE', name: '余额支付', value: 'balance' },
{ key: 'HUIFU', name: '银联支付', value: 'huifu' }
])

@ -8,5 +8,5 @@ export default new Enum([
{ key: 'WECHAT', name: '微信支付', value: 'wechat' },
{ key: 'ALIPAY', name: '支付宝', value: 'alipay' },
{ key: 'BALANCE', name: '余额支付', value: 'balance' },
{ key: 'HUIFU', name: '支付', value: 'huifu' }
{ key: 'HUIFU', name: '银联支付', value: 'huifu' }
])

@ -18,7 +18,8 @@
<!-- 支付方式 -->
<template slot="method" slot-scope="text">
<div class="pay-method-item">
<span class="pay-icon" :style="{ color: PayMethodIcons[text].color }">
<img v-if="text==='huifu'" src="/static/yinlian.png" class="huifu-img">
<span v-else class="pay-icon" :style="{ color: PayMethodIcons[text].color }">
<a-icon class="icon" :class="[text]" :component="PayMethodIcons[text].icon" />
</span>
<span>{{ PaymentMethodEnum[text].name }}</span>
@ -283,9 +284,13 @@ export default {
.pay-method-item {
display: flex;
align-items: center;
.huifu-img {
height: 20px;
margin-right: 4px;
}
.pay-icon {
font-size: 24px;
margin-right: 8px;
margin-right: 12px;
}
}

Loading…
Cancel
Save