细节 银联支付

master
fanfan 6 months ago
parent 6a251e7990
commit 39e416a9e7
  1. 11
      src/views/setting/gmall/order.vue
  2. 12
      src/views/user/order/Index.vue

@ -27,6 +27,7 @@
<a-select-option :value="0">全部</a-select-option>
<a-select-option :value="'wechat'">微信支付</a-select-option>
<a-select-option :value="'balance'">余额支付 </a-select-option>
<a-select-option :value="'huifu'">银联支付 </a-select-option>
</a-select>
</a-form-item>
<a-form-item label="付款时间">
@ -62,7 +63,7 @@
<span slot="year" slot-scope="text"> {{ text }} </span>
<!-- 支付方式 -->
<span slot="pay_method" slot-scope="text">
<a-tag v-if="text">{{ text == 'wechat' ? '微信支付' : '余额支付' }}</a-tag>
<a-tag v-if="text">{{ PaymentMethodEnum[text].name }}</a-tag>
</span>
<!-- 状态 -->
<span slot="pay_status" slot-scope="text">
@ -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: {
/**
* 刷新列表

@ -27,6 +27,7 @@
<a-select-option :value="0">全部</a-select-option>
<a-select-option :value="'wechat'">微信支付</a-select-option>
<a-select-option :value="'balance'">余额支付 </a-select-option>
<a-select-option :value="'huifu'">银联付 </a-select-option>
</a-select>
</a-form-item>
<a-form-item label="付款时间">
@ -54,7 +55,7 @@
</span>
<!-- 支付方式 -->
<span slot="pay_method" slot-scope="text">
<a-tag v-if="text">{{ text=='wechat'?'微信支付':'余额支付' }}</a-tag>
<a-tag v-if="text">{{ PaymentMethodEnum[text].name }}</a-tag>
</span>
<!-- 状态 -->
<span slot="pay_status" slot-scope="text">
@ -68,10 +69,13 @@
</template>
<script>
import { PaymentMethodEnum } from '@/common/enum/payment'
import { inArray, assignment } from '@/utils/util'
import * as Api from '@/api/user/order'
import { STable, UserItem } from '@/components/Table'
import PayStatusEnum from '@/common/enum/recharge/order/PayStatus'
import moment from 'moment'
export default {
name: 'Index',
components: {
@ -156,6 +160,12 @@ export default {
}
},
created() {},
beforeCreate () {
//
assignment(this, {
PaymentMethodEnum,
})
},
methods: {
/**
* 刷新列表

Loading…
Cancel
Save