|
@@ -37,6 +37,15 @@
|
|
|
<app-uploader @success="h_afterRead" v-else />
|
|
<app-uploader @success="h_afterRead" v-else />
|
|
|
</template>
|
|
</template>
|
|
|
</Field>
|
|
</Field>
|
|
|
|
|
+ <Field v-if="system_1015 === '1'" v-model="formData.shopbrief" name="shopbrief" label="门店介绍" maxlength="250" show-word-limit
|
|
|
|
|
+ placeholder="请输入门店介绍" autosize type="textarea" />
|
|
|
|
|
+ <Field v-if="system_1015 === '1'" v-model="formData.shopaddr" name="shopaddr" label="门店地址" maxlength="250" show-word-limit
|
|
|
|
|
+ placeholder="请输入门店地址" autosize type="textarea" />
|
|
|
|
|
+ <Field v-if="system_1015 === '1'" name="shopphotos" label="经营场所" :rules="formRules.shopphotos">
|
|
|
|
|
+ <template #input>
|
|
|
|
|
+ <app-uploader :max-count="4" v-model="shopphotos" @success="onUpload" @delete="onDelete"/>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </Field>
|
|
|
</CellGroup>
|
|
</CellGroup>
|
|
|
</Form>
|
|
</Form>
|
|
|
<img src="../../../assets/images/certification.png" />
|
|
<img src="../../../assets/images/certification.png" />
|
|
@@ -49,7 +58,7 @@
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts" setup>
|
|
<script lang="ts" setup>
|
|
|
-import { shallowRef, onMounted } from 'vue'
|
|
|
|
|
|
|
+import { shallowRef, onMounted, ref } from 'vue'
|
|
|
import { CellGroup, Button, Field, Form, FormInstance, showFailToast, FieldRule, Image } from 'vant'
|
|
import { CellGroup, Button, Field, Form, FormInstance, showFailToast, FieldRule, Image } from 'vant'
|
|
|
import { fullloading, dialog } from '@/utils/vant';
|
|
import { fullloading, dialog } from '@/utils/vant';
|
|
|
import { getFileUrl, getIdCardAge } from '@/filters';
|
|
import { getFileUrl, getIdCardAge } from '@/filters';
|
|
@@ -68,12 +77,14 @@ import AppUploader from '@mobile/components/base/uploader/index.vue'
|
|
|
const { router } = useNavigation()
|
|
const { router } = useNavigation()
|
|
|
const userStore = useUserStore()
|
|
const userStore = useUserStore()
|
|
|
const formRef = shallowRef<FormInstance>()
|
|
const formRef = shallowRef<FormInstance>()
|
|
|
-const { formData, formSubmit, loading } = addAuthReq()
|
|
|
|
|
|
|
+const { formData, formSubmit, loading, system_1015 } = addAuthReq()
|
|
|
|
|
|
|
|
const showHalfBodyPhoto = shallowRef('0')
|
|
const showHalfBodyPhoto = shallowRef('0')
|
|
|
const showCardBackPhoto = shallowRef('0')
|
|
const showCardBackPhoto = shallowRef('0')
|
|
|
const halfBodyPhotoTitle = shallowRef('手持证件照')
|
|
const halfBodyPhotoTitle = shallowRef('手持证件照')
|
|
|
|
|
|
|
|
|
|
+const shopphotos = ref<string[]>([])
|
|
|
|
|
+
|
|
|
// 获取网上开户配置
|
|
// 获取网上开户配置
|
|
|
useRequest(getWskhOpenAccountConfigs, {
|
|
useRequest(getWskhOpenAccountConfigs, {
|
|
|
params: {
|
|
params: {
|
|
@@ -112,6 +123,17 @@ const h_afterRead = (filePath: string) => {
|
|
|
formData.halfbodyphotourl = filePath
|
|
formData.halfbodyphotourl = filePath
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+const onUpload = (filePath: string) => {
|
|
|
|
|
+ shopphotos.value.push(filePath)
|
|
|
|
|
+ formData.shopphotos = shopphotos.value.join(',')
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+const onDelete = (index: number) => {
|
|
|
|
|
+ shopphotos.value.splice(index, 1)
|
|
|
|
|
+ formData.shopphotos = shopphotos.value.join(',')
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
// 表单验证规则
|
|
// 表单验证规则
|
|
|
const formRules: { [key in keyof Model.AddAuthReq]?: FieldRule[] } = {
|
|
const formRules: { [key in keyof Model.AddAuthReq]?: FieldRule[] } = {
|
|
|
username: [{
|
|
username: [{
|
|
@@ -157,6 +179,18 @@ const formRules: { [key in keyof Model.AddAuthReq]?: FieldRule[] } = {
|
|
|
required: true,
|
|
required: true,
|
|
|
message: () => '请上传'+halfBodyPhotoTitle.value,
|
|
message: () => '请上传'+halfBodyPhotoTitle.value,
|
|
|
}],
|
|
}],
|
|
|
|
|
+ shopbrief: [{
|
|
|
|
|
+ required: true,
|
|
|
|
|
+ message: '请输入门店介绍',
|
|
|
|
|
+ }],
|
|
|
|
|
+ shopaddr: [{
|
|
|
|
|
+ required: true,
|
|
|
|
|
+ message: '请输入门店地址',
|
|
|
|
|
+ }],
|
|
|
|
|
+ shopphotos: [{
|
|
|
|
|
+ required: true,
|
|
|
|
|
+ message: () => '请上传门店经营场所图片',
|
|
|
|
|
+ }],
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
const onCheckCardNum = () => {
|
|
const onCheckCardNum = () => {
|