增加前端格式检查配置
This commit is contained in:
@@ -62,7 +62,7 @@ async function handleConfirmPayment() {
|
||||
cancelButtonText: '取消',
|
||||
inputType: 'textarea',
|
||||
inputPlaceholder: '输入打款备注...',
|
||||
inputValidator: (value) => {
|
||||
inputValidator: value => {
|
||||
return value && value.trim().length > 0
|
||||
},
|
||||
inputErrorMessage: '请输入打款备注',
|
||||
@@ -97,10 +97,15 @@ function statusLabel(status: string) {
|
||||
}
|
||||
|
||||
function statusType(status: string) {
|
||||
return status === 'completed' ? 'success' :
|
||||
status === 'pending' ? 'warning' :
|
||||
status === 'processing' ? 'primary' :
|
||||
status === 'rejected' ? 'danger' : 'info'
|
||||
return status === 'completed'
|
||||
? 'success'
|
||||
: status === 'pending'
|
||||
? 'warning'
|
||||
: status === 'processing'
|
||||
? 'primary'
|
||||
: status === 'rejected'
|
||||
? 'danger'
|
||||
: 'info'
|
||||
}
|
||||
|
||||
function accountTypeLabel(type: string) {
|
||||
@@ -188,7 +193,11 @@ function accountTypeLabel(type: string) {
|
||||
<el-descriptions-item v-if="withdrawal.bank_branch" label="开户支行">
|
||||
{{ withdrawal.bank_branch }}
|
||||
</el-descriptions-item>
|
||||
<el-descriptions-item v-if="withdrawal.certificate_urls && withdrawal.certificate_urls.length > 0" label="收款二维码" :span="2">
|
||||
<el-descriptions-item
|
||||
v-if="withdrawal.certificate_urls && withdrawal.certificate_urls.length > 0"
|
||||
label="收款二维码"
|
||||
:span="2"
|
||||
>
|
||||
<div style="display: flex; gap: 8px; flex-wrap: wrap">
|
||||
<el-image
|
||||
v-for="(url, idx) in withdrawal.certificate_urls"
|
||||
@@ -299,9 +308,7 @@ function accountTypeLabel(type: string) {
|
||||
确认打款
|
||||
</el-button>
|
||||
</div>
|
||||
<el-button @click="emit('update:modelValue', false)">
|
||||
关闭
|
||||
</el-button>
|
||||
<el-button @click="emit('update:modelValue', false)"> 关闭 </el-button>
|
||||
</div>
|
||||
</template>
|
||||
</el-dialog>
|
||||
|
||||
Reference in New Issue
Block a user