Explorar el Código

feat: shareId 跳转

Basil hace 2 años
padre
commit
c298c1c813

+ 4 - 3
changelog.md

@@ -1,3 +1,4 @@
1
-- 产品详情页产品图片调整为1:1
2
-- 一键登录增加 Loding
3
-- 
1
+- FEAT 产品详情页产品图片调整为1:1
2
+- FEAT 一键登录增加 Loading
3
+- FIX 每日签到提醒,改变每日提醒一次
4
+- FIX SKU 默认选择问题

+ 19 - 1
src/App.vue

@@ -2,9 +2,11 @@
2 2
 import { onLaunch, onShow, onHide, onReady } from "@dcloudio/uni-app";
3 3
 import {useAddressStore} from "~/stores/addressStore";
4 4
 import {useGlobalData} from "@uni-helper/uni-use";
5
+import {useUserStore} from "~/stores/userStore";
5 6
 const addressStore = useAddressStore()
6 7
 const that = this
7 8
 const privacyData = uni.getStorageSync('PRIVACY')
9
+const userStore = useUserStore()
8 10
 onLaunch(() => {
9 11
   console.log("App Launch");
10 12
   // that.globalData = {
@@ -13,7 +15,7 @@ onLaunch(() => {
13 15
   // }
14 16
   wx.getPrivacySetting({
15 17
     success(res) {
16
-      console.log('是否需要授权:', res.needAuthorization, '隐私协议的名称为:', res.privacyContractName);
18
+      // console.log('是否需要授权:', res.needAuthorization, '隐私协议的名称为:', res.privacyContractName);
17 19
       if (res.needAuthorization) {
18 20
         uni.setStorageSync('PRIVACY', { privacyContractName: res.privacyContractName, showPrivacy: true})
19 21
         // that.globalData.privacyContractName = res.privacyContractName
@@ -28,6 +30,22 @@ onLaunch(() => {
28 30
       }
29 31
     }
30 32
   });
33
+
34
+
35
+// #ifdef MP-WEIXIN
36
+  wx.onAppRoute((res) => {
37
+    // console.log('路由监听',res)
38
+    if (res.openType === 'switchTab') {
39
+      if (res.path === "pages/order_addcart/index") {
40
+
41
+      }
42
+      // console.log(res)
43
+      // #ifdef MP-WEIXIN
44
+      // wx.hideTabBar()
45
+      // #endif
46
+    }
47
+  })
48
+  // #endif
31 49
 });
32 50
 // useGlobalData()
33 51
 onShow(() => {

+ 48 - 29
src/components/CXBPhoneLoginButton/CXBPhoneLoginButton.vue

@@ -35,6 +35,12 @@ function getPhoneNumber(e) {
35 35
           if (shareId) {
36 36
             params.share_id = shareId
37 37
           }
38
+
39
+          let redirectPageObj: {page: string, type: 'page' | 'tab'}
40
+          if (Cache.get('SHARE_REDIRECT_PAGE')) {
41
+            redirectPageObj = JSON.parse(Cache.get('SHARE_REDIRECT_PAGE'))
42
+          }
43
+
38 44
           // 手机号授权
39 45
           authAppletPhone({
40 46
             ...params
@@ -55,37 +61,50 @@ function getPhoneNumber(e) {
55 61
               // console.log('已绑定手机')
56 62
               // console.log(bindRes)
57 63
               Cache.clear('SHARE_ID')
58
-              // 跳转
59
-              switch (props.key) {
60
-                case '10':
61
-                  uni.switchTab({
62
-                    url: '/pages/user/index'
63
-                  })
64
-                  break;
65
-                case '4':
66
-                  uni.navigateBack({
67
-                    delta: 2
68
-                  })
69
-                  break;
70
-                case '1':
71
-                  uni.switchTab({
72
-                    url: '/pages/order_addcart/index'
73
-                  })
74
-                  break;
75
-                case undefined:
76
-                  uni.switchTab({
77
-                    url: '/pages/user/index'
78
-                  })
79
-                  break;
80
-                case '30':
81
-                  uni.switchTab({
82
-                    url: '/pages/home/index'
64
+              if (redirectPageObj) {
65
+                if (redirectPageObj.type === 'page') {
66
+                  return uni.redirectTo({
67
+                    url: redirectPageObj.page
83 68
                   })
84
-                  break;
85
-                default:
86
-                  uni.switchTab({
87
-                    url: '/pages/home/index'
69
+                }
70
+                if (redirectPageObj.type === 'tab') {
71
+                  return uni.switchTab({
72
+                    url: redirectPageObj.page
88 73
                   })
74
+                }
75
+              } else {
76
+                // 跳转
77
+                switch (props.key) {
78
+                  case '10':
79
+                    uni.switchTab({
80
+                      url: '/pages/user/index'
81
+                    })
82
+                    break;
83
+                  case '4':
84
+                    uni.navigateBack({
85
+                      delta: 2
86
+                    })
87
+                    break;
88
+                  case '1':
89
+                    uni.switchTab({
90
+                      url: '/pages/order_addcart/index'
91
+                    })
92
+                    break;
93
+                  case undefined:
94
+                    uni.switchTab({
95
+                      url: '/pages/user/index'
96
+                    })
97
+                    break;
98
+                  case '30':
99
+                    uni.switchTab({
100
+                      url: '/pages/home/index'
101
+                    })
102
+                    break;
103
+                  default:
104
+                    uni.switchTab({
105
+                      url: '/pages/home/index'
106
+                    })
107
+                }
89 108
               }
90 109
             })
91 110
 

+ 8 - 3
src/components/CXBSkuPopup/CXBSkuPopup.vue

@@ -8,6 +8,7 @@ import {PopupProps} from "~/components/FPopup";
8 8
 import {CLOSE_EVENT, OPEN_EVENT, UPDATE_SHOW_EVENT} from "~/components/constants";
9 9
 import CXBButton from "~/components/CXBButton/CXBButton.vue";
10 10
 import FButton from "~/components/FButton/FButton.vue";
11
+import {findLast} from "lodash-es";
11 12
 const emit = defineEmits()
12 13
 const props = defineProps({
13 14
   show: {
@@ -59,15 +60,19 @@ const skuList = computed(() => {
59 60
   if (props.detail && props.detail.sku) {
60 61
     for (let key in props.detail.sku) {
61 62
       const skuItem: SkuModel = props.detail.sku[key]
62
-      // if (skuItem.sku !== '') {
63 63
       skuData.push(skuItem)
64
-      // }
65
-      currentSku.value = skuData[0]
64
+      if (skuItem.unique === props.detail.unique) {
65
+        currentSku.value = skuItem
66
+      }
66 67
     }
67 68
   }
68 69
   return skuData
69 70
 })
70 71
 
72
+// currentSku.value = findLast(skuList, (item) => {
73
+//   return item.unique === props.detail.unique
74
+// })
75
+
71 76
 onMounted(() => {
72 77
   emit('selected:item', currentSku)
73 78
 

+ 1 - 1
src/pages/annuity/index.vue

@@ -94,7 +94,7 @@ function handleToCitic() {
94 94
     path: 'pages/con_home/con_home?appId:280c3cc3ed1548a78435b1bd1c2cd559',
95 95
     success(res) {
96 96
       // 打开成功
97
-      console.log(res);
97
+      // console.log(res);
98 98
     },
99 99
     fail: (error) => {
100 100
       console.log(error);

+ 1 - 1
src/pages/bangfuzhongxin/index.vue

@@ -124,7 +124,7 @@ function handleShowMyInvitation() {
124 124
               @tap="handleShowMyInvitation"
125 125
               class="w-1/3  flex flex-col justify-center items-center">
126 126
 <!--            <div>{{ userStore.userInfo.member_brokerage_price || '0.00' }}</div>-->
127
-            <div>{{ agentInfo.brokerage_price }}</div>
127
+            <div>{{ agentInfo.brokerage_price ? agentInfo.brokerage_price : '0'}}</div>
128 128
             <div class="text-sm">我的佣金</div>
129 129
           </div>
130 130
           <div class="w-1/3  flex flex-col justify-center items-center">

+ 1 - 1
src/pages/guest_member_new/index.vue

@@ -51,7 +51,7 @@ function handleToShopApplet() {
51 51
     path: 'pages/index/index',
52 52
     success(res) {
53 53
       // 打开成功
54
-      console.log(res);
54
+      // console.log(res);
55 55
     },
56 56
     fail: (error) => {
57 57
       console.log(error);

+ 1 - 1
src/pages/home/index.vue

@@ -221,7 +221,7 @@ function getIsShow(){
221 221
     },
222 222
     fail: function(res) {
223 223
       //没有执行过的话 先存一下当前的执行时间
224
-      console.log(res);
224
+      // console.log(res);
225 225
       state.isEject = 1
226 226
       // getApp().globalData.isEject = 0; //自定义要更改的变量 或者方法
227 227
       let today = new Date().toLocaleDateString();

+ 6 - 5
src/pages/miaosha/index.vue

@@ -60,17 +60,18 @@ function loadList(action: 'page' | 'reload', callback?: (items) => void) {
60 60
         if (status3FilterList.length >= 3) {
61 61
           status3FilterList = orderBy(status3FilterList,  ['ctime'], ['desc'])
62 62
           console.log(status3FilterList)
63
-          state.list.push(status3FilterList[0])
63
+          state.list.push(...status3FilterList[0])
64 64
           console.log(state.list)
65 65
         } else {
66
-          state.list.push(status3FilterList)
66
+          state.list.push(...status3FilterList)
67 67
         }
68 68
         if (status2FilterList.length > 0) {
69
-          state.list.push(status2FilterList)
69
+          state.list.push(...status2FilterList)
70 70
         }
71 71
         if (status1FilterList.length > 0) {
72
-          state.list.push(status1FilterList)
72
+          state.list.push(...status1FilterList)
73 73
         }
74
+
74 75
         if (state.list.length > 0) {
75 76
           // list.value = orderBy(list.value, )
76 77
           currentSeckillDate.value = state.list[0].seckill_date
@@ -100,7 +101,7 @@ function handleItemClick(seckillItem) {
100 101
 <template>
101 102
   <CXBBasePage>
102 103
     <div
103
-        v-if="state.list.length > 0"
104
+        v-if="state.list && state.list.length > 0"
104 105
 
105 106
     >
106 107
       <scroll-view

+ 1 - 1
src/pages/my-rules/index.vue

@@ -192,7 +192,7 @@ function handleToVipPage() {
192 192
             <div
193 193
                 @tap="handleShowMyInvitation"
194 194
                 class="w-1/3  flex flex-col justify-center items-center">
195
-              <div>{{ agentInfo.brokerage_price }}</div>
195
+              <div>{{ agentInfo.brokerage_price ? agentInfo.brokerage_price : '0' }}</div>
196 196
               <div class="text-xs">我的佣金</div>
197 197
             </div>
198 198
             <div

+ 27 - 13
src/pages/order_addcart/index.vue

@@ -20,7 +20,7 @@ import {cartChange} from "~/apis/order.api";
20 20
 const gouwucheImage = CDN_URL + '/static/assets/gouwuche.png'
21 21
 const like_adorn_220628Image = CDN_URL + '/static/assets/like_adorn_220628.png'
22 22
 const pageStore = usePageStoreWidthOut()
23
-
23
+const userStore = useUserStore()
24 24
 
25 25
 const state = reactive({
26 26
   recommendList: [],
@@ -42,6 +42,13 @@ const state = reactive({
42 42
 
43 43
 const shopping = ref<ShoppingResult>()
44 44
 
45
+onBeforeMount(() => {
46
+  if (!userStore.uid) {
47
+    return uni.navigateTo({
48
+      url: '/user/login/index'
49
+    })
50
+  }
51
+})
45 52
 onLoad((options) => {
46 53
   uni.$on('cart-reload', () => {
47 54
     // console.log('新商品添加...')
@@ -53,12 +60,12 @@ onLoad((options) => {
53 60
   loadCartList()
54 61
 })
55 62
 onShow(() => {
56
-  pageStore.setPageConfig({
57
-    orderBack: {
58
-      type: 'tab',
59
-      url:  '/pages/order_addcart/index'
60
-    }
61
-  })
63
+  // pageStore.setPageConfig({
64
+  //   orderBack: {
65
+  //     type: 'tab',
66
+  //     url:  '/pages/order_addcart/index'
67
+  //   }
68
+  // })
62 69
   if (!state.isManage) {
63 70
     state.isManage = true
64 71
   }
@@ -113,8 +120,13 @@ onReachBottom(() => {
113 120
 
114 121
 // 加载购物车数据
115 122
 function loadCartList() {
123
+  uni.showLoading({
124
+    title: '加载中',
125
+    icon: 'none'
126
+  })
116 127
   // state.totalCartCount = 0
117 128
   getCartList().then(res => {
129
+    uni.hideLoading()
118 130
     shopping.value = res
119 131
 
120 132
     // console.log(res)
@@ -286,6 +298,13 @@ function handleSelectAll(checked: boolean) {
286 298
 
287 299
 }
288 300
 function loadCartCount() {
301
+  // pageStore.setPageConfig({
302
+  //   orderBack: {
303
+  //     type: 'tab',
304
+  //     url:  '/pages/order_addcart/index'
305
+  //   }
306
+  // })
307
+
289 308
   getCartCount().then(res => {
290 309
     // console.log(res)
291 310
     // state.cartCount = res[0].count
@@ -294,16 +313,11 @@ function loadCartCount() {
294 313
   }).catch(error => {
295 314
     // console.log(error)
296 315
     if (error === '请登录') {
297
-      // uni.showToast({
298
-      //   title: '请登录',
299
-      //   icon: 'none'
300
-      // })
301 316
       setTimeout(() => {
302 317
         uni.navigateTo({
303
-          url: '/pages/user/login/index?key=4'
318
+          url: '/pages/user/login/index'
304 319
         })
305 320
       }, 500)
306
-
307 321
     }
308 322
   })
309 323
 }

+ 10 - 9
src/pages/red-integral/index.vue

@@ -51,37 +51,38 @@ onLoad((options) => {
51 51
 // })
52 52
 const userType = computed(() => {
53 53
   const userRichType = userStore.userInfo?.user_rich_type
54
+  const bangfu = userStore.userInfo.is_bangfu ? '帮扶中心 ' : ''
54 55
 
55 56
   // 创始人
56 57
   if (userRichType == 3) {
57
-    return '创始人'
58
+    return bangfu + '创始人'
58 59
   }
59 60
   // 普通用户
60 61
   if (userRichType == 0) {
61
-    return '用户'
62
+    return bangfu + '用户'
62 63
   }
63 64
   // 会员
64 65
   if (userRichType == 1) {
65
-    return '会员'
66
+    return bangfu + '会员'
66 67
   }
67 68
   if (userRichType == 3) {
68
-    return '创始人'
69
+    return bangfu + '创始人'
69 70
   }
70 71
   // 合伙人
71 72
   if (userRichType == 4) {
72
-    return 'VIP'
73
+    return bangfu + 'VIP'
73 74
   }
74 75
   if (userRichType == 5) {
75
-    return '初始级合伙人'
76
+    return bangfu + '初始级合伙人'
76 77
   }
77 78
   if (userRichType == 6) {
78
-    return '中级合伙人'
79
+    return bangfu + '中级合伙人'
79 80
   }
80 81
   if (userRichType == 7) {
81
-    return '高级合伙人'
82
+    return bangfu + '高级合伙人'
82 83
   }
83 84
   if (!userRichType) {
84
-    return '用户'
85
+    return bangfu + '用户'
85 86
   }
86 87
 })
87 88
 

+ 1 - 1
src/pages/store/home/index.vue

@@ -300,7 +300,7 @@ function handleScrollToLower() {
300 300
 }
301 301
 
302 302
 onReachBottom(() => {
303
-  console.log('到底了。。。')
303
+  // console.log('到底了。。。')
304 304
 
305 305
   handleScrollToLower()
306 306
 

+ 6 - 5
src/pages/store/nearby/index.vue

@@ -71,7 +71,6 @@ onLoad((option) => {
71 71
   })
72 72
   userStore.setRedirectPage(`/pages/store/nearby/index`, 'tab')
73 73
 
74
-
75 74
   // loadSelectMerchant('reload')
76 75
 })
77 76
 onShareAppMessage(() => {
@@ -103,6 +102,8 @@ onShow(() => {
103 102
       url:  '/pages/store/nearby/index'
104 103
     }
105 104
   })
105
+  // console.log('onshow...')
106
+  loadSelectMerchant('reload')
106 107
 
107 108
 })
108 109
 
@@ -112,7 +113,7 @@ function loadAll() {
112 113
 }
113 114
 
114 115
 function handleCategoryChange(category) {
115
-  console.log(category)
116
+  // console.log(category)
116 117
   state.currentMerchantCategoryId = category.merchant_category_id
117 118
   // console.log(category)
118 119
   // loadSelectMerchant()
@@ -148,11 +149,11 @@ function loadSelectMerchant(action: 'page' | 'reload', callback?: (items) => voi
148 149
   }
149 150
 
150 151
   getSelectMerchant(params).then((res: StoreResult) => {
151
-    console.log(state.triggered)
152
+    // console.log(state.triggered)
152 153
 
153 154
     state.total = res.total
154 155
     state.totalPage = Math.ceil(state.total / state.pageSize);
155
-    console.log(state.totalPage)
156
+    // console.log(state.totalPage)
156 157
     // state.merchantList = res.list
157 158
     if (action === 'page') {
158 159
       state.merchantList = state.merchantList.concat(res.list)
@@ -174,7 +175,7 @@ function loadSelectMerchant(action: 'page' | 'reload', callback?: (items) => voi
174 175
 }
175 176
 
176 177
 function handleShowMerchant(merchant) {
177
-  console.log(merchant)
178
+  // console.log(merchant)
178 179
   uni.navigateTo({
179 180
     url: '/pages/store/home/index?id=' + merchant.mer_id
180 181
   })

+ 13 - 4
src/pages/store/product/detail.vue

@@ -94,7 +94,11 @@ onLoad((option: any) => {
94 94
   // if (state.shareId) {
95 95
   if (fromShareId) {
96 96
     userStore.setShareId(fromShareId)
97
+
98
+    userStore.setRedirectPage(`/pages/store/product/detail?id=${state.id}&from=share&shareID=${fromShareId}`, 'page')
99
+
97 100
   }
101
+
98 102
   // }
99 103
   getRecommendList({
100 104
     page: 1,
@@ -105,7 +109,8 @@ onLoad((option: any) => {
105 109
 
106 110
   getShareId({ pid: state.id, type: 1}).then(res => {
107 111
     state.shareId = res.share_id
108
-    userStore.setRedirectPage(`/pages/store/product/detail?id=${state.id}&from=share&shareID=${state.shareId}`)
112
+    userStore.setRedirectPage(`/pages/store/product/detail?id=${state.id}&from=share&shareID=${state.shareId}`, 'page')
113
+
109 114
   })
110 115
 
111 116
 })
@@ -153,7 +158,7 @@ onShareAppMessage(async () => {
153 158
     title: '分享中',
154 159
     icon: 'none'
155 160
   })
156
-  return getShareId({ pid: state.id, type: 1 }).then(res => {
161
+  return await getShareId({ pid: state.id, type: 1 }).then(res => {
157 162
     if (res) {
158 163
       state.shareId = res.share_id
159 164
       uni.hideLoading()
@@ -547,8 +552,12 @@ function handleShowCustomer() {
547 552
         </div>
548 553
 
549 554
         <div class="flex flex-col gap-2">
550
-          <div class="flex font-bold" v-if="detail && detail.store_name">
551
-            {{ detail.store_name }}
555
+          <div class="flex font-bold flex items-center gap-1" v-if="detail && detail.store_name">
556
+           <div class="flex bg-primary text-white rounded text-[10px] text-center">
557
+             <div class=" h-4 w-4 ">仓</div></div>
558
+            <div class=" justify-center items-center">
559
+              {{ detail.store_name }}
560
+            </div>
552 561
           </div>
553 562
           <div
554 563
               v-if="detail.store_info"

+ 8 - 11
src/pages/store/product/other.vue

@@ -223,7 +223,7 @@ function handleBuyNow() {
223 223
           envVersion: 'release',
224 224
           success(res) {
225 225
             // 打开成功
226
-            console.log(res);
226
+            // console.log(res);
227 227
           },
228 228
           fail: (error) => {
229 229
             console.log(error);
@@ -248,7 +248,7 @@ function handleBuyNow() {
248 248
           envVersion: 'release',
249 249
           success(res) {
250 250
             // 打开成功
251
-            console.log(res);
251
+            // console.log(res);
252 252
           },
253 253
           fail: (error) => {
254 254
             console.log(error);
@@ -264,8 +264,7 @@ function handleBuyNow() {
264 264
       // console.log(detail.value.pddlink)
265 265
       // console.log(pddWx)
266 266
     } else {
267
-      console.log(detail.value?.platform)
268
-      let platformName = ''
267
+/*      let platformName = ''
269 268
       let clipboardData = ''
270 269
       if (detail.value?.platform == 5) {
271 270
         platformName = '淘宝'
@@ -283,8 +282,6 @@ function handleBuyNow() {
283 282
         platformName = '苏宁易购'
284 283
         clipboardData = detail.value?.productUrlWap
285 284
       }
286
-      // if (detail.value?.platform === 5) {
287
-      console.log(detail.value)
288 285
       return uni.setClipboardData({
289 286
         data: clipboardData,
290 287
         success(res) {
@@ -299,13 +296,13 @@ function handleBuyNow() {
299 296
             icon: 'none'
300 297
           })
301 298
         }
302
-      })
299
+      })*/
303 300
 
304 301
       // }
305
-      // return uni.showToast({
306
-      //   title: '商品维护中,请稍后再试',
307
-      //   icon: 'none'
308
-      // })
302
+      return uni.showToast({
303
+        title: '商品维护中,请稍后再试',
304
+        icon: 'none'
305
+      })
309 306
     }
310 307
   }
311 308
   /*

+ 12 - 11
src/pages/user/index.vue

@@ -179,7 +179,7 @@ function handleService(item: {
179 179
       path: 'pages/index/index',
180 180
       success(res) {
181 181
         // 打开成功
182
-        console.log(res);
182
+        // console.log(res);
183 183
       },
184 184
       fail: (error) => {
185 185
         console.log(error);
@@ -234,38 +234,39 @@ function handleShowMyAllOrder(tab?: number) {
234 234
 
235 235
 const userType = computed(() => {
236 236
   const userRichType = userStore.userInfo?.user_rich_type
237
-
237
+  console.log(userStore.userInfo)
238
+  const bangfu = userStore.userInfo.is_bangfu ? '帮扶中心 ' : ''
238 239
   // 创始人
239 240
   if (userRichType == 3) {
240
-    return '创始人'
241
+    return bangfu + '创始人'
241 242
   }
242 243
   // 普通用户
243 244
   if (userRichType == 0) {
244
-    return '用户'
245
+    return bangfu + '用户'
245 246
   }
246 247
   // 会员
247 248
   if (userRichType == 1) {
248
-    return '会员'
249
+    return bangfu + '会员'
249 250
   }
250 251
   if (userRichType == 3) {
251
-    return '创始人'
252
+    return bangfu + '创始人'
252 253
   }
253 254
   // 合伙人
254 255
   if (userRichType == 4) {
255 256
     // return '高级会员'
256
-    return 'VIP'
257
+    return bangfu + 'VIP'
257 258
   }
258 259
   if (userRichType == 5) {
259
-    return '初始级合伙人'
260
+    return bangfu + '初始级合伙人'
260 261
   }
261 262
   if (userRichType == 6) {
262
-    return '中级合伙人'
263
+    return bangfu + '中级合伙人'
263 264
   }
264 265
   if (userRichType == 7) {
265
-    return '高级合伙人'
266
+    return bangfu + '高级合伙人'
266 267
   }
267 268
   if (!userRichType) {
268
-    return '用户'
269
+    return bangfu + '用户'
269 270
   }
270 271
 })
271 272
 

+ 21 - 5
src/pages/user/login/other-phone.vue

@@ -127,12 +127,28 @@ function handleLogin() {
127 127
     })
128 128
     Cache.clear('SHARE_ID')
129 129
     state.isAuthVerify = false
130
-
130
+    let redirectPageObj: {page: string, type: 'page' | 'tab'}
131
+    if (Cache.get('SHARE_REDIRECT_PAGE')) {
132
+      redirectPageObj = JSON.parse(Cache.get('SHARE_REDIRECT_PAGE'))
133
+    }
131 134
     setTimeout(() => {
132
-      uni.switchTab({
133
-        url: '/pages/home/index'
134
-      })
135
-    }, 500)
135
+      if (redirectPageObj) {
136
+        if (redirectPageObj.type === 'page') {
137
+          return uni.redirectTo({
138
+            url: redirectPageObj.page
139
+          })
140
+        }
141
+        if (redirectPageObj.type === 'tab') {
142
+          return uni.switchTab({
143
+            url: redirectPageObj.page
144
+          })
145
+        }
146
+      } else {
147
+        uni.switchTab({
148
+          url: '/pages/home/index'
149
+        })
150
+      }
151
+    }, 200)
136 152
 
137 153
 
138 154
   }).catch((errorMsg) => {

La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 221 - 48
src/utils/http/pdd.json