jufubao-base 1.0.77-beta11 → 1.0.77-beta14

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jufubao-base",
3
- "version": "1.0.77-beta11",
3
+ "version": "1.0.77-beta14",
4
4
  "private": false,
5
5
  "description": "聚福宝业务组件基础插件包",
6
6
  "main": "index.js",
@@ -321,19 +321,32 @@
321
321
  return temp
322
322
  },
323
323
  handleAnimationfinish(e) {
324
+ //不支持背景不处理
325
+ if(this.isSupport==='N') return;
326
+
324
327
  //当前组件已被隐藏或者轮播图记录为0条处理
325
- if(this.$root.$isShow === false || this.info.length === 0 ) {
328
+ if(this.$root.$isShow === false
329
+ || this.info.length === 0
330
+ || !(this.rows===1 && this.isCarousel===2) //可用模式
331
+ ) {
332
+ this.currentImage = null;
333
+ this.current = 0;
326
334
  this.$xdRoot.$emit("setLayoutPageBg", null);
335
+ console.warn(`handleAnimationfinish.disabel.poster`)
327
336
  return
328
337
  }
329
- this.currentImage = this.info[e.detail.current]['image_background_url']
338
+
339
+ //开启背景图模式并且为轮播图模式
330
340
  if(this.isSupport==='Y' && this.rows===1 && this.isCarousel===2) {
341
+ console.warn(`handleAnimationfinish.start.poster`)
342
+ this.currentImage = this.info[e.detail.current]['image_background_url']
331
343
  let bg = null;
332
- if(this.info[e.detail.current] && this.info[e.detail.current]['image_background_url']) bg = this.info[e.detail.current]['image_background_url'];
344
+ if(this.currentImage) bg = this.currentImage;
333
345
  this.$xdRoot.$emit("setLayoutPageBg", bg);
346
+ this.current = e.detail.current;
334
347
  }
335
- this.current = e.detail.current;
336
348
  },
349
+
337
350
  handleClick(item) {
338
351
  //内部链接跳转地址
339
352
  if (item.redirect_type === 'INN') {
@@ -470,6 +483,15 @@
470
483
  },
471
484
 
472
485
  onJfbShow(){
486
+ //不支持背景不处理
487
+ if(this.isSupport==='N') return;
488
+
489
+ //隐藏模式或者数据为0不处理
490
+ if(this.$root.$isShow === false || this.info.length === 0) {
491
+ this.$xdRoot.$emit("setLayoutPageBg", null);
492
+ return;
493
+ }
494
+
473
495
  if(this.isSupport==='Y' && this.rows===1 && this.isCarousel===2) {
474
496
  this.$xdRoot.$emit("setLayoutPageBg", this.currentImage);
475
497
  }