소스 검색

style(KIP-7551): 缴费详情页面

John-Hong 2 년 전
부모
커밋
eb97885259

+ 1 - 1
src/pages/parkingFee/components/base/parkingFee.vue

@@ -26,7 +26,7 @@
             }"
             :style="{
               'background-image':
-                custTypeId === 1 ? `url(${picUrl}${blueHeadBg});` : '',
+                custTypeId === 1 ? `url(${picUrl}${blueHeadBg})` : '',
             }"
           >
             <div class="title_box">

+ 0 - 15
src/pages/parkingFee/components/blue/home.vue

@@ -1,15 +0,0 @@
-<template>
-  <div style="background-color: blue" @click="$emit('change', 'blue change')">
-    blue
-  </div>
-</template>
-
-<script>
-import homeJs from '../../mixins/home';
-export default {
-  ...homeJs,
-  name: 'blueCom',
-};
-</script>
-
-<style scoped></style>

+ 0 - 13
src/pages/parkingFee/components/green/home.vue

@@ -1,13 +0,0 @@
-<template>
-  <div style="background-color: green">green</div>
-</template>
-
-<script>
-import homeJs from '../../mixins/home';
-export default {
-  ...homeJs,
-  name: 'greenCom',
-};
-</script>
-
-<style scoped></style>

+ 0 - 13
src/pages/parkingFee/components/purple/home.vue

@@ -1,13 +0,0 @@
-<template>
-  <div style="background-color: purple">purple</div>
-</template>
-
-<script>
-import homeJs from '../../mixins/home';
-export default {
-  ...homeJs,
-  name: 'purpleCom',
-};
-</script>
-
-<style scoped></style>

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

@@ -233,6 +233,8 @@ export default {
       mobile: (state) => state.mobile,
       projectId: (state) => state.projectId,
       bonusCopy: (state) => state.bonusCopy,
+      source: (state) => state.source,
+      appId: (state) => state.appId,
     }),
   },
   async created() {
@@ -1608,7 +1610,7 @@ export default {
       let appId = uni.getStorageSync('appid');
       let openId = uni.getStorageSync('openid') || this.openid;
       if (platform === 'miniprogram') {
-        appId = 'wx92c3e55fbef6b2af';
+        appId =this.source === 'CRM' ? this.appId : 'wx92c3e55fbef6b2af';
       }
       const params = {
         region: 'cn',

+ 7 - 0
src/store/index.js

@@ -119,6 +119,10 @@ const store = new Vuex.Store({
       uni.setStorageSync('source', payload);
       state.source = payload;
     },
+    SET_APPID(state, payload) {
+      // uni.setStorageSync('appId', payload);
+      state.appId = payload;
+    }
   },
   actions: {
     async baseInit({ commit, dispatch }, { options, callback }) {
@@ -145,6 +149,7 @@ const store = new Vuex.Store({
           isLogin = false,
           accessToken = '',
           source = '',
+          appId = ''
         } = options;
         // console.log(8181, options);
         commit('SET_SOURCE', source)
@@ -158,6 +163,8 @@ const store = new Vuex.Store({
 
         if ( source === 'CRM' ) {
           commit('SET_CUST_TYPE_ID', custTypeId)
+          commit('SET_APPID', appId)
+
         }
         // 如果为 false,则表示当前用户是从小程序端未登录进入的
         if (!isLogin) {