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.
- package/package.json +1 -1
- package/src/ICONS.js +1128 -0
- package/src/components/JfbBaseAddress/Attr.js +109 -1
- package/src/components/JfbBaseAddress/JfbBaseAddress.vue +153 -77
- package/src/components/JfbBaseAddress/XdTfkItem.vue +117 -0
- package/src/components/JfbBaseCardEntry/JfbBaseCardEntry.vue +22 -7
- package/src/components/JfbBaseCardEntry/Mock.js +130 -119
- package/src/components/JfbBaseFastLink/Attr.js +22 -6
- package/src/components/JfbBaseFastLink/JfbBaseFastLink.vue +35 -20
- package/src/components/JfbBaseFooter/Attr.js +141 -75
- package/src/components/JfbBaseFooter/JfbBaseFooter.vue +46 -11
- package/src/components/JfbBaseOrderDetail/Api.js +0 -1
- package/src/components/JfbBaseOrderDetail/Attr.js +61 -119
- package/src/components/JfbBaseOrderDetail/JfbBaseOrderDetail.vue +93 -124
- package/src/components/JfbBaseOrderList/Attr.js +23 -0
- package/src/components/JfbBaseOrderList/JfbBaseOrderList.vue +117 -86
- package/src/components/JfbBaseOrderList/XdTfkOrderItem.vue +246 -0
- package/src/components/JfbBasePhoneCollect/Attr.js +411 -945
- package/src/components/JfbBasePhoneCollect/JfbBasePhoneCollect.vue +27 -307
- package/src/components/JfbBasePhoneLogin/Attr.js +405 -893
- package/src/components/JfbBasePhoneLogin/JfbBasePhoneLogin.vue +253 -609
- package/src/components/JfbBaseSuccess/Attr.js +1 -1
- package/src/components/JfbBaseUserCenter/Attr.js +240 -48
- package/src/components/JfbBaseUserCenter/JfbBaseUserCenter.vue +101 -30
- package/src/components/JfbBaseUserInfo/Attr.js +179 -30
- package/src/components/JfbBaseUserInfo/JfbBaseUserInfo.vue +80 -44
- package/src/components/JfbBaseUserOrder/Attr.js +291 -25
- package/src/components/JfbBaseUserOrder/JfbBaseUserOrder.vue +172 -54
- package/src/components/JfbBaseWallet/Attr.js +341 -6
- 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
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
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: '
|
|
89
|
-
value: data.
|
|
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: '
|
|
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
|
|
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:
|
|
108
|
+
padding:{},
|
|
109
|
+
rowSpacing: 20, //间距
|
|
111
110
|
}
|
|
112
111
|
},
|
|
113
112
|
watch: {
|
|
@@ -118,16 +117,32 @@
|
|
|
118
117
|
},
|
|
119
118
|
|
|
120
119
|
computed: {
|
|
121
|
-
|
|
122
|
-
let
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
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
|
-
|
|
129
|
-
|
|
130
|
-
|
|
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.
|
|
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
|
}
|