jufubao-base 1.0.77-beta11 → 1.0.77-beta15

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-beta15",
4
4
  "private": false,
5
5
  "description": "聚福宝业务组件基础插件包",
6
6
  "main": "index.js",
@@ -170,7 +170,7 @@
170
170
  >忘记密码</view
171
171
  >
172
172
  </view>
173
- <view class="bottom_btn" :style="prod_bottom" v-if="isPreview === 'Y'">
173
+ <view class="bottom_btn" :style="prod_bottom" v-if="isPreview === 'Y' || isDebugPreview">
174
174
  <view @click="dialogPreview = true" :style="{
175
175
  color: mainColor,
176
176
  border: `1px solid ${mainColor}`
@@ -280,6 +280,7 @@ export default {
280
280
  partnerName: "",
281
281
  logoTextColor: "",
282
282
  isPreview:'N', //是否启用体验码模式
283
+ isDebugPreview: false,
283
284
  };
284
285
  },
285
286
  computed: {
@@ -360,6 +361,7 @@ export default {
360
361
 
361
362
  onJfbLoad(options) {
362
363
  this.redirect_url = options.redirect_url ? Base64.decode(options.redirect_url): '';
364
+ this.isDebugPreview = options['x-test'] === 'jfb-tiyan';
363
365
  // #ifdef MP-WEIXIN
364
366
  this.authWxMpListProviders();
365
367
  // #endif
@@ -55,6 +55,7 @@
55
55
  }"
56
56
  >
57
57
  <xd-swiper-dot
58
+ v-if="pageSwiperShow"
58
59
  :current="current"
59
60
  :info="info"
60
61
  field="content_name"
@@ -121,7 +122,7 @@
121
122
  data() {
122
123
  return {
123
124
  selfMask: false,
124
- pageShow:false,
125
+ pageSwiperShow:false,
125
126
  params: {},
126
127
 
127
128
  //Swiper 配置
@@ -302,6 +303,7 @@
302
303
  created() {
303
304
  this.init(this.container);
304
305
  this.isPreview = this.$configProject.isPreview;
306
+ this.pageSwiperShow = this.$root.$isShow;
305
307
  },
306
308
 
307
309
  destroyed() {
@@ -321,19 +323,35 @@
321
323
  return temp
322
324
  },
323
325
  handleAnimationfinish(e) {
326
+
327
+
328
+ //不支持背景不处理
329
+ if(this.isSupport==='N') return;
330
+
331
+ console.warn(`handleAnimationfinish.start`)
332
+ this.pageSwiperShow = this.$root.$isShow;
333
+
324
334
  //当前组件已被隐藏或者轮播图记录为0条处理
325
- if(this.$root.$isShow === false || this.info.length === 0 ) {
335
+ if(this.$root.$isShow === false
336
+ || this.info.length === 0
337
+ || !(this.rows===1 && this.isCarousel===2) //可用模式
338
+ ) {
326
339
  this.$xdRoot.$emit("setLayoutPageBg", null);
340
+ console.warn(`handleAnimationfinish.disabel.poster`)
327
341
  return
328
342
  }
329
- this.currentImage = this.info[e.detail.current]['image_background_url']
343
+
344
+ //开启背景图模式并且为轮播图模式
330
345
  if(this.isSupport==='Y' && this.rows===1 && this.isCarousel===2) {
346
+ console.warn(`handleAnimationfinish.start.poster`)
347
+ this.currentImage = this.info[e.detail.current]['image_background_url']
331
348
  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'];
349
+ if(this.currentImage) bg = this.currentImage;
333
350
  this.$xdRoot.$emit("setLayoutPageBg", bg);
351
+ this.current = e.detail.current;
334
352
  }
335
- this.current = e.detail.current;
336
353
  },
354
+
337
355
  handleClick(item) {
338
356
  //内部链接跳转地址
339
357
  if (item.redirect_type === 'INN') {
@@ -470,6 +488,18 @@
470
488
  },
471
489
 
472
490
  onJfbShow(){
491
+ //不支持背景不处理
492
+ if(this.isSupport==='N') return;
493
+
494
+ //启动轮播图
495
+ this.pageSwiperShow = this.$root.$isShow;
496
+
497
+ //隐藏模式或者数据为0不处理
498
+ if(this.$root.$isShow === false || this.info.length === 0) {
499
+ this.$xdRoot.$emit("setLayoutPageBg", null);
500
+ return;
501
+ }
502
+
473
503
  if(this.isSupport==='Y' && this.rows===1 && this.isCarousel===2) {
474
504
  this.$xdRoot.$emit("setLayoutPageBg", this.currentImage);
475
505
  }