jufubao-base 1.0.237 → 1.0.238-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.237",
3
+ "version": "1.0.238-beta1",
4
4
  "private": false,
5
5
  "description": "聚福宝业务组件基础插件包",
6
6
  "main": "index.js",
@@ -16,6 +16,28 @@ export default {
16
16
  {label: "布局2", value: "2"},
17
17
  ]
18
18
  },
19
+ {
20
+ label: '选择综合入口类型:',
21
+ ele: 'xd-site-select-list',
22
+ valueKey: 'entryGroupId',
23
+ value: data.entryGroupId || 'default',
24
+ placeholder: '请选择综合入口类型',
25
+ multiple: false,
26
+ groupKey:'content',
27
+ className: 'input50',
28
+ rules: [
29
+ {required: true, message: '请选择综合入口类型', trigger: ['blur', 'change']}
30
+ ],
31
+ handleCustom({action, data}) {
32
+ XdBus.getParentApi('getEntryGroupOption')({key: Date.now()})
33
+ .then(res => {
34
+ data.cb(res.list)
35
+ })
36
+ .catch(error => {
37
+ console.error(error);
38
+ });
39
+ },
40
+ },
19
41
  {
20
42
  label: '提示内容:',
21
43
  ele: 'xd-site-news',
@@ -123,7 +123,7 @@
123
123
  >可转换票券</view>
124
124
  <view class="debuger" v-if="cardList.length === 0" @click="openDebugger(true)" style="opacity: 0">debuger</view>
125
125
  </view>
126
-
126
+
127
127
  </view>
128
128
  <view
129
129
  class="jfb-base-card__body-tips"
@@ -375,6 +375,9 @@ export default {
375
375
  changeList: [], //可转化卡列表
376
376
  disableList: [], //不可用卡列表
377
377
  inCallback: null, //内部跳转地址
378
+ businessList:{
379
+
380
+ },
378
381
  loadingCardList: true,
379
382
  showIndex: false,
380
383
 
@@ -409,7 +412,8 @@ export default {
409
412
  popup: "https://img.zcool.cn/community/01784158abe781a801219c77e981ee.jpg?x-oss-process=image/auto-orient,1/resize,m_lfit,w_1280,limit_1/sharpen,100",
410
413
  buy_name: '',
411
414
  isShowBuy: 'N',
412
- buy_new_url: ''
415
+ buy_new_url: '',
416
+ entryGroupId:'default'
413
417
  };
414
418
  },
415
419
  created() {
@@ -449,6 +453,7 @@ export default {
449
453
  this.detailUrl = getContainerPropsValue(container,"content.detail_url",{value: ""}).value;
450
454
  this.confirmUrl = getContainerPropsValue(container,"content.confirm_url",{value: ""}).value;
451
455
  this.allEntryPath = getContainerPropsValue(container,"content.allEntryPath",{value: ""}).value;
456
+ this.entryGroupId = getContainerPropsValue(container,"content.entryGroupId","default");
452
457
 
453
458
  //登录样式
454
459
  this.login_name = getContainerPropsValue(container, "content.login_name", "登录");
@@ -467,7 +472,7 @@ export default {
467
472
  this.look_text_radius = getContainerPropsValue(container, 'content.look_text_radius', '20');
468
473
 
469
474
  this.isShowBuy = getContainerPropsValue(container, "content.isShowBuy", "N");
470
- this.buy_name = getContainerPropsValue(container, "content.buy_name", "购买新卡");
475
+ this.buy_name = getContainerPropsValue(container, "content.buy_name", "购买新卡");
471
476
  this.buy_new_url = getContainerPropsValue(container,"content.buy_new_url",{value: ""}).value;
472
477
  this.show_coupon_tab = getContainerPropsValue(container, "content.show_coupon_tab", "N");
473
478
  },
@@ -640,13 +645,14 @@ export default {
640
645
  },
641
646
 
642
647
  getCardList(options) {
643
- let params = {is_all: 'Y'};
648
+ let params = {is_all: 'Y',is_show_entry_settings: 'Y'};
644
649
  if(options['jfb_business_code']) {
645
650
  params['card_business_code'] = options['jfb_business_code'];
646
651
  }
647
652
  if(this.show_coupon_tab === 'Y'){
648
653
  params.show_type = this.show_type;
649
654
  }
655
+ if(this.entryGroupId && this.show_type === 'normal') params['group_id'] = this.entryGroupId;
650
656
  this.$xdShowLoading({});
651
657
  jfbRootExec("getListCardBind", {
652
658
  vm: this,
@@ -785,7 +785,6 @@ export default {
785
785
  }
786
786
  },
787
787
 
788
-
789
788
  getCardPath(custom_redirect_data = {}){
790
789
  //#ifdef H5
791
790
  return null;