Feat:入驻新增营业执照名称

This commit is contained in:
LinCyJang
2026-01-31 13:52:10 +08:00
parent 7eeb313931
commit 0304b93966
3 changed files with 42 additions and 0 deletions
+16
View File
@@ -36,6 +36,21 @@
</template> </template>
</u-cell> </u-cell>
</u-form-item> </u-form-item>
<u-form-item prop="businessLicense">
<u-cell title="营业执照名称" :border="false">
<template #icon>
<text class="required">*</text>
</template>
<template #value>
<u-input
v-model="formSupplier.businessLicense"
:disabled="reviewing"
border="none"
placeholder="请填写营业执照名称"
/>
</template>
</u-cell>
</u-form-item>
<u-form-item prop="avatar"> <u-form-item prop="avatar">
<u-cell title="头像" :border="false"> <u-cell title="头像" :border="false">
<template #label> <template #label>
@@ -769,6 +784,7 @@ export default {
} }
this.formSupplier = !this.reviewing && local || { this.formSupplier = !this.reviewing && local || {
name: '', name: '',
businessLicense: '',
avatar: '', avatar: '',
contact: '', contact: '',
phone: '', phone: '',
+20
View File
@@ -21,6 +21,22 @@
/> />
</view> </view>
</view> </view>
<view class="form-item v12-mt-2">
<view class="title">
<text class="required">* </text>
营业执照名称:
</view>
<view class="input">
<u-textarea
border="none"
:disabled="form.isDraft === 0 && (form.reviewStatus === 0 || form.reviewStatus === 1)"
placeholder="请输入营业执照名称"
:placeholder-style="inputPlaceholderStyle"
v-model="form.businessLicense"
autoHeight
/>
</view>
</view>
<view class="form-item v12-mt-2 v12-d-flex v12-justify-start"> <view class="form-item v12-mt-2 v12-d-flex v12-justify-start">
<view> <view>
<view class="title"> <view class="title">
@@ -580,6 +596,10 @@ export default {
uni.$u.toast('请输入名称') uni.$u.toast('请输入名称')
return return
} }
if (!this.form.businessLicense) {
uni.$u.toast('请输入营业执照名称')
return
}
if (!this.form.cover) { if (!this.form.cover) {
uni.$u.toast('请上传主图') uni.$u.toast('请上传主图')
return return
+6
View File
@@ -265,6 +265,12 @@ export default {
message: '请填写批发商名称', message: '请填写批发商名称',
trigger: ['blur', 'change'] trigger: ['blur', 'change']
}, },
'businessLicense': {
type: 'string',
required: true,
message: '请填写营业执照名称',
trigger: ['blur', 'change']
},
'contact': { 'contact': {
type: 'string', type: 'string',
required: true, required: true,