jufubao-base 1.0.261 → 1.0.262
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/JfbBaseCard/JfbBaseCard.vue +8 -3
- package/src/components/JfbBaseCardV2/JfbBaseCardV2.vue +8 -3
- package/src/components/JfbBaseCardV3/JfbBaseCardV3.vue +8 -3
- package/src/components/JfbBasePosterType/Attr.js +3 -0
- package/src/components/JfbBasePosterType/FourScreen.vue +34 -1
- package/src/components/JfbBasePosterType/JfbBasePosterType.vue +8 -2
package/package.json
CHANGED
|
@@ -594,9 +594,14 @@ export default {
|
|
|
594
594
|
//#endif
|
|
595
595
|
|
|
596
596
|
//单业务线卡券直接跳转到业务线
|
|
597
|
-
if((item.business_codes && item.business_codes.length === 1)
|
|
598
|
-
|
|
599
|
-
) {
|
|
597
|
+
// if((item.business_codes && item.business_codes.length === 1)
|
|
598
|
+
// && item.entries.length ===1
|
|
599
|
+
// ) {
|
|
600
|
+
// this.handleOneBussClick(item.entries[0]);
|
|
601
|
+
// return
|
|
602
|
+
// }
|
|
603
|
+
|
|
604
|
+
if(item.entries.length ===1) {
|
|
600
605
|
this.handleOneBussClick(item.entries[0]);
|
|
601
606
|
return
|
|
602
607
|
}
|
|
@@ -311,9 +311,14 @@
|
|
|
311
311
|
//#endif
|
|
312
312
|
|
|
313
313
|
//单业务线卡券直接跳转到业务线
|
|
314
|
-
if((item.business_codes && item.business_codes.length === 1)
|
|
315
|
-
|
|
316
|
-
) {
|
|
314
|
+
// if((item.business_codes && item.business_codes.length === 1)
|
|
315
|
+
// && item.entries.length ===1
|
|
316
|
+
// ) {
|
|
317
|
+
// this.handleOneBussClick(item.entries[0]);
|
|
318
|
+
// return
|
|
319
|
+
// }
|
|
320
|
+
|
|
321
|
+
if(item.entries.length ===1) {
|
|
317
322
|
this.handleOneBussClick(item.entries[0]);
|
|
318
323
|
return
|
|
319
324
|
}
|
|
@@ -228,9 +228,14 @@
|
|
|
228
228
|
//#endif
|
|
229
229
|
|
|
230
230
|
//单业务线卡券直接跳转到业务线
|
|
231
|
-
if((item.business_codes && item.business_codes.length === 1)
|
|
232
|
-
|
|
233
|
-
) {
|
|
231
|
+
// if((item.business_codes && item.business_codes.length === 1)
|
|
232
|
+
// && item.entries.length ===1
|
|
233
|
+
// ) {
|
|
234
|
+
// this.handleOneBussClick(item.entries[0]);
|
|
235
|
+
// return
|
|
236
|
+
// }
|
|
237
|
+
|
|
238
|
+
if(item.entries.length ===1) {
|
|
234
239
|
this.handleOneBussClick(item.entries[0]);
|
|
235
240
|
return
|
|
236
241
|
}
|
|
@@ -307,6 +307,7 @@ export default {
|
|
|
307
307
|
list: [
|
|
308
308
|
{"label": "焦点图显示", "value": 1},
|
|
309
309
|
{"label": "轮播图显示", "value": 2},
|
|
310
|
+
{"label": "滑块", "value": 3},
|
|
310
311
|
]
|
|
311
312
|
},
|
|
312
313
|
params['isCarousel'] === 2 && {
|
|
@@ -361,6 +362,8 @@ export default {
|
|
|
361
362
|
valueKey: 'jdRows',
|
|
362
363
|
groupKey:'content',
|
|
363
364
|
value: params.jdRows,
|
|
365
|
+
defaultValue: params['isCarousel']===3?1:params.jdRows,
|
|
366
|
+
disabled: params['isCarousel']===3,
|
|
364
367
|
className: 'input60',
|
|
365
368
|
labelInline: true,
|
|
366
369
|
list: [
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<view class="sreen">
|
|
3
|
-
|
|
3
|
+
<view v-if="!config['carouselType']">
|
|
4
|
+
<view
|
|
4
5
|
class="sreen__box notCarousel"
|
|
5
6
|
:class="{
|
|
6
7
|
cell4: config['column'] === 4,
|
|
@@ -128,6 +129,30 @@
|
|
|
128
129
|
<!--#endif-->
|
|
129
130
|
</xd-swiper-dot>
|
|
130
131
|
</view>
|
|
132
|
+
</view>
|
|
133
|
+
<view v-else>
|
|
134
|
+
<scroll-view scroll-x="true">
|
|
135
|
+
<view class="scroll-box">
|
|
136
|
+
<view
|
|
137
|
+
v-for="item in content"
|
|
138
|
+
:key="item['content_id']"
|
|
139
|
+
@click="handleClick(item)"
|
|
140
|
+
:style="[config['iconItemStyleComp']]"
|
|
141
|
+
>
|
|
142
|
+
<view :style="[config['iconItemBoxStyleComp']]">
|
|
143
|
+
<view :style="[config['iconStyleComp']]" class="image">
|
|
144
|
+
<image :src="item.image_url"></image>
|
|
145
|
+
</view>
|
|
146
|
+
</view>
|
|
147
|
+
<view
|
|
148
|
+
class="content_name"
|
|
149
|
+
v-if="item['content_name']"
|
|
150
|
+
:style="[config['titleStyle']]"
|
|
151
|
+
>{{item['content_name']}}</view>
|
|
152
|
+
</view>
|
|
153
|
+
</view>
|
|
154
|
+
</scroll-view>
|
|
155
|
+
</view>
|
|
131
156
|
</view>
|
|
132
157
|
</template>
|
|
133
158
|
|
|
@@ -207,6 +232,8 @@
|
|
|
207
232
|
|
|
208
233
|
},
|
|
209
234
|
created() {
|
|
235
|
+
console.log(this.content,'content');
|
|
236
|
+
|
|
210
237
|
this.isPreview = this.$configProject.isPreview;
|
|
211
238
|
this.init();
|
|
212
239
|
},
|
|
@@ -344,6 +371,12 @@
|
|
|
344
371
|
}
|
|
345
372
|
}
|
|
346
373
|
}
|
|
374
|
+
.scroll-box {
|
|
375
|
+
width: 100%;
|
|
376
|
+
display: flex;
|
|
377
|
+
align-items: center;
|
|
378
|
+
white-space: nowrap;
|
|
379
|
+
}
|
|
347
380
|
}
|
|
348
381
|
|
|
349
382
|
|
|
@@ -83,6 +83,7 @@
|
|
|
83
83
|
bgColor:'rgba(0,0,0,0)',
|
|
84
84
|
bgRadius: 0,
|
|
85
85
|
bgImage: "",
|
|
86
|
+
carouselType: ''
|
|
86
87
|
}
|
|
87
88
|
},
|
|
88
89
|
computed: {
|
|
@@ -147,7 +148,8 @@
|
|
|
147
148
|
height: this.iconWH.height,
|
|
148
149
|
width: this.iconWH.width,
|
|
149
150
|
titleStyle: this.titleStyle,
|
|
150
|
-
dotStyleData: this.dotStyleData
|
|
151
|
+
dotStyleData: this.dotStyleData,
|
|
152
|
+
carouselType: this.carouselType
|
|
151
153
|
}
|
|
152
154
|
},
|
|
153
155
|
iconItemStyleComp(){
|
|
@@ -242,7 +244,11 @@
|
|
|
242
244
|
|
|
243
245
|
//content
|
|
244
246
|
this.mode = getContainerPropsValue(container, 'content.dot_type', 'round');
|
|
245
|
-
this.isCarousel = getContainerPropsValue(container, 'content.isCarousel', 1)
|
|
247
|
+
this.isCarousel = getContainerPropsValue(container, 'content.isCarousel', 1);
|
|
248
|
+
if(this.isCarousel===3){
|
|
249
|
+
this.carouselType='slider'
|
|
250
|
+
}
|
|
251
|
+
this.isCarousel = this.isCarousel=== 2
|
|
246
252
|
this.carouselTime = Number(getContainerPropsValue(container, 'content.carouselTime', 5)) * 1000;
|
|
247
253
|
let useNumberDefault = 20;
|
|
248
254
|
if(this.isCarousel === false) useNumberDefault = this.row * this.column;
|