diff --git a/src/views/setting/gmall/order.vue b/src/views/setting/gmall/order.vue index de8a9d1..2157a14 100644 --- a/src/views/setting/gmall/order.vue +++ b/src/views/setting/gmall/order.vue @@ -27,6 +27,7 @@ 全部 微信支付 余额支付 + 银联支付 @@ -62,7 +63,7 @@ {{ text }}年 - {{ text == 'wechat' ? '微信支付' : '余额支付' }} + {{ PaymentMethodEnum[text].name }} @@ -79,7 +80,9 @@ import * as Api from '@/api/setting/gmall' import { STable, UserItem } from '@/components/Table' import PayStatusEnum from '@/common/enum/recharge/order/PayStatus' +import { PaymentMethodEnum } from '@/common/enum/payment' import moment from 'moment' +import { inArray, assignment } from '@/utils/util' export default { name: 'Index', components: { @@ -168,6 +171,12 @@ export default { } }, created() {}, + beforeCreate () { + // 批量给当前实例赋值 + assignment(this, { + PaymentMethodEnum, + }) + }, methods: { /** * 刷新列表 diff --git a/src/views/user/order/Index.vue b/src/views/user/order/Index.vue index 62cb278..3ed362f 100644 --- a/src/views/user/order/Index.vue +++ b/src/views/user/order/Index.vue @@ -27,6 +27,7 @@ 全部 微信支付 余额支付 + 银联付 @@ -54,7 +55,7 @@ - {{ text=='wechat'?'微信支付':'余额支付' }} + {{ PaymentMethodEnum[text].name }} @@ -68,10 +69,13 @@