jufubao-base 1.0.106 → 1.0.107

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.107",
4
4
  "private": false,
5
5
  "description": "聚福宝业务组件基础插件包",
6
6
  "main": "index.js",
@@ -507,7 +507,14 @@
507
507
  },
508
508
  })
509
509
  .then(res => {
510
- if(!this.isPreview) this.outOneHeight = this.height * Number(res.list.length) + (Number(this.padding) * (Number(this.useNumber) - 1));
510
+
511
+ //非预览模式或者预览模式返回广告列表
512
+ if(!this.isPreview ||
513
+ (this.isPreview && res.list.length > 0)
514
+ ){
515
+ this.outOneHeight = this.height * Number(res.list.length) + (Number(this.padding) * (Number(this.useNumber) - 1));
516
+ }
517
+
511
518
  if(res.list.length === 0 && this.isPreview) {
512
519
  res.list = this.getTestData();
513
520
  }