فهرست منبع

同城店铺新建流程重构

zhujindu 1 سال پیش
والد
کامیت
e36ce4cf6d

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

@@ -5,7 +5,7 @@
       <van-nav-bar class="navBar" title="门店详情" left-arrow @click-left="onClickLeft" />
     </div>
     <!--主体内容-->
-    <div style="margin-top: 44px; padding-bottom: 50px" v-show="list.storeId">
+    <div style="margin-top: 44px; padding-bottom: 50px" v-if="list.storeId">
       <!-- <van-dialog title="门店位置">
         <mapmarker :info="list"></mapmarker>
       </van-dialog> -->

+ 6 - 21
src/views/storeManagement/index.vue

@@ -55,6 +55,7 @@
         v-model="loading"
         :finished="finished"
         finished-text="--已经到底了--"
+        :immediate-check="false"
         @load="onLoad">
         <div class="cellcontent srore" v-for="(item, index) in list" :key="index">
           <van-cell>
@@ -411,34 +412,18 @@ export default {
       this.getStreetQuery();
       this.getMonth();
       this.onSearch();
+      if (localStorage.getItem('postType') == 'JZ' || localStorage.getItem('postType') == 'GZ') {
+        this.mapShows = false;
+      } else {
+        this.mapShows = true;
+      }
     }
   },
-  // created() {
-  // },
   watch: {
     $route(to, from) {
-      if (to.path == '/storemanagement/index' && from.path == '/storeAdd') {
-        // this.getStoreTypeList();
-        // this.getstoreCoverPosition();
-        // this.onSearch();
-      }
-      if (to.path == '/storemanagement/index' && from.path == '/storeEdit') {
-        // this.getStoreTypeList();
-        // this.getstoreCoverPosition();
-        // this.onSearch();
-      }
       if (to.path == '/storemanagement/index' && from.path == '/My/index') {
         this.tabVal = '1';
-        // this.getStoreTypeList();
-        // this.getstoreCoverPosition();
-        // this.onSearch();
       }
-      if (localStorage.getItem('postType') == 'JZ' || localStorage.getItem('postType') == 'GZ') {
-        this.mapShows = false;
-      } else {
-        this.mapShows = true;
-      }
-      this.getMonth();
     },
   },
   methods: {

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

@@ -1191,7 +1191,6 @@ export default {
       });
       getById({ storeId: this.$route.query.id }).then((res) => {
         loading1.clear();
-        this.pageShow = true;
         localStorage.setItem('locationRemark', res.data.addressLine);
         localStorage.setItem('orgName', res.data.orgName);
         localStorage.setItem('chainName', res.data.storeName);
@@ -1309,6 +1308,7 @@ export default {
             // 获取审批历史
             this.storeApprovaHistoryFun();
           }
+          this.pageShow = true;
         } else {
           this.$toast.fail(res.msg);
         }