jufubao-base 1.0.159-beta9 → 1.0.159

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 (90) hide show
  1. package/package.json +1 -1
  2. package/src/common/authorize.js +70 -201
  3. package/src/components/JfbBaseAddress/JfbBaseAddress.vue +6 -7
  4. package/src/components/JfbBaseAfterOrderDetail/JfbBaseAfterOrderDetail.vue +3 -5
  5. package/src/components/JfbBaseAfterOrderList/JfbBaseAfterOrderList.vue +2 -3
  6. package/src/components/JfbBaseBack/JfbBaseBack.vue +8 -10
  7. package/src/components/JfbBaseBackground/JfbBaseBackground.vue +2 -3
  8. package/src/components/JfbBaseBlock/JfbBaseBlock.vue +2 -3
  9. package/src/components/JfbBaseCard/JfbBaseCard.vue +6 -10
  10. package/src/components/JfbBaseCardBindV2/JfbBaseCardBindV2.vue +26 -57
  11. package/src/components/JfbBaseCardDetail/JfbBaseCardDetail.vue +15 -14
  12. package/src/components/JfbBaseCardDetailEntry/Attr.js +0 -22
  13. package/src/components/JfbBaseCardDetailEntry/JfbBaseCardDetailEntry.vue +424 -393
  14. package/src/components/JfbBaseCardDisabled/JfbBaseCardDisabled.vue +4 -4
  15. package/src/components/JfbBaseCardDisabledEntry/JfbBaseCardDisabledEntry.vue +9 -7
  16. package/src/components/JfbBaseCardEntry/Attr.js +1 -22
  17. package/src/components/JfbBaseCardEntry/JfbBaseCardEntry.vue +34 -89
  18. package/src/components/JfbBaseCardInfo/JfbBaseCardInfo.vue +19 -36
  19. package/src/components/JfbBaseCardInfoEntry/JfbBaseCardInfoEntry.vue +4 -9
  20. package/src/components/JfbBaseCardMerge/JfbBaseCardMerge.vue +3 -4
  21. package/src/components/JfbBaseCardMergeEntry/JfbBaseCardMergeEntry.vue +18 -23
  22. package/src/components/JfbBaseCardShift/JfbBaseCardShift.vue +11 -4
  23. package/src/components/JfbBaseCardShiftEntry/JfbBaseCardShiftEntry.vue +19 -16
  24. package/src/components/JfbBaseCardSweepInfo/JfbBaseCardSweepInfo.vue +2 -3
  25. package/src/components/JfbBaseCardV2/JfbBaseCardV2.vue +18 -34
  26. package/src/components/JfbBaseCardV3/JfbBaseCardV3.vue +14 -14
  27. package/src/components/JfbBaseCity/JfbBaseCity.vue +2 -3
  28. package/src/components/JfbBaseClear/JfbBaseClear.vue +2 -3
  29. package/src/components/JfbBaseConDialog/Api.js +13 -1
  30. package/src/components/JfbBaseConDialog/JfbBaseConDialog.vue +79 -20
  31. package/src/components/JfbBaseConDialog/XdCouCardBind.vue +223 -133
  32. package/src/components/JfbBaseConList/Api.js +13 -1
  33. package/src/components/JfbBaseConList/Attr.js +11 -0
  34. package/src/components/JfbBaseConList/JfbBaseConList.vue +355 -123
  35. package/src/components/JfbBaseConList/Mock.js +1 -1
  36. package/src/components/JfbBaseConPhone/JfbBaseConPhone.vue +2 -3
  37. package/src/components/JfbBaseEntry/Attr.js +0 -22
  38. package/src/components/JfbBaseEntry/JfbBaseEntry.vue +16 -80
  39. package/src/components/JfbBaseExpressDetail/JfbBaseExpressDetail.vue +4 -3
  40. package/src/components/JfbBaseFastLink/JfbBaseFastLink.vue +20 -31
  41. package/src/components/JfbBaseFastLink/XdFastNav.vue +2 -2
  42. package/src/components/JfbBaseFooter/JfbBaseFooter.vue +1 -0
  43. package/src/components/JfbBaseHeader/JfbBaseHeader.vue +2 -3
  44. package/src/components/JfbBaseLogin/JfbBaseLogin.vue +11 -28
  45. package/src/components/JfbBaseLoginForgetPwd/JfbBaseLoginForgetPwd.vue +9 -7
  46. package/src/components/JfbBaseLoginSetPwd/JfbBaseLoginSetPwd.vue +6 -9
  47. package/src/components/JfbBaseMapOverlay/JfbBaseMapOverlay.vue +5 -19
  48. package/src/components/JfbBaseMapOverlay/XdMapOverlay.vue +37 -52
  49. package/src/components/JfbBaseMapSearch/JfbBaseMapSearch.vue +2 -3
  50. package/src/components/JfbBaseMergeUserCard/JfbBaseMergeUserCard.vue +27 -28
  51. package/src/components/JfbBaseMultipleExpress/JfbBaseMultipleExpress.vue +5 -5
  52. package/src/components/JfbBaseMy/JfbBaseMy.vue +3 -3
  53. package/src/components/JfbBaseMySetting/JfbBaseMySetting.vue +4 -6
  54. package/src/components/JfbBaseNotice/Attr.js +2 -0
  55. package/src/components/JfbBaseNotice/JfbBaseNotice.vue +14 -36
  56. package/src/components/JfbBaseNotice/XdNoticeBar.vue +1 -17
  57. package/src/components/JfbBaseNoticeBottom/JfbBaseNoticeBottom.vue +2 -3
  58. package/src/components/JfbBaseNoticeTop/JfbBaseNoticeTop.vue +2 -3
  59. package/src/components/JfbBaseOrderDetail/JfbBaseOrderDetail.vue +31 -20
  60. package/src/components/JfbBaseOrderList/JfbBaseOrderList.vue +4 -9
  61. package/src/components/JfbBasePay/JfbBasePay.vue +2 -3
  62. package/src/components/JfbBasePhoneCollect/JfbBasePhoneCollect.vue +7 -22
  63. package/src/components/JfbBasePhoneLogin/JfbBasePhoneLogin.vue +7 -23
  64. package/src/components/JfbBasePoster/JfbBasePoster.vue +18 -118
  65. package/src/components/JfbBasePoster/MoreScreen.vue +37 -155
  66. package/src/components/JfbBasePosterBigSmall/Attr.js +4 -1
  67. package/src/components/JfbBasePosterBigSmall/JfbBasePosterBigSmall.vue +67 -191
  68. package/src/components/JfbBasePosterEntry/JfbBasePosterEntry.vue +20 -90
  69. package/src/components/JfbBasePosterType/FourScreen.vue +18 -162
  70. package/src/components/JfbBasePosterType/JfbBasePosterType.vue +35 -0
  71. package/src/components/JfbBaseRecharge/JfbBaseRecharge.vue +4 -4
  72. package/src/components/JfbBaseRechargeOrder/JfbBaseRechargeOrder.vue +4 -3
  73. package/src/components/JfbBaseRechargeOrderDetail/JfbBaseRechargeOrderDetail.vue +7 -4
  74. package/src/components/JfbBaseRechargeSuccess/JfbBaseRechargeSuccess.vue +9 -6
  75. package/src/components/JfbBaseSearch/JfbBaseSearch.vue +2 -3
  76. package/src/components/JfbBaseSuccess/JfbBaseSuccess.vue +4 -5
  77. package/src/components/JfbBaseUserCenter/JfbBaseUserCenter.vue +2 -3
  78. package/src/components/JfbBaseUserInfo/JfbBaseUserInfo.vue +3 -5
  79. package/src/components/JfbBaseUserOrder/JfbBaseUserOrder.vue +3 -4
  80. package/src/components/JfbBaseVideo/JfbBaseVideo.vue +11 -14
  81. package/src/components/JfbBaseVideo/XdVideo.vue +4 -0
  82. package/src/components/JfbBaseWallet/JfbBaseWallet.vue +2 -3
  83. package/src/components/JfbBaseWalletDetail/JfbBaseWalletDetail.vue +8 -5
  84. package/src/components/JfbBaseWalletEffective/JfbBaseWalletEffective.vue +8 -5
  85. package/src/components/JfbBaseWalletIndex/JfbBaseWalletIndex.vue +17 -7
  86. package/src/components/JfbBaseWalletItem/JfbBaseWalletItem.vue +21 -13
  87. package/src/components/JfbBaseWebview/JfbBaseWebview.vue +3 -4
  88. package/src/components/JfbBaseWxAuthorize/JfbBaseWxAuthorize.vue +4 -5
  89. package/src/components/JfbBaseWxAuthorizeError/JfbBaseWxAuthorizeError.vue +4 -3
  90. package/src/mixins/colorCardMixins.js +1 -1
@@ -115,9 +115,8 @@ export default {
115
115
  };
116
116
  },
117
117
  watch: {
118
- container(value,oldValue) {
119
- if(JSON.stringify(value) === JSON.stringify(oldValue)) return;
120
- if (this.$configProject['isPreview']) this.init(value)
118
+ container(value) {
119
+ this.init(value);
121
120
  },
122
121
  },
123
122
  created() {
@@ -161,12 +160,13 @@ export default {
161
160
  },
162
161
  handleUnBindCard(item) {
163
162
  this.$xdConfirm({
164
- styles: this.styles,
163
+ $vm: this,
165
164
  content: "您确定要解除绑定票券吗",
166
165
  title: "系统提示",
167
166
  width: "80%",
168
167
  isTitle: true,
169
168
  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,13 +178,12 @@ 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,oldValue) {
186
- if(JSON.stringify(value) === JSON.stringify(oldValue)) return;
187
- if (this.$configProject['isPreview']) this.init(value)
185
+ container(value) {
186
+ this.init(value);
188
187
  },
189
188
  },
190
189
  created() {
@@ -196,6 +195,7 @@ export default {
196
195
  this.getCardList();
197
196
  },
198
197
 
198
+
199
199
  getCardList() {
200
200
  this.$xdShowLoading({});
201
201
  jfbRootExec("getDisableCardListEntry", {vm: this, data: {is_all: "Y", is_show_entry_settings: 'Y'},})
@@ -226,12 +226,13 @@ export default {
226
226
 
227
227
  handleAllUnBindCard(){
228
228
  this.$xdConfirm({
229
- styles: this.styles,
229
+ $vm: this,
230
230
  content: "您确定要解除绑定所有票券吗?",
231
231
  title: "系统提示",
232
232
  width: "80%",
233
233
  isTitle: true,
234
234
  zIndex: 2000,
235
+ vm: this,
235
236
  success: (res) => {
236
237
  if (res.confirm) {
237
238
  let cardIds = this.cardOrgList.map(item=>{
@@ -258,12 +259,13 @@ export default {
258
259
 
259
260
  handleUnBindCard(item) {
260
261
  this.$xdConfirm({
261
- styles: this.styles,
262
+ $vm: this,
262
263
  content: "您确定要解除绑定票券吗?",
263
264
  title: "系统提示",
264
265
  width: "80%",
265
266
  isTitle: true,
266
267
  zIndex: 2000,
268
+ vm: this,
267
269
  success: (res) => {
268
270
  if (res.confirm) {
269
271
  jfbRootExec("disabledCardUnbindEntry", {
@@ -4,28 +4,6 @@ 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
- },
29
7
  {
30
8
  label: '提示内容:',
31
9
  ele: 'xd-site-news',
@@ -334,5 +312,6 @@ export default {
334
312
  },
335
313
  inline: false,
336
314
  },
315
+
337
316
  ],
338
317
  };
@@ -76,7 +76,6 @@
76
76
  :style="{ background: noticeBackgroundColor }"
77
77
  >
78
78
  <xd-notice-bar
79
- style="width: 100%"
80
79
  :showIcon="true"
81
80
  :scrollable="true"
82
81
  :speed="20"
@@ -387,8 +386,6 @@ import { mapState, mapActions } from "vuex";
387
386
  import { getContainerPropsValue, isWechat,isQrCode } from "@/utils/xd.base";
388
387
  import XdNoticeBar from "@/components/XdNoticeBar/XdNoticeBar";
389
388
  import { Base64 } from "js-base64";
390
- import getServiceUrl from "@/common/getServiceUrl";
391
- import {parsePath} from "@/utils/linkUrl";
392
389
  const Color = require("color");
393
390
 
394
391
  export default {
@@ -416,9 +413,8 @@ export default {
416
413
  }
417
414
  },
418
415
  watch: {
419
- container(value,oldValue) {
420
- if(JSON.stringify(value) === JSON.stringify(oldValue)) return;
421
- if (this.$configProject['isPreview']) this.init(value)
416
+ container(value) {
417
+ this.init(value)
422
418
  },
423
419
  tabIndex(){
424
420
  this.clearDefault();
@@ -437,7 +433,6 @@ export default {
437
433
  isPreview: false,
438
434
  noticeStatus: false,
439
435
  loadingCardList: true,
440
- entryGroupId: '',//加载入口数据组别
441
436
 
442
437
  cutIndex: 1,
443
438
  tabIndex: 1,
@@ -491,6 +486,7 @@ export default {
491
486
  methods: {
492
487
 
493
488
  init(container){
489
+ //设置
494
490
  this.cardLayout = getContainerPropsValue(container,"content.cardLayout","1");
495
491
  this.changeUrl = getContainerPropsValue(container,"content.change_url",{value: ""}).value;
496
492
  this.disabledUrl = getContainerPropsValue(container,"content.disabled_url",{value: ""}).value;
@@ -500,8 +496,6 @@ export default {
500
496
  this.login_name = getContainerPropsValue(container, "content.login_name", "登录");
501
497
  this.isShowCode = getContainerPropsValue(container, "content.isShowCode", "Y");
502
498
  this.bindCard = getContainerPropsValue(container,"content.bindCard","1");
503
- //'wechat_mini_program|default'
504
- this.entryGroupId = getContainerPropsValue(container,"content.entryGroupId","default");
505
499
  },
506
500
 
507
501
  handleToLink(path) {
@@ -583,7 +577,6 @@ export default {
583
577
  /**
584
578
  * @description 已绑定卡登录
585
579
  * @param item
586
- * @param entry
587
580
  */
588
581
  handleBindLogin(item , entry) {
589
582
  //卡券登录
@@ -599,12 +592,10 @@ export default {
599
592
  })
600
593
  .then((res) => {
601
594
  this.$xdHideLoading();
602
-
603
595
  //#ifdef MP-WEIXIN
604
596
  if (this.jfbAuthorize !== null) {
605
597
  this.jfbAuthorize.setCardToken(res);
606
- this.handleClick(entry);
607
- return
598
+ this.handleToApp(entry);
608
599
  }
609
600
  //#endif
610
601
  if (this.$configProject.isPreview) {
@@ -612,7 +603,7 @@ export default {
612
603
  }
613
604
 
614
605
  else {
615
- this.handleClick(entry);
606
+ this.handleToApp(entry);
616
607
  }
617
608
  })
618
609
  .catch((res) => {
@@ -627,84 +618,43 @@ export default {
627
618
  }, false);
628
619
  }
629
620
  },
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;
647
- }
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
621
+ toApp(url){
622
+ this.$xdUniHelper.redirectTo({
623
+ url
624
+ })
656
625
  },
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';
626
+ handleToApp(entry){
627
+ let item, redirectUrl;
628
+ try{
629
+ item = JSON.parse(entry['redirect_data']);
630
+ }catch (e) {
631
+ return;
632
+ }
633
+ const {dir, path, host} = item;
664
634
  let nsp = Base64.encodeURI(JSON.stringify({business_code: entry['business_code']}));
665
635
 
666
636
  //外站配置地址
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
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;
678
643
  }
679
644
 
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
689
- }
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
- }
701
- }
645
+ //站内转换
646
+ let jumpUrl = item.path;
647
+ //#ifdef H5
648
+ jumpUrl = `//${host}/${dir}${path}`;
702
649
  //#endif
703
650
 
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)
651
+ if (item['fixed_business_code'] === '') {
652
+ redirectUrl = `${jumpUrl}?x-common=${nsp}&vs=${new Date().getTime()}`
653
+ }
654
+ else {
655
+ redirectUrl = `${jumpUrl}?x-common=${nsp}&vs=${new Date().getTime()}`
656
+ }
657
+ this.toApp(redirectUrl);
708
658
  },
709
659
 
710
660
  toDetail(item, out=true) {
@@ -742,7 +692,6 @@ export default {
742
692
  if(options['jfb_business_code']) {
743
693
  params['card_business_code'] = options['jfb_business_code'];
744
694
  }
745
- if(this.entryGroupId) params['group_id'] = this.entryGroupId;
746
695
  this.$xdShowLoading({});
747
696
  jfbRootExec("getListEntryCardBind", {
748
697
  vm: this,
@@ -764,10 +713,6 @@ export default {
764
713
  ),
765
714
  };
766
715
  });
767
-
768
- //过滤入口配置
769
- res['site_entry_settings'] = this.filterNotSupportEntry(res['site_entry_settings']);
770
-
771
716
  this.ajaxCardList = res;
772
717
  this.hasChangeStatus = this.getCardGroupItem(this.ajaxCardList.list.filter((item) => {
773
718
  return item["is_exchange"] === "Y";
@@ -36,24 +36,16 @@
36
36
  v-model="card_password"
37
37
  :placeholder="card_pwd_placeholder"
38
38
  />
39
- <!--#ifdef H5-->
40
39
  <xd-font-icon
41
- @click="handleIcon()"
40
+ @click="isPassword = !isPassword"
42
41
  :icon="isPassword ? 'iconbiyan' : 'iconchakan'"
43
42
  ></xd-font-icon>
44
- <!--#endif-->
45
- <!--#ifdef MP-WEIXIN-->
46
- <xd-font-icon
47
- :width="72"
48
- :height="72"
49
- @click="handleIcon()"
50
- :icon="isPassword ? 'iconbiyan' : 'iconchakan'"
51
- ></xd-font-icon>
52
- <!--#endif-->
53
43
  </view>
54
44
  </view>
55
45
  <view class="jfb-base-card-info__body-footer" :style="prod_bottom">
56
- <xd-button type="primary" width="360rpx" @click="handleGetInfo">确认</xd-button>
46
+ <xd-button type="primary" width="360rpx" @click="handleGetInfo"
47
+ >确认</xd-button
48
+ >
57
49
  </view>
58
50
  </view>
59
51
 
@@ -86,12 +78,15 @@
86
78
  <view
87
79
  v-if="info.other_card_point && info.card_point_type !== 1"
88
80
  class="jfb-base-card-info__body-residue-reach"
89
- >购买其他物品可抵:{{ info.other_card_point }}</view>
81
+ >购买其他物品可抵:{{ info.other_card_point }}</view
82
+ >
90
83
  </view>
91
84
  <view
92
85
  class="jfb-base-card-info__body-residue-business"
93
86
  v-if="info.card_point_type !== 1"
94
- >所属业务线:{{ info.main_business_code_name }}</view>
87
+ >
88
+ 所属业务线:{{ info.main_business_code_name }}
89
+ </view>
95
90
  </view>
96
91
  <view :style="{ height: '100rpx' }"></view>
97
92
  </view>
@@ -134,10 +129,18 @@ export default {
134
129
  label: "票券号码",
135
130
  key: "card_number",
136
131
  },
132
+ // {
133
+ // label: "票券类型",
134
+ // key: "unit",
135
+ // },
137
136
  {
138
137
  label: "票券状态",
139
138
  key: "card_status_name",
140
139
  },
140
+ // {
141
+ // label: "票券转换",
142
+ // key: "is_exchange_name",
143
+ // },
141
144
  {
142
145
  label: "有效期",
143
146
  key: "end_time",
@@ -174,7 +177,7 @@ export default {
174
177
  return true;
175
178
  },
176
179
  showValueKey(){
177
- if(this.info && this.info.is_expired === "Y"){
180
+ if(this.info.is_expired === "Y"){
178
181
  return this.valueKey.filter(item => item.key !== "end_time");
179
182
  }
180
183
  return this.valueKey;
@@ -182,9 +185,6 @@ export default {
182
185
  },
183
186
  created() {},
184
187
  methods: {
185
- handleIcon(){
186
- this.isPassword = !this.isPassword
187
- },
188
188
  toShowCouponDialog(){
189
189
  if(this.info){
190
190
  jfbRootFnExec(this, 'onCustomEvent')("@showBaseConDialog", {user_card_number: this.info.card_number})
@@ -227,7 +227,6 @@ export default {
227
227
  }
228
228
 
229
229
  let path = this.getUrlCallback(this.my_card_url || this.backUrl);
230
-
231
230
  //有优惠券处理
232
231
  if(this.hasCon){
233
232
  this.toShowCouponDialog();
@@ -256,7 +255,7 @@ export default {
256
255
  //卡券已被自己绑定时的弹框
257
256
  handleBindConfirm(){
258
257
  this.$xdConfirm({
259
- styles: this.styles,
258
+ $vm: this,
260
259
  width: '90%',
261
260
  content: '您已绑定该票券,无需再次绑定',
262
261
  confirmText: '我的票券',
@@ -293,12 +292,6 @@ export default {
293
292
  onJfbLoad(options) {
294
293
  this.init();
295
294
  this.qrcode = options.qrcode;
296
- //#ifdef MP-WEIXIN
297
- if(options.qrcode) {
298
- this.qrcode = decodeURIComponent(options.qrcode);
299
- }
300
-
301
- //#endif
302
295
  if(options.inCallback) {
303
296
  this.inCallbackUrlOrg = options.inCallback;
304
297
  }
@@ -413,16 +406,6 @@ export default {
413
406
  color: #a6a6a6;
414
407
  margin-right: unit(70, rpx);
415
408
  text-align: center;
416
-
417
-
418
- }
419
-
420
- & .mp {
421
- display: flex;
422
- justify-content: center;
423
- align-items: center;
424
- width: 72rpx;
425
- height: 72rpx
426
409
  }
427
410
 
428
411
  input {
@@ -168,9 +168,8 @@ export default {
168
168
  };
169
169
  },
170
170
  watch: {
171
- container(value,oldValue) {
172
- if(JSON.stringify(value) === JSON.stringify(oldValue)) return;
173
- if (this.$configProject['isPreview']) this.init(value)
171
+ container(value) {
172
+ this.init(value);
174
173
  },
175
174
  },
176
175
  computed: {
@@ -195,7 +194,7 @@ export default {
195
194
  handleToLink() {
196
195
  if(this.info.card_point===0) {
197
196
  this.$xdConfirm({
198
- styles: this.styles,
197
+ $vm: this,
199
198
  content: "票券余额为0,是否确认绑定?",
200
199
  width: "80%",
201
200
  success: (res) => {
@@ -239,7 +238,6 @@ export default {
239
238
  }
240
239
  },
241
240
  handlerAfterBindCard(res){
242
-
243
241
  if(res.pop_info && res.pop_info.pop_code === '1001'){
244
242
  this.handleBindConfirm();
245
243
  return;
@@ -270,7 +268,7 @@ export default {
270
268
  //卡券已被自己绑定时的弹框
271
269
  handleBindConfirm(){
272
270
  this.$xdConfirm({
273
- styles: this.styles,
271
+ $vm: this,
274
272
  width: '90%',
275
273
  content: '您已绑定该票券,无需再次绑定',
276
274
  confirmText: '我的票券',
@@ -309,9 +307,6 @@ export default {
309
307
  onJfbLoad(options) {
310
308
  this.init();
311
309
  this.qrcode = options.qrcode;
312
- //#ifdef MP-WEIXIN
313
- this.qrcode = decodeURIComponent(options.qrcode);
314
- //#endif
315
310
  if(options.inCallback) {
316
311
  this.inCallbackUrlOrg = options.inCallback;
317
312
  }
@@ -135,9 +135,8 @@ export default {
135
135
  }),
136
136
  },
137
137
  watch: {
138
- container(value,oldValue) {
139
- if(JSON.stringify(value) === JSON.stringify(oldValue)) return;
140
- if (this.$configProject['isPreview']) this.init(value)
138
+ container(value) {
139
+ this.init(value);
141
140
  },
142
141
  },
143
142
  created() {
@@ -204,7 +203,7 @@ export default {
204
203
  this.$xdConfirm({
205
204
  title: "是否确认合并卡",
206
205
  isHtml: true,
207
- styles: this.styles,
206
+ $vm: this,
208
207
  content: `转出卡号:${
209
208
  this.mergeForm.from_card_number
210
209
  }(剩余点数:${this.$xdUniHelper.divisionFloatNumber(
@@ -40,14 +40,13 @@
40
40
  </view>
41
41
  </view>
42
42
  <view class="merge-item" :style="{background: themeInStyle['color']}">
43
- <view class="merge-item-box" :style="{backgroundImage: `url(//img.jufubao.cn/component/card/mergbg.jpg)`}">
44
- <view class="merge-item-title" :style="{background: themeOutStyle['color']}">
43
+ <view class="merge-item-box" :style="{backgroundImage: `url(${themeInStyle})`}">
44
+ <view class="merge-item-title">
45
45
  <xd-font-icon icon="iconzhuanru"></xd-font-icon>
46
46
  <view>转入的票券</view>
47
47
  </view>
48
48
  <view>
49
49
  <xd-select
50
- v-if="toListLoading"
51
50
  :disabled="toList.length === 0"
52
51
  :key="randomKey"
53
52
  :height="66"
@@ -89,11 +88,10 @@
89
88
  <view class="bottom_btn-mask"></view>
90
89
  <view class="bottom_btn" :style="prod_bottom">
91
90
  <xd-button
92
- v-if="btnLoading"
93
91
  :key="disabledKey"
94
92
  :disabled="disabled"
95
93
  @click="handleToSubmit"
96
- style="width: 90%"
94
+ width="90%"
97
95
  :type="disabled ?'info': 'primary'"
98
96
  >合并</xd-button>
99
97
  </view>
@@ -139,11 +137,9 @@ export default {
139
137
  toList: [],
140
138
  fromSelect: null,
141
139
  toSelect: null,
142
- randomKey:'randomKey',
140
+ randomKey: Date.now(),
143
141
  valid_code:'',
144
142
  valid_token: 'valid_token',
145
- toListLoading: true,
146
- btnLoading: true,
147
143
 
148
144
 
149
145
  content: "",
@@ -182,17 +178,13 @@ export default {
182
178
  },
183
179
 
184
180
  disabled(){
185
- this.btnLoading = false;
186
- setTimeout(()=>{
187
- this.btnLoading = true;
188
- },10)
181
+ this.disabledKey = Date.now();
189
182
  return this.fromSelect === null || this.toSelect === null;
190
183
  },
191
184
  },
192
185
  watch: {
193
- container(value,oldValue) {
194
- if(JSON.stringify(value) === JSON.stringify(oldValue)) return;
195
- if (this.$configProject['isPreview']) this.init(value)
186
+ container(value) {
187
+ this.init(value);
196
188
  },
197
189
  },
198
190
  created() {
@@ -202,6 +194,7 @@ export default {
202
194
  this.switchValidToken();
203
195
  this.validImageAPIUrl = this.brandInfo["api_host"] + "/common/v1/valid_code/image/show";
204
196
  this.contentBackgroundColor = Color(this.warningColor).alpha(0.2).toString();
197
+
205
198
  },
206
199
  methods: {
207
200
  onJfbLoad(options) {
@@ -258,6 +251,14 @@ export default {
258
251
  },
259
252
 
260
253
  handleToSubmit() {
254
+ // if (!this.valid_code) {
255
+ // uni.showToast({
256
+ // title: "验证码不能为空!",
257
+ // icon: "none",
258
+ // });
259
+ // return;
260
+ // }
261
+
261
262
  let outPrice = this.$xdUniHelper.divisionFloatNumber(this.fromSelect.card_point, 100);
262
263
  let outHtml = `${this.fromSelect.value}(剩余:${outPrice})`;
263
264
  let inPrice = this.$xdUniHelper.divisionFloatNumber(this.toSelect.card_point, 100);
@@ -265,7 +266,7 @@ export default {
265
266
  this.$xdConfirm({
266
267
  title: "是否确认合并票券",
267
268
  isHtml: true,
268
- styles: this.styles,
269
+ $vm: this,
269
270
  content: `<div class="label-value"><div><span>转出票券:</span><span>${outHtml}</span></div><div><span>转入票券:</span><span>${inHtml}</span></div></div>`,
270
271
  success: (action) => {
271
272
  let params = {
@@ -294,8 +295,6 @@ export default {
294
295
  });
295
296
  },
296
297
  handleChangeFrom(select) {
297
- this.toListLoading = false;
298
- this.randomKey = null;
299
298
  this.fromSelect = select.item;
300
299
  jfbRootExec("toCardListEntry", {vm: this, data: {card_number: select.item.value,},})
301
300
  .then((res) => {
@@ -309,11 +308,7 @@ export default {
309
308
  name: item.card_type_name
310
309
  };
311
310
  });
312
- this.randomKey = this.$xdUniHelper.randomChar(20);
313
- setTimeout(()=>{
314
- this.toListLoading = true;
315
- },50)
316
-
311
+ this.randomKey = Date.now();
317
312
  })
318
313
  .catch((err) => {
319
314
  this.$xdLog.catch(err)