Răsfoiți Sursa

feat(KIP-11004): 自助积分请求报错,在南昌做隔离,暂无自助积分

lock.qiu@kerryprops.com 1 an în urmă
părinte
comite
a147ecd10b
2 a modificat fișierele cu 13 adăugiri și 7 ștergeri
  1. 11 6
      src/components/wx-points-auth/wx-points-auth.vue
  2. 2 1
      src/store/index.js

+ 11 - 6
src/components/wx-points-auth/wx-points-auth.vue

@@ -158,12 +158,17 @@ export default {
                         if (result.code && result.code === '300000') {
                             // this.checkoutLogin()
                         } else {
-                            uni.showToast({
-                                icon: 'none',
-                                mask: true,
-                                duration: 2000,
-                                title: result.errorMessage || result.message || '出错了,请稍后再试'
-                            })
+                            // console.log(222222)
+                            // 非南昌办公楼展示自助积分功能接口请求出错
+                            if (this.$store.state?.lbsId !== '8a84834088f11119018949444636000c') {
+                                uni.showToast({
+                                    icon: 'none',
+                                    mask: true,
+                                    duration: 2000,
+                                    title: result.errorMessage || result.message || '出错了,请稍后再试'
+                                })
+                            }
+                            
                         }
                     }
                 } else {

+ 2 - 1
src/store/index.js

@@ -383,7 +383,8 @@ const store = new Vuex.Store({
     async memberInit({ commit, dispatch },{unionId, openid, isError = true}) {
       try {
         const memberRes = await getVIPIntegral()
-        if(!memberRes?.vipcode && uni.getStorageSync('lbsId') !== '8a8484f488af06890188be39913e000e' && uni.getStorageSync('lbsId') !== '8a88817a8a629b5f018a838a0f6e001f' ) {
+        if(!memberRes?.vipcode && store.state?.lbsId !== '8a8484f488af06890188be39913e000e' && store.state?.lbsId !== '8a88817a8a629b5f018a838a0f6e001f' && store.state?.lbsId !== '8a84834088f11119018949444636000c' ) {
+          console.log('lbsid 未判断成功', store.state?.lbsId)
           backLbsHome()
           return 
         }