jufubao-base 1.0.80 → 1.0.83
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
|
@@ -171,7 +171,7 @@
|
|
|
171
171
|
}"
|
|
172
172
|
>
|
|
173
173
|
<view class="card-list-warp" :style="{backgroundImage: 'url('+ item['theme']['image'] +')'}">
|
|
174
|
-
<view class="card-list__title"><view>
|
|
174
|
+
<view class="card-list__title"><view>{{item['card_type_name']}}</view></view>
|
|
175
175
|
<view class="card-list__content">
|
|
176
176
|
<view>
|
|
177
177
|
<text>券号:</text>
|
|
@@ -260,7 +260,7 @@
|
|
|
260
260
|
</view>
|
|
261
261
|
</view>
|
|
262
262
|
</template>
|
|
263
|
-
|
|
263
|
+
|
|
264
264
|
<view
|
|
265
265
|
v-if="showDisabled==='Y'"
|
|
266
266
|
@click="handleToDisabled"
|
|
@@ -16,9 +16,7 @@
|
|
|
16
16
|
<view
|
|
17
17
|
class="jfb-base-poster__body"
|
|
18
18
|
v-if="noData"
|
|
19
|
-
:style="{
|
|
20
|
-
margin: margin
|
|
21
|
-
}
|
|
19
|
+
:style="{margin: margin}
|
|
22
20
|
">
|
|
23
21
|
<!--一分屏-->
|
|
24
22
|
<template v-if="posterType === '1'">
|
|
@@ -73,7 +71,6 @@
|
|
|
73
71
|
</template>
|
|
74
72
|
</xd-swiper>
|
|
75
73
|
</xd-swiper-dot>
|
|
76
|
-
|
|
77
74
|
<view v-if="isPreview" class="carousel-mask"></view>
|
|
78
75
|
</view>
|
|
79
76
|
</template>
|
|
@@ -84,9 +81,11 @@
|
|
|
84
81
|
:content="info"
|
|
85
82
|
></more-screen>
|
|
86
83
|
</view>
|
|
84
|
+
<!--解决图片缓冲预加载问题-->
|
|
87
85
|
<view v-for="(item,index) in info" :key="index" style="position: absolute; top: -19999px; left: -100000px">
|
|
88
|
-
|
|
89
|
-
|
|
86
|
+
<image :src="item.image_background_url" ></image>
|
|
87
|
+
</view>
|
|
88
|
+
<!--解决图片缓冲预加载问题-->
|
|
90
89
|
</view>
|
|
91
90
|
</template>
|
|
92
91
|
|
|
@@ -117,6 +116,7 @@
|
|
|
117
116
|
data() {
|
|
118
117
|
return {
|
|
119
118
|
selfMask: false,
|
|
119
|
+
pageShow:false,
|
|
120
120
|
params: {},
|
|
121
121
|
|
|
122
122
|
//Swiper 配置
|
|
@@ -315,10 +315,15 @@
|
|
|
315
315
|
return temp
|
|
316
316
|
},
|
|
317
317
|
handleAnimationfinish(e) {
|
|
318
|
+
//当前组件已被隐藏或者轮播图记录为0条处理
|
|
319
|
+
if(this.$root.$isShow === false || this.info.length === 0 ) {
|
|
320
|
+
this.$xdRoot.$emit("setLayoutPageBg", null);
|
|
321
|
+
return
|
|
322
|
+
}
|
|
318
323
|
this.currentImage = this.info[e.detail.current]['image_background_url']
|
|
319
|
-
if(this.isSupport==='Y' && this.rows===1 && this.isCarousel===2
|
|
324
|
+
if(this.isSupport==='Y' && this.rows===1 && this.isCarousel===2) {
|
|
320
325
|
let bg = null;
|
|
321
|
-
if(this.info[e.detail.current]['image_background_url']) bg = this.info[e.detail.current]['image_background_url'];
|
|
326
|
+
if(this.info[e.detail.current] && this.info[e.detail.current]['image_background_url']) bg = this.info[e.detail.current]['image_background_url'];
|
|
322
327
|
this.$xdRoot.$emit("setLayoutPageBg", bg);
|
|
323
328
|
}
|
|
324
329
|
this.current = e.detail.current;
|
|
@@ -383,6 +388,9 @@
|
|
|
383
388
|
},
|
|
384
389
|
handleOne(list){
|
|
385
390
|
this.info = this.handleImage(list);
|
|
391
|
+
|
|
392
|
+
//轮播图记录为0条处理
|
|
393
|
+
if( this.info.length === 0) return
|
|
386
394
|
let current = this.current || 0;
|
|
387
395
|
this.currentImage = this.info[current]['image_background_url']
|
|
388
396
|
if(this.isSupport==='Y' && this.rows===1 && this.isCarousel===2) {
|