jufubao-base 1.0.311-beta101 → 1.0.311-beta3

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.
Files changed (27) hide show
  1. package/package.json +1 -1
  2. package/src/components/JfbBaseBlock/Attr.js +34 -167
  3. package/src/components/JfbBaseBlock/JfbBaseBlock.vue +9 -12
  4. package/src/components/JfbBaseCardDetail/Attr.js +12 -0
  5. package/src/components/JfbBaseCardDetail/JfbBaseCardDetail.vue +162 -1
  6. package/src/components/JfbBaseCardDetailEntry/Attr.js +12 -0
  7. package/src/components/JfbBaseCardDetailEntry/JfbBaseCardDetailEntry.vue +163 -2
  8. package/src/components/JfbBaseCardInfo/JfbBaseCardInfo.vue +2 -2
  9. package/src/components/JfbBaseCardInfoEntry/JfbBaseCardInfoEntry.vue +3 -3
  10. package/src/components/JfbBaseEntry/Attr.js +72 -5
  11. package/src/components/JfbBaseEntry/JfbBaseEntry.vue +47 -183
  12. package/src/components/JfbBaseImageBlock/Attr.js +23 -150
  13. package/src/components/JfbBaseImageBlock/JfbBaseImageBlock.vue +27 -29
  14. package/src/components/JfbBaseNotice/Attr.js +512 -5
  15. package/src/components/JfbBaseNotice/JfbBaseNotice.vue +181 -188
  16. package/src/components/JfbBaseVideo/Attr.js +297 -5
  17. package/src/components/JfbBaseVideo/JfbBaseVideo.vue +62 -36
  18. package/src/components/JfbBaseEntry/cusAttr/content.js +0 -77
  19. package/src/components/JfbBaseEntry/cusAttr/style.js +0 -288
  20. package/src/components/JfbBaseNotice/cusAttr/content.js +0 -308
  21. package/src/components/JfbBaseNotice/cusAttr/cssOne.js +0 -395
  22. package/src/components/JfbBaseNotice/cusAttr/cssThree.js +0 -101
  23. package/src/components/JfbBaseNotice/cusAttr/cssTwo.js +0 -208
  24. package/src/components/JfbBaseNotice/cusAttr/style.js +0 -31
  25. package/src/components/JfbBaseVideo/cusAttr/content.js +0 -236
  26. package/src/components/JfbBaseVideo/cusAttr/image.js +0 -213
  27. package/src/components/JfbBaseVideo/cusAttr/style.js +0 -172
@@ -13,18 +13,25 @@
13
13
  <view class="jfb-base-notice__edit-icon" @click="delEdit">删除</view>
14
14
  </view>
15
15
  <!-- #endif -->
16
- <view class="jfb-base-notice__body" :style="[noticeComp]">
16
+ <view class="jfb-base-notice__body">
17
17
  <view class="jfb-base-notice__body-line" v-if="contentList.length > 0"></view>
18
18
  <view>
19
19
  <template v-if="style === '3' && isPreview">
20
- <view class="jfb-base-notice__body-pop" :style="[noDataStyleComp]">弹窗模式方便编辑(占位),在线上此模块不显</view>
20
+ <view class="jfb-base-notice__body-pop" :style="{backgroundColor:backgroundColor, color:warningColor}">弹窗模式方便编辑(占位),在线上此模块不显</view>
21
21
  </template>
22
22
  <template v-if="style === '2'">
23
23
  <template v-if="contentList.length === 0 && isPreview">
24
- <view class="jfb-base-notice__body-pop" :style="[noDataStyleComp]">接口无数返回,请检查是否配置成功!</view>
24
+ <view class="jfb-base-notice__body-pop" :style="{backgroundColor:backgroundColor, color:warningColor}">接口无数返回,请检查是否配置成功!</view>
25
25
  </template>
26
26
  <view v-if="contentList.length > 0" class="jfb-base-notice__body-scroll">
27
- <view class="upAndDown" :style="[scrollStyleComp]">
27
+ <view
28
+ class="upAndDown"
29
+ :style="{
30
+ backgroundColor:backgroundColor,
31
+ color:warningColor,
32
+ margin:scrollMarginUi,
33
+ }"
34
+ >
28
35
  <view>
29
36
  <xd-font-icon icon="icontongzhi" :size="24"></xd-font-icon>
30
37
  </view>
@@ -64,35 +71,52 @@
64
71
  <xd-font-icon icon="iconxiangyou_xian" :size="24" @click="handleShow(true)"></xd-font-icon>
65
72
  </view>
66
73
  </view>
74
+
67
75
  </view>
68
76
  </template>
69
77
  <template v-if="style === '1'">
70
78
  <template v-if="!content && isPreview">
71
- <view class="jfb-base-notice__body-pop" :style="[noDataStyleComp]">接口无数返回,请检查是否配置成功!</view>
79
+ <view
80
+ class="jfb-base-notice__body-pop"
81
+ :style="{backgroundColor:backgroundColor, color:warningColor}"
82
+ >接口无数返回,请检查是否配置成功!</view>
72
83
  </template>
73
84
  <template v-else>
74
- <view :style="[oneBoxStyleComp]">
75
- <view class="jfb-base-notice__body-title" :style="[oneTitleStyleComp]" v-if="isTitle" >{{title}}</view>
76
- <view class="jfb-base-notice__body-content" :style="[oneContStyleComp]" v-if="content">
77
- <image
78
- v-if="show_tip_icon==='Y' && staticTipIcon"
79
- :src="staticTipIcon"
80
- :style="{height: '50rpx'}"
81
- style="width: auto; margin-right: 12rpx;"
82
- mode="heightFix"
85
+ <view :style="{margin:marginComp}">
86
+ <view
87
+ class="jfb-base-notice__body-title"
88
+ :style="{
89
+ fontSize: titleFontSize + 'rpx',
90
+ background: bgc,
91
+ color:textColor,
92
+ borderRadius: titleRadius,
93
+ padding: titlePaddingComp,
94
+ borderBottomColor: borderTitleColor,
95
+ textAlign: textAlign,
96
+ }"
97
+ v-if="isTitle"
98
+ >{{title}}</view>
99
+ <view
100
+ class="jfb-base-notice__body-content"
101
+ :style="{
102
+ background: bgc,
103
+ color:textColor,
104
+ borderRadius: contRadius,
105
+ padding: paddingComp,
106
+ lineHeight: '50rpx',
107
+ }"
108
+ v-if="content"
109
+ >
110
+ <image v-if="show_tip_icon==='Y' && staticTipIcon" :src="staticTipIcon"
111
+ :style="{height: tipIconHeight+'rpx'}"
112
+ style="width: auto;margin-right: 12rpx;" mode="heightFix"
83
113
  ></image>
84
- <view
85
- v-if="show_tip_icon==='Y'"
86
- class="jfb-base-notice__body-content_inner"
114
+ <view class="jfb-base-notice__body-content_inner"
115
+ :style="{
116
+ fontSize: fontSize + 'rpx',
117
+ }"
87
118
  v-html="contentComp"
88
119
  @click="handleShowStatic"
89
- :style="{ fontSize: oneContStyleComp.fontSize}"
90
- >
91
- </view>
92
- <view
93
- v-else
94
- v-html="contentComp"
95
- :style="{ fontSize: oneContStyleComp.fontSize}"
96
120
  >
97
121
  </view>
98
122
  </view>
@@ -100,12 +124,7 @@
100
124
  </template>
101
125
  </template>
102
126
  </view>
103
- <XdDailog
104
- :show.sync="showStaticDialog"
105
- :showTitle="false"
106
- :cancel="false"
107
- :confirm="false"
108
- >
127
+ <XdDailog :show.sync="showStaticDialog" :showTitle="false" :cancel="false" :confirm="false">
109
128
  <view style="padding-top: 60rpx;">
110
129
  <xd-content-xss
111
130
  :key="contentKey"
@@ -159,7 +178,7 @@
159
178
  import componentsMixins from "@/mixins/componentsMixins";
160
179
  import extsMixins from "@/mixins/extsMixins"
161
180
  import XdDownDrawer from "@/components/XdDownDrawer/XdDownDrawer.vue";
162
- import {gCPVal } from "@/utils/xd.base";
181
+ import { getContainerPropsValue } from "@/utils/xd.base";
163
182
  import getServiceUrl from "@/common/getServiceUrl";
164
183
  import storage from "@/common/storage";
165
184
  import Color from "color";
@@ -176,28 +195,20 @@
176
195
  mixins: [componentsMixins,extsMixins,JfbBaseNoticeMixin],
177
196
  data() {
178
197
  return {
179
- closeMask: true,
180
- isMp:false, //是否为小程序
181
- backgroundColor: '',//提示信息背景
182
- isPreview: false,
183
-
184
- //内容变量
185
- contentList: [], //滚动列表
186
- content : '', //内容
187
- contentKey: 'contentKey',
198
+ selfMask: true,
199
+ showUp: false,
200
+ isTitle: '', //是否显示标题
188
201
  title: '', //标题
189
-
190
- //基础内容
202
+ textAlign: 'left', //标题对其方式
203
+ noData: false,
191
204
  style: '1', //显示内容(静态/弹窗/滚动)
192
- notice:{},
193
- num: 1, //滚动记录数量(滚动时候可以设置多条,其他模式只显示一条)
194
205
 
195
- //style
196
- //静态显示
197
- isTitle: '', //是否显示标题
198
- textAlign: 'left', //标题对其方式
199
206
  bgc: '', //背景颜色
200
- borderTitleColor: '#fff',//标题下边线
207
+ textColor: '', //文字颜色
208
+ content : '', //内容
209
+ contentKey: 'contentKey',
210
+ borderTitleColor: '#fff',
211
+
201
212
  margin: {
202
213
  top: 0,
203
214
  left: 0,
@@ -217,31 +228,30 @@
217
228
  right: 20
218
229
  },
219
230
  radius: 0, //圆角
220
- contStyle:{},
221
- titleStyle:{},
222
- fontSize: 24,
223
-
224
- //icon
225
- show_tip_icon: "N",//是否展示icon
226
- staticTipIcon: "", //icon路径
227
- tipIconHeight: 50,//icon大小
228
-
231
+ fontSize: 20,
232
+ titleFontSize: 26,
233
+ time: 3, //小时
234
+ isPreview: false,
229
235
 
230
236
  //滚动
231
237
  speed: 30, //滚动速度
232
- scrollMargin:{},//滚动边距
233
- scrollRadius:'0',
234
- scrollShadow:'none',
235
- scrollShadowWidth:0,
236
- scrollBorder:0,
237
238
  speedKey: 'speedKey',
238
- timer: false, //调整速度重载
239
- showStaticDialog: false, //打开确认框
240
- showUp: false,//打开抽屉效果
239
+ num: 1, //滚动记录数量
240
+ timer: false,
241
+ contentList: [],
242
+ scrollMargin:{},
241
243
 
242
- //弹窗显示
243
- time: 3, //小时
244
- btnConfirmWidth: "auto",
244
+ backgroundColor: '',
245
+ is_hide_dailog:'N',
246
+ show_tip_icon: "",
247
+ staticTipIcon: "",
248
+ tipIconHeight: 50,
249
+
250
+ showStaticDialog: false,
251
+
252
+ isMp:false,
253
+
254
+ btnConfirmWidth: "",
245
255
  btnConfirmBgColor: "",
246
256
  btnConfirmTextColor: "",
247
257
  }
@@ -254,73 +264,62 @@
254
264
  this.onJfbLoad()
255
265
  }
256
266
  },
257
- },
258
- computed:{
259
- noDataStyleComp(){
260
- return {
261
- backgroundColor:this.backgroundColor,
262
- color:this.warningColor
267
+ num(){
268
+ if (this.$configProject['isPreview']) this.onJfbLoad()
269
+ },
270
+ style() {
271
+ if(this.$configProject['isPreview']) this.onJfbLoad()
272
+ },
273
+ speed(){
274
+ if(this.timer) {
275
+ clearTimeout(this.timer);
276
+ this.timer = null
263
277
  }
278
+ setTimeout(()=>{
279
+ this.speedKey = Date.now()
280
+ }, 400)
281
+
264
282
  },
283
+ is_hide_dailog(value){
284
+ if(value === 'N') {
285
+ storage.remove(this.containerId);
286
+ this.onJfbLoad();
287
+ }
288
+ },
289
+ },
290
+ computed:{
265
291
  contentComp(){
266
292
  if(this.show_tip_icon==='Y') return this.$xdUniHelper.filterHtml(this.content,'')
267
293
  return this.content
268
294
  },
269
- oneBoxStyleComp() {
270
- return {
271
- margin: this.getMarginAndPadding(this.margin, 0)
272
- }
295
+ marginComp() {
296
+ return this.getMarginAndPadding(this.margin, 0)
273
297
  },
274
- oneTitleStyleComp(){
275
- return {
276
- ...this.titleStyle,
277
- backgroundColor: this.bgc,
278
- borderRadius: `${this.radius}rpx ${this.radius}rpx 0rpx 0rpx`,
279
- padding: this.getMarginAndPadding(this.titlePadding, 0),
280
- borderBottomColor: this.borderTitleColor,
281
- textAlign: this.textAlign,
282
- }
298
+ paddingComp() {
299
+ return this.getMarginAndPadding(this.padding, 20)
283
300
  },
284
- oneContStyleComp(){
285
- return {
286
- ...this.contStyle,
287
- background: this.bgc,
288
- borderRadius: this.contRadius,
289
- padding: this.getMarginAndPadding(this.padding, 0),
290
- lineHeight: '50rpx',
291
- }
301
+
302
+ scrollMarginUi(){
303
+ return this.getMarginAndPadding(this.scrollMargin, 0)
304
+ },
305
+
306
+
307
+ titlePaddingComp() {
308
+ debugger
309
+ return this.getMarginAndPadding(this.titlePadding, 20)
292
310
  },
293
311
  contRadius(){
294
312
  if(this.isTitle) return `0rpx 0rpx ${this.radius}rpx ${this.radius}rpx`;
295
313
  else return `${this.radius}rpx`;
296
314
  },
315
+ titleRadius() {
316
+ return `${this.radius}rpx ${this.radius}rpx 0rpx 0rpx `
317
+ },
318
+
297
319
  getScrollType(){
298
320
  return this.num > 1
299
321
  },
300
- noticeComp(){
301
- let height = 100;
302
- if(this.style === '2') height = 70;
303
- return {
304
- minHeight: height + 'rpx',
305
- '--jufubao-min-height': height + 'rpx'
306
- }
307
- },
308
- scrollStyleComp(){
309
- let margin = {
310
- top: Math.max(this.scrollMargin.top,this.scrollShadowWidth),
311
- bottom: Math.max(this.scrollMargin.bottom,this.scrollShadowWidth),
312
- left: Math.max(this.scrollMargin.left,this.scrollShadowWidth),
313
- right: Math.max(this.scrollMargin.right,this.scrollShadowWidth),
314
- };
315
-
316
- return {
317
- ...this.noDataStyleComp,
318
- margin: this.getMarginAndPadding(margin, 0),
319
- borderRadius: this.scrollRadius + 'rpx',
320
- border: this.scrollBorder,
321
- boxShadow:this.scrollShadow
322
- }
323
- }
322
+
324
323
  },
325
324
  created() {
326
325
  this.backgroundColor = Color(this.warningColor).alpha(0.2).toString();
@@ -342,68 +341,51 @@
342
341
  */
343
342
  init(container) {
344
343
  let colorBg = Color(this.warningColor).alpha(0.1).array();
344
+ this.style = getContainerPropsValue(container, 'content.style', '1');
345
+ this.time = Number(getContainerPropsValue(container, 'content.time', 3));
346
+ this.textColor = getContainerPropsValue(container, 'content.textColor', this.warningColor);
347
+ this.textAlign = getContainerPropsValue(container, 'content.textAlign', 'left');
345
348
 
346
- //基础
347
- this.style = gCPVal(container, 'style', '1');
348
- this.notice = gCPVal(container, 'notice', {position:{},type:'notice'});
349
-
350
- //style
351
- //静态显示
352
- let textColor = gCPVal(container, 'textColor', this.warningColor);
353
- this.textAlign = gCPVal(container, 'textAlign', 'left');
354
- this.isTitle = gCPVal(container, 'isTitle', false);
355
- this.margin = gCPVal(container, 'margin', [0],{sKey: 'marginStatus', fields: ['margin'], isPMR: true});
356
- this.padding = gCPVal(container, 'padding', [16,20],{sKey: 'paddingStatus', fields: ['padding'], isPMR: true});
357
- this.radius = gCPVal(container, 'radius', [this.gStyleValue.radius,0],{sKey: 'radiusStatus', fields: ['radius']})||0;
358
-
359
- //背景与下边线边框
360
- this.bgc = gCPVal(container, 'bgc', `rgba(${colorBg.join(',')})`,{sKey:'bgcStatus',fields:['bgc']});
349
+ this.bgc = getContainerPropsValue(container, 'content.bgc', `rgba(${colorBg.join(',')})`);
361
350
  if(Color(this.bgc).isDark()) this.borderTitleColor = Color(this.bgc).lighten(0.9).toString();
362
351
  else if(Color(this.bgc).isLight()) this.borderTitleColor = Color(this.bgc).darken(0.05).toString();
363
- this.titlePadding = gCPVal(container, 'titlePadding', [16,20],{sKey: 'titlePaddingStatus', fields: ['titlePadding'], isPMR: true});
364
352
 
365
- //icon
366
- this.show_tip_icon = gCPVal(container, 'show_tip_icon', 'N');
367
- let staticTipIcon = gCPVal(container, 'staticTipIcon', '');
368
- this.staticTipIcon = staticTipIcon ? getServiceUrl(staticTipIcon.url) : '';
369
353
 
370
354
 
371
- //文字样式
372
- let fontSize = Number(gCPVal(container, 'fontSize', '20'));
373
- let defContStyle = {color:textColor,fontSize:'24rpx',fontWeight:'normal'}, defOldContStyle={color:textColor,fontSize:`${fontSize}rpx`,fontWeight:'normal'};
374
- let defTitleStyle = {color:textColor,fontSize:'28rpx',fontWeight:'normal'}, defOldTitleStyle = {color:textColor,fontSize:`${fontSize + 4}rpx`,fontWeight:'normal'};
375
- this.contStyle = gCPVal(container, 'contStyle', [defContStyle,defOldContStyle],{sKey: 'contStyleStatus', fields: ['contStyle'],isMerge: true});
376
- this.titleStyle = gCPVal(container, 'titleStyle', [defTitleStyle,defOldTitleStyle],{sKey: 'titleStyleStatus', fields: ['titleStyle'],isMerge: true});
355
+ this.margin = getContainerPropsValue(container, 'content.margin', {top: 0, left: 0, bottom: 0, right: 0});
356
+ this.padding = getContainerPropsValue(container, 'content.padding', {top: 20, left: 20, bottom: 20, right: 20});
357
+ this.titlePadding = getContainerPropsValue(container, 'content.titlePadding', {top: 20, left: 20, bottom: 20, right: 20});
358
+ this.scrollMargin = getContainerPropsValue(container, 'content.scrollMargin', {top: 0, left: 0, bottom: 0, right: 0});
359
+ debugger
360
+ this.radius = getContainerPropsValue(container, 'content.radius', 0);
361
+ this.fontSize = Number(getContainerPropsValue(container, 'content.fontSize', '20'));
362
+ this.titleFontSize = this.fontSize * 1.2;
363
+ this.btnConfirmWidth = getContainerPropsValue(container, 'content.btnConfirmWidth', '');
364
+ this.btnConfirmBgColor = getContainerPropsValue(container, 'content.btnConfirmBgColor', '');
365
+ this.btnConfirmTextColor = getContainerPropsValue(container, 'content.btnConfirmTextColor', '');
366
+ this.show_tip_icon = getContainerPropsValue(container, 'content.show_tip_icon', '');
367
+ let staticTipIcon = getContainerPropsValue(container, 'content.staticTipIcon', '');
368
+ this.staticTipIcon = staticTipIcon ? getServiceUrl(staticTipIcon.url) : '';
369
+ this.tipIconHeight = getContainerPropsValue(container, 'content.tipIconHeight', 50);
377
370
 
378
- //滚动显示
379
- this.scrollMargin = gCPVal(container, 'scrollMargin', 0,{sKey: 'scrollMarginStatus', fields: ['scrollMargin'], isPMR: true});
380
- this.scrollRadius = gCPVal(container, 'scrollRadius', [this.gStyleValue.radius,0],{sKey: 'scrollRadiusStatus', fields: ['scrollRadius']})||0;
381
- this.scrollShadow = gCPVal(container, 'scrollShadow', [this.gStyleValue.shadow, {color:'',width:'0',}],{isShadow: true});
382
- this.scrollShadowWidth = gCPVal(container, 'scrollShadow', [this.gStyleValue.shadow, {color:'',width:'0',}],{isShadow: true,isBsWidth: true});
383
- this.scrollBorder = gCPVal(container, 'scrollBorder', [{color: '#fff',width: 0,style: 'solid'}],{isBorder: true});
384
371
 
372
+ if (this.fontSize === 20) this.titleFontSize = 28;
373
+ if (this.fontSize === 26) this.titleFontSize = 36;
374
+ if (this.fontSize === 36) this.titleFontSize = 44;
375
+ this.isTitle = getContainerPropsValue(container, 'content.isTitle', false);
385
376
 
386
377
  if(this.style === '2') {
387
- this.num = gCPVal(container, 'num', 1, {sKey:'numStatus',fields:['num']});
388
- const speed = Number(gCPVal(container, 'speed', 30, {sKey: 'speedStatus', fields:['speed']}));
378
+ this.num = getContainerPropsValue(container, 'content.num', 1);
389
379
  //#ifdef H5
390
- this.speed = speed;
380
+ this.speed = Number(getContainerPropsValue(container, 'content.speed', 30));
391
381
  //#endif
392
382
  //#ifdef MP-WEIXIN
393
- this.speed = speed/2.5;
383
+ this.speed = Number(getContainerPropsValue(container, 'content.speed', 30))/2.5;
394
384
  //#endif
395
385
  }
396
386
  else this.num = 1;
397
-
398
- //弹窗显示
399
- const defBtnFields= ['btnConfirmWidth','btnConfirmBgColor','btnConfirmTextColor']
400
- this.time = Number(gCPVal(container, 'time', '3',{sKey:'timeStatus',fields:['time']}));
401
- this.btnConfirmWidth = gCPVal(container, 'btnConfirmWidth', 'auto',{sKey:'btnStatus',fields:defBtnFields});
402
- this.btnConfirmBgColor = gCPVal(container, 'btnConfirmBgColor', '',{sKey:'btnStatus',fields:defBtnFields});
403
- this.btnConfirmTextColor = gCPVal(container, 'btnConfirmTextColor', '',{sKey:'btnStatus',fields:defBtnFields});
404
-
387
+ this.is_hide_dailog = getContainerPropsValue(container, 'content.is_hide_dailog', 'N');
405
388
  },
406
-
407
389
  handleShowStatic(){
408
390
  if(this.show_tip_icon === 'Y') {
409
391
  this.$xdConfirm({
@@ -422,7 +404,7 @@
422
404
  storage.set(this.containerId, 1, this.time);
423
405
  this.$xdConfirm({
424
406
  styles: this.styles,
425
- title: this.title,
407
+ title: this.title || this.ajaxTitle,
426
408
  content: this.content,
427
409
  isHtml: true,
428
410
  zIndex: 2000,
@@ -434,13 +416,14 @@
434
416
  },
435
417
 
436
418
  getContent(){
437
-
438
- let params = {
439
- page_id: this.pageAttr['page_id'], //页面ID
440
- container_id: this.containerId, //组件ID
441
- page_size:['2'].includes(this.style)? this.num : 1 //可以不传
442
- }
443
- jfbRootExec('getListNewsContent', { vm: this,data: params})
419
+ jfbRootExec('getListNewsContent', {
420
+ vm: this,
421
+ data: {
422
+ page_id: this.pageAttr['page_id'], //页面ID
423
+ container_id: this.containerId, //组件ID
424
+ page_size: (this.type==='1' && this.type==='2') ? 1: this.num //可以不传
425
+ },
426
+ })
444
427
  .then(res => {
445
428
  //弹窗显示
446
429
  if (this.style === '3') {
@@ -451,12 +434,12 @@
451
434
  }
452
435
  }
453
436
 
454
- //滚动模式
455
437
  else if(this.style === '2') {
456
438
  if(res.list.length > 0) {
457
439
  this.contentList = res.list;
458
440
  this.speedKey = Date.now()
459
441
  }
442
+
460
443
  }
461
444
 
462
445
  //静态显示
@@ -466,25 +449,37 @@
466
449
  this.contentKey = Date.now();
467
450
  this.title = res.list[0].title;
468
451
  }
452
+ this.noData = res.list.length > 0;
469
453
  }
470
454
 
471
455
  })
472
456
  .catch(error => {
473
- console.error(error);
474
- this.contentList = [];
475
- this.title = ''
457
+ console.error(error)
476
458
  })
477
459
  },
478
460
 
479
461
  onJfbLoad() {
480
- this.title = '';
481
- this.content = '';
482
- this.contentList = [];
483
- this.showUp = false;
484
- this.showStaticDialog = false;
485
- storage.remove(this.containerId);
462
+ if(this.timer){
463
+ clearTimeout(this.timer);
464
+ this.timer = null
465
+ }
466
+
467
+ this.timer = setTimeout(()=>{
468
+ //弹窗模式
469
+ if(this.style === '3') {
470
+ if(this.isPreview) {
471
+ if(this.is_hide_dailog === 'N') this.getContent();
472
+ }
473
+ else {
474
+ if(!storage.get(this.containerId)) this.getContent()
475
+ }
476
+ }
486
477
 
487
- this.getContent();
478
+ //非弹窗模式
479
+ else {
480
+ this.getContent()
481
+ }
482
+ }, 500)
488
483
  },
489
484
 
490
485
  onJfbUpdate(data) {
@@ -502,7 +497,7 @@
502
497
 
503
498
  .jfb-base-notice {
504
499
  position: relative;
505
- min-height: var(--jufubao-min-height)!important;
500
+ z-index: 100;
506
501
 
507
502
  &__body{
508
503
  .content-list {
@@ -581,7 +576,6 @@
581
576
 
582
577
  .upAndDown-swiper-all {
583
578
  padding: unit(40, rpx) unit(30, rpx) unit(40, rpx);
584
- height: calc(1000rpx - 80rpx);
585
579
 
586
580
  &-list{
587
581
  padding-bottom: unit(40, rpx);
@@ -604,14 +598,13 @@
604
598
 
605
599
  & > view:first-child {
606
600
  padding-bottom: unit(30, rpx);
607
- height: calc(100% - 120rpx);
601
+ max-height: 50vh;
608
602
  overflow-y: auto;
609
603
  margin: unit(40, rpx) unit(10, rpx) unit(20, rpx);
610
604
  }
611
605
 
612
606
  }
613
607
  }
614
-
615
608
  .isMp {
616
609
  width: 100%;
617
610
  }