Quellcode durchsuchen

同城店铺新建流程重构-店铺详情优化

zhujindu vor 1 Jahr
Ursprung
Commit
64f0db53bf

+ 5 - 1
src/views/signApproval/newStoreApprovalDetail.vue

@@ -471,7 +471,11 @@ export default {
         localStorage.setItem('chainName', res.data.storeName);
         if (res.code == 200) {
           this.list = res.data;
-          this.displayImg = this.list.imgSed != '' ? this.list.imgSed.split(',') : [];
+          if (this.list.imgSed && this.list.imgSed != '') {
+            this.displayImg = this.list.imgSed.split(',');
+          } else {
+            this.displayImg = [];
+          }
           if (this.list.carShopImgList != null) {
           } else {
             this.list.carShopImgList = [];

+ 5 - 1
src/views/storeManagement/storeDetail.vue

@@ -1254,7 +1254,11 @@ export default {
             this.lon = res.data.lon;
           }
           this.list = res.data;
-          this.displayImg = this.list.imgSed != '' ? this.list.imgSed.split(',') : [];
+          if (this.list.imgSed && this.list.imgSed != '') {
+            this.displayImg = this.list.imgSed.split(',');
+          } else {
+            this.displayImg = [];
+          }
           if (this.list.storeCategory == '129081' || this.list.storeCategory == '10131') {
             this.cityABStore = true;
           } else {

+ 5 - 1
src/views/storeManagement/storeEdit.vue

@@ -1175,7 +1175,11 @@ export default {
 
         if (res.code == 200) {
           this.fromValue = res.data;
-          this.displayImg = this.fromValue.imgSed != '' ? this.fromValue.imgSed.split(',') : [];
+          if (this.fromValue.imgSed && this.fromValue.imgSed != '') {
+            this.displayImg = this.fromValue.imgSed.split(',');
+          } else {
+            this.displayImg = [];
+          }
           if (this.fromValue.lat != null) {
           } else {
             this.fromValue.lat = '';