Browse Source

查询车牌

John-Hong 2 years ago
parent
commit
49d6926e4a

+ 5 - 4
src/pages/parkingFee/parkingFee.vue

@@ -263,6 +263,7 @@ export default {
       kipUserId: (state) => state.kipUserId,
       userInfo: (state) => state.userInfo,
       member: (state) => state.member,
+      mobile: (state) => state.mobile,
     }),
     /* groupId: (state) => state.groupId,
       openid: (state) => state.openid,
@@ -514,14 +515,13 @@ export default {
       uni.showLoading({
         title: '加载中',
       });
-      console.log(514, this.userInfo);
-      return;
+   
       const params = {
         carno,
         mallid: this.mallId,
         openid: this.openid,
         vipcode: this.member.vipcode,
-        mobile: this.member.mobile,
+        mobile: this.mobile,
         groupId: this.groupId,
         createuser: 'sys_miniprogram',
       };
@@ -548,10 +548,11 @@ export default {
         // url: 'http://172.21.90.87:8083/xcrm-api/api/1.0/park/checkCarIsInParkAndCarFee',
         data: params,
         method: 'POST',
-        header: uni.getStorageSync('handleUser'),
+        header: JSON.parse(uni.getStorageSync('handleUser')),
         timeout: 10000,
       })
         .then((res) => {
+          console.log(555555, res);
           uni.hideLoading();
           if (res.data.code === 0) {
             this.$router.push({

+ 2 - 2
src/pages/parkingFee/parkingReceipt/parkingReceipt.vue

@@ -264,8 +264,8 @@ export default {
       const openId = MemberCacheTool.getOpenId(app)
       var data = {
         openId: openId,
-        mallid: app?.globalData?.mallid,
-        vipcode: app?.globalData?.member?.vipcode,
+        mallid: this.mallid,
+        vipcode: this.vipcode,
         page: this.page,
         pageSize: this.pagesize,
       }

+ 2 - 1
src/store/index.js

@@ -63,7 +63,7 @@ const store = new Vuex.Store({
       state.userInfo = payload;
     },
     SET_MOBILE(state, payload) {
-      // uni.setStorageSync('userInfo', payload);
+      uni.setStorageSync('mobile', payload);
       state.mobile = payload;
     },
     SET_PARAMS_SCENE(state, payload) {
@@ -77,6 +77,7 @@ const store = new Vuex.Store({
       state.marketList = payload;
     },
     SET_PROJECT_ID(state, payload) {
+      uni.setStorageSync('projectId', payload);
       state.projectId = payload;
     },
     SET_PASS_LOGIN(state, payload) {