瀏覽代碼

fix: prod环境下的projectid和mallid没用切换成功

John-Hong 2 年之前
父節點
當前提交
97fa3a9709
共有 3 個文件被更改,包括 10 次插入3 次删除
  1. 7 1
      src/pages/parkingFee/parkingFee.vue
  2. 1 1
      src/pages/parkingFee/vehicleManagement.vue
  3. 2 1
      src/store/index.js

+ 7 - 1
src/pages/parkingFee/parkingFee.vue

@@ -293,6 +293,12 @@ export default {
     userInfo() {
       this.initPage();
     },
+    openid() {
+      if (this.openid) {
+        this.getParkInfo();
+        this.showSq = false;
+      }
+    },
   },
   async created(params) {},
   mounted() {
@@ -342,7 +348,7 @@ export default {
       // app.globalData.pullVipcode = params.pullVipcode || '';
       // app.globalData.mallid = params.mallid || app.globalData.mallid
       if (this.userInfo) {
-        this.getParkInfo();
+        // this.getParkInfo();
         return;
         // app.globalData.isNewMember = '';
         // 场景二维码记录(是否扫码进入)

+ 1 - 1
src/pages/parkingFee/vehicleManagement.vue

@@ -355,7 +355,7 @@ export default {
         })
         .catch(() => {
           // on cancel
-          this.cancelDelete();
+          // this.cancelDelete();
         });
       // this.deleteDialogSwitch = true;
     },

+ 2 - 1
src/store/index.js

@@ -131,9 +131,10 @@ const store = new Vuex.Store({
         if (/dev-|8080|qa-/.test(href)) {
           commit('SET_GROUP_ID', groupId);
           commit('SET_MALL_ID', mallId);
-          // return
         } else {
           commit('SET_GROUP_ID', '8a8884e77cc9e70a017cca1c77e80004');
+          groupId = '8a8884e77cc9e70a017cca1c77e80004'
+          mallId = '8a888aed7d0295e5017d029ff1f40000'
           commit('SET_MALL_ID', '8a888aed7d0295e5017d029ff1f40000');
         }