jufubao-base 1.0.77-beta10 → 1.0.77-beta11
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
|
@@ -76,7 +76,6 @@
|
|
|
76
76
|
</template>
|
|
77
77
|
</xd-swiper>
|
|
78
78
|
</xd-swiper-dot>
|
|
79
|
-
|
|
80
79
|
<view v-if="isPreview" class="carousel-mask"></view>
|
|
81
80
|
</view>
|
|
82
81
|
</template>
|
|
@@ -87,9 +86,11 @@
|
|
|
87
86
|
:content="info"
|
|
88
87
|
></more-screen>
|
|
89
88
|
</view>
|
|
89
|
+
<!--解决图片缓冲预加载问题-->
|
|
90
90
|
<view v-for="(item,index) in info" :key="index" style="position: absolute; top: -19999px; left: -100000px">
|
|
91
|
-
|
|
92
|
-
|
|
91
|
+
<image :src="item.image_background_url" ></image>
|
|
92
|
+
</view>
|
|
93
|
+
<!--解决图片缓冲预加载问题-->
|
|
93
94
|
</view>
|
|
94
95
|
</template>
|
|
95
96
|
|
|
@@ -120,6 +121,7 @@
|
|
|
120
121
|
data() {
|
|
121
122
|
return {
|
|
122
123
|
selfMask: false,
|
|
124
|
+
pageShow:false,
|
|
123
125
|
params: {},
|
|
124
126
|
|
|
125
127
|
//Swiper 配置
|
|
@@ -319,10 +321,15 @@
|
|
|
319
321
|
return temp
|
|
320
322
|
},
|
|
321
323
|
handleAnimationfinish(e) {
|
|
324
|
+
//当前组件已被隐藏或者轮播图记录为0条处理
|
|
325
|
+
if(this.$root.$isShow === false || this.info.length === 0 ) {
|
|
326
|
+
this.$xdRoot.$emit("setLayoutPageBg", null);
|
|
327
|
+
return
|
|
328
|
+
}
|
|
322
329
|
this.currentImage = this.info[e.detail.current]['image_background_url']
|
|
323
|
-
if(this.isSupport==='Y' && this.rows===1 && this.isCarousel===2
|
|
330
|
+
if(this.isSupport==='Y' && this.rows===1 && this.isCarousel===2) {
|
|
324
331
|
let bg = null;
|
|
325
|
-
if(this.info[e.detail.current]['image_background_url']) bg = this.info[e.detail.current]['image_background_url'];
|
|
332
|
+
if(this.info[e.detail.current] && this.info[e.detail.current]['image_background_url']) bg = this.info[e.detail.current]['image_background_url'];
|
|
326
333
|
this.$xdRoot.$emit("setLayoutPageBg", bg);
|
|
327
334
|
}
|
|
328
335
|
this.current = e.detail.current;
|
|
@@ -387,6 +394,9 @@
|
|
|
387
394
|
},
|
|
388
395
|
handleOne(list){
|
|
389
396
|
this.info = this.handleImage(list);
|
|
397
|
+
|
|
398
|
+
//轮播图记录为0条处理
|
|
399
|
+
if( this.info.length === 0) return
|
|
390
400
|
let current = this.current || 0;
|
|
391
401
|
this.currentImage = this.info[current]['image_background_url']
|
|
392
402
|
if(this.isSupport==='Y' && this.rows===1 && this.isCarousel===2) {
|
|
@@ -217,7 +217,7 @@
|
|
|
217
217
|
this.address_url = getContainerPropsValue(container, 'content.address_url', {value: ''});
|
|
218
218
|
this.color = getContainerPropsValue(container, 'content.textColor', '#333');
|
|
219
219
|
this.backgroundColor = getContainerPropsValue(container, 'content.backgroundColor', 'rgba(0,0,0,0)');
|
|
220
|
-
this.textType =
|
|
220
|
+
this.textType = getContainerPropsValue(container, 'content.text_type', 'N');
|
|
221
221
|
|
|
222
222
|
this.is_shadow = getContainerPropsValue(container, 'content.is_shadow', 'N');
|
|
223
223
|
this.is_shadow_bg = getContainerPropsValue(container, 'content.is_shadow_bg', '#fff');
|