Browse Source

Merge branch 'feature_20250116_提示类建店指标跳转页' into uat(dev)

zhujindu 9 months ago
parent
commit
882800df52

+ 4 - 4
src/layout/index.vue

@@ -1,12 +1,12 @@
 <template>
   <div class="container bgcolor">
-    <!-- <keep-alive>
-      <router-view :key="$route.fullPath" />
-    </keep-alive> -->
     <keep-alive>
+      <router-view :key="$route.fullPath" />
+    </keep-alive>
+    <!-- <keep-alive>
       <router-view v-if="$route.meta.keepAlive"></router-view>
     </keep-alive>
-    <router-view v-if="!$route.meta.keepAlive"></router-view>
+    <router-view v-if="!$route.meta.keepAlive"></router-view> -->
   </div>
 </template>
 <script>

+ 1 - 1
src/views/home/hintTabPage/pantoneNoGet.vue

@@ -34,7 +34,7 @@ export default {
       point: {}, //当前定位坐标
     };
   },
-  created() {
+  activated() {
     this.storeId = this.$route.query.storeId;
     // config授权
     getTicketFun().then(() => {

+ 21 - 1
src/views/home/hintTabPage/unCreateStore.vue

@@ -271,6 +271,7 @@ import { getStoreInfos } from '@/api/home';
 import { mapState } from 'vuex';
 import store from '@/store';
 import { getMonthCommon } from '@/utils';
+import { ProductItemImge } from '@/api/index';
 export default {
   name: 'unCreateStore',
   computed: {
@@ -307,7 +308,7 @@ export default {
       return type;
     },
   },
-  created() {
+  activated() {
     this.timeData = getMonthCommon();
     this.getList();
     this.activeName = this.activaCreateTypeStore || '';
@@ -337,6 +338,25 @@ export default {
     onClickLeft() {
       this.$router.go(-1);
     },
+    linkList(val) {
+      this.$router.push({
+        path: '/pItem',
+        query: { id: val.storeCode, detilId: 'a' },
+      });
+    },
+    linkimg(val) {
+      ProductItemImge({ storeId: val.storeId }).then((response) => {
+        if (response.code == 200) {
+          if (response.data != undefined) {
+            window.open(response.data);
+          } else {
+            this.$toast(response.msg);
+          }
+        } else {
+          this.$toast(res.msg);
+        }
+      });
+    },
   },
 };
 </script>