|
@@ -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
|
}
|