From 2d95605efd098e1b1c80f80021b259314b10f204 Mon Sep 17 00:00:00 2001
From: k94314517 <8417338+k94314517@user.noreply.gitee.com>
Date: 星期五, 01 三月 2024 10:41:14 +0800
Subject: [PATCH] ERP接口

---
 h5/pages/userinfo/userinfo.vue |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/h5/pages/userinfo/userinfo.vue b/h5/pages/userinfo/userinfo.vue
index 0c56d64..d328ee9 100644
--- a/h5/pages/userinfo/userinfo.vue
+++ b/h5/pages/userinfo/userinfo.vue
@@ -27,7 +27,7 @@
 				</view>
 			</view>
 			<view class="cell">
-				<view class="title">鍏徃</view>
+				<view class="title">鍏徃<b>*</b></view>
 				<view class="content">
 					<input class="input" maxlength="50" placeholder-style="color: #999999;" v-model="visitorData.companyName" placeholder="璇疯緭鍏ユ偍鐨勫叕鍙稿悕绉�" />
 				</view>
@@ -129,6 +129,10 @@
 						icon: 'none'
 					})
 				}
+				if (!this.visitorData.companyName) return uni.showToast({
+					title: '鍏徃涓嶈兘涓虹┖',
+					icon: 'none'
+				})
 				if (!this.visitorData.faceImg) return uni.showToast({
 					title: '浜鸿劯鐓х墖涓嶈兘涓虹┖',
 					icon: 'none'
@@ -198,7 +202,7 @@
 								formData: {
 									folderCode: 'MEMBER_IMG'
 								},
-								success: (uploadFileRes) => {
+								success: (uploadFileRes) => {	
 									let res = JSON.parse(uploadFileRes.data)
 									if (type === 'faceImg') {
 										this.visitorData.faceImg = res.data.halfPath

--
Gitblit v1.9.3