jufubao-base 1.0.179 → 1.0.181-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 (37) hide show
  1. package/package.json +1 -1
  2. package/src/components/JfbBaseCardDelay/Api.js +19 -30
  3. package/src/components/JfbBaseCardDelay/Attr.js +237 -35
  4. package/src/components/JfbBaseCardDelay/JfbBaseCardDelay.vue +278 -78
  5. package/src/components/JfbBaseCardDetailEntry/Attr.js +12 -0
  6. package/src/components/JfbBaseCardDetailEntry/JfbBaseCardDetailEntry.vue +14 -0
  7. package/src/components/JfbBaseCardDetailEntry/Mock.js +1 -1
  8. package/src/components/JfbBaseCardDisabled/JfbBaseCardDisabled.vue +2 -2
  9. package/src/components/JfbBaseCardDisabledEntry/JfbBaseCardDisabledEntry.vue +8 -8
  10. package/src/components/JfbBaseCardEntry/Attr.js +121 -0
  11. package/src/components/JfbBaseCardEntry/JfbBaseCardEntry.vue +205 -29
  12. package/src/components/JfbBaseCardGive/Api.js +18 -34
  13. package/src/components/JfbBaseCardGive/Attr.js +29 -36
  14. package/src/components/JfbBaseCardGive/JfbBaseCardGive.vue +466 -80
  15. package/src/components/JfbBaseCardGive/Mock.js +2 -9
  16. package/src/components/JfbBaseCardReceive/Api.js +10 -36
  17. package/src/components/JfbBaseCardReceive/Attr.js +9 -39
  18. package/src/components/JfbBaseCardReceive/JfbBaseCardReceive.vue +401 -80
  19. package/src/components/JfbBaseCardReceive/Mock.js +1 -7
  20. package/src/components/JfbBaseCardReceiveCover/Api.js +5 -43
  21. package/src/components/JfbBaseCardReceiveCover/Attr.js +57 -32
  22. package/src/components/JfbBaseCardReceiveCover/JfbBaseCardReceiveCover.vue +147 -82
  23. package/src/components/JfbBaseCardReceiveCover/Mock.js +1 -9
  24. package/src/components/JfbBaseFastLink/JfbBaseFastLink.vue +1 -1
  25. package/src/components/JfbBaseOrderDetail/JfbBaseOrderDetail.vue +81 -2
  26. package/src/components/JfbBaseOrderDetail/Mock.js +5 -0
  27. package/src/components/JfbBasePay/Attr.js +12 -0
  28. package/src/components/JfbBasePay/JfbBasePay.vue +4 -4
  29. package/src/components/JfbBasePosterType/JfbBasePosterType.vue +0 -1
  30. package/src/components/JfbBaseRechargeOrder/Api.js +11 -0
  31. package/src/components/JfbBaseRechargeOrder/JfbBaseRechargeOrder.vue +46 -27
  32. package/src/components/JfbBaseRechargeOrderDetail/Api.js +11 -0
  33. package/src/components/JfbBaseRechargeOrderDetail/JfbBaseRechargeOrderDetail.vue +142 -13
  34. package/src/components/JfbBaseRechargeSuccess/Api.js +11 -0
  35. package/src/components/JfbBaseRechargeSuccess/Attr.js +1 -1
  36. package/src/components/JfbBaseRechargeSuccess/JfbBaseRechargeSuccess.vue +6 -3
  37. package/src/components/JfbBaseTfkCardLogin/JfbBaseTfkCardLogin.vue +2 -2
@@ -322,6 +322,18 @@ export default {
322
322
  },
323
323
  inline: false,
324
324
  },
325
+ {
326
+ label: '转赠中票券详情地址:',
327
+ ele: 'xd-select-pages-path',
328
+ valueKey: 'give_url',
329
+ groupKey:'advanced',
330
+ placeholder: '请选择转赠中票券详情地址',
331
+ value: null,
332
+ setting: {
333
+ router: XdBus.getParentApi('getPagesTree'),
334
+ },
335
+ inline: false,
336
+ },
325
337
  {
326
338
  label: '票券密码绑定地址:',
327
339
  ele: 'xd-select-pages-path',
@@ -346,5 +358,114 @@ export default {
346
358
  },
347
359
  inline: false,
348
360
  },
361
+ {
362
+ ele: "title",
363
+ label: "我的优惠券样式配置",
364
+ size: "small",
365
+ groupKey: "style",
366
+ },
367
+ {
368
+ label: "是否切换到优惠券",
369
+ ele: "xd-radio",
370
+ valueKey: "isShowCoupon",
371
+ groupKey:'style',
372
+ value:"N",
373
+ list: [
374
+ {label: "是", value: "Y"},
375
+ {label: "否", value: "N"},
376
+ ]
377
+ },
378
+ {
379
+ label: "优惠券左侧背景色设置:",
380
+ ele: "xd-gradient-color",
381
+ valueKey: "couponLeftBgColor",
382
+ value: 'linear-gradient(180deg, #FFA852 0%, #FF5733 100%)',
383
+ groupKey:'style',
384
+ },
385
+ {
386
+ label: "圆角设置",
387
+ ele: 'xd-site-select-list',
388
+ valueKey: 'couponRadius',
389
+ value: 16,
390
+ groupKey:'style',
391
+ placeholder: '请选择内容圆角设置',
392
+ multiple: false,
393
+ className: 'input80',
394
+ handleCustom({ action, data }) {
395
+ XdBus.getParentApi('getOptionsSettingList')({ setting_id: 'edtix_style_radius' })
396
+ .then(res => {
397
+ data.cb(res.list)
398
+ })
399
+ .catch(error => {
400
+ console.error(error);
401
+ });
402
+ },
403
+ },
404
+ {
405
+ label: "优惠券标题背景颜色设置:",
406
+ ele: "xd-color",
407
+ valueKey: "couponTitleBgColor",
408
+ value: null,
409
+ groupKey:'style',
410
+ setting: {
411
+ showAlpha: true,
412
+ isAlpha: true
413
+ },
414
+ },
415
+ {
416
+ label: "去使用按钮文字背景色设置: ",
417
+ ele: "xd-text-and-bgc",
418
+ groupKey:'style',
419
+ valueKey: "couponBtnTextStyle",
420
+ value: null,
421
+ setting: {
422
+ fontSize: true, //字体大小选择
423
+ color: true, //文字颜色选项
424
+ bgColor: true, //背景选项
425
+ weight: true, //文字粗细
426
+ },
427
+ handleCustom({action, data}) {
428
+ XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_font_size'})
429
+ .then(res => {
430
+ data.cb(res.list)
431
+ })
432
+ .catch(error => {
433
+ console.error(error);
434
+ data.cb([])
435
+ });
436
+ },
437
+ },
438
+ {
439
+ label: "按钮内边距设置:",
440
+ groupKey:'style',
441
+ ele: 'xd-margin-padding',
442
+ valueKey: 'couponUseBtnPadding',
443
+ value: null,
444
+ setting: {
445
+ type: 'padding',
446
+ },
447
+ placeholder: '请设置边距',
448
+ inline: false,
449
+ notice: '设置内边距,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">20</span>像素',
450
+ },
451
+ {
452
+ label: "按钮圆角设置",
453
+ ele: 'xd-site-select-list',
454
+ valueKey: 'couponBtnRadius',
455
+ value: 16,
456
+ groupKey:'style',
457
+ placeholder: '请选择内容圆角设置',
458
+ multiple: false,
459
+ className: 'input80',
460
+ handleCustom({ action, data }) {
461
+ XdBus.getParentApi('getOptionsSettingList')({ setting_id: 'edtix_style_radius' })
462
+ .then(res => {
463
+ data.cb(res.list)
464
+ })
465
+ .catch(error => {
466
+ console.error(error);
467
+ });
468
+ },
469
+ },
349
470
  ],
350
471
  };
@@ -110,18 +110,31 @@
110
110
  }"
111
111
  >已绑定票券</view>
112
112
  <view
113
- v-if="hasChangeStatus"
114
113
  @click="tabIndex = 2"
115
114
  :style="{
116
115
  color: tabIndex === 2 ? '#fff' : '#B8B7BE',
117
116
  background: tabIndex === 2 ? mainColor : '#fff',
118
117
  }"
119
- >可转换票券</view>
118
+ >优惠券</view>
119
+ </view>
120
+ <view class="jfb-base-card-entry__body-sub-tab" v-if="tabIndex === 1">
121
+ <view :style="{
122
+ color: subTabIndex === 1 ? mainColor : '#fff',
123
+ background: subTabIndex === 1 ? noticeBackgroundColor : '#DDDDDD',
124
+ }" @click="subTabIndex=1" class="jfb-base-card-entry__body-sub-tab-item">可用票券</view>
125
+ <view :style="{
126
+ color: subTabIndex === 2 ? mainColor : '#fff',
127
+ background: subTabIndex === 2 ? noticeBackgroundColor : '#DDDDDD',
128
+ }" @click="subTabIndex=2" class="jfb-base-card-entry__body-sub-tab-item">可转票券</view>
129
+ <view :style="{
130
+ color: subTabIndex === 3 ? mainColor : '#fff',
131
+ background: subTabIndex === 3 ? noticeBackgroundColor : '#DDDDDD',
132
+ }" @click="subTabIndex=3" class="jfb-base-card-entry__body-sub-tab-item">赠送中</view>
120
133
  </view>
121
134
  <view
122
135
  class="jfb-base-card-entry__body-tips"
123
136
  :style="{ color: warningColor }"
124
- v-if="tabIndex === 2"
137
+ v-if="subTabIndex === 2&&tabIndex === 1"
125
138
  >* 目前仅支持电影票兑换券进行转换</view>
126
139
  <view class="card-content">
127
140
  <view v-if="loadingCardList" class="jfb-base-card-entry__body-card skeleton-card">
@@ -154,7 +167,7 @@
154
167
 
155
168
  <template v-else>
156
169
  <view
157
- v-if="tabIndex === 2 || tabIndex === 1 && (cardList && cardList.length > 0)"
170
+ v-if="tabIndex === 1 && (cardList && cardList.length > 0)"
158
171
  class="jfb-base-card-entry__body-card"
159
172
  >
160
173
  <view
@@ -169,7 +182,7 @@
169
182
  :style="{
170
183
  background: item['theme']['color'],
171
184
  backgroundSize: '100%',
172
- height: item.height + 'px'
185
+ height: subTabIndex !== 3 ? item.height + 'px' : '300rpx'
173
186
  }"
174
187
  >
175
188
  <view class="card-list-warp" :style="{backgroundImage: 'url('+ item['theme']['image'] +')'}">
@@ -184,7 +197,7 @@
184
197
  <text>券号:</text>
185
198
  <text>{{item.card_number}}{{showIndex?(':' + index):''}}</text>
186
199
  </view>
187
- <view @click.stop="toDetail(item)" v-if="isShowCode === 'Y'">
200
+ <view @click.stop="toDetail(item)" v-if="subTabIndex !== 3&&isShowCode === 'Y'&&!force">
188
201
  <view>
189
202
  <xd-font-icon icon="iconerweima" width="56" height="56" size="50" color="#fff"></xd-font-icon>
190
203
  </view>
@@ -202,15 +215,25 @@
202
215
  <view class="card-list__other" v-if="item.other_card_point && item.card_point_type === 2">
203
216
  <view><text>购买其他物品可抵:</text><text>{{item.other_card_point}} {{ item.unit }}</text></view>
204
217
  </view>
205
- <template v-if="tabIndex === 1">
206
- <view class="card-list__entry" v-if="item.entries.length === 1">
218
+ <template v-if="subTabIndex === 1">
219
+ <view class="card-list__entry" v-if="item.is_login==='N'&&force">
220
+ <view
221
+ @click.stop="handleBindLogin(item,item['entries'][0])"
222
+ :style="{
223
+ background: '#fff',
224
+ color: item['theme']['color']}"
225
+ >
226
+ 登录
227
+ </view>
228
+ </view>
229
+ <view class="card-list__entry" v-if="item.entries.length === 1&&!force">
207
230
  <view
208
231
  @click.stop="handleBindLogin(item,item['entries'][0])"
209
232
  :style="{color: item['theme']['color']}"
210
233
  >进入{{item['entries'][0]['entry_name']}}</view>
211
234
  </view>
212
- <view class="card-list__nodata" v-if="item.entries.length === 0">暂无支持服务列表</view>
213
- <view class="card-list__entrys" v-if="item.entries.length > 1" @click.stop>
235
+ <view class="card-list__nodata" v-if="item.entries.length === 0&&!force">暂无支持服务列表</view>
236
+ <view class="card-list__entrys" v-if="item.entries.length > 1&&!force" @click.stop>
214
237
  <view class="card-list__entrys-title">
215
238
  <view>可兑换权益</view>
216
239
  <view @click.stop="toDetail(item, false)">
@@ -238,7 +261,7 @@
238
261
  </view>
239
262
  </view>
240
263
  </template>
241
- <view class="card-list__entry" v-else>
264
+ <view class="card-list__entry" v-else-if="subTabIndex===2">
242
265
  <view
243
266
  @click.stop="handleBindLogin(item,item['entries'][0])"
244
267
  :style="{color: item['theme']['color']}"
@@ -258,6 +281,26 @@
258
281
  }"
259
282
  ></view>
260
283
  </view>
284
+ <view v-if="tabIndex===2&&(couponList&&couponList.length)">
285
+ <view v-if="couponList.length" class="coupon_list">
286
+ <xd-coupon-item v-for="(item, i) in couponList" :key="i"
287
+ style="margin-bottom:20rpx"
288
+ :couponRadius="couponRadius"
289
+ :couponImageUrl="couponImageUrl"
290
+ :couponTitleBgColor="couponTitleBgColor"
291
+ :couponUseBtnPadding="couponUseBtnPadding"
292
+ :couponBtnRadius="couponBtnRadius"
293
+ :couponBtnTextStyle="couponBtnTextStyle"
294
+ :couponLeftBgColor="couponLeftBgColor"
295
+ :item="item"
296
+ @useCoupon="handleBindLogin(item,item['entries'][0])"
297
+ @toDetail="toDetail(item)"
298
+ ></xd-coupon-item>
299
+ </view>
300
+ <view v-else>
301
+ 暂无数据
302
+ </view>
303
+ </view>
261
304
  <view v-else-if="cardList !== null && cardList.length === 0">
262
305
  <view class="jfb-base-card-entry__body-empty">
263
306
  <view class="jfb-base-card-entry__body-empty-wrap">
@@ -292,7 +335,6 @@
292
335
  ></xd-font-icon>
293
336
  </view>
294
337
  </view>
295
-
296
338
  <view class="computed-height" >
297
339
  <view
298
340
  v-for="(item,index) in cardComputedList"
@@ -329,7 +371,7 @@
329
371
  <view class="card-list__other" v-if="item.other_card_point && item.card_point_type === 2">
330
372
  <view><text>购买其他物品可抵:</text><text>{{item.other_card_point}} {{ item.unit }}</text></view>
331
373
  </view>
332
- <template v-if="tabIndex === 1">
374
+ <template v-if="subTabIndex === 1">
333
375
  <view class="card-list__entry" v-if="item.entries.length === 1">
334
376
  <view
335
377
  @click.stop="handleBindLogin(item,item['entries'][0])"
@@ -345,7 +387,7 @@
345
387
  <xd-font-icon icon="iconxiangyou_xian" color="#999" size="20"></xd-font-icon>
346
388
  </view>
347
389
  </view>
348
- <view class="card-list__entrys-list">
390
+ <view v-if="!force" class="card-list__entrys-list">
349
391
  <scroll-view scroll-x class="card-list__entrys-scroll">
350
392
  <view class="card-list__entrys-item">
351
393
  <view
@@ -392,6 +434,7 @@ import { mapState, mapActions } from "vuex";
392
434
  import { getContainerPropsValue, isWechat,isQrCode } from "@/utils/xd.base";
393
435
  import XdNoticeBar from "@/components/XdNoticeBar/XdNoticeBar";
394
436
  import { Base64 } from "js-base64";
437
+ import XdCouponItem from "@/components/XdCouponItem/XdCouponItem";
395
438
  import getServiceUrl from "@/common/getServiceUrl";
396
439
  import {parsePath} from "@/utils/linkUrl";
397
440
  const Color = require("color");
@@ -402,7 +445,8 @@ export default {
402
445
  XdFontIcon,
403
446
  XdButton,
404
447
  XdNoticeBar,
405
- XdCardV2
448
+ XdCardV2,
449
+ XdCouponItem
406
450
  },
407
451
  mixins: [componentsMixins, extsMixins, JfbBaseCardEntryMixin, colorCardMixins, cardListMixins],
408
452
  computed: {
@@ -429,6 +473,11 @@ export default {
429
473
  this.clearDefault();
430
474
  this.cardPageNum = 0;
431
475
  this.onJfbLoad(this.options);
476
+ },
477
+ subTabIndex() {
478
+ this.clearDefault();
479
+ this.cardPageNum = 0;
480
+ this.onJfbLoad(this.options);
432
481
  }
433
482
  },
434
483
  data() {
@@ -469,6 +518,43 @@ export default {
469
518
  //活动
470
519
  dialogEvent: false,
471
520
  popup: "https://img.zcool.cn/community/01784158abe781a801219c77e981ee.jpg?x-oss-process=image/auto-orient,1/resize,m_lfit,w_1280,limit_1/sharpen,100",
521
+ subTabIndex: 1,
522
+ force: false, //是否强制卡登录
523
+ give_url: '',
524
+ couponList: [],
525
+ isShowCoupon: 'N',
526
+ couponBtnRadius: 16,
527
+ couponLeftBgColor: "",
528
+ couponTitleBgColor: "",
529
+ couponBtnTextStyle: {}, //优惠券包登录按钮文字背景色设置
530
+ couponUseBtnPadding: {},
531
+ couponImageUrl: "",
532
+ testCouponList: [
533
+ {
534
+ card_number: '10001000001168',
535
+ card_point: 5000,
536
+ card_type: '0',
537
+ card_type_name: '满50减50',
538
+ unit: '点',
539
+ end_time: '2024-11-23',
540
+ is_valid: 'Y',
541
+ main_business_code_name: '',
542
+ other_card_point: 0,
543
+ is_exchange: 'N',
544
+ card_point_type: 1,
545
+ business_codes: [
546
+ 'cake',
547
+ 'movie',
548
+ 'video',
549
+ 'market',
550
+ 'book'
551
+ ],
552
+ is_login: 'N',
553
+ consume_type: '2',
554
+ card_use_rule: '满50减1',
555
+ is_transfering: 'N'
556
+ },
557
+ ]
472
558
  };
473
559
  },
474
560
  created() {
@@ -502,11 +588,28 @@ export default {
502
588
  this.bindUrl = getContainerPropsValue(container,"content.bind_url",{value: ""}).value;
503
589
  this.detailUrl = getContainerPropsValue(container,"content.detail_url",{value: ""}).value;
504
590
  this.confirmUrl = getContainerPropsValue(container,"content.confirm_url",{value: ""}).value;
591
+ this.give_url = getContainerPropsValue(container,"content.give_url",{value: ""}).value;
505
592
  this.login_name = getContainerPropsValue(container, "content.login_name", "登录");
506
593
  this.isShowCode = getContainerPropsValue(container, "content.isShowCode", "Y");
594
+ this.isShowCoupon = getContainerPropsValue(container, "content.isShowCoupon", "N");
507
595
  this.bindCard = getContainerPropsValue(container,"content.bindCard","1");
508
596
  //'wechat_mini_program|default'
509
597
  this.entryGroupId = getContainerPropsValue(container,"content.entryGroupId","default");
598
+ this.couponBtnRadius = getContainerPropsValue(container, "content.couponBtnRadius", 16);
599
+ this.couponUseBtnPadding = getContainerPropsValue(container, "content.couponUseBtnPadding", {top: 20, left: 20, right: 20, bottom: 20});
600
+ this.couponBtnTextStyle = getContainerPropsValue(container, "content.couponBtnTextStyle", {
601
+ color: '#fff',
602
+ bgColor: '#ff5722',
603
+ fontSize: '30rpx',
604
+ fontWeight: 'normal'
605
+ });
606
+ this.couponTitleBgColor = getContainerPropsValue(container, "content.couponTitleBgColor", 'rgba(255, 87, 51, 0.1)');
607
+ this.couponRadius = getContainerPropsValue(container, "content.couponRadius", 16);
608
+ this.couponLeftBgColor = getContainerPropsValue(container, "content.couponLeftBgColor", "linear-gradient(180deg, #FFA852 0%, #FF5733 100%)");
609
+ this.couponImageUrl = getContainerPropsValue(container, "content.couponImageUrl", "");
610
+ if(this.isPreview) {
611
+ this.tabIndex = this.isShowCoupon==='Y'?2:1;
612
+ }
510
613
  },
511
614
 
512
615
  handleToLink(path) {
@@ -592,12 +695,19 @@ export default {
592
695
  */
593
696
  handleBindLogin(item , entry) {
594
697
  //卡券登录
595
- if (this.tabIndex === 1) {
698
+ if (this.tabIndex === 1||this.tabIndex === 2) {
596
699
  if (item["is_valid"] !== "Y") {
597
700
  return;
598
701
  }
599
702
 
600
703
  this.$xdShowLoading({});
704
+ //转换卡跳转
705
+ if(this.subTabIndex===2){
706
+ this.$xdUniHelper.navigateTo({
707
+ url: `${this.changeUrl}?card_number=${item["card_number"]}`
708
+ }, false);
709
+ return
710
+ }
601
711
  jfbRootExec("loginEntryCardBind", {
602
712
  vm: this,
603
713
  data: { card_number: item["card_number"] },
@@ -624,13 +734,6 @@ export default {
624
734
  this.$xdHideLoading();
625
735
  });
626
736
  }
627
-
628
- //转换卡跳转
629
- else {
630
- this.$xdUniHelper.navigateTo({
631
- url: `${this.changeUrl}?card_number=${item["card_number"]}`
632
- }, false);
633
- }
634
737
  },
635
738
 
636
739
 
@@ -713,15 +816,22 @@ export default {
713
816
  },
714
817
 
715
818
  toDetail(item, out=true) {
716
- this.$xdUniHelper.navigateTo({
717
- url: `${this.detailUrl}?card_number=${item["card_number"]}`,
718
- }, false);
819
+ if(this.subTabIndex===3) {
820
+ this.$xdUniHelper.navigateTo({
821
+ url: `${this.give_url}?card_number=${item["card_number"]}`,
822
+ }, false);
823
+ } else {
824
+ this.$xdUniHelper.navigateTo({
825
+ url: `${this.detailUrl}?card_number=${item["card_number"]}`,
826
+ }, false);
827
+ }
719
828
  },
720
829
 
721
830
  onJfbLoad(options) {
722
831
  if(options['x-test'] === 'jfb-console') this.showIndex = true;
723
832
  this.options = options;
724
833
  let { inCallback } = options;
834
+ this.force = inCallback?true:false;
725
835
  if(!inCallback) this.$storage.remove("inCallback"); //作为入口
726
836
  else {
727
837
  this.$storage.set("inCallback", inCallback);
@@ -738,12 +848,43 @@ export default {
738
848
  //登录成功调整地址优先级
739
849
  this.inCallback = inCallback || this.allEntryPath || this.settings.index;
740
850
  this.getContent();
851
+ if(this.tabIndex===1) {
852
+ this.getCardList(options);
853
+ } else {
854
+ this.getCouponList(options);
855
+ }
856
+ },
741
857
 
742
- this.getCardList(options);
858
+ getCouponList(options) {
859
+ let params = {is_all: 'Y', is_show_entry_settings: 'Y', show_type: 'coupon'};
860
+ if(options['jfb_business_code']) {
861
+ params['card_business_code'] = options['jfb_business_code'];
862
+ }
863
+ if(this.entryGroupId) params['group_id'] = this.entryGroupId;
864
+ this.$xdShowLoading({});
865
+ jfbRootExec("getListEntryCardBind", {
866
+ vm: this,
867
+ data: params
868
+ }).then(res=>{
869
+ this.loadingCardList = false;
870
+ this.showDisabled = res.is_show_invalid_card_entrance;
871
+ if(this.isPreview) {
872
+ res.list = this.testCouponList
873
+ }
874
+ //过滤入口配置
875
+ res['site_entry_settings'] = this.filterNotSupportEntry(res['site_entry_settings']);
876
+ let newCardList = this.$xdUniHelper.cloneDeep(res.list);
877
+ this.couponList = this.getCardGroupItem(newCardList, res['site_entry_settings']);
878
+ console.log(this.couponList,'this.couponList');
879
+
880
+ this.$xdHideLoading({});
881
+
882
+ }) .catch(() => this.$xdHideLoading());
883
+
743
884
  },
744
885
 
745
886
  getCardList(options) {
746
- let params = {is_all: 'Y', is_show_entry_settings: 'Y'};
887
+ let params = {is_all: 'Y', is_show_entry_settings: 'Y', show_type: 'normal'};
747
888
  if(options['jfb_business_code']) {
748
889
  params['card_business_code'] = options['jfb_business_code'];
749
890
  }
@@ -777,7 +918,17 @@ export default {
777
918
  this.hasChangeStatus = this.getCardGroupItem(this.ajaxCardList.list.filter((item) => {
778
919
  return item["is_exchange"] === "Y";
779
920
  }), res['site_entry_settings']).length > 0;
780
- this.handleCardInit(this.ajaxCardList, this.tabIndex === 1);
921
+ let type = ""
922
+ if(this.subTabIndex === 1) {
923
+ type = 'is_valid'
924
+ } else if(this.subTabIndex === 2) {
925
+ type = 'is_exchange'
926
+ } else {
927
+ type = 'is_transfering'
928
+ }
929
+ console.log(this.ajaxCardList, type, 'this.ajaxCardList, type');
930
+
931
+ this.handleCardInit(this.ajaxCardList, type);
781
932
  this.cardPageNum = 1;
782
933
  this.$xdHideLoading();
783
934
  })
@@ -910,6 +1061,19 @@ export default {
910
1061
 
911
1062
  }
912
1063
 
1064
+ &-sub-tab {
1065
+ display: flex;
1066
+ align-items: center;
1067
+ margin-bottom: 32rpx;
1068
+
1069
+ &-item {
1070
+ font-size: 28rpx;
1071
+ padding: 8rpx 16rpx;
1072
+ border-radius: 8rpx;
1073
+ margin-right: 24rpx
1074
+ }
1075
+ }
1076
+
913
1077
  &-tab {
914
1078
  display: flex;
915
1079
  align-items: center;
@@ -1221,6 +1385,18 @@ export default {
1221
1385
  }
1222
1386
  }
1223
1387
 
1388
+ .coupon_list{
1389
+ ::v-deep .xd-coupon_item{
1390
+ margin: var(--card-list-margin) 0;
1391
+ }
1392
+ }
1393
+ .no_more_card{
1394
+ text-align: center;
1395
+ padding: 20rpx 0;
1396
+ color: #CCCCCC;
1397
+ font-size: 28rpx;
1398
+ }
1399
+
1224
1400
  .computed-height {
1225
1401
  position: fixed;
1226
1402
  top:-999999px;
@@ -6,53 +6,37 @@
6
6
  */
7
7
  module.exports = [
8
8
  {
9
- //设置方法名字当别忘记加上【模块名字】:Card
10
- mapFnName: 'getCardByIdFilmSquate',
11
- title: '获取电影广场列表',
12
- path: '/api/account/film/list-film-square',
9
+ mapFnName: 'getBaseByIdCardDetailGive',
13
10
  isRule: false,
11
+ title: '获得绑定的卡详情',
12
+ prefix: 'detal',
13
+ path: '/card/v1/card-transfer/get-bind-card',
14
14
  params: {
15
- last_key: ['当前页', 'Number', '必选'],
16
- page_size: ['每页数量', 'Number', '必选'],
15
+ card_number: ['卡号', 'String', '必选'],
17
16
  },
18
- isConsole: true,
19
17
  disabled: true,
20
18
  },
21
19
  {
22
- //设置方法名字当别忘记加上【模块名字】:Card
23
- mapFnName: 'updateCardFilmPaiqiDate',
24
- title: '更新排期',
25
- path: '/api/account/film/paiqi-date',
20
+ mapFnName: 'confirmGiveCard',
26
21
  isRule: false,
27
- params: {
28
- film_id: ['电影id', 'Number', '必选'],
29
- cinema_id: ['影院id', 'Number', '必选'],
30
- },
31
- isConsole: true,
32
- disabled: true,
33
- },
34
- {
35
- //设置方法名字当别忘记加上【模块名字】:Card
36
- mapFnName: 'removeCardFilmAddress',
37
- title: '删除我的配送地址',
38
- path: '/api/account/film/paiqi-date',
39
- isRule: false,
40
- params: {
41
- film_id: ['电影id', 'Number', '必选'],
22
+ title: '确认赠送',
23
+ prefix: 'detal',
24
+ path: '/card/v1/card-transfer/create',
25
+ data: {
26
+ card_number: ['卡号', 'String', '必选'],
27
+ greeting: ['祝福语', 'String', '必选'],
42
28
  },
43
- isConsole: true,
44
29
  disabled: true,
45
30
  },
46
31
  {
47
- //设置方法名字当别忘记加上【模块名字】:Card
48
- mapFnName: 'addCardFilmcart',
49
- title: '添加购物车',
50
- path: '/api/account/film/paiqi-date',
32
+ mapFnName: 'cancelGiveCard',
51
33
  isRule: false,
52
- params: {
53
- film_id: ['电影id', 'Number', '必选'],
34
+ title: '取消赠送',
35
+ prefix: 'detal',
36
+ path: '/card/v1/card-transfer/cancel',
37
+ data: {
38
+ transfer_auth_code: ['授权码', 'String', '必选'],
54
39
  },
55
- isConsole: true,
56
40
  disabled: true,
57
41
  },
58
42
  ];