jufubao-base 1.0.107 → 1.0.109-beta1

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.107",
3
+ "version": "1.0.109-beta1",
4
4
  "private": false,
5
5
  "description": "聚福宝业务组件基础插件包",
6
6
  "main": "index.js",
@@ -372,7 +372,7 @@ export default {
372
372
  notice: '在使用非通屏显示类型广告位之外的样式时,<span style="color: red">(显示索引+标题|显示索引)</span>使用"<span style="color: red">显示圆点</span>"',
373
373
  inline: false,
374
374
  },
375
- params.poster['type'] !== '1' && params['isCarousel'] === 2 && {
375
+ (params.poster && params.poster['type'] && params.poster['type'] !== '1') && params['isCarousel'] === 2 && {
376
376
  label: '广告位内容显示行数:',
377
377
  ele: 'xd-radio',
378
378
  valueKey: 'rows',
@@ -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
 
@@ -514,7 +513,10 @@
514
513
  ){
515
514
  this.outOneHeight = this.height * Number(res.list.length) + (Number(this.padding) * (Number(this.useNumber) - 1));
516
515
  }
517
-
516
+ //预览模式未返回广告列表
517
+ else {
518
+ this.outOneHeight = this.height * Number(this.useNumber) + (Number(this.padding) * (Number(this.useNumber) - 1));
519
+ }
518
520
  if(res.list.length === 0 && this.isPreview) {
519
521
  res.list = this.getTestData();
520
522
  }