Procházet zdrojové kódy

扫进场二维码后,在支付页面点击返回时,会跳转到领取临时车牌成功页面

john.hong před 2 roky
rodič
revize
bc9add0085

+ 5 - 1
src/pages/parkingFee/mixins/parkingFee.js

@@ -417,6 +417,7 @@ export default {
     },
     // 缴费记录
     doRouter: function () {
+      this.$store.dispatch('clearUnlicensed');
       window?.toWXSendMsg({
         type: 'uni_func',
         funcName: 'setStorageSync',
@@ -434,6 +435,7 @@ export default {
     },
     // 车牌管理
     doRouter2: function () {
+      this.$store.dispatch('clearUnlicensed');
       window?.toWXSendMsg({
         type: 'uni_func',
         funcName: 'setStorageSync',
@@ -452,6 +454,7 @@ export default {
     },
     //停车发票
     doRouter1: function () {
+      this.$store.dispatch('clearUnlicensed');
       window?.toWXSendMsg({
         type: 'uni_func',
         funcName: 'setStorageSync',
@@ -480,6 +483,7 @@ export default {
     },
     //停车券兑换
     doRouter3: function () {
+      this.$store.dispatch('clearUnlicensed');
       window?.toWXSendMsg({
         type: 'uni_func',
         funcName: 'setStorageSync',
@@ -598,7 +602,7 @@ export default {
               gateId: qrCodesres.gateId,
               vehicleNo: '',
               type: this.unlicensedInfo.type
-            }
+            } 
           })
           // const res = await unlicensedCarCheckout({
           //   gateId: qrCodesres.gateId

+ 3 - 0
src/pages/parkingFee/mixins/parkingFeeDetail.js

@@ -359,6 +359,9 @@ export default {
             }
           }
         });
+        setTimeout(() => {
+          this.$store.dispatch('clearUnlicensed');
+        }, 1200);
       } catch (err) {
         console.log('查询车辆是否在场的报错信息?', err, err.code === "INTERNAL_SERVER_ERROR");
         // 如果网络异常(这里是因为订单页面存在空白场景,才需要单独处理报错交互)

+ 4 - 0
src/store/index.js

@@ -284,6 +284,10 @@ const store = new Vuex.Store({
       commit('SET_USER_INFO', res.data);
       // console.log('user_info', res);
     },
+    clearUnlicensed({state, commit}) {
+      commit('SET_UNLICENSED_INFO', '');
+      commit('SET_ENDLESS_LOOP', '');
+    }
   },
   modules: {
     cachedViews,

+ 2 - 2
vue.config.js

@@ -122,9 +122,9 @@ module.exports = {
         },
       },
       '/msApi': {
-        target: 'http://172.20.248.37:8080',
+        // target: 'http://172.20.248.37:8080',
         // target: 'http://172.21.202.133:8080',
-        // target: 'https://dev-kip-service-internal.kerryonvip.com/temporary-parking-service', //代理地址,这里设置的地址会代替axios中设置的baseURL
+        target: 'https://dev-kip-service-internal.kerryonvip.com/temporary-parking-service', //代理地址,这里设置的地址会代替axios中设置的baseURL
         // target: 'http://172.21.203.140:8080', //代理地址,这里设置的地址会代替axios中设置的baseURL   2023-2-9
         // target: 'http://172.21.203.20:8080', //代理地址,这里设置的地址会代替axios中设置的baseURL
         // target: 'http://172.21.200.89:8080', //代理地址,这里设置的地址会代替axios中设置的baseURL