Fix:3708 【商城小程序】供应商入驻时店铺封面为视频,驳回入驻申请后,再次提交入驻会提示“请上传店铺封面图”

This commit is contained in:
linxi
2025-05-06 16:34:46 +08:00
parent b1fc1e248d
commit 54a274a70f
+26 -22
View File
@@ -241,7 +241,7 @@
</template> </template>
</u-cell> </u-cell>
</u-form-item> </u-form-item>
<u-form-item v-if="form.coverType === 1" prop="cover"> <u-form-item v-if="form.coverType === 1" :prop="form.coverType === 1 ? 'cover' : 'coverVideo'">
<u-cell title="店铺封面图" :border="false"> <u-cell title="店铺封面图" :border="false">
<template #icon> <template #icon>
<text class="required">*</text> <text class="required">*</text>
@@ -263,7 +263,7 @@
</template> </template>
</u-cell> </u-cell>
</u-form-item> </u-form-item>
<u-form-item v-if="form.coverType === 2" prop="coverVideo"> <u-form-item v-if="form.coverType === 2" :prop="form.coverType === 1 ? 'cover' : 'coverVideo'">
<u-cell title="店铺视频封面" :border="false"> <u-cell title="店铺视频封面" :border="false">
<template #icon> <template #icon>
<text class="required">*</text> <text class="required">*</text>
@@ -634,7 +634,27 @@ export default {
trigger: ['blur', 'change'] trigger: ['blur', 'change']
} }
}, },
rules: { columnsType: [],
indexType: 0,
columnsSupplierType: [],
indexSupplierType: 0,
district: [],
isAgree: false,
show: false,
notice: '',
showRemove: false,
isDraft: null,
reviewStatus: null,
stateTitle: '',
stateType: 'primary',
// 是否为审核中
reviewing: false,
pageKeyId: ''
}
},
computed: {
rules () {
return {
'name': { 'name': {
type: 'string', type: 'string',
required: true, required: true,
@@ -643,13 +663,13 @@ export default {
}, },
'cover': { 'cover': {
type: 'string', type: 'string',
required: true, required: this.form.coverType === 1 ? true : false,
message: '请上传店铺封面图', message: '请上传店铺封面图',
trigger: ['blur', 'change'] trigger: ['blur', 'change']
}, },
'coverVideo': { 'coverVideo': {
type: 'string', type: 'string',
required: true, required: this.form.coverType === 1 ? false : true,
message: '请上传店铺视频封面', message: '请上传店铺视频封面',
trigger: ['blur', 'change'] trigger: ['blur', 'change']
}, },
@@ -707,23 +727,7 @@ export default {
message: '请选择营业时间', message: '请选择营业时间',
trigger: ['blur', 'change'] trigger: ['blur', 'change']
}, },
}, }
columnsType: [],
indexType: 0,
columnsSupplierType: [],
indexSupplierType: 0,
district: [],
isAgree: false,
show: false,
notice: '',
showRemove: false,
isDraft: null,
reviewStatus: null,
stateTitle: '',
stateType: 'primary',
// 是否为审核中
reviewing: false,
pageKeyId: ''
} }
}, },
onLoad(options) { onLoad(options) {