collection.vue
23.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
<template>
<view class="collection-box">
<global-loading />
<view class="tabsbox">
<u-tabs :list="collectionTypeList" bar-width="60" :bold="false" active-color="#333333"
inactive-color="#CCCCCC" :is-scroll="false" :current="collectionTypeFlag"
@change="collectionTypeActive"></u-tabs>
</view>
<view v-if="collectionTypeFlag == 0">
<view v-if="productCollect.length>0">
<view class="wid function-box">
<view class="finishbox" @click="finishClick" v-if="allCheckShow">完成</view>
<view v-else class="flex-row-plus editicon-box flex-items fs28" @click="editClick">
<image class="editicon" src="https://zhgw-uat.028wlkj.com/cdwlMall/zsfwzxt/file/static/images/collectionEditicon.png">
</image>
<text class="mar-left-10">编辑</text>
</view>
</view>
<view class="swipe-box">
<view class="actionBox" v-for="(item, index) in productCollect" :key="item.collectId"
:index="index">
<u-swipe-action :disabled="allCheckShow" ref="actionSwipe" :show="item.show" :autoClose="false" @open="productOpen(index)"
@click="productActionClick" :options="options">
<!-- :disabled="allCheckShow" -->
<view class="flex-item" @click.stop="toGoodsDetails(item.productId,item.shopId,item.skuId)">
<view class="item wid flex-row-plus flex-display">
<view class="flex-items selctBtn" v-show="allCheckShow">
<image mode="aspectFill" v-if="item.selected == 1"
@click.stop="productItemSel(index,0)"
src="https://zhgw-uat.028wlkj.com/cdwlMall/zsfwzxt/file/static/images/selectActive.png"
class="cart-select-img"></image>
<image mode="aspectFill" v-else @click.stop="productItemSel(index,1)"
src="https://zhgw-uat.028wlkj.com/cdwlMall/zsfwzxt/file/static/images/selectEmpty.png"
class="cart-select-img"></image>
</view>
<view class="infoCent flex-items">
<image class="product-img default-img" mode="aspectFill" :src="$baseURL+item.image" />
<!-- 此层wrap在此为必写的,否则可能会出现标题定位错误 -->
<view class="title-wrap mar-left-20 priceBox">
<text
class="title u-line-2 fs28 font-color-333">{{ item.productName }}</text>
<view class="flex-items">
<!-- <image v-if="item.activityType" class="iconImg mar-right-10"
:src="imgs[item.activityType]"></image> -->
<image v-if="item.activityType===1" class="iconImg" src="https://zhgw-uat.028wlkj.com/cdwlMall/zsfwzxt/file/static/images/groupBuyIcon.png" alt="拼团icon"></image>
<image v-if="item.activityType === 2" class="iconImg" src="https://zhgw-uat.028wlkj.com/cdwlMall/zsfwzxt/file/static/images/spikeIcon.png" alt="秒杀活动"></image>
<image v-if="item.activityType === 3" class="iconImg discountIcon" src="https://zhgw-uat.028wlkj.com/cdwlMall/zsfwzxt/file/static/images/38184785db4b4fbca767ada611097ae9_discount.png" alt="限时折扣活动"></image>
<image v-if="item.activityType === 4" class="iconImg" src="https://zhgw-uat.028wlkj.com/cdwlMall/zsfwzxt/file/static/images/spikeIcon.png" alt="平台秒杀"></image>
<image v-if="item.activityType===5" class="iconImg" src="https://zhgw-uat.028wlkj.com/cdwlMall/zsfwzxt/file/static/images/discountListIcon.png" alt="平台折扣"></image>
<image v-if="item.activityType===9" class="iconImg" src="https://zhgw-uat.028wlkj.com/cdwlMall/zsfwzxt/file/static/images/memberCenterIcon.png" alt="会员价"></image>
<image v-if="item.activityType === 8" class="iconImg" src="https://zhgw-uat.028wlkj.com/cdwlMall/zsfwzxt/file/static/images/zhekou.png" alt="场景营销"></image>
<text class="fs40 font-color-C83732">¥</text>
<text class="fs40 font-color-C83732 mar-right-20">{{item.price}}</text>
<text
class="font-color-CCC discountsPriceLine fs24">¥{{item.originalPrice}}</text>
</view>
</view>
</view>
</view>
</view>
</u-swipe-action>
</view>
</view>
<view v-if="allCheckShow" class="pad-bot-140"></view>
<view v-show="allCheckShow" class="allcheck-box flex-row-plus flex-sp-between flex-items">
<view class="left">
<image mode="aspectFill" v-if="isAllProCheck"
src="https://zhgw-uat.028wlkj.com/cdwlMall/zsfwzxt/file/static/images/selectActive.png" class="cart-select-img"
@click="allProductSel(0)"></image>
<image mode="aspectFill" v-else src="https://zhgw-uat.028wlkj.com/cdwlMall/zsfwzxt/file/static/images/selectEmpty.png"
class="cart-select-img" @click="allProductSel(1)"></image>
<text>全选</text>
</view>
<view class="right">
<view class="btn-delete" @click="showCardModalPaoductDel">删除</view>
</view>
</view>
<view v-if="allCheckShow" class="pad-bot-140"></view>
</view>
<view v-if="productCollect.length==0&&proCollectShow" class="mar-top-60 empty-box">
<image class="collect-empty" src="https://zhgw-uat.028wlkj.com/cdwlMall/zsfwzxt/file/static/images/collectEmpty.png"></image>
<view class="tohome-box flex-items-plus">暂无收藏</view>
</view>
</view>
<view v-if="collectionTypeFlag == 1">
<view v-if="storeCollect.length>0">
<view class="finishbox" @click="finishClick" v-if="allCheckShow">完成</view>
<view v-else class="flex-row-plus editicon-box flex-items fs28" @click="editClick">
<image class="editicon" src="https://zhgw-uat.028wlkj.com/cdwlMall/zsfwzxt/file/static/images/collectionEditicon.png">
</image>
<text class="mar-left-10">编辑</text>
</view>
<view class="swipe-box swipeBox">
<view class="shopBox" v-for="(item, index) in storeCollect" :key="item.collectId" :index="index">
<u-swipe-action ref="shopActionSwipe" :disabled="allCheckShow" :show="item.show" :options="options" @click="storeActionClick(index)"
@open="storeOpen(index)">
<view class="item wid flex-row-plus flex-display">
<view v-show="allCheckShow" class="selctBtn flex-items">
<image mode="aspectFill" v-if="item.selected == 1"
@click.stop="storeItemSel(index,0)"
src="https://zhgw-uat.028wlkj.com/cdwlMall/zsfwzxt/file/static/images/selectActive.png"
class="cart-select-img"></image>
<image mode="aspectFill" v-else @click.stop="storeItemSel(index,1)"
src="https://zhgw-uat.028wlkj.com/cdwlMall/zsfwzxt/file/static/images/selectEmpty.png"
class="cart-select-img"></image>
</view>
<view class="infoCent">
<view class="flex-row-plus flex-sp-between flex-items-plus wid">
<view class="flex-items-plus flex-row pad-topbot-10">
<image class="head-img" mode="aspectFill" :src="$baseURL+item.shopLogo" />
<!-- 此层wrap在此为必写的,否则可能会出现标题定位错误 -->
<view class="title-wrap mar-left-20">
<text class="title u-line-2 shopName">{{ item.shopName }}</text>
<text class="font-color-CCC fs24">{{item.person}}人关注</text>
</view>
</view>
<view class="toStore flex-items-plus fs24" @click="toStoreClick(item.shopId)">
进入店铺
<image src="https://zhgw-uat.028wlkj.com/cdwlMall/zsfwzxt/file/static/images/arrowR.png"></image>
</view>
</view>
<view class="shopImgBox" v-if="item.productList.length>0">
<view class="itemImgBox" v-for="(sItem, sIndex) of item.productList"
:key="sIndex"
@click.stop="goodsDateils(sItem.shopId,sItem.productId,sItem.skuId)">
<image :src="$baseURL+sItem.image" class="pic-img default-img"></image>
</view>
</view>
</view>
</view>
</u-swipe-action>
</view>
</view>
<view v-show="allCheckShow" class="allcheck-box flex-row-plus flex-sp-between flex-items">
<view class="left">
<image mode="aspectFill" v-if="isAllStoreCheck"
src="https://zhgw-uat.028wlkj.com/cdwlMall/zsfwzxt/file/static/images/selectActive.png" class="cart-select-img"
@click="allStoreSel(0)"></image>
<image mode="aspectFill" v-else src="https://zhgw-uat.028wlkj.com/cdwlMall/zsfwzxt/file/static/images/selectEmpty.png"
class="cart-select-img" @click="allStoreSel(1)"></image>
<text>全选</text>
</view>
<view class="right">
<view class="btn-delete" @click="showCardModalshopDel">删除</view>
</view>
</view>
<view v-if="allCheckShow" class="pad-bot-140"></view>
</view>
<view v-if="storeCollect.length==0&&storeCollectShow" class="mar-top-60 empty-box">
<image class="collect-empty" src="https://zhgw-uat.028wlkj.com/cdwlMall/zsfwzxt/file/static/images/collectEmpty.png"></image>
<view class="tohome-box flex-items-plus">暂无收藏</view>
</view>
</view>
<!-- 删除确认弹窗 -->
<tui-modal :show="cardModal" :custom="true" :fadein="true">
<view class="Put-box1">
<view class="text-align fs34 fs-bold">
温馨提示
</view>
<view v-if="paoductDelSubmit" class="mar-top-40 text-align">
是否删除该商品?
</view>
<view v-if="shopDelSubmit" class="mar-top-40 text-align">
是否删除该店铺?
</view>
<view class="flex-display flex-sp-between">
<view class="btn submit" v-if="paoductDelSubmit" @click="paoductDel">确定</view>
<view class="btn submit" v-if="shopDelSubmit" @click="shopDel">确定</view>
</view>
</view>
<view v-if="cardModal" @click="cardModal = false" class="cancelDel">
<image src="https://zhgw-uat.028wlkj.com/cdwlMall/zsfwzxt/file/static/images/cancelClose.png" mode=""></image>
</view>
</tui-modal>
</view>
</template>
<script>
import tuiModal from "@/components/modal/modal";
const NET = require('../../utils/request')
const API = require('../../config/api')
export default {
components: {
tuiModal
},
data() {
return {
imgs: [
'https://zhgw-uat.028wlkj.com/cdwlMall/zsfwzxt/file/static/images/groupBuyIcon.png',
'https://zhgw-uat.028wlkj.com/cdwlMall/zsfwzxt/file/static/images/spikeIcon.png',
'https://zhgw-uat.028wlkj.com/cdwlMall/zsfwzxt/file/static/images/discountListIcon.png',
'https://zhgw-uat.028wlkj.com/cdwlMall/zsfwzxt/file/static/images/spikeIcon.png',
'https://zhgw-uat.028wlkj.com/cdwlMall/zsfwzxt/file/static/images/discountListIcon.png',
],
collectionTypeList: [{
name: '商品'
}, {
name: '店铺'
}],
collectionTypeFlag: 0,
disabled: false,
btnWidth: 180,
show: false,
options: [{
text: ' ',
style: {
backgroundColor: '#F15C48'
}
}],
isAllProCheck: false,
isAllStoreCheck: false,
allCheckShow: false,
productCollect: [],
storeCollect: [],
productPage: 1,
productPageSize: 10,
proloadingType: 0,
storePage: 1,
storePageSize: 10,
storeloadingType: 0,
storeCollectShow: false,
proCollectShow: false,
cardModal: false,
paoductDelSubmit: false,
shopDelSubmit: false,
ids: null,
currentIndex: null,
currentType: null
};
},
onLoad() {
this.getProductCollect()
},
onReachBottom() {
if (this.collectionTypeFlag == 0) {
if (this.proloadingType == 1) {
uni.stopPullDownRefresh()
} else {
this.productPage = this.productPage + 1
this.getProductCollect()
}
} else if (this.collectionTypeFlag == 1) {
if (this.storeloadingType == 1) {
uni.stopPullDownRefresh()
} else {
this.storePage = this.storePage + 1
this.getStoreCollect()
}
}
},
methods: {
//批量删除
showCardModalPaoductDel() {
let isShowProoductDelSubmit = false
// 商品
this.productCollect.forEach((value, index) => {
if (value.selected == 1) {
isShowProoductDelSubmit = true
}
})
if (isShowProoductDelSubmit === true) {
this.cardModal = true
this.paoductDelSubmit = true
this.shopDelSubmit = false
} else {
this.$u.toast(`请先选择要删除的收藏宝贝!`);
}
},
paoductDel() {
if (this.currentType === 1) {
this.cancelCollect(this.ids)
this.productCollect.splice(this.currentIndex, 1);
} else {
let ids = []
this.productCollect.forEach((value, index) => {
if (value.selected == 1) {
ids.push(value.collectId)
}
})
NET.request(API.deleteCollect, {
ids: ids
}, 'POST').then(res => {
this.productCollect = []
this.cardModal = false
this.$u.toast(`删除成功`);
this.productPage = 1
this.getProductCollect()
}).catch(res => {
this.cardModal = false
this.$u.toast(`删除失败`);
})
}
},
showCardModalshopDel() {
let isShowShopDelSubmit = false
// 店铺
this.storeCollect.forEach((value, index) => {
if (value.selected == 1) {
isShowShopDelSubmit = true
}
})
if (isShowShopDelSubmit === true) {
this.cardModal = true
this.shopDelSubmit = true
this.paoductDelSubmit = false
} else {
this.$u.toast(`请先选择要删除的收藏店铺!`);
}
},
shopDel() {
if (this.currentType === 2) {
this.cancelCollect(this.ids)
this.storeCollect.splice(this.currentIndex, 1);
} else {
console.log('删除')
let ids = []
this.storeCollect.forEach((value, index) => {
if (value.selected == 1) {
ids.push(value.collectId)
}
})
NET.request(API.deleteCollect, {
ids: ids
}, 'POST').then(res => {
this.storeCollect = []
this.cardModal = false
this.$u.toast(`删除成功`);
this.storePage = 1
this.getStoreCollect()
}).catch(res => {
this.cardModal = false
this.$u.toast(`删除失败`);
})
}
},
//去店铺
toStoreClick(storeId) {
uni.navigateTo({
url: '../../pages_category_page1/store/index?storeId=' + storeId
})
},
//去商品详情
toGoodsDetails(productId, shopId, skuId) {
uni.navigateTo({
url: '../../pages_category_page1/goodsModule/goodsDetails?productId=' + productId +
'&shopId=' + shopId + '&skuId=' + skuId
})
},
collectionTypeActive(index) {
this.collectionTypeFlag = index
if (index == 0) {
this.productPage = 1
this.productCollect = []
this.proloadingType = 0
this.getProductCollect()
} else if (index == 1) {
this.storePage = 1
this.storeCollect = []
this.storeloadingType = 0
this.getStoreCollect()
}
},
storeClick(index, index1) {
if (index1 == 0) {
this.cardModal = true
this.shopDelSubmit = true
this.ids = this.storeCollect[index].collectId
this.currentIndex = index
this.currentType = 2
}
},
// 如果打开一个的时候,不需要关闭其他,则无需实现本方法
productOpen(index) {
// 先将正在被操作的swipeAction标记为打开状态,否则由于props的特性限制,
// 原本为'false',再次设置为'false'会无效
this.productCollect[index].show = true;
// console.log(this.productCollect,index)
this.productCollect.map((val, idx) => {
if (index != idx) this.productCollect[idx].show = false;
})
// 商品删除参数
this.ids = this.productCollect[index].collectId
this.currentIndex = index
this.currentType = 1
},
// 打开删除层
productActionClick() {
console.log('打开')
this.cardModal = true
this.paoductDelSubmit = true
this.shopDelSubmit = false
},
storeOpen(index) {
// 先将正在被操作的swipeAction标记为打开状态,否则由于props的特性限制,
// 原本为'false',再次设置为'false'会无效
this.storeCollect[index].show = true;
this.storeCollect.map((val, idx) => {
if (index != idx) this.storeCollect[idx].show = false;
})
// 店铺删除参数
this.ids = this.storeCollect[index].collectId
this.currentIndex = index
this.currentType = 2
},
// 打开删除层
storeActionClick() {
this.cardModal = true
this.paoductDelSubmit = false
this.shopDelSubmit = true
},
//商品选中
productItemSel(index, number) {
this.productCollect[index].selected = number
let proSelectNum = 0
this.productCollect.forEach((value, index) => {
if (this.productCollect[index].selected == 0) {
this.isAllProCheck = false
} else {
proSelectNum++
}
})
if (this.productCollect.length == proSelectNum) {
this.isAllProCheck = true
}
},
//店铺选中
storeItemSel(index, number) {
this.storeCollect[index].selected = number
let storeSelectNum = 0
this.storeCollect.forEach((value, index) => {
if (this.storeCollect[index].selected == 0) {
this.isAllStoreCheck = false
} else {
storeSelectNum++
}
})
if (this.storeCollect.length == storeSelectNum) {
this.isAllStoreCheck = true
}
},
//全选
allProductSel(type) {
this.isAllProCheck = !this.isAllProCheck
this.productCollect.forEach((value, index) => {
this.productCollect[index].selected = type
})
},
allStoreSel(type) {
this.isAllStoreCheck = !this.isAllStoreCheck
this.storeCollect.forEach((value, index) => {
this.storeCollect[index].selected = type
})
},
editClick() {
this.allCheckShow = true
let actionSwipe = this.$refs.actionSwipe;
let shopActionSwipe = this.$refs.shopActionSwipe;
if(actionSwipe){
actionSwipe.forEach(item=>item.close())
}
if(shopActionSwipe){
shopActionSwipe.forEach(item=>item.close())
}
console.log(shopActionSwipe)
},
finishClick() {
this.allCheckShow = false
},
//收藏商品查询
getProductCollect() {
// uni.showLoading({
// mask: true,
// title: '加载中...'
// })
NET.request(API.getProductCollect, {
page: this.productPage,
pageSize: this.productPageSize
},
'GET').then(res => {
uni.hideLoading()
if (res.data.list.length == 0) {
this.proCollectShow = true
this.proloadingType = 1
this.productPage = this.productPage
} else {
this.productCollect = this.productCollect.concat(res.data.list)
console.log(this.productCollect, 222)
this.productCollect.forEach((value, index) => {
value['show'] = false
value['selected'] = 0
})
}
}).catch(res => {
uni.showToast({
title: '收藏商品查询失败',
icon: "none"
})
})
},
//收藏店铺查询
getStoreCollect() {
// console.log(111)
// uni.showLoading({
// mask: true,
// title: '加载中...'
// })
NET.request(API.getStoreCollect, {
page: this.storePage,
pageSize: this.storePageSize
},
'GET').then(res => {
uni.hideLoading()
if (res.data.list.length == 0) {
this.storeCollectShow = true
this.storeloadingType = 1
this.storePage = this.storePage
}
this.storeCollect = this.storeCollect.concat(res.data.list)
this.storeCollect.forEach((value, index) => {
value['show'] = false
value['selected'] = 0
})
}).catch(res => {
uni.showToast({
title: '失败',
icon: "none"
})
})
},
//取消收藏
cancelCollect(ids) {
NET.request(API.cancelCollect, {
ids: [ids]
}, 'POST').then(res => {
this.$u.toast(`删除成功`);
this.cardModal = false
this.currentType = null
this.currentIndex = null
this.ids = null
if (res.code == "200") {
this.productCollect = []
this.storeCollect = []
this.getStoreCollect()
this.getProductCollect()
} else {
this.$u.toast(res.message);
}
}).catch(res => {
uni.showToast({
title: '失败',
icon: "none"
})
})
},
//商品详情
goodsDateils(shopId, productId, skuId) {
uni.navigateTo({
url: '/pages_category_page1/goodsModule/goodsDetails?shopId=' + shopId + '&productId=' +
productId + '&skuId=' + skuId
})
}
}
}
</script>
<style lang="scss" scoped>
.collection-box {
.empty-box {
display: flex;
justify-content: center;
flex-direction: column;
align-items: center;
.tohome-box {
color: #999999;
margin-top: 50rpx;
}
.collect-empty {
margin-top: 30%;
width: 198rpx;
height: 183rpx;
}
}
.function-box {
background-color: #F7F7F7;
}
.tabsbox {
margin-top: 4rpx;
background-color: #FFFFFF;
}
.editicon-box {
display: flex;
justify-content: flex-end;
position: relative;
left: -30rpx;
padding: 16rpx 0;
}
.finishbox {
display: flex;
justify-content: flex-end;
position: relative;
left: -30rpx;
padding: 16rpx 0;
}
.editicon {
width: 50rpx;
height: 50rpx;
}
.swipe-box {
padding: 0 20rpx;
.actionBox {
margin-bottom: 20rpx;
}
.item {
display: flex;
.infoCent {
padding: 20rpx;
}
.selctBtn {
background: #F7F7F7;
}
}
.shopImgBox {
display: flex;
justify-content: end;
margin-left: 90rpx;
padding-bottom: 20rpx;
margin-top: 20rpx;
.itemImgBox {
margin-right: 15rpx;
margin-left: 5rpx;
image {
width: 120rpx;
height: 120rpx;
border: 2rpx solid #F3F4F5;
}
}
}
.product-img {
width: 220rpx;
flex: 0 0 220rpx;
height: 220rpx;
}
.head-img {
width: 80rpx;
flex: 0 0 80rpx;
height: 80rpx;
border-radius: 50%;
}
.title {
text-align: left;
font-size: 28rpx;
color: $u-content-color;
height: 165rpx;
padding-right: 20rpx;
}
.shopName {
height: auto;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
width: 340rpx;
}
.cart-select-img {
width: 40upx;
height: 40upx;
margin: 0upx 30upx 0upx;
box-sizing: border-box;
}
.toStore {
width: 100px;
color: #FFEBC4;
padding: 0rpx 20rpx;
height: 52rpx;
background: #333333;
margin-right: 15rpx;
image {
width: 10rpx;
height: 18rpx;
margin-left: 10rpx;
}
}
.shopBox {
margin-bottom: 20rpx;
}
}
.allcheck-box {
background-color: #FFFFFF;
width: 100%;
position: fixed;
bottom: 0upx;
.left {
display: flex;
flex-direction: row;
align-items: center;
font-size: 28upx;
color: #666;
.cart-select-img {
width: 40upx;
height: 40upx;
margin: 30upx;
box-sizing: border-box;
}
}
.right {
display: flex;
flex-direction: row;
align-items: center;
box-sizing: border-box;
}
.btn-delete {
width: 232upx;
height: 104upx;
line-height: 104upx;
text-align: center;
font-size: 28upx;
color: #FFFFFF;
background: #C83732;
}
}
.Put-box1 {
.btn {
text-align: center;
margin-top: 40rpx;
border: 1px solid #333333;
height: 80upx;
line-height: 80upx;
width: 100%;
color: #333333;
}
.submit {
background-color: #333333;
color: #FFEBC4;
}
}
.cancelDel {
position: absolute;
bottom: -50px;
left: 45%;
image {
width: 60upx;
height: 60upx;
}
}
}
.priceBox {
.iconImg {
width: 58rpx;
height: 36rpx;
margin-right: 10rpx;
}
.discountIcon{
width: 100rpx;
}
}
</style>
<style scoped>
.tabsbox /deep/ #u-tab-item-0 {
position: relative;
}
.tabsbox /deep/ .u-tab-bar {
background-color: #39be7a !important;
}
.tabsbox /deep/ #u-tab-item-0::before {
content: '';
width: 2rpx;
height: 30rpx;
display: block;
background: #CCCCCC;
position: absolute;
right: 0;
top: 20rpx;
}
.swipe-box /deep/ .u-swipe-del {
align-items: center;
justify-content: center;
width: 160rpx !important;
}
.swipe-box /deep/ .u-btn-text {
width: 60rpx;
height: 60rpx;
display: block;
background: url("https://zhgw-uat.028wlkj.com/cdwlMall/zsfwzxt/file/static/images/delIcon.png") no-repeat center center;
background-size: contain;
}
</style>
<style>
page {
background-color: #F7F7F7;
}
</style>