|
|
@@ -18,7 +18,7 @@
|
|
|
<span class="tips">付款时间:交易日 {{ startTime }} - {{ endTime }}</span>
|
|
|
<span class="tips"><br>节假日以通知、公告为准,非交易日请勿操作!</span>
|
|
|
</div>
|
|
|
- <div class="tips_bank" v-if="msg_320">
|
|
|
+ <div class="tips_bank">
|
|
|
<div class="tips_bank_row" v-if="msg_320">
|
|
|
<span class="tips_bank_row__label">平台付款银行</span>
|
|
|
<span class="msg_tips" :data-clipboard-text="msg_320" v-copy="onCopy">{{ msg_320 }}</span>
|
|
|
@@ -36,11 +36,25 @@
|
|
|
<span class="msg_tips" :data-clipboard-text="msg_323" v-copy="onCopy">{{ msg_323 }}</span>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="member_payinfos" v-for="(item, index) in dataList" :key="index">
|
|
|
- <button>{{ getPayInfoIcon(item.paymodel) }}</button>
|
|
|
- <span>{{ item.payinfo }}</span>
|
|
|
- <app-qrcode class="app-register-code__qrcode" :width="240" :text="getFileUrl(item.payqrcode)" />
|
|
|
- </div>
|
|
|
+ <cell-group class="paybar" inset>
|
|
|
+ <RadioGroup v-model="checkedPayModel" direction="horizontal">
|
|
|
+ <template v-for="(item, index) in dataList" :key="index">
|
|
|
+ <Radio :name="index">
|
|
|
+ <img :src="payModelIcon[item.paymodel]" width="40" />
|
|
|
+ </Radio>
|
|
|
+ </template>
|
|
|
+ </RadioGroup>
|
|
|
+ <template v-for="(item, index) in dataList" :key="index">
|
|
|
+ <cell :title="getPayModelName(item.paymodel)" v-if="checkedPayModel === index">
|
|
|
+ <template #value>
|
|
|
+ <app-qrcode :width="128" :text="getFileUrl(item.payqrcode)" />
|
|
|
+ </template>
|
|
|
+ <template #label>
|
|
|
+ <pre>{{ item.payinfo }}</pre>
|
|
|
+ </template>
|
|
|
+ </cell>
|
|
|
+ </template>
|
|
|
+ </cell-group>
|
|
|
<CellGroup inset v-if="msg_324">
|
|
|
<Cell :title="$t('common.tips')">
|
|
|
<template #label>
|
|
|
@@ -58,26 +72,31 @@
|
|
|
</template>
|
|
|
|
|
|
<script lang="ts" setup>
|
|
|
-import { shallowRef, ref } from 'vue'
|
|
|
-import { Form, Field, Cell, CellGroup, Button, FieldRule, FormInstance, showToast, showFailToast } from 'vant'
|
|
|
+import { shallowRef } from 'vue'
|
|
|
+import { Form, Field, Cell, CellGroup, Button, FieldRule, FormInstance, showToast, showFailToast, RadioGroup, Radio } from 'vant'
|
|
|
import { fullloading, dialog } from '@/utils/vant'
|
|
|
+import { getFileUrl } from '@/filters'
|
|
|
import { useNavigation } from '@mobile/router/navigation'
|
|
|
-import { useDoDeposit, useDoCusBankExtendConfigs } from '@/business/bank'
|
|
|
+import { PayModel, getPayModelName } from '@/constants/payment'
|
|
|
+import { useRequest } from '@/hooks/request'
|
|
|
import { getServerTime } from '@/services/api/common'
|
|
|
+import { queryMemberPayInfos } from '@/services/api/order'
|
|
|
+import { useDoDeposit, useDoCusBankExtendConfigs } from '@/business/bank'
|
|
|
import { useUserStore } from '@/stores'
|
|
|
-import AppUploader from '@mobile/components/base/uploader/index.vue'
|
|
|
import moment from 'moment'
|
|
|
-import { useRequest } from '@/hooks/request'
|
|
|
-import { queryMemberPayInfos } from '@/services/api/order'
|
|
|
+import AppUploader from '@mobile/components/base/uploader/index.vue'
|
|
|
import AppQrcode from '@/components/base/qrcode/index.vue'
|
|
|
-import { getFileUrl } from '@/filters'
|
|
|
+import WeChatPay from '../../../../../assets/images/icons/wechatpay.svg'
|
|
|
+import AliPay from '../../../../../assets/images/icons/alipay.svg'
|
|
|
+import UnionPay from '../../../../../assets/images/icons/unionpay.svg'
|
|
|
|
|
|
const formRef = shallowRef<FormInstance>()
|
|
|
const { formData, onSubmit } = useDoDeposit()
|
|
|
const { router } = useNavigation()
|
|
|
const { getSystemParamValue } = useUserStore()
|
|
|
const { configs, cusBank, startTime, endTime } = useDoCusBankExtendConfigs(2)
|
|
|
-const certificate_photo_url = ref('')
|
|
|
+const certificate_photo_url = shallowRef('')
|
|
|
+const checkedPayModel = shallowRef(0) // 选中的支付方式
|
|
|
const userStore = useUserStore()
|
|
|
|
|
|
const msg_320 = getSystemParamValue('320')
|
|
|
@@ -86,20 +105,16 @@ const msg_322 = getSystemParamValue('322')
|
|
|
const msg_323 = getSystemParamValue('323')
|
|
|
const msg_324 = getSystemParamValue('324')
|
|
|
|
|
|
-// 获取所属会员的支付信息
|
|
|
-const { dataList } = useRequest(queryMemberPayInfos, {})
|
|
|
-// 获取对应的显示信息
|
|
|
-const getPayInfoIcon = (type: number) => {
|
|
|
- switch (type) {
|
|
|
- case 1:
|
|
|
- return '银行卡'
|
|
|
- case 2:
|
|
|
- return '微信'
|
|
|
- default:
|
|
|
- return ' 支付宝'
|
|
|
- }
|
|
|
+// 支付图标
|
|
|
+const payModelIcon: { [key: number]: string } = {
|
|
|
+ [PayModel.AliPay]: AliPay,
|
|
|
+ [PayModel.UnionPay]: UnionPay,
|
|
|
+ [PayModel.WeChatPay]: WeChatPay,
|
|
|
}
|
|
|
|
|
|
+// 获取所属会员的支付信息
|
|
|
+const { dataList } = useRequest(queryMemberPayInfos)
|
|
|
+
|
|
|
// 表单验证规则
|
|
|
const formRules: { [key: string]: FieldRule[] } = {
|
|
|
Amount: [{
|