Browse Source

商户登录修改提交

hxl13994548489 1 year ago
parent
commit
c3161314de
1 changed files with 8 additions and 6 deletions
  1. 8 6
      pages/login/settled.vue

+ 8 - 6
pages/login/settled.vue

@@ -407,7 +407,7 @@
                 country: !res.data.result.country ? null : res.data.result.country,
                 locality: !res.data.result.locality ? null : res.data.result.locality,
                 address: !res.data.result.address ? null : res.data.result.address,
-                headPhoto: !res.data.result.headPhotoList ? [] : res.data.result.headPhotoList,
+                headPhoto: !res.data.result.headPhoto ? [] : res.data.result.headPhoto,
                 passWord: data.passWord,
                 phone: data.phone,
               }
@@ -419,7 +419,7 @@
               this.businessLicenseImg = !res.data.result.businessLicense ? null : configService.apiUrl + '/' + res.data.result.businessLicense;
               this.identityOneImg = !res.data.result.identityOne ? null : configService.apiUrl + '/' + res.data.result.identityOne;
               this.identityTwoImg = !res.data.result.identityTwo ? null : configService.apiUrl + '/' + res.data.result.identityTwo;
-              this.headPhotoImg = res.data.result.headPhotoList ? res.data.result.headPhotoList.split(',').filter(id => id !== '') : []
+              this.headPhotoImg = res.data.result.headPhoto ? res.data.result.headPhoto.split(',').filter(id => id !== '') : []
             }
           });
         }else if(data.loginType === '3') {
@@ -428,9 +428,9 @@
           this.form.passWord =data.passWord;
           this.form.phone  =data.phone;
         }
-      }
-			if (data.params) {
-				let obj = JSON.parse(decodeURIComponent(data.params));
+      }else{
+        if (data.params) {
+          let obj = JSON.parse(decodeURIComponent(data.params));
           this.title = '店铺信息'
           this.tab = 2
           obj.lifespanType = obj.lifespanType ? obj.lifespanType : '1'
@@ -446,7 +446,8 @@
           this.identityTwoImg = configService.apiUrl + '/' + obj.identityTwo
           obj.locality = obj.locality ? obj.locality : ''
           this.form = obj
-			}
+        }
+      }
 		},
 		methods: {
 			getCurrentLocation() {
@@ -813,6 +814,7 @@ this.$forceUpdate();
             }
           }
 				} else {
+          console.log("编辑")
 					let data = {
 						...this.form,
 						source: 2,