From ecbdab9da9488cc58a1ac7064f9cffde4792fba4 Mon Sep 17 00:00:00 2001
From: k94314517 <8417338+k94314517@user.noreply.gitee.com>
Date: 星期五, 28 六月 2024 09:51:01 +0800
Subject: [PATCH] 代码初始化
---
h5/pages/userinfo/userinfo.vue | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/h5/pages/userinfo/userinfo.vue b/h5/pages/userinfo/userinfo.vue
index 0ad93e5..65bb981 100644
--- a/h5/pages/userinfo/userinfo.vue
+++ b/h5/pages/userinfo/userinfo.vue
@@ -74,7 +74,7 @@
import tlyPictureCut from "@/components/tly-picture-cut/tlyPictureCut.vue";
import QfImageCropper from '@/uni_modules/qf-image-cropper/components/qf-image-cropper/qf-image-cropper.vue';
import { mapState } from 'vuex'
- import { uploadUrl } from "@/utils/config"
+ import { uploadAvatar } from "@/utils/config"
import { getSystemDictData, visitorSub } from '@/api'
export default {
data() {
@@ -89,7 +89,7 @@
userAnswerId: '',
name: '',
phone: '',
- idcardType: '0',
+ idcardType: 0,
idcardTypeName: '韬唤璇�',
idcardNo: '',
faceImg: '',
@@ -130,7 +130,7 @@
this.visitorData.idcardTypeName = '鎶ょ収'
}
}
- this.visitorData.userAnswerId = option.userAnswerId
+ this.visitorData.userAnswerId = option.answerId || ''
// this.getVisit()
// uni.$on('update', (data) => {
// this.uploadImg(data.tempFilePath)
@@ -202,7 +202,7 @@
that.$refs.cropper.close()
uni.showLoading({ title: '涓婁紶涓�', mask: true });
uni.uploadFile({
- url: uploadUrl,
+ url: uploadAvatar,
filePath: file.tempFilePath,
name: 'file',
formData: {
@@ -238,7 +238,7 @@
if (type === 'imgurl') {
uni.showLoading({ title: '涓婁紶涓�', mask: true });
uni.uploadFile({
- url: uploadUrl,
+ url: uploadAvatar,
filePath: chooseImageRes.tempFilePaths[0],
name: 'file',
formData: {
--
Gitblit v1.9.3