Browse Source

bug 修复

lilei 2 years ago
parent
commit
4d8420936c

+ 2 - 2
pages/digitalShelf/choosePart.vue

@@ -255,7 +255,7 @@
 			// 游客
 			if(this.userInfo.sysUserFlag == '0'){
 				// 未认证
-				if(!this.storeApply.auditStatus){
+				if(!this.storeApply || this.storeApply&&!this.storeApply.auditStatus){
 					this.showPopup = true
 				}
 			}
@@ -515,7 +515,7 @@
 				// 游客去认证
 				if(this.userInfo.sysUserFlag == '0'){
 					// 未认证
-					if(this.storeApply&&!this.storeApply.auditStatus){
+					if(!this.storeApply || this.storeApply&&!this.storeApply.auditStatus){
 						this.showPopup = true
 					}
 					// 认证通过

+ 1 - 1
pages/personData/personData.vue

@@ -93,7 +93,7 @@
 			const _this = this
 			const { avatarUrl } = e.detail 
 			uni.uploadFile({
-				url: baseUrl + '/upload',
+				url: baseUrl + 'upload',
 				filePath: avatarUrl,
 				name: 'file',
 				success: (uploadFileRes) => {

+ 3 - 1
pages/storeManage/storeAuth.vue

@@ -19,6 +19,7 @@
 				</u-form-item>
 				<u-form-item label="营业执照">
 					<u-upload
+					v-if='form.licenseImage'
 					@on-success="uploadYyzzPhoto" 
 					@on-remove="removeYyzzPhoto" 
 					:file-list="yyzzPhotoList" 
@@ -28,6 +29,7 @@
 					:height="150"
 					upload-text="上传营业执照"
 					max-count="1"></u-upload>
+					<text v-else>未上传</text>
 				</u-form-item>
 				<u-form-item label="门店名称" required prop="storeName">
 					<u-input v-model="form.storeName" maxlength="30" placeholder="请输入门店名称(最多30个字符)"/>
@@ -160,7 +162,7 @@
 				},
 				areaIdArr: [],  //  省市区id数组
 				labelArr: [],
-				action: baseUrl + '/upload',
+				action: baseUrl + 'upload',
 				storePhotoList: [],
 				yyzzPhotoList: [],
 				storeApply: null,