Jelajahi Sumber

feat(SCRM-4268): Parking-Service跨业态无感积分绑定提醒

john 1 tahun lalu
induk
melakukan
53c5281ce4

+ 19 - 8
src/components/wx-points-auth/wx-points-auth.vue

@@ -1,5 +1,5 @@
 <template>
-    <div class="box" v-if="show" :style="{ bottom: bottom, }" @touchmove.stop.prevent>
+    <div class="box" v-if="show && source !== 'KIP'" :style="{ bottom: bottom, }" @touchmove.stop.prevent>
         <div class="box-text">
             <div class="box-text-left">
                 开通支付快速积分,积分秒到账!
@@ -56,7 +56,8 @@ export default {
         // custTypeId: 0 默认版本,1 上海静安 2 上海浦东
         ...mapState({
             // custTypeId: 0
-            custTypeId: state => state.custTypeId
+            custTypeId: state => state.custTypeId,
+            source: (state) => state.source,
         }),
         pointsModalFlag() {
             return this.$store.state.pointsModalFlag
@@ -165,10 +166,20 @@ export default {
             if (!type) {
                 return
             }
-            // mini 跳转
-            wx.miniProgram.redirectTo({
-                "url": "/pages/accumulatePoints/selfServicePoints?redirect=1" // 去 login 页面 1 去登录
-            })
+            if (window.__wxjs_environment === 'miniprogram') {
+                wx.miniProgram.navigateTo({
+                 "url": "/pages/accumulatePoints/selfServicePoints?redirect=1" // 去 login 页面 1 去登录
+                })
+            }
+            if (isAlipayClient) {
+                my?.navigateTo({
+                    "url": "/pages/accumulatePoints/selfServicePoints?redirect=1" // 去 login 页面 1 去登录
+                })
+            }
+            // // mini 跳转
+            // wx.miniProgram.redirectTo({
+            //     "url": "/pages/accumulatePoints/selfServicePoints?redirect=1" // 去 login 页面 1 去登录
+            // })
         },
     }
 }
@@ -178,9 +189,9 @@ export default {
     position: absolute;
     z-index: 10000;
     width: calc(100vw - 74px);
-    padding: 8px 15px;
+    padding: 8px 12px 8px 24px;
     height: 80px;
-    left: 22px;
+    left: 24px;
     border-radius: 4px;
     background: #000;
 }

+ 4 - 0
src/utils/common/localStorage.js

@@ -2,6 +2,7 @@ import uni from '../uniHooks'
 export function localStorageInit() {
   // 保留 carList
   const carList = uni.getStorageSync('carList');
+  const lbs_end_time = uni.getStorageSync('lbs_end_time');
   // 保留 buildingId
   const buildingId = window.localStorage.getItem('buildingId')
   // 每次进入页面清空 缓存数据
@@ -12,4 +13,7 @@ export function localStorageInit() {
   if (buildingId) {
     window.localStorage.setItem('buildingId', buildingId)
   }
+  if(lbs_end_time) {
+    uni.setStorageSync('lbs_end_time', lbs_end_time);
+  }
 }