jufubao-base 1.0.159 → 1.0.160-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.
Files changed (85) hide show
  1. package/package.json +1 -1
  2. package/src/common/authorize.js +201 -70
  3. package/src/components/JfbBaseAddress/JfbBaseAddress.vue +7 -6
  4. package/src/components/JfbBaseAfterOrderDetail/JfbBaseAfterOrderDetail.vue +5 -3
  5. package/src/components/JfbBaseAfterOrderList/JfbBaseAfterOrderList.vue +3 -2
  6. package/src/components/JfbBaseBack/JfbBaseBack.vue +10 -8
  7. package/src/components/JfbBaseBackground/JfbBaseBackground.vue +3 -2
  8. package/src/components/JfbBaseBlock/JfbBaseBlock.vue +3 -2
  9. package/src/components/JfbBaseCard/JfbBaseCard.vue +10 -6
  10. package/src/components/JfbBaseCardBindV2/JfbBaseCardBindV2.vue +57 -26
  11. package/src/components/JfbBaseCardDetail/JfbBaseCardDetail.vue +14 -15
  12. package/src/components/JfbBaseCardDetailEntry/Attr.js +22 -0
  13. package/src/components/JfbBaseCardDetailEntry/JfbBaseCardDetailEntry.vue +393 -424
  14. package/src/components/JfbBaseCardDisabled/JfbBaseCardDisabled.vue +4 -4
  15. package/src/components/JfbBaseCardDisabledEntry/JfbBaseCardDisabledEntry.vue +7 -9
  16. package/src/components/JfbBaseCardEntry/Attr.js +22 -1
  17. package/src/components/JfbBaseCardEntry/JfbBaseCardEntry.vue +91 -36
  18. package/src/components/JfbBaseCardInfo/JfbBaseCardInfo.vue +38 -22
  19. package/src/components/JfbBaseCardInfoEntry/Attr.js +22 -0
  20. package/src/components/JfbBaseCardInfoEntry/JfbBaseCardInfoEntry.vue +285 -260
  21. package/src/components/JfbBaseCardMerge/JfbBaseCardMerge.vue +4 -3
  22. package/src/components/JfbBaseCardMergeEntry/JfbBaseCardMergeEntry.vue +23 -18
  23. package/src/components/JfbBaseCardShift/JfbBaseCardShift.vue +4 -11
  24. package/src/components/JfbBaseCardShiftEntry/JfbBaseCardShiftEntry.vue +16 -19
  25. package/src/components/JfbBaseCardSweepInfo/JfbBaseCardSweepInfo.vue +3 -2
  26. package/src/components/JfbBaseCardV2/JfbBaseCardV2.vue +34 -18
  27. package/src/components/JfbBaseCardV3/JfbBaseCardV3.vue +14 -14
  28. package/src/components/JfbBaseCity/JfbBaseCity.vue +3 -2
  29. package/src/components/JfbBaseClear/JfbBaseClear.vue +3 -2
  30. package/src/components/JfbBaseConList/JfbBaseConList.vue +4 -4
  31. package/src/components/JfbBaseConPhone/JfbBaseConPhone.vue +3 -2
  32. package/src/components/JfbBaseEntry/Attr.js +22 -0
  33. package/src/components/JfbBaseEntry/JfbBaseEntry.vue +84 -20
  34. package/src/components/JfbBaseExpressDetail/JfbBaseExpressDetail.vue +3 -4
  35. package/src/components/JfbBaseFastLink/JfbBaseFastLink.vue +33 -22
  36. package/src/components/JfbBaseFastLink/XdFastNav.vue +2 -2
  37. package/src/components/JfbBaseFooter/JfbBaseFooter.vue +0 -1
  38. package/src/components/JfbBaseHeader/JfbBaseHeader.vue +3 -2
  39. package/src/components/JfbBaseLogin/JfbBaseLogin.vue +28 -11
  40. package/src/components/JfbBaseLoginForgetPwd/JfbBaseLoginForgetPwd.vue +7 -9
  41. package/src/components/JfbBaseLoginSetPwd/JfbBaseLoginSetPwd.vue +9 -6
  42. package/src/components/JfbBaseMapOverlay/JfbBaseMapOverlay.vue +19 -5
  43. package/src/components/JfbBaseMapOverlay/XdMapOverlay.vue +52 -37
  44. package/src/components/JfbBaseMapSearch/JfbBaseMapSearch.vue +3 -2
  45. package/src/components/JfbBaseMergeUserCard/JfbBaseMergeUserCard.vue +28 -27
  46. package/src/components/JfbBaseMultipleExpress/JfbBaseMultipleExpress.vue +5 -5
  47. package/src/components/JfbBaseMy/JfbBaseMy.vue +3 -3
  48. package/src/components/JfbBaseMySetting/JfbBaseMySetting.vue +6 -4
  49. package/src/components/JfbBaseNotice/Attr.js +0 -2
  50. package/src/components/JfbBaseNotice/JfbBaseNotice.vue +36 -14
  51. package/src/components/JfbBaseNotice/XdNoticeBar.vue +17 -1
  52. package/src/components/JfbBaseNoticeBottom/JfbBaseNoticeBottom.vue +3 -2
  53. package/src/components/JfbBaseNoticeTop/JfbBaseNoticeTop.vue +3 -2
  54. package/src/components/JfbBaseOrderDetail/JfbBaseOrderDetail.vue +20 -31
  55. package/src/components/JfbBaseOrderList/JfbBaseOrderList.vue +9 -4
  56. package/src/components/JfbBasePay/JfbBasePay.vue +3 -2
  57. package/src/components/JfbBasePhoneCollect/JfbBasePhoneCollect.vue +22 -7
  58. package/src/components/JfbBasePhoneLogin/JfbBasePhoneLogin.vue +23 -7
  59. package/src/components/JfbBasePoster/JfbBasePoster.vue +118 -18
  60. package/src/components/JfbBasePoster/MoreScreen.vue +155 -37
  61. package/src/components/JfbBasePosterBigSmall/Attr.js +2 -5
  62. package/src/components/JfbBasePosterBigSmall/JfbBasePosterBigSmall.vue +191 -67
  63. package/src/components/JfbBasePosterEntry/JfbBasePosterEntry.vue +90 -20
  64. package/src/components/JfbBasePosterType/FourScreen.vue +162 -18
  65. package/src/components/JfbBasePosterType/JfbBasePosterType.vue +0 -35
  66. package/src/components/JfbBaseRecharge/JfbBaseRecharge.vue +4 -4
  67. package/src/components/JfbBaseRechargeOrder/JfbBaseRechargeOrder.vue +3 -4
  68. package/src/components/JfbBaseRechargeOrderDetail/JfbBaseRechargeOrderDetail.vue +4 -7
  69. package/src/components/JfbBaseRechargeSuccess/JfbBaseRechargeSuccess.vue +6 -9
  70. package/src/components/JfbBaseSearch/JfbBaseSearch.vue +3 -2
  71. package/src/components/JfbBaseSuccess/JfbBaseSuccess.vue +5 -4
  72. package/src/components/JfbBaseUserCenter/JfbBaseUserCenter.vue +3 -2
  73. package/src/components/JfbBaseUserInfo/JfbBaseUserInfo.vue +5 -3
  74. package/src/components/JfbBaseUserOrder/JfbBaseUserOrder.vue +4 -3
  75. package/src/components/JfbBaseVideo/JfbBaseVideo.vue +14 -11
  76. package/src/components/JfbBaseVideo/XdVideo.vue +0 -4
  77. package/src/components/JfbBaseWallet/JfbBaseWallet.vue +3 -2
  78. package/src/components/JfbBaseWalletDetail/JfbBaseWalletDetail.vue +5 -8
  79. package/src/components/JfbBaseWalletEffective/JfbBaseWalletEffective.vue +5 -8
  80. package/src/components/JfbBaseWalletIndex/JfbBaseWalletIndex.vue +7 -17
  81. package/src/components/JfbBaseWalletItem/JfbBaseWalletItem.vue +13 -21
  82. package/src/components/JfbBaseWebview/JfbBaseWebview.vue +4 -3
  83. package/src/components/JfbBaseWxAuthorize/JfbBaseWxAuthorize.vue +5 -4
  84. package/src/components/JfbBaseWxAuthorizeError/JfbBaseWxAuthorizeError.vue +3 -4
  85. package/src/mixins/colorCardMixins.js +1 -1
@@ -115,8 +115,9 @@ export default {
115
115
  };
116
116
  },
117
117
  watch: {
118
- container(value) {
119
- this.init(value);
118
+ container(value,oldValue) {
119
+ if(JSON.stringify(value) === JSON.stringify(oldValue)) return;
120
+ if (this.$configProject['isPreview']) this.init(value)
120
121
  },
121
122
  },
122
123
  created() {
@@ -160,13 +161,12 @@ export default {
160
161
  },
161
162
  handleUnBindCard(item) {
162
163
  this.$xdConfirm({
163
- $vm: this,
164
+ styles: this.styles,
164
165
  content: "您确定要解除绑定票券吗",
165
166
  title: "系统提示",
166
167
  width: "80%",
167
168
  isTitle: true,
168
169
  zIndex: 2000,
169
- vm: this,
170
170
  success: (res) => {
171
171
  if (res.confirm) {
172
172
  jfbRootExec("disabledCardUnbind", {
@@ -11,7 +11,7 @@
11
11
  v-if="isEditx && active"
12
12
  >
13
13
  <view class="jfb-base-card-disabled-entry__edit-icon" @click="delEdit"
14
- >删除</view
14
+ >删除</view
15
15
  >
16
16
  </view>
17
17
  <!-- #endif -->
@@ -178,12 +178,13 @@ export default {
178
178
  return this.fixedStyle({height: 0, zIndex: 111});
179
179
  },
180
180
  emptyBg() {
181
- return this.getNoData();
181
+ return this.getNoData();
182
182
  },
183
183
  },
184
184
  watch: {
185
- container(value) {
186
- this.init(value);
185
+ container(value,oldValue) {
186
+ if(JSON.stringify(value) === JSON.stringify(oldValue)) return;
187
+ if (this.$configProject['isPreview']) this.init(value)
187
188
  },
188
189
  },
189
190
  created() {
@@ -195,7 +196,6 @@ export default {
195
196
  this.getCardList();
196
197
  },
197
198
 
198
-
199
199
  getCardList() {
200
200
  this.$xdShowLoading({});
201
201
  jfbRootExec("getDisableCardListEntry", {vm: this, data: {is_all: "Y", is_show_entry_settings: 'Y'},})
@@ -226,13 +226,12 @@ export default {
226
226
 
227
227
  handleAllUnBindCard(){
228
228
  this.$xdConfirm({
229
- $vm: this,
229
+ styles: this.styles,
230
230
  content: "您确定要解除绑定所有票券吗?",
231
231
  title: "系统提示",
232
232
  width: "80%",
233
233
  isTitle: true,
234
234
  zIndex: 2000,
235
- vm: this,
236
235
  success: (res) => {
237
236
  if (res.confirm) {
238
237
  let cardIds = this.cardOrgList.map(item=>{
@@ -259,13 +258,12 @@ export default {
259
258
 
260
259
  handleUnBindCard(item) {
261
260
  this.$xdConfirm({
262
- $vm: this,
261
+ styles: this.styles,
263
262
  content: "您确定要解除绑定票券吗?",
264
263
  title: "系统提示",
265
264
  width: "80%",
266
265
  isTitle: true,
267
266
  zIndex: 2000,
268
- vm: this,
269
267
  success: (res) => {
270
268
  if (res.confirm) {
271
269
  jfbRootExec("disabledCardUnbindEntry", {
@@ -4,6 +4,28 @@ export default {
4
4
  style: [],
5
5
  advanced: [],
6
6
  content: [
7
+ {
8
+ label: '选择综合入口类型:',
9
+ ele: 'xd-site-select-list',
10
+ valueKey: 'entryGroupId',
11
+ value: 'default',
12
+ placeholder: '请选择综合入口类型',
13
+ multiple: false,
14
+ groupKey:'content',
15
+ className: 'input50',
16
+ rules: [
17
+ {required: true, message: '请选择综合入口类型', trigger: ['blur', 'change']}
18
+ ],
19
+ handleCustom({action, data}) {
20
+ XdBus.getParentApi('getEntryGroupOption')({key: Date.now()})
21
+ .then(res => {
22
+ data.cb(res.list)
23
+ })
24
+ .catch(error => {
25
+ console.error(error);
26
+ });
27
+ },
28
+ },
7
29
  {
8
30
  label: '提示内容:',
9
31
  ele: 'xd-site-news',
@@ -312,6 +334,5 @@ export default {
312
334
  },
313
335
  inline: false,
314
336
  },
315
-
316
337
  ],
317
338
  };
@@ -76,6 +76,7 @@
76
76
  :style="{ background: noticeBackgroundColor }"
77
77
  >
78
78
  <xd-notice-bar
79
+ style="width: 100%"
79
80
  :showIcon="true"
80
81
  :scrollable="true"
81
82
  :speed="20"
@@ -386,6 +387,8 @@ import { mapState, mapActions } from "vuex";
386
387
  import { getContainerPropsValue, isWechat,isQrCode } from "@/utils/xd.base";
387
388
  import XdNoticeBar from "@/components/XdNoticeBar/XdNoticeBar";
388
389
  import { Base64 } from "js-base64";
390
+ import getServiceUrl from "@/common/getServiceUrl";
391
+ import {parsePath} from "@/utils/linkUrl";
389
392
  const Color = require("color");
390
393
 
391
394
  export default {
@@ -413,8 +416,9 @@ export default {
413
416
  }
414
417
  },
415
418
  watch: {
416
- container(value) {
417
- this.init(value)
419
+ container(value,oldValue) {
420
+ if(JSON.stringify(value) === JSON.stringify(oldValue)) return;
421
+ if (this.$configProject['isPreview']) this.init(value)
418
422
  },
419
423
  tabIndex(){
420
424
  this.clearDefault();
@@ -433,6 +437,7 @@ export default {
433
437
  isPreview: false,
434
438
  noticeStatus: false,
435
439
  loadingCardList: true,
440
+ entryGroupId: '',//加载入口数据组别
436
441
 
437
442
  cutIndex: 1,
438
443
  tabIndex: 1,
@@ -465,9 +470,9 @@ export default {
465
470
  this.init(this.container);
466
471
  this.noticeBackgroundColor = Color(this.warningColor).alpha(0.2).toString();
467
472
  this.isPreview = this.$configProject.isPreview;
473
+ this.isQrCode = isQrCode(this);
468
474
 
469
475
  //#ifdef H5
470
- this.isQrCode = isQrCode(this);
471
476
  if (!this.$configProject.isPreview) {
472
477
  jfbRootExec("getH5WxAuthorize", {
473
478
  vm: this,
@@ -486,7 +491,6 @@ export default {
486
491
  methods: {
487
492
 
488
493
  init(container){
489
- //设置
490
494
  this.cardLayout = getContainerPropsValue(container,"content.cardLayout","1");
491
495
  this.changeUrl = getContainerPropsValue(container,"content.change_url",{value: ""}).value;
492
496
  this.disabledUrl = getContainerPropsValue(container,"content.disabled_url",{value: ""}).value;
@@ -496,6 +500,8 @@ export default {
496
500
  this.login_name = getContainerPropsValue(container, "content.login_name", "登录");
497
501
  this.isShowCode = getContainerPropsValue(container, "content.isShowCode", "Y");
498
502
  this.bindCard = getContainerPropsValue(container,"content.bindCard","1");
503
+ //'wechat_mini_program|default'
504
+ this.entryGroupId = getContainerPropsValue(container,"content.entryGroupId","default");
499
505
  },
500
506
 
501
507
  handleToLink(path) {
@@ -553,7 +559,7 @@ export default {
553
559
  uni.scanCode({
554
560
  scanType: ["qrCode"],
555
561
  success: (res) => {
556
- let path = this.getUrlCallback(`${this.confirmUrl}?qrcode=${encodeURIComponent(res.resultStr)}`)
562
+ let path = this.getUrlCallback(`${this.confirmUrl}?qrcode=${encodeURIComponent(res.result)}`)
557
563
  this.$xdUniHelper.navigateTo({
558
564
  url:path,
559
565
  });
@@ -577,6 +583,7 @@ export default {
577
583
  /**
578
584
  * @description 已绑定卡登录
579
585
  * @param item
586
+ * @param entry
580
587
  */
581
588
  handleBindLogin(item , entry) {
582
589
  //卡券登录
@@ -592,10 +599,12 @@ export default {
592
599
  })
593
600
  .then((res) => {
594
601
  this.$xdHideLoading();
602
+
595
603
  //#ifdef MP-WEIXIN
596
604
  if (this.jfbAuthorize !== null) {
597
605
  this.jfbAuthorize.setCardToken(res);
598
- this.handleToApp(entry);
606
+ this.handleClick(entry);
607
+ return
599
608
  }
600
609
  //#endif
601
610
  if (this.$configProject.isPreview) {
@@ -603,7 +612,7 @@ export default {
603
612
  }
604
613
 
605
614
  else {
606
- this.handleToApp(entry);
615
+ this.handleClick(entry);
607
616
  }
608
617
  })
609
618
  .catch((res) => {
@@ -618,43 +627,84 @@ export default {
618
627
  }, false);
619
628
  }
620
629
  },
621
- toApp(url){
622
- this.$xdUniHelper.redirectTo({
623
- url
624
- })
625
- },
626
- handleToApp(entry){
627
- let item, redirectUrl;
628
- try{
629
- item = JSON.parse(entry['redirect_data']);
630
- }catch (e) {
631
- return;
630
+
631
+
632
+ getCardPath(custom_redirect_data = {}){
633
+ //#ifdef H5
634
+ return null;
635
+ //#endif
636
+ //#ifdef MP-WEIXIN
637
+ const dir = custom_redirect_data.dir;
638
+ const actDir = this.projectAttr['deploy_dir'];
639
+ if(custom_redirect_data.appType === 'wxmp') {
640
+ if(dir === actDir) {
641
+ return {
642
+ cardPath: custom_redirect_data.path,
643
+ cardSelf: 'wxmp',
644
+ };
645
+ }
646
+ else return null;
632
647
  }
633
- const {dir, path, host} = item;
648
+ else if(custom_redirect_data.appType === 'h5'){
649
+ return {
650
+ cardPath: custom_redirect_data.site_url,
651
+ cardSelf: 'h5',
652
+ };
653
+ }
654
+ else return null;
655
+ //#endif
656
+ },
657
+
658
+ handleClick(entry){
659
+ const {dir, path, host, appType} = entry['redirect_data'];
660
+ let regHttp = /^(\/\/|http:\/\/|https:\/\/).+$/;
661
+ let regSp = /(-apiuri\/v)/;
662
+
663
+ if(!appType) entry.redirect_data.appType = 'h5';
634
664
  let nsp = Base64.encodeURI(JSON.stringify({business_code: entry['business_code']}));
635
665
 
636
666
  //外站配置地址
637
- if (entry.redirect_type === 'URL') {
638
- if (item['path'].indexOf('?') === -1) {
639
- redirectUrl = `${item['path']}?x-common=${nsp}&vs=${new Date().getTime()}`
640
- } else redirectUrl = `${item['path']}&x-common=${nsp}&vs=${new Date().getTime()}`;
641
- this.toApp(redirectUrl);
642
- return;
667
+ if(entry.redirect_type === 'URL') {
668
+ if(regHttp.test(entry.redirect_data['path']) || regSp.test(entry.redirect_data['path'])) {
669
+ this.$xdUniHelper.redirectTo({
670
+ url:`${entry.redirect_data['path']}?x-common=${nsp}&vs=${new Date().getTime()}${cardPathStr}`
671
+ }, false)
672
+ }
673
+ else {
674
+ console.error(`配置错误:${entry.redirect_data['path']}`);
675
+ throw new Error(`配置错误:${entry.redirect_data['path']}`)
676
+ }
677
+ return
643
678
  }
644
679
 
645
- //站内转换
646
- let jumpUrl = item.path;
647
- //#ifdef H5
648
- jumpUrl = `//${host}/${dir}${path}`;
649
- //#endif
650
-
651
- if (item['fixed_business_code'] === '') {
652
- redirectUrl = `${jumpUrl}?x-common=${nsp}&vs=${new Date().getTime()}`
680
+ //站内应用处理
681
+ let jumpUrl = path;
682
+ let cardPathStr = '';
683
+ const {deploy_dir} = this.projectAttr;
684
+ if(host === this.projectAttr.host && deploy_dir !== dir){
685
+ jumpUrl = `//${host}/${dir}${path}`;
686
+ //#ifdef MP-WEIXIN
687
+ jumpUrl = `https:${jumpUrl}`;
688
+ //#endif
653
689
  }
654
- else {
655
- redirectUrl = `${jumpUrl}?x-common=${nsp}&vs=${new Date().getTime()}`
690
+
691
+
692
+ //#ifdef MP-WEIXIN
693
+ //获取自定义卡券登录地址(微信小程序跳转到H5平台起作用)
694
+ if(entry.redirect_data.appType === 'h5') {
695
+ const custom_redirect_data = this.$xdUniHelper.checkVarType(entry['custom_redirect_data']) === 'object'?entry['custom_redirect_data']:{};
696
+ const cardPathObject = this.getCardPath(custom_redirect_data);
697
+ if(cardPathObject !== null) {
698
+ const {cardPath, cardSelf} =cardPathObject
699
+ if(cardPath) cardPathStr = `&card-login=${encodeURIComponent(cardPath)}&cardSelf=${cardSelf}`
700
+ }
656
701
  }
657
- this.toApp(redirectUrl);
702
+ //#endif
703
+
704
+ jumpUrl = `${jumpUrl}?x-common=${nsp}&vs=${new Date().getTime()}${cardPathStr}`;
705
+ console.warn(`entry.path:${jumpUrl}`);
706
+ if(regHttp.test(jumpUrl)) this.$xdUniHelper.redirectTo({url:jumpUrl}, false)
707
+ else this.$xdUniHelper.navigateTo({url:jumpUrl}, false)
658
708
  },
659
709
 
660
710
  toDetail(item, out=true) {
@@ -692,6 +742,7 @@ export default {
692
742
  if(options['jfb_business_code']) {
693
743
  params['card_business_code'] = options['jfb_business_code'];
694
744
  }
745
+ if(this.entryGroupId) params['group_id'] = this.entryGroupId;
695
746
  this.$xdShowLoading({});
696
747
  jfbRootExec("getListEntryCardBind", {
697
748
  vm: this,
@@ -713,6 +764,10 @@ export default {
713
764
  ),
714
765
  };
715
766
  });
767
+
768
+ //过滤入口配置
769
+ res['site_entry_settings'] = this.filterNotSupportEntry(res['site_entry_settings']);
770
+
716
771
  this.ajaxCardList = res;
717
772
  this.hasChangeStatus = this.getCardGroupItem(this.ajaxCardList.list.filter((item) => {
718
773
  return item["is_exchange"] === "Y";
@@ -31,21 +31,30 @@
31
31
  <view class="jfb-base-card-info__body-form">
32
32
  <view class="jfb-base-card-info__body-form-label">票券密码</view>
33
33
  <input
34
+ class="mp"
34
35
  max="18"
35
36
  :password="isPassword"
36
37
  v-model="card_password"
37
38
  :placeholder="card_pwd_placeholder"
38
39
  />
40
+ <!--#ifdef H5-->
39
41
  <xd-font-icon
40
- @click="isPassword = !isPassword"
42
+ @click="handleIcon()"
41
43
  :icon="isPassword ? 'iconbiyan' : 'iconchakan'"
42
44
  ></xd-font-icon>
45
+ <!--#endif-->
46
+ <!--#ifdef MP-WEIXIN-->
47
+ <xd-font-icon
48
+ :width="72"
49
+ :height="72"
50
+ @click="handleIcon()"
51
+ :icon="isPassword ? 'iconbiyan' : 'iconchakan'"
52
+ ></xd-font-icon>
53
+ <!--#endif-->
43
54
  </view>
44
55
  </view>
45
56
  <view class="jfb-base-card-info__body-footer" :style="prod_bottom">
46
- <xd-button type="primary" width="360rpx" @click="handleGetInfo"
47
- >确认</xd-button
48
- >
57
+ <xd-button type="primary" width="360rpx" @click="handleGetInfo">确认</xd-button>
49
58
  </view>
50
59
  </view>
51
60
 
@@ -62,9 +71,7 @@
62
71
  <view v-if="isShowBalance" class="jfb-base-card-info__body-residue">
63
72
  <view class="jfb-base-card-info__body-residue-wrap">
64
73
  <view class="jfb-base-card-info__body-residue-label">
65
- <view :style="{ color: '#242424', fontSize: '28rpx' }"
66
- >剩余元宝</view
67
- >
74
+ <view :style="{ color: '#242424', fontSize: '28rpx' }">剩余元宝</view>
68
75
  </view>
69
76
  <view class="jfb-base-card-info__body-residue-value">
70
77
  <xd-unit
@@ -78,15 +85,12 @@
78
85
  <view
79
86
  v-if="info.other_card_point && info.card_point_type !== 1"
80
87
  class="jfb-base-card-info__body-residue-reach"
81
- >购买其他物品可抵:{{ info.other_card_point }}</view
82
- >
88
+ >购买其他物品可抵:{{ info.other_card_point }}</view>
83
89
  </view>
84
90
  <view
85
91
  class="jfb-base-card-info__body-residue-business"
86
92
  v-if="info.card_point_type !== 1"
87
- >
88
- 所属业务线:{{ info.main_business_code_name }}
89
- </view>
93
+ >所属业务线:{{ info.main_business_code_name }}</view>
90
94
  </view>
91
95
  <view :style="{ height: '100rpx' }"></view>
92
96
  </view>
@@ -129,18 +133,10 @@ export default {
129
133
  label: "票券号码",
130
134
  key: "card_number",
131
135
  },
132
- // {
133
- // label: "票券类型",
134
- // key: "unit",
135
- // },
136
136
  {
137
137
  label: "票券状态",
138
138
  key: "card_status_name",
139
139
  },
140
- // {
141
- // label: "票券转换",
142
- // key: "is_exchange_name",
143
- // },
144
140
  {
145
141
  label: "有效期",
146
142
  key: "end_time",
@@ -177,7 +173,7 @@ export default {
177
173
  return true;
178
174
  },
179
175
  showValueKey(){
180
- if(this.info.is_expired === "Y"){
176
+ if(this.info && this.info.is_expired === "Y"){
181
177
  return this.valueKey.filter(item => item.key !== "end_time");
182
178
  }
183
179
  return this.valueKey;
@@ -185,6 +181,9 @@ export default {
185
181
  },
186
182
  created() {},
187
183
  methods: {
184
+ handleIcon(){
185
+ this.isPassword = !this.isPassword
186
+ },
188
187
  toShowCouponDialog(){
189
188
  if(this.info){
190
189
  jfbRootFnExec(this, 'onCustomEvent')("@showBaseConDialog", {user_card_number: this.info.card_number})
@@ -255,7 +254,7 @@ export default {
255
254
  //卡券已被自己绑定时的弹框
256
255
  handleBindConfirm(){
257
256
  this.$xdConfirm({
258
- $vm: this,
257
+ styles: this.styles,
259
258
  width: '90%',
260
259
  content: '您已绑定该票券,无需再次绑定',
261
260
  confirmText: '我的票券',
@@ -291,7 +290,15 @@ export default {
291
290
  },
292
291
  onJfbLoad(options) {
293
292
  this.init();
293
+
294
294
  this.qrcode = options.qrcode;
295
+
296
+ //#ifdef MP-WEIXIN
297
+ if(options.qrcode) {
298
+ this.qrcode = decodeURIComponent(options.qrcode);
299
+ }
300
+ //#endif
301
+
295
302
  if(options.inCallback) {
296
303
  this.inCallbackUrlOrg = options.inCallback;
297
304
  }
@@ -406,6 +413,15 @@ export default {
406
413
  color: #a6a6a6;
407
414
  margin-right: unit(70, rpx);
408
415
  text-align: center;
416
+
417
+
418
+ }
419
+
420
+ & .mp {
421
+ display: flex;
422
+ justify-content: center;
423
+ align-items: center;
424
+ height: 72rpx
409
425
  }
410
426
 
411
427
  input {
@@ -4,6 +4,28 @@ export default {
4
4
  style: [],
5
5
  advanced: [],
6
6
  content: [
7
+ {
8
+ label: '选择综合入口类型:',
9
+ ele: 'xd-site-select-list',
10
+ valueKey: 'entryGroupId',
11
+ value: 'default',
12
+ placeholder: '请选择综合入口类型',
13
+ multiple: false,
14
+ groupKey:'content',
15
+ className: 'input50',
16
+ rules: [
17
+ {required: true, message: '请选择综合入口类型', trigger: ['blur', 'change']}
18
+ ],
19
+ handleCustom({action, data}) {
20
+ XdBus.getParentApi('getEntryGroupOption')({key: Date.now()})
21
+ .then(res => {
22
+ data.cb(res.list)
23
+ })
24
+ .catch(error => {
25
+ console.error(error);
26
+ });
27
+ },
28
+ },
7
29
  {
8
30
  label: '票券绑定成功回跳地址:',
9
31
  ele: 'xd-select-pages-path',