jufubao-base 1.0.64-beta302 → 1.0.64-beta304
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
CHANGED
|
@@ -47,7 +47,10 @@
|
|
|
47
47
|
autoplay
|
|
48
48
|
>
|
|
49
49
|
<swiper-item v-for="(item) in contentList" :key="item.content_id">
|
|
50
|
-
<view>
|
|
50
|
+
<view class="content-list">
|
|
51
|
+
{{item.title}}
|
|
52
|
+
<text v-if="contentList&&contentList.length>0">{{contentList.length}}个</text>
|
|
53
|
+
</view>
|
|
51
54
|
</swiper-item>
|
|
52
55
|
</swiper>
|
|
53
56
|
<xd-notice-bar v-else :key="speedKey" scrollable :speed="speed" background-color="rgba(0,0,0,0)">
|
|
@@ -395,6 +398,11 @@
|
|
|
395
398
|
|
|
396
399
|
.jfb-base-notice {
|
|
397
400
|
&__body{
|
|
401
|
+
.content-list {
|
|
402
|
+
display: flex;
|
|
403
|
+
justify-content: space-between;
|
|
404
|
+
align-items: center;
|
|
405
|
+
}
|
|
398
406
|
&-line {
|
|
399
407
|
height: 0px;
|
|
400
408
|
overflow: hidden;
|
|
@@ -297,6 +297,9 @@
|
|
|
297
297
|
this.init(this.container);
|
|
298
298
|
this.isPreview = this.$configProject.isPreview;
|
|
299
299
|
},
|
|
300
|
+
destroyed() {
|
|
301
|
+
this.$xdRoot.$emit('setLayoutPageBg',null)
|
|
302
|
+
},
|
|
300
303
|
methods: {
|
|
301
304
|
getTestData(){
|
|
302
305
|
let temp = [];
|
|
@@ -369,8 +372,8 @@
|
|
|
369
372
|
return list.map((item,index) => {
|
|
370
373
|
return {
|
|
371
374
|
...item,
|
|
372
|
-
image_background_url: getServiceUrl(item.image_background_url),
|
|
373
|
-
image_url: getServiceUrl(item.image_url)
|
|
375
|
+
image_background_url: item.image_background_url?getServiceUrl(item.image_background_url):'',
|
|
376
|
+
image_url: item.image_url?getServiceUrl(item.image_url):''
|
|
374
377
|
}
|
|
375
378
|
})
|
|
376
379
|
},
|
|
@@ -382,7 +385,6 @@
|
|
|
382
385
|
this.$xdRoot.$emit("setLayoutPageBg", this.currentImage);
|
|
383
386
|
}
|
|
384
387
|
},
|
|
385
|
-
|
|
386
388
|
getDefualtValue(key){
|
|
387
389
|
if (key === 'margin') {
|
|
388
390
|
return {top: 0, bottom: 0, left: 0, right: 0}
|
|
@@ -447,11 +449,15 @@
|
|
|
447
449
|
})
|
|
448
450
|
},
|
|
449
451
|
|
|
452
|
+
onJfbShow(){
|
|
453
|
+
if(this.isSupport==='Y' && this.rows===1 && this.isCarousel===2) {
|
|
454
|
+
this.$xdRoot.$emit("setLayoutPageBg", this.currentImage);
|
|
455
|
+
}
|
|
456
|
+
},
|
|
457
|
+
|
|
450
458
|
onJfbUpdate(data) {
|
|
451
459
|
this.onJfbLoad(this.params);
|
|
452
460
|
}
|
|
453
|
-
|
|
454
|
-
|
|
455
461
|
}
|
|
456
462
|
}
|
|
457
463
|
|