cr пре 4 година
родитељ
комит
9c53f69c56
5 измењених фајлова са 48 додато и 50 уклоњено
  1. 1 1
      src/common/js/plugin.js
  2. 28 38
      src/pages/goods/detail.vue
  3. 3 3
      src/pages/index/index.vue
  4. 15 7
      src/pages/order/index.vue
  5. 1 1
      src/pages/user/index.vue

+ 1 - 1
src/common/js/plugin.js

@@ -150,7 +150,7 @@ export default {
150 150
                             // self.orderTake(orderId, 2)
151 151
                             api.post('/Order/Query', {
152 152
                                 orderId: orderId,
153
-                            })
153
+                            },{pass:true})
154 154
 
155 155
                             router.replace({
156 156
                                 path: '/pages/pay/result',

+ 28 - 38
src/pages/goods/detail.vue

@@ -47,7 +47,9 @@
47 47
                             class="price__original"
48 48
                             v-if="goods.priceInfo.oldPrice !== '0.00'"
49 49
                         >
50
-                            {{ "¥" + (goods.priceInfo.oldPrice / 100 || "0.00") }}
50
+                            {{
51
+                                "¥" + (goods.priceInfo.oldPrice / 100 || "0.00")
52
+                            }}
51 53
                         </div>
52 54
                     </div>
53 55
                     <div class="info__num">
@@ -152,9 +154,7 @@
152 154
                             >{{ item }}</span
153 155
                         >
154 156
                     </div>
155
-                    <i
156
-                        class="iconfont iconarrow specification__arrows"
157
-                    ></i>
157
+                    <i class="iconfont iconarrow specification__arrows"></i>
158 158
                 </div>
159 159
             </button>
160 160
             <button
@@ -181,9 +181,7 @@
181 181
                             >{{ item }}</span
182 182
                         >
183 183
                     </div>
184
-                    <i
185
-                        class="iconfont iconarrow specification__arrows"
186
-                    ></i>
184
+                    <i class="iconfont iconarrow specification__arrows"></i>
187 185
                 </div>
188 186
             </button>
189 187
             <div class="describe" v-if="goods.itemInfo.desc">
@@ -262,7 +260,7 @@
262 260
             <div class="special" v-if="goods.itemInfo.specialTips">
263 261
                 <div class="tit">特殊说明</div>
264 262
                 <div class="des">
265
-                    {{goods.itemInfo.specialTips}}
263
+                    {{ goods.itemInfo.specialTips }}
266 264
                 </div>
267 265
             </div>
268 266
 
@@ -434,7 +432,7 @@ let app = getApp();
434 432
 
435 433
 export default {
436 434
     name: "",
437
-    components: { GCoupon, GSpec, MyImage,MyShare },
435
+    components: { GCoupon, GSpec, MyImage, MyShare },
438 436
     // 数据
439 437
     data() {
440 438
         return {
@@ -455,7 +453,7 @@ export default {
455 453
             deliveryConfig: null,
456 454
             layout: null,
457 455
 
458
-            triggered:false,
456
+            triggered: false,
459 457
         };
460 458
     },
461 459
 
@@ -471,27 +469,28 @@ export default {
471 469
             self.videoId = self.$mp.query.roomId || res.videoId;
472 470
             self.goodsId = self.$mp.query.goodsId || res.goodsId;
473 471
             let storeId = self.$mp.query.storeId || res.storeId;
474
-                self.getCartNumber();
475
-                self.getGoodsDetail();
472
+            self.getCartNumber();
473
+            self.getGoodsDetail();
476 474
         });
477 475
     },
478 476
 
479 477
     onShareAppMessage() {
480 478
         const self = this;
481 479
         let obj = {
482
-            // ...self.$mp.query,
480
+            ...self.$mp.query,
483 481
             // storeId: self.goods.storeInfo.storeId,
484
-            shopId:this.activeShop.id
482
+            shopId: this.activeShop.id,
485 483
         };
486 484
         if (this.activeShop.store) {
487 485
             obj.storeId = this.activeShop.store.id;
488 486
         }
489 487
         let title = self.goods.itemInfo.title;
490
-        if(self.goods.skuDetail.props.length){
491
-            title+=' ['+self.goods.priceInfo.minPrice / 100+'元起]';
492
-        }else{
493
-            title+=' ['+self.goods.priceInfo.nowPrice / 100+'元]';
488
+        if (self.goods.skuDetail.props.length) {
489
+            title += " [" + self.goods.priceInfo.minPrice / 100 + "元起]";
490
+        } else {
491
+            title += " [" + self.goods.priceInfo.nowPrice / 100 + "元]";
494 492
         }
493
+        console.log(obj)
495 494
         return {
496 495
             title: title,
497 496
             path: self.router.getPath(self.$mp.page.route, obj),
@@ -501,8 +500,7 @@ export default {
501 500
 
502 501
     // 函数
503 502
     methods: {
504
-
505
-        refresherrefresh(){
503
+        refresherrefresh() {
506 504
             const self = this;
507 505
             this.triggered = true;
508 506
             self.getCartNumber();
@@ -584,8 +582,8 @@ export default {
584 582
                             .then((res) => {
585 583
                                 if (res.confirm) {
586 584
                                     self.router.push({
587
-                                        path:'/pages/goods/index',
588
-                                        isTabBer:true
585
+                                        path: "/pages/goods/index",
586
+                                        isTabBer: true,
589 587
                                     });
590 588
                                 }
591 589
                             });
@@ -782,11 +780,9 @@ export default {
782 780
         oprenShare() {
783 781
             const self = this;
784 782
 
785
-            self.$refs.share.open(
786
-                () => {
787
-                    self.canvasShow = false;
788
-                }
789
-            );
783
+            self.$refs.share.open(() => {
784
+                self.canvasShow = false;
785
+            });
790 786
         },
791 787
 
792 788
         // 获取换算成画布使用的像素
@@ -915,11 +911,7 @@ export default {
915 911
                         }
916 912
                         ctx.setFontSize(self.getPx(24));
917 913
                         ctx.setFillStyle("#666");
918
-                        ctx.fillText(
919
-                            descName,
920
-                            self.getPx(50),
921
-                            self.getPx(965)
922
-                        );
914
+                        ctx.fillText(descName, self.getPx(50), self.getPx(965));
923 915
                         ctx.stroke();
924 916
 
925 917
                         // 商品描述,第二行
@@ -937,8 +929,6 @@ export default {
937 929
                             ctx.stroke();
938 930
                         }
939 931
 
940
-
941
-
942 932
                         // 商品价格符号
943 933
                         ctx.setFontSize(self.getPx(20));
944 934
                         ctx.setFillStyle("#f8662a");
@@ -1917,16 +1907,16 @@ page {
1917 1907
         color: #27a34f;
1918 1908
     }
1919 1909
 }
1920
-.special{
1910
+.special {
1921 1911
     margin-top: px(10);
1922 1912
     background-color: #fff;
1923 1913
     padding: px(40);
1924
-    color:#666;
1925
-    .tit{
1914
+    color: #666;
1915
+    .tit {
1926 1916
         font-size: px(44);
1927 1917
         text-align: center;
1928 1918
     }
1929
-    .des{
1919
+    .des {
1930 1920
         font-size: px(38);
1931 1921
         padding-top: px(20);
1932 1922
     }

+ 3 - 3
src/pages/index/index.vue

@@ -168,6 +168,9 @@ export default {
168 168
     async onLoad() {
169 169
         await this.fn.init();
170 170
         this.fn.shareMenu();
171
+    },
172
+    async onShow() {
173
+        this.$refs.tabbar.setIndex(1);
171 174
 
172 175
         uni.getLocation({
173 176
             type: "gcj02",
@@ -182,9 +185,6 @@ export default {
182 185
             },
183 186
         });
184 187
     },
185
-    async onShow() {
186
-        this.$refs.tabbar.setIndex(1);
187
-    },
188 188
 
189 189
     onPullDownRefresh() {
190 190
         this.getData();

+ 15 - 7
src/pages/order/index.vue

@@ -193,22 +193,29 @@ export default {
193 193
                     list: [],
194 194
                 },
195 195
                 {
196
-                    title: "待付",
196
+                    title: "待付",
197 197
                     status: "2",
198 198
                     num: 0,
199 199
                     page: 1,
200 200
                     list: [],
201 201
                 },
202 202
                 {
203
-                    title: "待发货",
204
-                    status: "3",
203
+                    title: "拣货中",
204
+                    status: "21",
205 205
                     num: 0,
206 206
                     page: 1,
207 207
                     list: [],
208 208
                 },
209 209
                 {
210
-                    title: "待收货",
211
-                    status: "4",
210
+                    title: "配送中",
211
+                    status: "24",
212
+                    num: 0,
213
+                    page: 1,
214
+                    list: [],
215
+                },
216
+                {
217
+                    title: "待提/收货",
218
+                    status: "26",
212 219
                     num: 0,
213 220
                     page: 1,
214 221
                     list: [],
@@ -534,7 +541,7 @@ page {
534 541
     width: 100%;
535 542
     height: px(145);
536 543
     background-color: #fff;
537
-
544
+    overflow: auto;
538 545
     &__item {
539 546
         position: relative;
540 547
         display: flex;
@@ -542,7 +549,8 @@ page {
542 549
         align-items: center;
543 550
         flex: 1;
544 551
         height: 100%;
545
-
552
+        flex-shrink: 0;
553
+        white-space: nowrap;
546 554
         &--active:before {
547 555
             content: "";
548 556
             position: absolute;

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

@@ -257,7 +257,7 @@
257 257
         </div>
258 258
 
259 259
         <div class="web-support">
260
-            <p class="text">0.0.62</p>
260
+            <p class="text">0.0.64</p>
261 261
             <!-- <div class="num" @click="makeCall">400-629-6782</div> -->
262 262
         </div>
263 263
         <wyg-bottom-tab