jufubao-base 1.0.186-beta3 → 1.0.187-beta2

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 (30) hide show
  1. package/package.json +1 -1
  2. package/src/ICONS.js +1128 -0
  3. package/src/components/JfbBaseAddress/Attr.js +109 -1
  4. package/src/components/JfbBaseAddress/JfbBaseAddress.vue +153 -77
  5. package/src/components/JfbBaseAddress/XdTfkItem.vue +117 -0
  6. package/src/components/JfbBaseCardEntry/JfbBaseCardEntry.vue +22 -7
  7. package/src/components/JfbBaseCardEntry/Mock.js +130 -119
  8. package/src/components/JfbBaseFastLink/Attr.js +22 -6
  9. package/src/components/JfbBaseFastLink/JfbBaseFastLink.vue +35 -20
  10. package/src/components/JfbBaseFooter/Attr.js +141 -75
  11. package/src/components/JfbBaseFooter/JfbBaseFooter.vue +46 -11
  12. package/src/components/JfbBaseOrderDetail/Api.js +0 -1
  13. package/src/components/JfbBaseOrderDetail/Attr.js +61 -119
  14. package/src/components/JfbBaseOrderDetail/JfbBaseOrderDetail.vue +93 -124
  15. package/src/components/JfbBaseOrderList/Attr.js +23 -0
  16. package/src/components/JfbBaseOrderList/JfbBaseOrderList.vue +117 -86
  17. package/src/components/JfbBaseOrderList/XdTfkOrderItem.vue +246 -0
  18. package/src/components/JfbBasePhoneCollect/Attr.js +411 -945
  19. package/src/components/JfbBasePhoneCollect/JfbBasePhoneCollect.vue +27 -307
  20. package/src/components/JfbBasePhoneLogin/Attr.js +405 -893
  21. package/src/components/JfbBasePhoneLogin/JfbBasePhoneLogin.vue +253 -609
  22. package/src/components/JfbBaseSuccess/Attr.js +1 -1
  23. package/src/components/JfbBaseUserCenter/Attr.js +240 -48
  24. package/src/components/JfbBaseUserCenter/JfbBaseUserCenter.vue +101 -30
  25. package/src/components/JfbBaseUserInfo/Attr.js +179 -30
  26. package/src/components/JfbBaseUserInfo/JfbBaseUserInfo.vue +80 -44
  27. package/src/components/JfbBaseUserOrder/Attr.js +291 -25
  28. package/src/components/JfbBaseUserOrder/JfbBaseUserOrder.vue +172 -54
  29. package/src/components/JfbBaseWallet/Attr.js +341 -6
  30. package/src/components/JfbBaseWallet/JfbBaseWallet.vue +173 -49
@@ -122,11 +122,11 @@
122
122
  color: subTabIndex === 1 ? mainColor : '#fff',
123
123
  background: subTabIndex === 1 ? noticeBackgroundColor : '#DDDDDD',
124
124
  }" @click="subTabIndex=1" class="jfb-base-card-entry__body-sub-tab-item">可用票券</view>
125
- <view :style="{
125
+ <view v-if="isChange === 'Y'" :style="{
126
126
  color: subTabIndex === 2 ? mainColor : '#fff',
127
127
  background: subTabIndex === 2 ? noticeBackgroundColor : '#DDDDDD',
128
128
  }" @click="subTabIndex=2" class="jfb-base-card-entry__body-sub-tab-item">可转票券</view>
129
- <view :style="{
129
+ <view v-if="isTransfering === 'Y'" :style="{
130
130
  color: subTabIndex === 3 ? mainColor : '#fff',
131
131
  background: subTabIndex === 3 ? noticeBackgroundColor : '#DDDDDD',
132
132
  }" @click="subTabIndex=3" class="jfb-base-card-entry__body-sub-tab-item">赠送中</view>
@@ -217,7 +217,7 @@
217
217
  </view>
218
218
  <template v-if="subTabIndex === 1">
219
219
  <view class="card-list__entry" v-if="item.is_login==='N'&&force">
220
- <view
220
+ <view
221
221
  @click.stop="handleBindLogin(item,item['entries'][0])"
222
222
  :style="{
223
223
  background: '#fff',
@@ -485,6 +485,8 @@ export default {
485
485
  return {
486
486
  options:{},
487
487
  inCallbackUrlOrg:'',//是否带有回调地址
488
+ isChange:'N',
489
+ isTransfering:'N',
488
490
 
489
491
  //提示文案
490
492
  noticeBackgroundColor: "",
@@ -614,6 +616,7 @@ export default {
614
616
  },
615
617
 
616
618
  handleToLink(path) {
619
+ if (this.$configProject['isPreview']) return
617
620
  path = this.getUrlCallback(path)
618
621
  this.$xdUniHelper.navigateTo({
619
622
  url: path,
@@ -689,6 +692,13 @@ export default {
689
692
  });
690
693
  },
691
694
 
695
+ checkTabStatus(res){
696
+ this.$xdUniHelper.cloneDeep(res.list).filter(item=>item.is_valid === 'Y').map(item=>{
697
+ if(item.is_transfering === 'Y') this.isTransfering = 'Y'
698
+ if(item.is_exchange === 'Y') this.isChange = 'Y'
699
+ });
700
+ },
701
+
692
702
  /**
693
703
  * @description 已绑定卡登录
694
704
  * @param item
@@ -765,6 +775,8 @@ export default {
765
775
  },
766
776
 
767
777
  handleClick(entry){
778
+ if (this.$configProject['isPreview']) return
779
+
768
780
  const {dir, path, host, appType} = entry['redirect_data'];
769
781
  let regHttp = /^(\/\/|http:\/\/|https:\/\/).+$/;
770
782
  let regSp = /(-apiuri\/v)/;
@@ -817,6 +829,7 @@ export default {
817
829
  },
818
830
 
819
831
  toDetail(item, out=true) {
832
+ if (this.$configProject['isPreview']) return
820
833
  if(this.subTabIndex===3) {
821
834
  this.$xdUniHelper.navigateTo({
822
835
  url: `${this.give_url}?card_number=${item["card_number"]}`,
@@ -872,16 +885,16 @@ export default {
872
885
  if(this.isPreview) {
873
886
  res.list = this.testCouponList
874
887
  }
875
- //过滤入口配置
888
+ //过滤入口配置
876
889
  res['site_entry_settings'] = this.filterNotSupportEntry(res['site_entry_settings']);
877
890
  let newCardList = this.$xdUniHelper.cloneDeep(res.list);
878
891
  this.couponList = this.getCardGroupItem(newCardList, res['site_entry_settings']);
879
892
  console.log(this.couponList,'this.couponList');
880
-
893
+
881
894
  this.$xdHideLoading({});
882
895
 
883
896
  }) .catch(() => this.$xdHideLoading());
884
-
897
+
885
898
  },
886
899
 
887
900
  getCardList(options) {
@@ -912,6 +925,8 @@ export default {
912
925
  };
913
926
  });
914
927
 
928
+ this.checkTabStatus(res);
929
+
915
930
  //过滤入口配置
916
931
  res['site_entry_settings'] = this.filterNotSupportEntry(res['site_entry_settings']);
917
932
 
@@ -928,7 +943,7 @@ export default {
928
943
  type = 'is_transfering'
929
944
  }
930
945
  console.log(this.ajaxCardList, type, 'this.ajaxCardList, type');
931
-
946
+
932
947
  this.handleCardInit(this.ajaxCardList, type);
933
948
  this.cardPageNum = 1;
934
949
  this.$xdHideLoading();
@@ -2,125 +2,136 @@
2
2
 
3
3
  module.exports = {
4
4
  getListEntryCardBind: {
5
- "list": [{
6
- "card_number": "101001000008422",
7
- "card_point": 100000,
8
- "card_type": "27",
9
- "card_type_name": "聚福宝福",
10
- "unit": "",
11
- "end_time": "2025-04-30",
12
- "is_valid": "Y",
13
- "main_business_code_name": "",
14
- "other_card_point": 0,
15
- "is_exchange": "N",
16
- "card_point_type": 1,
17
- "is_login":'Y',
18
- "business_codes": ["health"]
19
- }, {
20
- "card_number": "121000100000028",
21
- "card_point": 10000,
22
- "card_type": "44",
23
- "card_type_name": "抵扣券测试",
24
- "unit": "",
25
- "end_time": "2024-10-31",
26
- "is_valid": "Y",
27
- "main_business_code_name": "",
28
- "other_card_point": 0,
29
- "is_exchange": "N",
30
- "card_point_type": 1,
31
- "business_codes": ["health"]
32
- }, {
33
- "card_number": "101001000005192",
34
- "card_point": 100000000,
35
- "card_type": "27",
36
- "card_type_name": "聚福宝福",
37
- "unit": "点",
38
- "end_time": "2024-10-31",
39
- "is_valid": "Y",
40
- "main_business_code_name": "",
41
- "other_card_point": 0,
42
- "is_exchange": "N",
43
- "card_point_type": 1,
44
- "business_codes": ["movie", "market", "cake", "book", "video", "play", "health", "small", "travel", "supermarket", "food"]
45
- }, {
46
- "card_number": "101001000008421",
47
- "card_point": 100000,
48
- "card_type": "27",
49
- "card_type_name": "聚福宝福",
50
- "unit": "",
51
- "end_time": "2024-12-31",
52
- "is_valid": "Y",
53
- "main_business_code_name": "",
54
- "other_card_point": 0,
55
- "is_exchange": "N",
56
- "card_point_type": 1,
57
- "business_codes": ["cake"]
58
- }, {
59
- "card_number": "171003500000385",
60
- "card_point": 10000,
61
- "card_type": "39",
62
- "card_type_name": "一对一次卡(无限制)",
63
- "unit": "次",
64
- "end_time": "2024-08-31",
65
- "is_valid": "Y",
66
- "main_business_code_name": "",
67
- "other_card_point": 0,
68
- "is_exchange": "Y",
69
- "card_point_type": 1,
70
- "business_codes": ["movie", "market", "cake"]
71
- }, {
72
- "card_number": "101001000007175",
73
- "card_point": 9998700,
74
- "card_type": "27",
75
- "card_type_name": "聚福宝福",
76
- "unit": "",
77
- "end_time": "2023-10-31",
78
- "is_valid": "Y",
79
- "main_business_code_name": "",
80
- "other_card_point": 0,
81
- "is_exchange": "N",
82
- "card_point_type": 1,
83
- "business_codes": ["movie", "market", "cake", "video", "play", "health"]
84
- }, {
85
- "card_number": "261001000002666",
86
- "card_point": 0,
87
- "card_type": "35",
88
- "card_type_name": "大礼包测试",
89
- "unit": "次",
90
- "end_time": "2025-02-28",
91
- "is_valid": "N",
92
- "main_business_code_name": "",
93
- "other_card_point": 0,
94
- "is_exchange": "N",
95
- "card_point_type": 1,
96
- "business_codes": ["gift"]
97
- }, {
98
- "card_number": "261001000002518",
99
- "card_point": 100000,
100
- "card_type": "31",
101
- "card_type_name": "加盟商福卡",
102
- "unit": "",
103
- "end_time": "2023-08-29",
104
- "is_valid": "N",
105
- "main_business_code_name": "",
106
- "other_card_point": 0,
107
- "is_exchange": "N",
108
- "card_point_type": 1,
109
- "business_codes": ["movie", "market", "cake", "book", "video", "play", "health", "small", "travel", "supermarket", "food"]
110
- }, {
111
- "card_number": "261001000000344",
112
- "card_point": 100,
113
- "card_type": "35",
114
- "card_type_name": "大礼包测试",
115
- "unit": "",
116
- "end_time": "2023-07-21",
117
- "is_valid": "N",
118
- "main_business_code_name": "",
119
- "other_card_point": 0,
120
- "is_exchange": "N",
121
- "card_point_type": 1,
122
- "business_codes": ["movie", "market", "cake", "book", "gift", "video", "play", "health", "small", "travel"]
123
- }],
5
+ "list": [
6
+ {
7
+ "card_number": "101001000008422",
8
+ "card_point": 100000,
9
+ "card_type": "27",
10
+ "card_type_name": "聚福宝福",
11
+ "unit": "",
12
+ "end_time": "2025-04-30",
13
+ "is_valid": "Y",
14
+ "main_business_code_name": "",
15
+ "other_card_point": 0,
16
+ "is_exchange": "N",
17
+ "is_transfering":"Y",
18
+ "card_point_type": 1,
19
+ "is_login":'Y',
20
+ "business_codes": ["health"]
21
+ }, {
22
+ "card_number": "121000100000028",
23
+ "card_point": 10000,
24
+ "card_type": "44",
25
+ "card_type_name": "抵扣券测试",
26
+ "unit": "",
27
+ "end_time": "2024-10-31",
28
+ "is_valid": "Y",
29
+ "main_business_code_name": "",
30
+ "other_card_point": 0,
31
+ "is_exchange": "N",
32
+ "is_transfering":"Y",
33
+ "card_point_type": 1,
34
+ "business_codes": ["health"]
35
+ }, {
36
+ "card_number": "101001000005192",
37
+ "card_point": 100000000,
38
+ "card_type": "27",
39
+ "card_type_name": "聚福宝福",
40
+ "unit": "",
41
+ "end_time": "2024-10-31",
42
+ "is_valid": "Y",
43
+ "main_business_code_name": "",
44
+ "other_card_point": 0,
45
+ "is_exchange": "N",
46
+ "is_transfering":"Y",
47
+ "card_point_type": 1,
48
+ "business_codes": ["movie", "market", "cake", "book", "video", "play", "health", "small", "travel", "supermarket", "food"]
49
+ }, {
50
+ "card_number": "101001000008421",
51
+ "card_point": 100000,
52
+ "card_type": "27",
53
+ "card_type_name": "聚福宝福",
54
+ "unit": "点",
55
+ "end_time": "2024-12-31",
56
+ "is_valid": "Y",
57
+ "main_business_code_name": "",
58
+ "other_card_point": 0,
59
+ "is_exchange": "N",
60
+ "is_transfering":"N",
61
+ "card_point_type": 1,
62
+ "business_codes": ["cake"]
63
+ }, {
64
+ "card_number": "171003500000385",
65
+ "card_point": 10000,
66
+ "card_type": "39",
67
+ "card_type_name": "一对一次卡(无限制)",
68
+ "unit": "",
69
+ "end_time": "2024-08-31",
70
+ "is_valid": "Y",
71
+ "main_business_code_name": "",
72
+ "other_card_point": 0,
73
+ "is_exchange": "Y",
74
+ "is_transfering":"N",
75
+ "card_point_type": 1,
76
+ "business_codes": ["movie", "market", "cake"]
77
+ }, {
78
+ "card_number": "101001000007175",
79
+ "card_point": 9998700,
80
+ "card_type": "27",
81
+ "card_type_name": "聚福宝福",
82
+ "unit": "点",
83
+ "end_time": "2023-10-31",
84
+ "is_valid": "Y",
85
+ "main_business_code_name": "",
86
+ "other_card_point": 0,
87
+ "is_exchange": "N",
88
+ "is_transfering":"N",
89
+ "card_point_type": 1,
90
+ "business_codes": ["movie", "market", "cake", "video", "play", "health"]
91
+ }, {
92
+ "card_number": "261001000002666",
93
+ "card_point": 0,
94
+ "card_type": "35",
95
+ "card_type_name": "大礼包测试",
96
+ "unit": "",
97
+ "end_time": "2025-02-28",
98
+ "is_valid": "N",
99
+ "main_business_code_name": "",
100
+ "other_card_point": 0,
101
+ "is_exchange": "N",
102
+ "is_transfering":"N",
103
+ "card_point_type": 1,
104
+ "business_codes": ["gift"]
105
+ }, {
106
+ "card_number": "261001000002518",
107
+ "card_point": 100000,
108
+ "card_type": "31",
109
+ "card_type_name": "加盟商福卡",
110
+ "unit": "点",
111
+ "end_time": "2023-08-29",
112
+ "is_valid": "N",
113
+ "main_business_code_name": "",
114
+ "other_card_point": 0,
115
+ "is_exchange": "N",
116
+ "is_transfering":"N",
117
+ "card_point_type": 1,
118
+ "business_codes": ["movie", "market", "cake", "book", "video", "play", "health", "small", "travel", "supermarket", "food"]
119
+ }, {
120
+ "card_number": "261001000000344",
121
+ "card_point": 100,
122
+ "card_type": "35",
123
+ "card_type_name": "大礼包测试",
124
+ "unit": "次",
125
+ "end_time": "2023-07-21",
126
+ "is_valid": "N",
127
+ "main_business_code_name": "",
128
+ "other_card_point": 0,
129
+ "is_exchange": "N",
130
+ "is_transfering":"N",
131
+ "card_point_type": 1,
132
+ "business_codes": ["movie", "market", "cake", "book", "gift", "video", "play", "health", "small", "travel"]
133
+ }
134
+ ],
124
135
  "is_show_invalid_card_entrance": "Y",
125
136
  "is_can_unbind": "Y",
126
137
  "site_entry_settings": [{
@@ -1,4 +1,5 @@
1
1
  'use strict';
2
+ import ICONS from '@/ICONS'
2
3
 
3
4
  /**
4
5
  * @description 当表单组件中有联动操作时候,使用方法进行返回
@@ -85,15 +86,15 @@ export default {
85
86
  ele: 'el-input',
86
87
  groupKey:'style',
87
88
  type: 'number',
88
- valueKey: 'padding',
89
- value: data.padding===undefined? data.padding: '',
89
+ valueKey: 'rowSpacing',
90
+ value: data.rowSpacing===undefined? data.rowSpacing: '',
90
91
  placeholder: '请输入行间距',
91
92
  className: 'input60',
92
93
  inline: false,
93
94
  notice: '设置行间距,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">20</span>像素',
94
95
  },
95
96
  {
96
- label: '外边距设置:',
97
+ label: '边距设置:',
97
98
  ele: 'xd-margin-padding',
98
99
  groupKey:'style',
99
100
  valueKey: 'margin',
@@ -101,9 +102,22 @@ export default {
101
102
  setting: {
102
103
  type: 'margin',
103
104
  },
104
- placeholder: '外边距设置',
105
+ placeholder: '边距设置',
105
106
  inline: false,
106
- notice: '内容边距设置,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">20</span>像素',
107
+ notice: '边距设置,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">0</span>像素',
108
+ },
109
+ {
110
+ label: '填充设置:',
111
+ ele: 'xd-margin-padding',
112
+ groupKey:'style',
113
+ valueKey: 'padding',
114
+ value: data['padding'] || null,
115
+ setting: {
116
+ type: 'padding',
117
+ },
118
+ placeholder: '填充设置',
119
+ inline: false,
120
+ notice: '填充设置,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">20</span>像素',
107
121
  },
108
122
  {
109
123
  ele: 'title',
@@ -239,7 +253,9 @@ export default {
239
253
  icon: true,
240
254
  notice: false,
241
255
  subTitle: true,
242
- }
256
+ params: true,
257
+ },
258
+ icons:ICONS,
243
259
  },
244
260
  handleCustom({action, data}) {
245
261
  if (action === 'number') {
@@ -16,17 +16,15 @@
16
16
  <view class="jfb-base-fast-link__body">
17
17
  <template v-if="is_layout === 'noraml'">
18
18
  <view class="x-line"></view>
19
- <view class="fast-link" :style="{ margin: outMargin}" v-if="list.length > 0">
19
+ <view
20
+ class="fast-link"
21
+ :style="[bodyStyle]"
22
+ v-if="list.length > 0">
20
23
  <view
21
24
  class="fast-link__item"
22
25
  v-for="item in list"
23
26
  :key="item.key"
24
- :style="{
25
- background: backgroundColor,
26
- border: borderBox,
27
- borderRadius: radius + 'rpx',
28
- marginBottom: padding + 'rpx'
29
- }"
27
+ :style="[contStyle]"
30
28
  @click="handleClick(item)"
31
29
  >
32
30
  <view class="fast-link__item-icon" v-if="item.icon">
@@ -107,7 +105,8 @@
107
105
 
108
106
  //其他
109
107
  margin: {},
110
- padding: 20, //间距
108
+ padding:{},
109
+ rowSpacing: 20, //间距
111
110
  }
112
111
  },
113
112
  watch: {
@@ -118,16 +117,32 @@
118
117
  },
119
118
 
120
119
  computed: {
121
- outMargin(){
122
- let str = `${this.checkValue(this.margin.top, 20)}rpx`;
123
- str = `${str} ${this.checkValue(this.margin.right, 20)}rpx`;
124
- str = `${str} ${this.checkValue(this.margin.bottom, 20)}rpx`;
125
- str = `${str} ${this.checkValue(this.margin.left, 20)}rpx`;
126
- return str
120
+ bodyStyle(){
121
+ let margin = `${this.checkValue(this.margin.top, 0)}rpx`;
122
+ margin = `${margin} ${this.checkValue(this.margin.right, 0)}rpx`;
123
+ margin = `${margin} ${this.checkValue(this.margin.bottom, 0)}rpx`;
124
+ margin = `${margin} ${this.checkValue(this.margin.left, 0)}rpx`;
125
+
126
+ let padding = `${this.checkValue(this.margin.top, 20)}rpx`;
127
+ padding = `${padding} ${this.checkValue(this.margin.right, 20)}rpx`;
128
+ padding = `${padding} ${this.checkValue(this.margin.bottom, 20)}rpx`;
129
+ padding = `${padding} ${this.checkValue(this.margin.left, 20)}rpx`;
130
+
131
+ return {
132
+ margin,
133
+ padding
134
+ }
127
135
  },
128
- borderBox() {
129
- if (this.is_border === 'Y') return `${this.is_border_w}rpx solid ${this.is_border_c}`;
130
- else return '0';
136
+
137
+ contStyle(){
138
+ let border = 0;
139
+ if (this.is_border === 'Y') border = `${this.is_border_w}rpx solid ${this.is_border_c}`;
140
+ return {
141
+ background: this.backgroundColor,
142
+ borderRadius: this.radius + 'rpx',
143
+ marginBottom: this.rowSpacing + 'rpx',
144
+ border
145
+ }
131
146
  },
132
147
 
133
148
  subNameSize(){
@@ -152,6 +167,7 @@
152
167
  }
153
168
  },
154
169
  handleClick(item){
170
+ if (this.$configProject['isPreview']) return
155
171
  if(item.path && item.path.value) {
156
172
  this.$xdUniHelper.navigateTo({
157
173
  url : `${item.path.value}`
@@ -168,9 +184,8 @@
168
184
  this.fontSize = getContainerPropsValue(container, 'content.fontSize', 26);
169
185
  this.radius = getContainerPropsValue(container, 'content.radius', 10);
170
186
  this.iconColor = getContainerPropsValue(container, 'content.iconColor', '#999');
171
- this.padding = getContainerPropsValue(container, 'content.padding', 20);
187
+ this.rowSpacing = getContainerPropsValue(container, 'content.rowSpacing', 20);
172
188
  this.is_layout = getContainerPropsValue(container, 'content.is_layout', 'noraml');
173
- //this.fastName = getContainerPropsValue(container, 'content.fastName', '快速导航');
174
189
  this.is_border = getContainerPropsValue(container, 'content.is_border', 'N');
175
190
  this.is_border_c = getContainerPropsValue(container, 'content.is_border_c', '#fff');
176
191
  this.is_border_w = getContainerPropsValue(container, 'content.is_border_w', 2);
@@ -213,8 +228,8 @@
213
228
  }).filter((item,index)=>{
214
229
  return index < 3
215
230
  });
216
- }
217
231
 
232
+ }
218
233
  },
219
234
  }
220
235
  }