Handy_Cao 11 月之前
父节点
当前提交
bec4b4d5ce

+ 4 - 0
src/business/user/account.ts

@@ -7,12 +7,15 @@ import { decryptAES } from '@/services/websocket/package/crypto'
 const loginStore = useLoginStore()
 const loginStore = useLoginStore()
 const userStore = useUserStore()
 const userStore = useUserStore()
 const accountStore = useAccountStore()
 const accountStore = useAccountStore()
+const { getSystemParamValue } = useUserStore()
 
 
 // 用户实名认证
 // 用户实名认证
 export function addAuthReq() {
 export function addAuthReq() {
     const loading = shallowRef(false)
     const loading = shallowRef(false)
     /// 审核备注
     /// 审核备注
     const modifyremark = userStore.userAccount.modifyremark ?? ''
     const modifyremark = userStore.userAccount.modifyremark ?? ''
+    // system_1015
+    const system_1015 = shallowRef(getSystemParamValue('1015') ?? '0')
 
 
     const formData = reactive<Model.AddAuthReq>({
     const formData = reactive<Model.AddAuthReq>({
         userid: loginStore.userId,
         userid: loginStore.userId,
@@ -33,6 +36,7 @@ export function addAuthReq() {
 
 
     return {
     return {
         loading,
         loading,
+        system_1015,
         modifyremark,
         modifyremark,
         formData,
         formData,
         formSubmit
         formSubmit

+ 1 - 0
src/packages/mobile/views/account/certification/Index.vue

@@ -1,3 +1,4 @@
+<!-- 实名认证 -->
 <template>
 <template>
     <app-view class="g-form account-certification">
     <app-view class="g-form account-certification">
         <template #header>
         <template #header>

+ 36 - 2
src/packages/sbyj/views/account/certification/Index.vue

@@ -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 = () => {

+ 8 - 2
src/types/model/user.d.ts

@@ -248,9 +248,15 @@ declare namespace Model {
         // 用户类型
         // 用户类型
         userinfotype?: number;
         userinfotype?: number;
         //银行编码
         //银行编码
-        bankid?; 
+        bankid?: number; 
         //银行帐号
         //银行帐号
-        bankaccount?; 
+        bankaccount?: string; 
+        // 门店介绍:输入型字符串,限长100;
+        shopbrief?: string;
+        // 门店地址:输入型字符串,限长100;
+        shopaddr?: string;
+        // 经营场所:图片,选择多张,英文分号";"分隔; 
+        shopphotos?: string;
     }
     }
 
 
     interface AddAuthRsp {
     interface AddAuthRsp {