jufubao-base 1.0.106 → 1.0.108

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.106",
3
+ "version": "1.0.108",
4
4
  "private": false,
5
5
  "description": "聚福宝业务组件基础插件包",
6
6
  "main": "index.js",
@@ -492,7 +492,6 @@
492
492
  if(this.poster.size) {
493
493
  this.width = this.poster.size.width;
494
494
  this.height = this.poster.size.height;
495
- if(this.isPreview) this.outOneHeight = this.height * Number(this.useNumber) + (Number(this.padding) * (Number(this.useNumber) - 1));
496
495
  }
497
496
  },
498
497
 
@@ -507,7 +506,17 @@
507
506
  },
508
507
  })
509
508
  .then(res => {
510
- if(!this.isPreview) this.outOneHeight = this.height * Number(res.list.length) + (Number(this.padding) * (Number(this.useNumber) - 1));
509
+
510
+ //非预览模式或者预览模式返回广告列表
511
+ if(!this.isPreview ||
512
+ (this.isPreview && res.list.length > 0)
513
+ ){
514
+ this.outOneHeight = this.height * Number(res.list.length) + (Number(this.padding) * (Number(this.useNumber) - 1));
515
+ }
516
+ //预览模式未返回广告列表
517
+ else {
518
+ this.outOneHeight = this.height * Number(this.useNumber) + (Number(this.padding) * (Number(this.useNumber) - 1));
519
+ }
511
520
  if(res.list.length === 0 && this.isPreview) {
512
521
  res.list = this.getTestData();
513
522
  }