jufubao-base 1.0.61-beta1013 → 1.0.61-beta1015

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-beta1013",
3
+ "version": "1.0.61-beta1015",
4
4
  "private": false,
5
5
  "description": "聚福宝业务组件基础插件包",
6
6
  "main": "index.js",
@@ -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);
@@ -803,12 +804,11 @@ export default {
803
804
  box-sizing: border-box;
804
805
  height: unit(200, rpx);
805
806
  width: 100%;
806
- margin-top: unit(20, rpx);
807
807
 
808
808
  & > view {
809
809
  width: 100%;
810
810
  height: unit(200, rpx);
811
- padding: unit(10, rpx);
811
+ padding: 0 unit(10, rpx) unit(10, rpx) unit(10, rpx);
812
812
  display: flex;
813
813
  justify-content: center;
814
814
  align-items: center;
@@ -857,7 +857,7 @@ export default {
857
857
  align-items: center;
858
858
  flex-flow: wrap;
859
859
  padding-left: unit(30, rpx);
860
-
860
+
861
861
  & > view {
862
862
  width: unit(120, rpx);
863
863
  margin-right: unit(10, rpx);
@@ -866,25 +866,25 @@ export default {
866
866
  justify-content: center;
867
867
  flex-direction: column;
868
868
  align-items: center;
869
-
869
+
870
870
  & > view:first-child {
871
871
  width: unit(76, rpx);
872
872
  height: unit(76, rpx);
873
873
  overflow: hidden;
874
-
874
+
875
875
  & > image {
876
876
  height: 100%;
877
877
  width: 100%;
878
878
  }
879
879
  }
880
-
880
+
881
881
  & > view:nth-child(2) {
882
882
  margin-top: unit(10, rpx);
883
883
  font-size: unit(24, rpx);
884
884
  line-height: unit(36, rpx);
885
885
  margin-bottom: unit(10, rpx);
886
886
  }
887
-
887
+
888
888
  & > view:nth-child(3) {
889
889
  display: flex;
890
890
  justify-content: flex-start;
@@ -893,7 +893,7 @@ export default {
893
893
  font-size: unit(20, rpx);
894
894
  color: #999;
895
895
  }
896
-
896
+
897
897
  &:last-child {
898
898
  margin-right: 0;
899
899
  }
@@ -902,19 +902,27 @@ export default {
902
902
  }
903
903
 
904
904
  .fixe_bottom{
905
+ display: flex;
906
+ align-items: center;
907
+ justify-content: space-around;
908
+ height: unit(100, rpx);
909
+ padding: 0 unit(40, rpx);
910
+ flex-flow: nowrap;
911
+ background: #FFF;
912
+ box-shadow: 0 0 unit(16, rpx) rgba(0,0,0,.05);
913
+ .flex_l{
905
914
  display: flex;
906
915
  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
- }
916
+ font-size: unit(32,rpx);
917
917
  }
918
+
919
+ & > view {
920
+ flex: 1;
921
+ padding:0 unit(15, rpx);
922
+
923
+ }
924
+
925
+ }
918
926
  }
919
927
  }
920
928
  </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) {
@@ -1010,6 +1000,7 @@ export default {
1010
1000
  justify-content: center;
1011
1001
  flex-direction: column;
1012
1002
  align-items: center;
1003
+ padding-bottom: unit(10,rpx);
1013
1004
 
1014
1005
  & > view:first-child {
1015
1006
  width: unit(76, rpx);