Browse Source

feature_20250820_页面优化

zhujindu 3 months ago
parent
commit
20c6dc52b7
1 changed files with 8 additions and 6 deletions
  1. 8 6
      src/views/storeManagement/storeDetail.vue

+ 8 - 6
src/views/storeManagement/storeDetail.vue

@@ -128,11 +128,13 @@
             v-if="list.ifJzStoreType == 1 && list.storeCategory != 'C917'"
             v-model="list.contactName"
             label="老板" />
-          <van-field
-            readonly
-            v-model="list.telephone"
-            label="联系电话"
-            v-if="list.storeCategory != 'C917' && list.ifJpStoreType != '1'" />
+          <template v-if="list.storeCategory != 'C917'">
+            <van-field
+              readonly
+              v-model="list.telephone"
+              label="联系电话"
+              v-if="list.ifJpStoreType != '1'"
+          /></template>
           <template v-if="list.storeCategory != 'C917'">
             <!-- 分销店 -->
             <template
@@ -1358,6 +1360,7 @@ export default {
       this.lon = '';
       getById({ storeId: this.$route.query.id })
         .then((res) => {
+          this.tabVal = res.data.ifJpStoreType == '1' ? 'outsidePlan' : 'insidePlan';
           localStorage.setItem('locationRemark', res.data.addressLine);
           localStorage.setItem('orgName', res.data.orgName);
           localStorage.setItem('chainName', res.data.storeName);
@@ -1368,7 +1371,6 @@ export default {
               this.lon = res.data.lon;
             }
             this.list = res.data;
-            this.tabVal = this.list.ifJpStoreType == '1' ? 'outsidePlan' : 'insidePlan';
             if (this.list.imgSed && this.list.imgSed != '') {
               this.displayImg = this.list.imgSed.split(',');
             } else {