修改汇支付名称和图标

main
wangdong 4 months ago
parent 25c89fed0c
commit 8cc0219468
  1. 21692
      package-lock.json
  2. 2
      package.json
  3. 31
      src/api/upload/index.js
  4. 2
      src/common/enum/setting/payment/Method.js
  5. 9
      src/views/setting/payment/Setting.vue
  6. 12867
      yarn.lock

21692
package-lock.json generated

File diff suppressed because it is too large Load Diff

@ -4,7 +4,7 @@
"private": true,
"scripts": {
"serve": "vue-cli-service serve",
"build": "export NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service build",
"build": "vue-cli-service build",
"test:unit": "vue-cli-service test:unit",
"lint": "export NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service lint",
"build:preview": "vue-cli-service build --mode preview",

@ -0,0 +1,31 @@
import { axios } from '@/utils/request'
// api接口列表
const api = {
image: '/upload/image',
video: '/upload/video'
}
/**
* 上传图片
* @param {*} data
*/
export function image (data) {
return axios({
url: api.image,
method: 'post',
data
})
}
/**
* 上传视频
* @param {*} data
*/
export function video (data) {
return axios({
url: api.video,
method: 'post',
data
})
}

@ -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;
}
}

12867
yarn.lock

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save