jufubao-base 1.0.61-beta1012 → 1.0.61-beta1014

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.61-beta1012",
3
+ "version": "1.0.61-beta1014",
4
4
  "private": false,
5
5
  "description": "聚福宝业务组件基础插件包",
6
6
  "main": "index.js",
@@ -531,7 +531,7 @@ export default {
531
531
  .catch(() => this.$xdHideLoading());
532
532
  },
533
533
 
534
- onShow(options) {
534
+ onJfbShow(options) {
535
535
  this.onJfbLoad(options);
536
536
  },
537
537
 
@@ -82,25 +82,26 @@
82
82
  <view :style="{height: '100rpx'}"></view>
83
83
  <!-- 靠底支付 -->
84
84
  <view class="fixe_bottom" :style="prod_bottom">
85
- <!-- <xd-button
86
- size="small"
87
- type="primary">
88
- 消费记录
89
- </xd-button> -->
90
- <xd-button
91
- v-if="info.is_exchange==='Y'"
92
- @click="handleToShift"
93
- size="small"
94
- type="primary">
95
- 券转换
96
- </xd-button>
97
- <xd-button
98
- v-if="isShowUnbind"
99
- @click="handleUnBindCard"
100
- size="small"
101
- type="primary">
102
- 解除绑定
103
- </xd-button>
85
+ <view v-if="0">
86
+ <xd-button size="small" type="primary" width="100%">消费记录</xd-button>
87
+ </view>
88
+ <view v-if="info.is_exchange==='Y'">
89
+ <xd-button
90
+ width="100%"
91
+ @click="handleToShift"
92
+ size="small"
93
+ type="primary"
94
+ >券转换</xd-button>
95
+ </view>
96
+ <view v-if="isShowUnbind">
97
+ <xd-button
98
+ width="100%"
99
+ @click="handleUnBindCard"
100
+ size="small"
101
+ type="primary">
102
+ 解除绑定
103
+ </xd-button>
104
+ </view>
104
105
  </view>
105
106
  </view>
106
107
  </view>
@@ -354,7 +355,7 @@ export default {
354
355
  if (this.$configProject.isPreview) {
355
356
  console.log("handleBindLogin", "预览模式不跳转", this.inCallback);
356
357
  }
357
-
358
+
358
359
  else {
359
360
  this.handleToApp(entry);
360
361
  }
@@ -377,7 +378,7 @@ export default {
377
378
  }
378
379
  const {dir, path, host} = item;
379
380
  let nsp = Base64.encodeURI(JSON.stringify({business_code: entry['business_code']}));
380
-
381
+
381
382
  //外站配置地址
382
383
  if (entry.redirect_type === 'URL') {
383
384
  if (item['path'].indexOf('?') === -1) {
@@ -386,13 +387,13 @@ export default {
386
387
  this.toApp(redirectUrl);
387
388
  return;
388
389
  }
389
-
390
+
390
391
  //站内转换
391
392
  let jumpUrl = item.path;
392
393
  //#ifdef H5
393
394
  jumpUrl = `//${host}/${dir}${path}`;
394
395
  //#endif
395
-
396
+
396
397
  if (item['fixed_business_code'] === '') {
397
398
  redirectUrl = `${jumpUrl}?x-common=${nsp}&vs=${new Date().getTime()}`
398
399
  }
@@ -571,18 +572,18 @@ export default {
571
572
  overflow: hidden;
572
573
  border-radius: unit(16, rpx);
573
574
  margin-bottom: unit(30, rpx);
574
-
575
+
575
576
  &:last-child {
576
577
  margin-bottom: 0;
577
578
  }
578
-
579
-
579
+
580
+
580
581
  &__title {
581
582
  height: unit(56, rpx);
582
583
  display: flex;
583
584
  justify-content: flex-start;
584
585
  align-items: center;
585
-
586
+
586
587
  & > view {
587
588
  padding: 0 unit(80, rpx);
588
589
  font-size: unit(24, rpx);
@@ -591,23 +592,23 @@ export default {
591
592
  color: #fff;
592
593
  border-radius: 0 0 unit(16, rpx) 0;
593
594
  }
594
-
595
+
595
596
  }
596
-
597
+
597
598
  &__content {
598
599
  padding: unit(10, rpx) unit(40, rpx) 0;
599
600
  height: unit(86, rpx);
600
601
  display: flex;
601
602
  justify-content: space-between;
602
603
  align-items: center;
603
-
604
+
604
605
  & > view:first-child {
605
606
  font-size: unit(36, rpx);
606
607
  line-height: unit(86, rpx);
607
608
  color: #fff;
608
609
  font-weight: 700;
609
610
  }
610
-
611
+
611
612
  & > view:nth-child(2) {
612
613
  font-size: unit(24, rpx);
613
614
  display: flex;
@@ -618,32 +619,32 @@ export default {
618
619
  color: #fff;
619
620
  }
620
621
  }
621
-
622
+
622
623
  &__date {
623
624
  padding: 0 unit(40, rpx);
624
625
  font-size: unit(28, rpx);
625
626
  line-height: unit(32, rpx);
626
627
  color: #fff;
627
628
  }
628
-
629
+
629
630
  &__yue {
630
631
  padding: unit(10, rpx) unit(40, rpx) 0;
631
632
  font-size: unit(28, rpx);
632
633
  line-height: unit(32, rpx);
633
634
  color: #fff;
634
-
635
+
635
636
  & > text:nth-child(2) {
636
637
  font-weight: 700;
637
638
  }
638
639
  }
639
-
640
+
640
641
  &__other {
641
642
  display: flex;
642
643
  justify-content: flex-start;
643
644
  align-items: center;
644
645
  padding: unit(20, rpx) unit(40, rpx) 0;
645
646
  margin-top: unit(0, rpx);
646
-
647
+
647
648
  & > view {
648
649
  border-radius:unit(8, rpx);
649
650
  background: rgba(255, 255, 255, 0.2);
@@ -657,17 +658,17 @@ export default {
657
658
  padding: 0 unit(20, rpx);
658
659
  color: #fff;
659
660
  }
660
-
661
-
661
+
662
+
662
663
  }
663
-
664
+
664
665
  &__nodata {
665
666
  padding: unit(20, rpx) unit(40, rpx) 0;
666
667
  margin-top: unit(0, rpx);
667
668
  color: #fff;
668
669
  font-size: unit(28, rpx);
669
670
  }
670
-
671
+
671
672
  &__entry {
672
673
  padding: unit(20, rpx) unit(40, rpx) 0;
673
674
  & > view {
@@ -680,26 +681,26 @@ export default {
680
681
  font-weight: 500;
681
682
  }
682
683
  }
683
-
684
+
684
685
  &__entrys {
685
686
  margin: unit(20, rpx) unit(20, rpx) 0;
686
687
  padding: unit(30, rpx);
687
688
  border-radius: unit(16, rpx);
688
689
  background: rgba(255, 255, 255, 1);
689
690
  box-shadow: 0 unit(4, rpx) unit(8, rpx) rgba(156, 62, 0, 0.11);
690
-
691
+
691
692
  &-title {
692
693
  display: flex;
693
694
  justify-content: space-between;
694
695
  align-items: center;
695
-
696
-
696
+
697
+
697
698
  & > view:first-child {
698
699
  font-size: unit(28, rpx);
699
700
  font-weight: 500;
700
701
  flex: 1;
701
702
  }
702
-
703
+
703
704
  & > view:nth-child(2) {
704
705
  display: flex;
705
706
  justify-content: flex-start;
@@ -709,11 +710,11 @@ export default {
709
710
  color: #999;
710
711
  }
711
712
  }
712
-
713
+
713
714
  &-scroll {
714
-
715
+
715
716
  }
716
-
717
+
717
718
  &-item {
718
719
  display: flex;
719
720
  justify-content: flex-start;
@@ -721,7 +722,7 @@ export default {
721
722
  flex-flow: nowrap;
722
723
  margin-left: unit(-14, rpx);
723
724
  padding-top: unit(20, rpx);
724
-
725
+
725
726
  & > view {
726
727
  width: unit(120, rpx);
727
728
  margin-right: unit(10, rpx);
@@ -730,25 +731,25 @@ export default {
730
731
  justify-content: center;
731
732
  flex-direction: column;
732
733
  align-items: center;
733
-
734
+
734
735
  & > view:first-child {
735
736
  width: unit(76, rpx);
736
737
  height: unit(76, rpx);
737
738
  overflow: hidden;
738
-
739
+
739
740
  & > image {
740
741
  height: 100%;
741
742
  width: 100%;
742
743
  }
743
744
  }
744
-
745
+
745
746
  & > view:nth-child(2) {
746
747
  margin-top: unit(10, rpx);
747
748
  font-size: unit(24, rpx);
748
749
  line-height: unit(36, rpx);
749
750
  margin-bottom: unit(10, rpx);
750
751
  }
751
-
752
+
752
753
  & > view:nth-child(3) {
753
754
  display: flex;
754
755
  justify-content: flex-start;
@@ -757,17 +758,17 @@ export default {
757
758
  font-size: unit(20, rpx);
758
759
  color: #999;
759
760
  }
760
-
761
+
761
762
  &:last-child {
762
763
  margin-right: 0;
763
764
  }
764
-
765
+
765
766
  }
766
-
767
-
767
+
768
+
768
769
  }
769
770
  }
770
-
771
+
771
772
  &-warp {
772
773
  width: unit(700, rpx);
773
774
  // min-height: unit(290, rpx);
@@ -857,7 +858,7 @@ export default {
857
858
  align-items: center;
858
859
  flex-flow: wrap;
859
860
  padding-left: unit(30, rpx);
860
-
861
+
861
862
  & > view {
862
863
  width: unit(120, rpx);
863
864
  margin-right: unit(10, rpx);
@@ -866,25 +867,25 @@ export default {
866
867
  justify-content: center;
867
868
  flex-direction: column;
868
869
  align-items: center;
869
-
870
+
870
871
  & > view:first-child {
871
872
  width: unit(76, rpx);
872
873
  height: unit(76, rpx);
873
874
  overflow: hidden;
874
-
875
+
875
876
  & > image {
876
877
  height: 100%;
877
878
  width: 100%;
878
879
  }
879
880
  }
880
-
881
+
881
882
  & > view:nth-child(2) {
882
883
  margin-top: unit(10, rpx);
883
884
  font-size: unit(24, rpx);
884
885
  line-height: unit(36, rpx);
885
886
  margin-bottom: unit(10, rpx);
886
887
  }
887
-
888
+
888
889
  & > view:nth-child(3) {
889
890
  display: flex;
890
891
  justify-content: flex-start;
@@ -893,7 +894,7 @@ export default {
893
894
  font-size: unit(20, rpx);
894
895
  color: #999;
895
896
  }
896
-
897
+
897
898
  &:last-child {
898
899
  margin-right: 0;
899
900
  }
@@ -902,19 +903,27 @@ export default {
902
903
  }
903
904
 
904
905
  .fixe_bottom{
906
+ display: flex;
907
+ align-items: center;
908
+ justify-content: space-around;
909
+ height: unit(100, rpx);
910
+ padding: 0 unit(40, rpx);
911
+ flex-flow: nowrap;
912
+ background: #FFF;
913
+ box-shadow: 0 0 unit(16, rpx) rgba(0,0,0,.05);
914
+ .flex_l{
905
915
  display: flex;
906
916
  align-items: center;
907
- justify-content: space-between;
908
- height: unit(100, rpx);
909
- padding: 0 unit(40, rpx);
910
- background: #FFF;
911
- box-shadow: 0 0 unit(16, rpx) rgba(0,0,0,.05);
912
- .flex_l{
913
- display: flex;
914
- align-items: center;
915
- font-size: unit(32,rpx);
916
- }
917
+ font-size: unit(32,rpx);
917
918
  }
919
+
920
+ & > view {
921
+ flex: 1;
922
+ padding:0 unit(15, rpx);
923
+
924
+ }
925
+
926
+ }
918
927
  }
919
928
  }
920
929
  </style>
@@ -175,7 +175,7 @@
175
175
  >进入{{item['entries'][0]['entry_name']}}</view>
176
176
  </view>
177
177
  <view class="card-list__nodata" v-if="item.entries.length === 0">暂无支持服务列表</view>
178
- <view class="card-list__entrys" v-if="item.entries.length > 1">
178
+ <view class="card-list__entrys" v-if="item.entries.length > 1" @click.stop>
179
179
  <view class="card-list__entrys-title">
180
180
  <view>可兑换权益</view>
181
181
  <view @click.stop="toDetail(item, false)">
@@ -617,19 +617,9 @@ export default {
617
617
  },
618
618
 
619
619
  toDetail(item, out=true) {
620
- if(out) {
621
- if(item.entries.length === 1) {
622
- this.$xdUniHelper.navigateTo({
623
- url: `${this.detailUrl}?card_number=${item["card_number"]}`,
624
- }, false);
625
- }
626
- }
627
- else{
628
- this.$xdUniHelper.navigateTo({
629
- url: `${this.detailUrl}?card_number=${item["card_number"]}`,
630
- }, false);
631
- }
632
-
620
+ this.$xdUniHelper.navigateTo({
621
+ url: `${this.detailUrl}?card_number=${item["card_number"]}`,
622
+ }, false);
633
623
  },
634
624
 
635
625
  onJfbLoad(options) {
@@ -85,12 +85,12 @@
85
85
  let { inCallback } = options;
86
86
  if (inCallback) inCallback = Base64.decode(inCallback);
87
87
  this.inCallback = inCallback || this.settings.index;
88
-
88
+
89
89
  let params = {is_all: 'Y'};
90
90
  if (options['jfb_business_code']) {
91
91
  params['card_business_code'] = options['jfb_business_code'];
92
92
  }
93
-
93
+
94
94
  jfbRootExec("getListCardBind", {
95
95
  vm: this,
96
96
  data: params,
@@ -179,26 +179,9 @@
179
179
  );
180
180
  }
181
181
  },
182
- onJfbScroll(options) {
183
- console.log('event.onJfbScroll', options)
184
- },
185
- onJfbReachBottom(options) {
186
- console.log('event.onJfbReachBottom', options)
187
- },
182
+
188
183
  onJfbShow(options) {
189
- console.log('event.onJfbShow', options)
190
- },
191
- onJfbHide(options) {
192
- console.log('event.onJfbHide', options)
193
- },
194
- onJfbBack(options) {
195
- console.log('event.onJfbBack', options)
196
- },
197
- onJfbUpdate(...data) {
198
- console.log('event.onJfbUpdate', data)
199
- },
200
- onJfbCustomEvent(options) {
201
- console.log('event.onJfbReachBottom', options)
184
+ this.onJfbLoad(options);
202
185
  },
203
186
  }
204
187
  }