소스 검색

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

zhujindu 1 년 전
부모
커밋
64f0db53bf
3개의 변경된 파일15개의 추가작업 그리고 3개의 파일을 삭제
  1. 5 1
      src/views/signApproval/newStoreApprovalDetail.vue
  2. 5 1
      src/views/storeManagement/storeDetail.vue
  3. 5 1
      src/views/storeManagement/storeEdit.vue

+ 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 = '';