cr před 4 roky
rodič
revize
5934081871

+ 3 - 4
src/App.vue

@@ -31,14 +31,13 @@ export default {
31 31
                 }
32 32
             },
33 33
         });
34
+                // 登录处理
35
+        await self.fn.login(option);
36
+
34 37
     },
35 38
 
36 39
     onShow: async function (option) {
37 40
         const self = this;
38
-        console.log(option,'show');
39
-        // 登录处理
40
-        await self.fn.login(option);
41
-
42 41
 
43 42
     },
44 43
 

+ 1 - 1
src/common/api/ajax.js

@@ -210,7 +210,7 @@ const http = {
210 210
                     }
211 211
                 }
212 212
             } else if (response.statusCode === 401) {
213
-                await plugin.login()
213
+                await plugin.login({query:{}})
214 214
                 data = await self.ajax(request[0], request[1], request[2], request[3])
215 215
                 // console.log(401)
216 216
                 // router.replace('/pages/login/index');

+ 3 - 0
src/common/js/plugin.js

@@ -296,6 +296,9 @@ export default {
296 296
                 store.commit("common/update", {
297 297
                     activeShop: res.data,
298 298
                 });
299
+                store.commit("user/update", {
300
+                    uvId: res.data.uvId,
301
+                });
299 302
                 api.get('/shop/GetStoreConfig', { storeId: res.data.store.id })
300 303
                     .then(configRes => {
301 304
                         if (configRes.data.deliveryConfig) {

+ 2 - 2
src/pages/recommend/detail.vue

@@ -1073,10 +1073,10 @@ export default {
1073 1073
                         ctx.fillText("特惠商品", 330, 144);
1074 1074
 
1075 1075
                         // 价格
1076
-                        let itemPrice = self.goods.itemPrice / 100;
1076
+                        let minPrice = self.goods.minPrice / 100;
1077 1077
                         ctx.setFontSize(38);
1078 1078
                         ctx.setFillStyle("#f00");
1079
-                        ctx.fillText("¥" + itemPrice, 320, 220);
1079
+                        ctx.fillText("¥" + minPrice, 320, 220);
1080 1080
                         ctx.stroke();
1081 1081
 
1082 1082
                         // 价格2

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

@@ -279,7 +279,7 @@
279 279
         </div>
280 280
 
281 281
         <div class="web-support">
282
-            <p class="text">0.0.9</p>
282
+            <p class="text">0.0.92</p>
283 283
             <!-- <div class="num" @click="makeCall">400-629-6782</div> -->
284 284
         </div>
285 285
     </div>