jufubao-mall 2.0.32-beta6 → 2.0.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/components/CusCouponChose/CusCouponChose.vue +13 -10
- package/src/components/CusEnter/CusEnter.vue +1 -9
- package/src/components/CusPoster/CusPoster.vue +62 -17
- package/src/components/CusProduct/CusProduct.vue +184 -576
- package/src/components/CusShops/CusShops.vue +209 -409
- package/src/components/CusTab/CusTab.vue +22 -159
- package/src/components/JfbMallProductInfo/cusAttr/content.js +0 -2
- package/src/components/JfbMallProductList/Attr.js +0 -1
- package/src/components/JfbMallProductList/JfbMallProductList.vue +1 -7
- package/src/components/JfbMallProductList/XdCateV1.vue +1 -0
- package/src/components/SkeProduct/SkeProduct.vue +3 -88
- package/src/components/CusListItem/CusListItem.vue +0 -141
- package/src/components/CusPrice/CusPrice.vue +0 -391
- package/src/components/CusVipList/CusVipList.vue +0 -169
- package/src/components/JfbMallNetworkMedia/Api.js +0 -94
- package/src/components/JfbMallNetworkMedia/Attr.js +0 -20
- package/src/components/JfbMallNetworkMedia/JfbMallNetworkMedia.vue +0 -1164
- package/src/components/JfbMallNetworkMedia/JfbMallNetworkMediaLess.less +0 -80
- package/src/components/JfbMallNetworkMedia/JfbMallNetworkMediaMixin.js +0 -30
- package/src/components/JfbMallNetworkMedia/Mock.js +0 -372
- package/src/components/JfbMallNetworkMedia/cusAttr/advanced.js +0 -60
- package/src/components/JfbMallNetworkMedia/cusAttr/content.js +0 -230
- package/src/components/JfbMallNetworkMedia/cusAttr/font.js +0 -122
- package/src/components/JfbMallNetworkMedia/cusAttr/icon.js +0 -257
- package/src/components/JfbMallNetworkMedia/cusAttr/style.js +0 -12
|
@@ -1,49 +1,36 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<view
|
|
3
3
|
class="xd-tab"
|
|
4
|
-
v-if="eleID"
|
|
5
4
|
:class="{noBorder: noBorder}"
|
|
6
5
|
:style="{background:bgColor}"
|
|
7
6
|
>
|
|
8
|
-
|
|
9
7
|
<scroll-view
|
|
10
8
|
class="tab-scroll"
|
|
11
9
|
scroll-x
|
|
12
10
|
:scroll-with-animation="scrollWithAnimation"
|
|
13
11
|
:scroll-into-view="toView"
|
|
14
|
-
:id="eleID"
|
|
15
12
|
:style="{
|
|
16
13
|
width: 'calc(100% - '+ getSettingWidth + 'px)',
|
|
17
14
|
height: height + 'rpx'
|
|
18
15
|
}"
|
|
19
|
-
|
|
16
|
+
|
|
20
17
|
>
|
|
21
18
|
<view class="tab-scroll__box">
|
|
22
19
|
<view
|
|
23
20
|
:id="`tab-scroll__index-${index}`"
|
|
24
21
|
v-for="(item, index) in list"
|
|
25
22
|
:key="index"
|
|
26
|
-
:style="{
|
|
27
|
-
color: activeIndex === index? (actColor||styleMainColor): color,
|
|
28
|
-
height: height + 'rpx',
|
|
29
|
-
width: (getItemWidth(item) + (index===0?spacing:0)) + 'rpx',
|
|
30
|
-
margin: (actBgcColor || bgcColor)? 0:`0 0 0 ${spacing}rpx`
|
|
31
|
-
}"
|
|
23
|
+
:style="{color: activeIndex === index? (actColor||styleMainColor): color, height: height + 'rpx'}"
|
|
32
24
|
class="tab-scroll__item"
|
|
33
|
-
:class="{active:activeIndex === index
|
|
25
|
+
:class="{active:activeIndex === index}"
|
|
34
26
|
@click="clickTab(item, index)"
|
|
35
27
|
>
|
|
36
28
|
<view
|
|
37
29
|
:style="[{
|
|
38
|
-
width: getItemWidth(item) + 'rpx',
|
|
39
30
|
fontWeight: activeIndex === index? actFontWeight: fontWeight,
|
|
40
31
|
fontSize: (activeIndex === index ? actFontSize : fontSize) + 'rpx',
|
|
41
32
|
height:(xAbsolute === 'none' && item.subName)?(height/2 + 'rpx'):(height + 'rpx'),
|
|
42
|
-
lineHeight:(xAbsolute === 'none' && item.subName)?(height/2 + 'rpx'):(height + 'rpx')
|
|
43
|
-
backgroundColor: activeIndex === index?actBgcColor:bgcColor,
|
|
44
|
-
borderRadius: (actBgcColor||bgcColor)? '30rpx':0,
|
|
45
|
-
padding: (actBgcColor||bgcColor) ? '0 16rpx':0,
|
|
46
|
-
marginLeft: index === 0? `${spacing}rpx`: 0
|
|
33
|
+
lineHeight:(xAbsolute === 'none' && item.subName)?(height/2 + 'rpx'):(height + 'rpx')
|
|
47
34
|
}]">{{item.name}}</view>
|
|
48
35
|
<view
|
|
49
36
|
class="xAbsolute"
|
|
@@ -51,7 +38,6 @@
|
|
|
51
38
|
:style="[
|
|
52
39
|
footerStyleComp,
|
|
53
40
|
{backgroundColor: activeIndex === index? (actColor||styleMainColor): ''},
|
|
54
|
-
{left: `calc(50% + ${index === 0 ? `${spacing/2}rpx`: '0rpx'})`}
|
|
55
41
|
]"
|
|
56
42
|
>
|
|
57
43
|
<view
|
|
@@ -63,33 +49,11 @@
|
|
|
63
49
|
<view
|
|
64
50
|
v-if="xAbsolute === 'none' && item.subName"
|
|
65
51
|
class="none"
|
|
66
|
-
:style="[
|
|
67
|
-
activeIndex === index?subActNameComp:subNameComp,
|
|
68
|
-
{marginLeft: index === 0? `${spacing}rpx`: 0},
|
|
69
|
-
{maxWidth: getItemWidth(item) + 'rpx'}
|
|
70
|
-
]"
|
|
52
|
+
:style="[activeIndex === index?subActNameComp:subNameComp]"
|
|
71
53
|
>{{item.subName}}</view>
|
|
72
|
-
<view
|
|
73
|
-
class="xAbsolute triangle"
|
|
74
|
-
v-if="xAbsolute === 'triangle' && activeIndex === index"
|
|
75
|
-
:style="[{left: `calc(50% + ${index === 0 ? '24rpx': '0rpx'})`}]"
|
|
76
|
-
>
|
|
77
|
-
<xd-font-icon icon="iconrepository-xialaxuanxiangup" size="22" :color="actColor||styleMainColor"></xd-font-icon>
|
|
78
|
-
</view>
|
|
79
|
-
<view
|
|
80
|
-
class="xAbsolute center"
|
|
81
|
-
v-if="xAbsolute === 'center' && activeIndex === index"
|
|
82
|
-
:style="[
|
|
83
|
-
{background: activeIndex === index? (actColor||styleMainColor): color},
|
|
84
|
-
{left: `calc(50% + ${index === 0 ? `${spacing/2}rpx`: '0rpx'})`}
|
|
85
|
-
]"
|
|
86
|
-
></view>
|
|
87
54
|
</view>
|
|
88
55
|
</view>
|
|
89
56
|
</scroll-view>
|
|
90
|
-
<view class="center" v-if="xAbsolute === 'center'">
|
|
91
|
-
<view :style="{left:left, background: styleMainColor}"></view>
|
|
92
|
-
</view>
|
|
93
57
|
<view
|
|
94
58
|
class="tab-icons"
|
|
95
59
|
@click="handleClickSetting"
|
|
@@ -126,10 +90,6 @@
|
|
|
126
90
|
return {}
|
|
127
91
|
},
|
|
128
92
|
},
|
|
129
|
-
spacing:{
|
|
130
|
-
type: Number,
|
|
131
|
-
default: 40
|
|
132
|
-
},
|
|
133
93
|
settingWidth: {
|
|
134
94
|
type: Number,
|
|
135
95
|
default: 70
|
|
@@ -188,14 +148,6 @@
|
|
|
188
148
|
type: Number | String, //rpx
|
|
189
149
|
default: 500
|
|
190
150
|
},
|
|
191
|
-
bgcColor: {
|
|
192
|
-
type: String,
|
|
193
|
-
default: ''
|
|
194
|
-
},
|
|
195
|
-
actBgcColor: {
|
|
196
|
-
type: String,
|
|
197
|
-
default: ''
|
|
198
|
-
},
|
|
199
151
|
height: {
|
|
200
152
|
type: Number | String, //rpx
|
|
201
153
|
default: 90
|
|
@@ -207,11 +159,10 @@
|
|
|
207
159
|
actColor: {
|
|
208
160
|
type: String,
|
|
209
161
|
default: ''
|
|
210
|
-
}
|
|
162
|
+
}
|
|
211
163
|
},
|
|
212
164
|
data() {
|
|
213
165
|
return {
|
|
214
|
-
eleID:null,
|
|
215
166
|
activeIndex: 0,
|
|
216
167
|
toView: null,
|
|
217
168
|
styleMainColor: '', //插件主题风格样式
|
|
@@ -223,11 +174,6 @@
|
|
|
223
174
|
|
|
224
175
|
xAbsolute: 'absolute',//绝对定位|无
|
|
225
176
|
styleSolid: 'Y',
|
|
226
|
-
itemWidth: 0,
|
|
227
|
-
|
|
228
|
-
//居中处理
|
|
229
|
-
left:0,
|
|
230
|
-
boxWidth:0
|
|
231
177
|
};
|
|
232
178
|
},
|
|
233
179
|
|
|
@@ -239,17 +185,19 @@
|
|
|
239
185
|
return 0;
|
|
240
186
|
},
|
|
241
187
|
footerStyleComp(){
|
|
188
|
+
//circle/line/none/trigon/desc
|
|
242
189
|
let temp = {};
|
|
243
190
|
temp['bottom'] = this.lineBottom + 'rpx';
|
|
244
191
|
if(this.styleType === 'line') {
|
|
245
192
|
temp['height'] = this.styleHeight + 'rpx';
|
|
246
|
-
temp['
|
|
247
|
-
temp['
|
|
193
|
+
temp['left'] = this.styleLong;
|
|
194
|
+
temp['right'] = this.styleLong;
|
|
248
195
|
temp['borderRadius'] = this.styleRadius;
|
|
249
196
|
}
|
|
250
197
|
if(this.styleType === 'circle'){
|
|
251
198
|
temp['height'] = this.styleHeight + 'rpx';
|
|
252
199
|
temp['width'] = this.styleHeight + 'rpx';
|
|
200
|
+
temp['left'] = '50%';
|
|
253
201
|
temp['marginLeft'] = -this.styleHeight/2 + 'rpx'
|
|
254
202
|
temp['borderRadius'] = this.styleRadius;
|
|
255
203
|
}
|
|
@@ -263,6 +211,7 @@
|
|
|
263
211
|
temp['backgroundColor'] = '#fff';
|
|
264
212
|
if(this.styleType === 'circle'){
|
|
265
213
|
temp['borderRadius'] = '50%';
|
|
214
|
+
|
|
266
215
|
}
|
|
267
216
|
return temp
|
|
268
217
|
},
|
|
@@ -302,7 +251,6 @@
|
|
|
302
251
|
},
|
|
303
252
|
},
|
|
304
253
|
async created() {
|
|
305
|
-
this.eleID = `tab-${this.$xdUniHelper.randomChar(5)}`;
|
|
306
254
|
this.initStyle();
|
|
307
255
|
this.styleMainColor = await getParentsStyle(this.$parent, '$mainColor');
|
|
308
256
|
},
|
|
@@ -322,14 +270,6 @@
|
|
|
322
270
|
this.toView = `tab-scroll__index-${this.tabIndex}`;
|
|
323
271
|
this.$emit('onInit', this.list[this.activeIndex], this.activeIndex);
|
|
324
272
|
}
|
|
325
|
-
|
|
326
|
-
const query = uni.createSelectorQuery().in(this);
|
|
327
|
-
query
|
|
328
|
-
.select(`#${this.eleID }`)
|
|
329
|
-
.boundingClientRect((data) => {
|
|
330
|
-
this.boxWidth = data.width;
|
|
331
|
-
})
|
|
332
|
-
.exec();
|
|
333
273
|
});
|
|
334
274
|
},
|
|
335
275
|
|
|
@@ -338,19 +278,10 @@
|
|
|
338
278
|
let arr = this.footerStyle.split('-');
|
|
339
279
|
this.styleType = arr[0];
|
|
340
280
|
this.xAbsolute = 'absolute';
|
|
341
|
-
|
|
342
281
|
if(this.styleType === 'desc') {
|
|
343
282
|
this.xAbsolute = 'none';
|
|
344
283
|
}
|
|
345
284
|
|
|
346
|
-
if(this.styleType === 'center') {
|
|
347
|
-
this.xAbsolute = 'center';
|
|
348
|
-
}
|
|
349
|
-
|
|
350
|
-
if(this.styleType === 'triangle') {
|
|
351
|
-
this.xAbsolute = 'triangle';
|
|
352
|
-
}
|
|
353
|
-
|
|
354
285
|
//圆与三角
|
|
355
286
|
if(arr.length === 3) {
|
|
356
287
|
this.styleHeight = this.styleWidth = Number(arr[1])
|
|
@@ -362,25 +293,14 @@
|
|
|
362
293
|
|
|
363
294
|
//线
|
|
364
295
|
if(arr.length === 4) {
|
|
365
|
-
this.styleHeight =
|
|
366
|
-
this.styleRadius =
|
|
296
|
+
this.styleHeight = arr[2];
|
|
297
|
+
this.styleRadius = arr[1] + 'rpx';
|
|
367
298
|
if(arr[3] === 'l') this.styleLong = '20rpx'
|
|
368
299
|
else this.styleLong = '35%'
|
|
369
300
|
}
|
|
370
301
|
|
|
371
302
|
},
|
|
372
303
|
|
|
373
|
-
getItemWidth(item){
|
|
374
|
-
let maxFontSize = Math.max(parseInt(this.actFontSize),parseInt(this.fontSize))
|
|
375
|
-
let nameWidth = item.name.length * maxFontSize;
|
|
376
|
-
let actFontSize = Math.max(parseInt(this.subNameStyle['actFontSize']||24),parseInt(this.subNameStyle['fontSize']||24))
|
|
377
|
-
let subNameWidth = this.xAbsolute==='none' ? (item.subName.length * actFontSize): 0;
|
|
378
|
-
if(this.actBgcColor || this.bgcColor) {
|
|
379
|
-
nameWidth += 16*2
|
|
380
|
-
}
|
|
381
|
-
return Math.max(nameWidth,subNameWidth);
|
|
382
|
-
},
|
|
383
|
-
|
|
384
304
|
clickTab(item, index) {
|
|
385
305
|
this.activeIndex = index;
|
|
386
306
|
this.toView = `tab-scroll__index-${this.activeIndex}`;
|
|
@@ -389,14 +309,6 @@
|
|
|
389
309
|
handleClickSetting(){
|
|
390
310
|
this.$emit('onSetting');
|
|
391
311
|
},
|
|
392
|
-
|
|
393
|
-
handleScroll({detail}){
|
|
394
|
-
if(this.xAbsolute === 'center'){
|
|
395
|
-
let maxScrollW = detail.scrollWidth - this.boxWidth;
|
|
396
|
-
this.left = ((detail.scrollLeft* 30 * this.$rpxNum)/ maxScrollW) + 'px';
|
|
397
|
-
}
|
|
398
|
-
|
|
399
|
-
}
|
|
400
312
|
}
|
|
401
313
|
}
|
|
402
314
|
</script>
|
|
@@ -410,30 +322,10 @@
|
|
|
410
322
|
flex-wrap: wrap;
|
|
411
323
|
overflow: hidden;
|
|
412
324
|
padding: 0;
|
|
413
|
-
|
|
325
|
+
height: unit(100, rpx);
|
|
414
326
|
&.noBorder {
|
|
415
327
|
border-bottom: 1px #f5f5f5 solid;
|
|
416
328
|
}
|
|
417
|
-
& > .center {
|
|
418
|
-
position: absolute;
|
|
419
|
-
height: 8rpx;
|
|
420
|
-
left: 50%;
|
|
421
|
-
bottom: 8rpx;
|
|
422
|
-
width: 80rpx;
|
|
423
|
-
margin-left: -40rpx;
|
|
424
|
-
border-radius: 5rpx;
|
|
425
|
-
background-color: #ccc;
|
|
426
|
-
overflow: hidden;
|
|
427
|
-
&> view {
|
|
428
|
-
position: absolute;
|
|
429
|
-
top:0;
|
|
430
|
-
bottom: 0;
|
|
431
|
-
width: 50rpx;
|
|
432
|
-
border-radius: 5rpx;
|
|
433
|
-
height: 8rpx;
|
|
434
|
-
background-color: #ccc;
|
|
435
|
-
}
|
|
436
|
-
}
|
|
437
329
|
|
|
438
330
|
.tab-scroll {
|
|
439
331
|
.tab-scroll__box {
|
|
@@ -443,29 +335,19 @@
|
|
|
443
335
|
box-sizing: border-box;
|
|
444
336
|
|
|
445
337
|
.tab-scroll__item {
|
|
446
|
-
position: relative;
|
|
447
338
|
flex-shrink: 0;
|
|
448
|
-
padding: 0;
|
|
339
|
+
padding: 0 unit(20, rpx);
|
|
449
340
|
color: #333;
|
|
450
341
|
font-size: unit(30, rpx);
|
|
451
342
|
height: unit(100, rpx);
|
|
343
|
+
position: relative;
|
|
452
344
|
display: flex;
|
|
453
345
|
align-items: center;
|
|
454
346
|
align-content: center;
|
|
455
347
|
flex-flow: column;
|
|
456
|
-
text-align: center;
|
|
457
|
-
&:first-child {
|
|
458
|
-
margin-left: 0!important;
|
|
459
|
-
}
|
|
460
|
-
|
|
461
|
-
&.desc {
|
|
462
|
-
justify-content: center;
|
|
463
|
-
min-width: 3.5rem;
|
|
464
|
-
}
|
|
465
|
-
|
|
466
348
|
|
|
467
349
|
|
|
468
|
-
|
|
350
|
+
&.active {
|
|
469
351
|
color: @xd-base-color;
|
|
470
352
|
}
|
|
471
353
|
|
|
@@ -476,34 +358,15 @@
|
|
|
476
358
|
display: flex;
|
|
477
359
|
justify-content: center;
|
|
478
360
|
align-items: center;
|
|
479
|
-
line-height: 1.1rem;
|
|
480
|
-
|
|
481
|
-
&.triangle {
|
|
482
|
-
bottom: unit(0,rpx);
|
|
483
|
-
transform: translateX(-50%);
|
|
484
|
-
}
|
|
485
|
-
|
|
486
|
-
&.center {
|
|
487
|
-
position: absolute;
|
|
488
|
-
bottom: 22rpx;
|
|
489
|
-
width: 70rpx;
|
|
490
|
-
height: 10rpx;
|
|
491
|
-
opacity: .25;
|
|
492
|
-
border-radius:40%;
|
|
493
|
-
z-index: 0;
|
|
494
|
-
transform: translateX(-50%);
|
|
495
|
-
}
|
|
496
361
|
}
|
|
497
362
|
|
|
498
363
|
& > view.none {
|
|
499
|
-
padding:0;
|
|
500
|
-
text-align: center;
|
|
364
|
+
padding: 0 10rpx;
|
|
501
365
|
color:#000;
|
|
502
|
-
border-radius:
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
height: 36rpx;
|
|
366
|
+
border-radius:20rpx;
|
|
367
|
+
font-size: 20rpx;
|
|
368
|
+
line-height: 1.2rem;
|
|
369
|
+
margin-top: 4rpx;
|
|
507
370
|
}
|
|
508
371
|
}
|
|
509
372
|
}
|
|
@@ -284,8 +284,6 @@ export default (data, gValue, gColor, oldData) => {
|
|
|
284
284
|
type: 'notice', //normal,notice,privacy
|
|
285
285
|
isNew: true,
|
|
286
286
|
},
|
|
287
|
-
notice: '商品详情里头部显示的固定内容',
|
|
288
|
-
inline: false,
|
|
289
287
|
handleCustom({ action, data }) {
|
|
290
288
|
if (data && data.params) {
|
|
291
289
|
//当一个插件中出现使用内容分类时候需要设置code值,在页面引用时候容器id + code进行拼接
|
|
@@ -854,6 +854,7 @@
|
|
|
854
854
|
actFontWeight: 'normal',
|
|
855
855
|
}
|
|
856
856
|
const level2Name = gCPVal(container, 'level2Name', [defNewLvel2Name,defOldLvel2Name],{sKey:'level2NameStatus', fields:['level2Name','level2Color'],isMerge: true});
|
|
857
|
+
const subTitleRadius = gCPVal(container, 'subTitleRadius', ['40rpx'],{sKey:'subTitleRadiusStatus', fields:['subTitleRadius']})||0;
|
|
857
858
|
const subTitleIconShadow = gCPVal(container, 'subTitleIconShadow', [this.gStyleValue.shadow,'none'], {isShadow:true});
|
|
858
859
|
const subTitleIconBorder = gCPVal(container, 'subTitleIconBorder', [{style:'solid', width: '2', color: this.mainColor},'0'], {isBorder:true});
|
|
859
860
|
let navStyle = gCPVal(container, 'navStyle', 'line-6-8-s');
|
|
@@ -862,13 +863,6 @@
|
|
|
862
863
|
const iconImageSp = gCPVal(container, 'iconImageSp', [16],{sKey:'iconImageSpStatus', fields:['iconImageSp']});
|
|
863
864
|
const iconBgColor = gCPVal(container, 'iconBgColor', [100],{sKey:'iconBgColorStatus', fields:['iconBgColor']});
|
|
864
865
|
|
|
865
|
-
let defTitleRadius = '50%';
|
|
866
|
-
if(category === 'v4') {
|
|
867
|
-
defTitleRadius = 40*Number(iconWdith)/96 + 'rpx';
|
|
868
|
-
}
|
|
869
|
-
const subTitleRadius = gCPVal(container, 'subTitleRadius', [defTitleRadius],{sKey:'subTitleRadiusStatus', fields:['subTitleRadius']})||0;
|
|
870
|
-
|
|
871
|
-
|
|
872
866
|
this.tabStyle = {
|
|
873
867
|
titleColor,
|
|
874
868
|
titleActColor,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<view class="skeleton-wrap-item" :class="{display: cell===1
|
|
2
|
+
<view class="skeleton-wrap-item" :class="{display: cell===1}">
|
|
3
3
|
<template v-if="cell===1">
|
|
4
4
|
<view class="image skeleton-item" :style="{marginRight:cellSpacing + 'rpx'}"></view>
|
|
5
5
|
<view class="content">
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
</view>
|
|
26
26
|
</template>
|
|
27
27
|
<template v-if="cell >= 2">
|
|
28
|
-
<view class="image2 skeleton-item" :style="{marginBottom:
|
|
28
|
+
<view class="image2 skeleton-item" :style="{marginBottom:rowSpacing + 'rpx', height: height + 'rpx'}"></view>
|
|
29
29
|
<view class="content2">
|
|
30
30
|
<view class="top">
|
|
31
31
|
<view class="title skeleton-item"></view>
|
|
@@ -75,10 +75,6 @@ export default {
|
|
|
75
75
|
type:Object|null,
|
|
76
76
|
default: null
|
|
77
77
|
},
|
|
78
|
-
columnOneLayout:{
|
|
79
|
-
type: String,
|
|
80
|
-
default:'H'
|
|
81
|
-
}
|
|
82
78
|
}
|
|
83
79
|
}
|
|
84
80
|
</script>
|
|
@@ -99,7 +95,6 @@ export default {
|
|
|
99
95
|
}
|
|
100
96
|
|
|
101
97
|
|
|
102
|
-
|
|
103
98
|
& .content {
|
|
104
99
|
flex: 1;
|
|
105
100
|
min-height: 200rpx;
|
|
@@ -169,86 +164,6 @@ export default {
|
|
|
169
164
|
}
|
|
170
165
|
}
|
|
171
166
|
|
|
172
|
-
&.display0 {
|
|
173
|
-
& .image {
|
|
174
|
-
.skeleton-item(100%, 740rpx);
|
|
175
|
-
margin-bottom: 20rpx;
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
& .content {
|
|
179
|
-
flex: 1;
|
|
180
|
-
min-height: 200rpx;
|
|
181
|
-
|
|
182
|
-
.top {
|
|
183
|
-
height: 140rpx;
|
|
184
|
-
|
|
185
|
-
& .title {
|
|
186
|
-
.skeleton-item(100%, 60rpx);
|
|
187
|
-
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
& .brand {
|
|
191
|
-
margin-top: 16rpx;
|
|
192
|
-
.skeleton-item(70%, 32rpx);
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
.tags {
|
|
196
|
-
display: flex;
|
|
197
|
-
justify-content: flex-start;
|
|
198
|
-
align-items: center;
|
|
199
|
-
flex-flow: wrap;
|
|
200
|
-
margin-top: 16rpx;
|
|
201
|
-
|
|
202
|
-
& > view {
|
|
203
|
-
margin-bottom: 16rpx;
|
|
204
|
-
.skeleton-item(80rpx, 36rpx);
|
|
205
|
-
margin-left: 10rpx;
|
|
206
|
-
|
|
207
|
-
&:first-child {
|
|
208
|
-
margin-left: 0;
|
|
209
|
-
width: 120rpx;
|
|
210
|
-
}
|
|
211
|
-
}
|
|
212
|
-
}
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
.bottom {
|
|
216
|
-
display: flex;
|
|
217
|
-
justify-content: flex-end;
|
|
218
|
-
align-content: center;
|
|
219
|
-
align-items: center;
|
|
220
|
-
width: 100%;
|
|
221
|
-
height: 60rpx;
|
|
222
|
-
margin-top: 20rpx;
|
|
223
|
-
|
|
224
|
-
& .price {
|
|
225
|
-
flex-shrink: 0;
|
|
226
|
-
.skeleton-item(120rpx, 35rpx);
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
& .orgPrice {
|
|
230
|
-
flex-shrink: 0;
|
|
231
|
-
margin-left: 20rpx;
|
|
232
|
-
.skeleton-item(130rpx, 20rpx);
|
|
233
|
-
}
|
|
234
|
-
|
|
235
|
-
& .cart {
|
|
236
|
-
flex: 1;
|
|
237
|
-
display: flex;
|
|
238
|
-
justify-content: flex-end;
|
|
239
|
-
align-items: center;
|
|
240
|
-
& > view {
|
|
241
|
-
.skeleton-item(64rpx, 64rpx);
|
|
242
|
-
border-radius: 32rpx;
|
|
243
|
-
}
|
|
244
|
-
}
|
|
245
|
-
}
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
167
|
& .image2 {
|
|
253
168
|
.skeleton-item();
|
|
254
169
|
}
|
|
@@ -257,7 +172,7 @@ export default {
|
|
|
257
172
|
flex: 1;
|
|
258
173
|
|
|
259
174
|
.top {
|
|
260
|
-
|
|
175
|
+
min-height: 140rpx;
|
|
261
176
|
|
|
262
177
|
& .title {
|
|
263
178
|
.skeleton-item(100%, 60rpx);
|
|
@@ -1,141 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<view class="xd-my-list-item"
|
|
3
|
-
:class="'size_'+size + ' ' + className"
|
|
4
|
-
:style="{
|
|
5
|
-
borderBottom: showBottom ? '1px solid #F6F6F6':'none',
|
|
6
|
-
// marginTop: showBottom? paddingTB: 0,
|
|
7
|
-
paddingLeft: paddingLR,
|
|
8
|
-
paddingRight: paddingLR,
|
|
9
|
-
paddingTop: paddingTB,
|
|
10
|
-
paddingBottom: paddingTB,
|
|
11
|
-
}"
|
|
12
|
-
@click="$emit('click')">
|
|
13
|
-
<view v-if="listIcon" class="my-list_icon">
|
|
14
|
-
<image mode="widthFix" :src="listIcon" />
|
|
15
|
-
</view>
|
|
16
|
-
<view class="my-list_label">
|
|
17
|
-
<slot name="label">
|
|
18
|
-
<view v-html="label"></view>
|
|
19
|
-
</slot>
|
|
20
|
-
</view>
|
|
21
|
-
<view class="my-list_value">
|
|
22
|
-
<slot></slot>
|
|
23
|
-
<xd-font-icon
|
|
24
|
-
v-if="showRight"
|
|
25
|
-
:style="{
|
|
26
|
-
marginLeft: '10rpx',
|
|
27
|
-
color: '#B1B1B1'
|
|
28
|
-
}"
|
|
29
|
-
size="24"
|
|
30
|
-
icon="iconxiangyou_xian"
|
|
31
|
-
></xd-font-icon>
|
|
32
|
-
</view>
|
|
33
|
-
|
|
34
|
-
</view>
|
|
35
|
-
</template>
|
|
36
|
-
|
|
37
|
-
<script>
|
|
38
|
-
import XdFontIcon from "@/components/XdFontIcon/XdFontIcon";
|
|
39
|
-
export default {
|
|
40
|
-
components: {
|
|
41
|
-
XdFontIcon
|
|
42
|
-
},
|
|
43
|
-
data(){
|
|
44
|
-
return {
|
|
45
|
-
|
|
46
|
-
}
|
|
47
|
-
},
|
|
48
|
-
props: {
|
|
49
|
-
size: {
|
|
50
|
-
type: String,
|
|
51
|
-
default: "default"
|
|
52
|
-
},
|
|
53
|
-
paddingTB:{
|
|
54
|
-
type: String,
|
|
55
|
-
default: "24rpx"
|
|
56
|
-
},
|
|
57
|
-
paddingLR: {
|
|
58
|
-
type: String,
|
|
59
|
-
default: "0rpx"
|
|
60
|
-
},
|
|
61
|
-
//是否显示border-bottom
|
|
62
|
-
showBottom: {
|
|
63
|
-
type: Boolean,
|
|
64
|
-
default: false
|
|
65
|
-
},
|
|
66
|
-
//是否显示右箭头
|
|
67
|
-
showRight: {
|
|
68
|
-
type: Boolean,
|
|
69
|
-
default: false
|
|
70
|
-
},
|
|
71
|
-
//是否显示图标
|
|
72
|
-
listIcon: {
|
|
73
|
-
type: String,
|
|
74
|
-
default: ''
|
|
75
|
-
},
|
|
76
|
-
//label
|
|
77
|
-
label: {
|
|
78
|
-
type: String,
|
|
79
|
-
default: ''
|
|
80
|
-
},
|
|
81
|
-
className: {
|
|
82
|
-
type: String,
|
|
83
|
-
default: ''
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
}
|
|
88
|
-
</script>
|
|
89
|
-
|
|
90
|
-
<style lang="less" scoped>
|
|
91
|
-
.xd-my-list-item{
|
|
92
|
-
display: flex;
|
|
93
|
-
align-items: center;
|
|
94
|
-
padding: 30rpx 0;
|
|
95
|
-
font-size: 28rpx;
|
|
96
|
-
|
|
97
|
-
&.size_large{
|
|
98
|
-
.my-list_value,
|
|
99
|
-
.my-list_label{
|
|
100
|
-
font-size: 28rpx;
|
|
101
|
-
font-weight: 400;
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
&.size_default{
|
|
105
|
-
.my-list_value,
|
|
106
|
-
.my-list_label{
|
|
107
|
-
font-size: 28rpx;
|
|
108
|
-
font-weight: 400;
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
&.size_small{
|
|
112
|
-
.my-list_value,
|
|
113
|
-
.my-list_label{
|
|
114
|
-
font-size: 24rpx;
|
|
115
|
-
font-weight: 400;
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
.my-list_icon{
|
|
120
|
-
width: 32rpx;
|
|
121
|
-
margin-right: 24rpx;
|
|
122
|
-
|
|
123
|
-
image{
|
|
124
|
-
width: 32rpx;
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
.my-list_label{
|
|
129
|
-
// flex: 1;
|
|
130
|
-
}
|
|
131
|
-
.my-list_value{
|
|
132
|
-
flex: 1;
|
|
133
|
-
display: flex;
|
|
134
|
-
align-items: center;
|
|
135
|
-
justify-content: flex-end;
|
|
136
|
-
}
|
|
137
|
-
.arrow_right{
|
|
138
|
-
width: 44rpx;
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
</style>
|