jufubao-base 1.0.187-beta2 → 1.0.187
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/components/JfbBaseAddress/Attr.js +1 -109
- package/src/components/JfbBaseAddress/JfbBaseAddress.vue +77 -153
- package/src/components/JfbBaseFastLink/Attr.js +6 -22
- package/src/components/JfbBaseFastLink/JfbBaseFastLink.vue +20 -35
- package/src/components/JfbBaseFastLink/XdFastNav.vue +1 -2
- package/src/components/JfbBaseFooter/Attr.js +75 -141
- package/src/components/JfbBaseFooter/JfbBaseFooter.vue +11 -46
- package/src/components/JfbBaseOrderDetail/Attr.js +65 -61
- package/src/components/JfbBaseOrderDetail/JfbBaseOrderDetail.vue +52 -82
- package/src/components/JfbBaseOrderList/Attr.js +0 -23
- package/src/components/JfbBaseOrderList/JfbBaseOrderList.vue +86 -117
- package/src/components/JfbBaseTfkCardLogin/JfbBaseTfkCardLogin.vue +1 -0
- package/src/components/JfbBaseUserCenter/Attr.js +48 -240
- package/src/components/JfbBaseUserCenter/JfbBaseUserCenter.vue +30 -101
- package/src/components/JfbBaseUserInfo/Attr.js +30 -179
- package/src/components/JfbBaseUserInfo/JfbBaseUserInfo.vue +44 -80
- package/src/components/JfbBaseUserOrder/Attr.js +25 -291
- package/src/components/JfbBaseUserOrder/JfbBaseUserOrder.vue +54 -172
- package/src/components/JfbBaseWallet/Attr.js +2 -340
- package/src/components/JfbBaseWallet/JfbBaseWallet.vue +49 -173
- package/src/ICONS.js +0 -1128
- package/src/components/JfbBaseAddress/XdTfkItem.vue +0 -117
- package/src/components/JfbBaseOrderList/XdTfkOrderItem.vue +0 -246
package/package.json
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
import StyleForm from "@/utils/StyleForm";
|
|
3
|
-
import IConList from "@/ICONS"
|
|
4
3
|
let styleForm = new StyleForm(
|
|
5
4
|
{border: null, shadow: null, spacing: '', bgColor:'', margin: null},
|
|
6
5
|
null,
|
|
@@ -12,35 +11,6 @@ export default {
|
|
|
12
11
|
advanced: [],
|
|
13
12
|
content: (data)=>{
|
|
14
13
|
return [
|
|
15
|
-
{
|
|
16
|
-
label: "布局样式配置",
|
|
17
|
-
ele: "xd-radio",
|
|
18
|
-
valueKey: "layout_style",
|
|
19
|
-
value: data.layout_style || 'old',
|
|
20
|
-
list: [
|
|
21
|
-
{label: '布局1', value: 'old'},
|
|
22
|
-
{label: '布局2', value: 'tfk'},
|
|
23
|
-
],
|
|
24
|
-
groupKey: "style",
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
label: "编辑图标",
|
|
28
|
-
ele: "xd-select-list",
|
|
29
|
-
valueKey: "edit_icon",
|
|
30
|
-
value: data.edit_icon || 'iconbianji-01',
|
|
31
|
-
list: IConList,
|
|
32
|
-
className: 'input80',
|
|
33
|
-
groupKey: "content",
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
label: "删除图标",
|
|
37
|
-
ele: "xd-select-list",
|
|
38
|
-
valueKey: "delete_icon",
|
|
39
|
-
value: data.delete_icon || 'iconshanchu-01',
|
|
40
|
-
list: IConList,
|
|
41
|
-
className: 'input80',
|
|
42
|
-
groupKey: "content",
|
|
43
|
-
},
|
|
44
14
|
{
|
|
45
15
|
label: '选取地区路径:',
|
|
46
16
|
ele: 'xd-select-pages-path',
|
|
@@ -53,85 +23,7 @@ export default {
|
|
|
53
23
|
},
|
|
54
24
|
inline: false,
|
|
55
25
|
},
|
|
56
|
-
...styleForm.getForm(data, '内容列表样式配置')
|
|
57
|
-
{
|
|
58
|
-
label: "圆角设置",
|
|
59
|
-
ele: 'xd-site-select-list',
|
|
60
|
-
valueKey: 'cardRadius',
|
|
61
|
-
value: data['cardRadius'] || '',
|
|
62
|
-
groupKey:'style',
|
|
63
|
-
placeholder: '请选择内容圆角设置',
|
|
64
|
-
multiple: false,
|
|
65
|
-
className: 'input80',
|
|
66
|
-
handleCustom({ action, data }) {
|
|
67
|
-
XdBus.getParentApi('getOptionsSettingList')({ setting_id: 'edtix_style_radius' })
|
|
68
|
-
.then(res => {
|
|
69
|
-
data.cb(res.list)
|
|
70
|
-
})
|
|
71
|
-
.catch(error => {
|
|
72
|
-
console.error(error);
|
|
73
|
-
});
|
|
74
|
-
},
|
|
75
|
-
},
|
|
76
|
-
{
|
|
77
|
-
label: "底部按钮配置",
|
|
78
|
-
ele: "title",
|
|
79
|
-
groupKey: "style",
|
|
80
|
-
size: "small"
|
|
81
|
-
},
|
|
82
|
-
{
|
|
83
|
-
label: "容器内边距:",
|
|
84
|
-
ele: "xd-margin-padding",
|
|
85
|
-
valueKey: "bottomPadding",
|
|
86
|
-
value: data.bottomPadding || null,
|
|
87
|
-
groupKey: "style",
|
|
88
|
-
setting: {
|
|
89
|
-
type: 'padding',
|
|
90
|
-
},
|
|
91
|
-
placeholder: '请设置边距',
|
|
92
|
-
inline: false,
|
|
93
|
-
notice: '设置内边距,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">20</span>像素',
|
|
94
|
-
},
|
|
95
|
-
{
|
|
96
|
-
label: "容器背景颜色:",
|
|
97
|
-
ele: "xd-color",
|
|
98
|
-
valueKey: "bottomBgColor",
|
|
99
|
-
value: data.bottomBgColor || null,
|
|
100
|
-
groupKey: "style",
|
|
101
|
-
},
|
|
102
|
-
{
|
|
103
|
-
label: "按钮背景颜色:",
|
|
104
|
-
ele: "xd-color",
|
|
105
|
-
valueKey: "bottomBtnBgColor",
|
|
106
|
-
value: data.bottomBtnBgColor || null,
|
|
107
|
-
groupKey: "style",
|
|
108
|
-
},
|
|
109
|
-
{
|
|
110
|
-
label: "按钮文字颜色:",
|
|
111
|
-
ele: "xd-color",
|
|
112
|
-
valueKey: "bottomBtnTextColor",
|
|
113
|
-
value: data.bottomBtnTextColor || null,
|
|
114
|
-
groupKey: "style",
|
|
115
|
-
},
|
|
116
|
-
{
|
|
117
|
-
label: "按钮圆角:",
|
|
118
|
-
ele: "xd-site-select-list",
|
|
119
|
-
valueKey: "bottomBtnRadius",
|
|
120
|
-
value: data['bottomBtnRadius'] || '',
|
|
121
|
-
groupKey:'style',
|
|
122
|
-
placeholder: '请选择内容圆角设置',
|
|
123
|
-
multiple: false,
|
|
124
|
-
className: 'input80',
|
|
125
|
-
handleCustom({ action, data }) {
|
|
126
|
-
XdBus.getParentApi('getOptionsSettingList')({ setting_id: 'edtix_style_radius' })
|
|
127
|
-
.then(res => {
|
|
128
|
-
data.cb(res.list)
|
|
129
|
-
})
|
|
130
|
-
.catch(error => {
|
|
131
|
-
console.error(error);
|
|
132
|
-
});
|
|
133
|
-
},
|
|
134
|
-
}
|
|
26
|
+
...styleForm.getForm(data, '内容列表样式配置')
|
|
135
27
|
].filter(i=>i)
|
|
136
28
|
},
|
|
137
29
|
}
|
|
@@ -26,108 +26,81 @@
|
|
|
26
26
|
class="jfb-base-address__body-address"
|
|
27
27
|
v-if="addressList && addressList.length > 0"
|
|
28
28
|
>
|
|
29
|
-
<
|
|
30
|
-
|
|
31
|
-
:
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
>
|
|
43
|
-
<view class="jfb-base-address__body-address-item-top">
|
|
44
|
-
<view
|
|
45
|
-
v-if="item.is_default === 'Y'"
|
|
46
|
-
:style="{
|
|
47
|
-
backgroundColor: mainColor,
|
|
48
|
-
color: '#fff',
|
|
49
|
-
fontSize: '24rpx',
|
|
50
|
-
padding: '4rpx 10rpx',
|
|
51
|
-
borderRadius: '4rpx',
|
|
52
|
-
marginRight: '20rpx',
|
|
53
|
-
}"
|
|
54
|
-
>默认</view
|
|
55
|
-
>
|
|
56
|
-
<view
|
|
57
|
-
:style="{
|
|
58
|
-
color: '#999999',
|
|
59
|
-
flex: 1,
|
|
60
|
-
paddingRight: item.is_valid === 'N' ? '40rpx' : '',
|
|
61
|
-
}"
|
|
62
|
-
>
|
|
63
|
-
<view>
|
|
64
|
-
{{ item | getCodeName }}
|
|
65
|
-
</view>
|
|
66
|
-
</view>
|
|
67
|
-
<view
|
|
68
|
-
style="position: absolute; right: 40rpx; width: 50rpx"
|
|
69
|
-
v-if="item.is_valid === 'N'"
|
|
70
|
-
>
|
|
71
|
-
<xd-font-icon
|
|
72
|
-
size="32"
|
|
73
|
-
:color="dangerColor"
|
|
74
|
-
icon="iconmingchengtubiao"
|
|
75
|
-
></xd-font-icon>
|
|
76
|
-
</view>
|
|
77
|
-
</view>
|
|
78
|
-
<view class="jfb-base-address__body-address-item-middle">
|
|
79
|
-
{{ item.address_detail }} {{ item.house_number }}
|
|
80
|
-
</view>
|
|
29
|
+
<view
|
|
30
|
+
:style="{
|
|
31
|
+
marginBottom: jfbListSpacing + 'rpx',
|
|
32
|
+
boxShadow: jfbListShadowComputed,
|
|
33
|
+
border: jfbListBorderComputed,
|
|
34
|
+
backgroundColor: jfbListBgColor,
|
|
35
|
+
}"
|
|
36
|
+
class="jfb-base-address__body-address-item"
|
|
37
|
+
v-for="(item, index) in addressList"
|
|
38
|
+
@click="handleSelectAddress(item)"
|
|
39
|
+
:key="index"
|
|
40
|
+
>
|
|
41
|
+
<view class="jfb-base-address__body-address-item-top">
|
|
81
42
|
<view
|
|
43
|
+
v-if="item.is_default === 'Y'"
|
|
82
44
|
:style="{
|
|
83
|
-
backgroundColor:
|
|
45
|
+
backgroundColor: mainColor,
|
|
46
|
+
color: '#fff',
|
|
47
|
+
fontSize: '24rpx',
|
|
48
|
+
padding: '4rpx 10rpx',
|
|
49
|
+
borderRadius: '4rpx',
|
|
50
|
+
marginRight: '20rpx',
|
|
51
|
+
}"
|
|
52
|
+
>默认</view
|
|
53
|
+
>
|
|
54
|
+
<view
|
|
55
|
+
:style="{
|
|
56
|
+
color: '#999999',
|
|
57
|
+
flex: 1,
|
|
58
|
+
paddingRight: item.is_valid === 'N' ? '40rpx' : '',
|
|
84
59
|
}"
|
|
85
|
-
class="jfb-base-address__body-address-item-bottom"
|
|
86
60
|
>
|
|
87
61
|
<view>
|
|
88
|
-
|
|
89
|
-
<view>{{ item.phone }}</view>
|
|
90
|
-
</view>
|
|
91
|
-
<view>
|
|
92
|
-
<xd-font-icon
|
|
93
|
-
@click.native.stop="handleEdit(item)"
|
|
94
|
-
style="margin-right: 40rpx"
|
|
95
|
-
icon="iconbianji-01"
|
|
96
|
-
size="32"
|
|
97
|
-
></xd-font-icon>
|
|
98
|
-
<xd-font-icon
|
|
99
|
-
@click.native.stop="handleDel(item)"
|
|
100
|
-
icon="iconshanchu-01"
|
|
101
|
-
size="32"
|
|
102
|
-
></xd-font-icon>
|
|
62
|
+
{{ item | getCodeName }}
|
|
103
63
|
</view>
|
|
104
64
|
</view>
|
|
65
|
+
<view
|
|
66
|
+
style="position: absolute; right: 40rpx; width: 50rpx"
|
|
67
|
+
v-if="item.is_valid === 'N'"
|
|
68
|
+
>
|
|
69
|
+
<xd-font-icon
|
|
70
|
+
size="32"
|
|
71
|
+
:color="dangerColor"
|
|
72
|
+
icon="iconmingchengtubiao"
|
|
73
|
+
></xd-font-icon>
|
|
74
|
+
</view>
|
|
75
|
+
</view>
|
|
76
|
+
<view class="jfb-base-address__body-address-item-middle">
|
|
77
|
+
{{ item.address_detail }} {{ item.house_number }}
|
|
105
78
|
</view>
|
|
106
|
-
</template>
|
|
107
|
-
<template v-else>
|
|
108
79
|
<view
|
|
109
80
|
:style="{
|
|
110
|
-
|
|
111
|
-
boxShadow: jfbListShadowComputed,
|
|
112
|
-
border: jfbListBorderComputed,
|
|
113
|
-
backgroundColor: jfbListBgColor,
|
|
114
|
-
borderRadius: cardRadius + 'rpx'
|
|
81
|
+
backgroundColor: item.is_select === 'Y' ? mainColor : '#CCC',
|
|
115
82
|
}"
|
|
116
|
-
|
|
117
|
-
@click="handleSelectAddress(item)"
|
|
118
|
-
:key="index"
|
|
83
|
+
class="jfb-base-address__body-address-item-bottom"
|
|
119
84
|
>
|
|
120
|
-
<
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
85
|
+
<view>
|
|
86
|
+
<view style="margin-right: 40rpx">{{ item.name }}</view>
|
|
87
|
+
<view>{{ item.phone }}</view>
|
|
88
|
+
</view>
|
|
89
|
+
<view>
|
|
90
|
+
<xd-font-icon
|
|
91
|
+
@click.native.stop="handleEdit(item)"
|
|
92
|
+
style="margin-right: 40rpx"
|
|
93
|
+
icon="iconbianji-01"
|
|
94
|
+
size="32"
|
|
95
|
+
></xd-font-icon>
|
|
96
|
+
<xd-font-icon
|
|
97
|
+
@click.native.stop="handleDel(item)"
|
|
98
|
+
icon="iconshanchu-01"
|
|
99
|
+
size="32"
|
|
100
|
+
></xd-font-icon>
|
|
101
|
+
</view>
|
|
129
102
|
</view>
|
|
130
|
-
</
|
|
103
|
+
</view>
|
|
131
104
|
</view>
|
|
132
105
|
<view class="jfb-base-address__body-empty" v-else>
|
|
133
106
|
<xd-font-icon icon="iconbianzu-01" size="120"></xd-font-icon>
|
|
@@ -135,19 +108,13 @@
|
|
|
135
108
|
</view>
|
|
136
109
|
<view style="height: 110rpx"></view>
|
|
137
110
|
<view class="jfb-base-address__body-footer" :style="prod_bottom">
|
|
138
|
-
<
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
}"
|
|
146
|
-
:radius="bottomBtnRadius+'rpx'"
|
|
147
|
-
@click="showAddress = !showAddress"
|
|
148
|
-
>+新增收货地址
|
|
149
|
-
</xd-button>
|
|
150
|
-
</view>
|
|
111
|
+
<xd-button
|
|
112
|
+
width="80%"
|
|
113
|
+
type="primary"
|
|
114
|
+
:bg-color="mainColor"
|
|
115
|
+
@click="showAddress = !showAddress"
|
|
116
|
+
>+新增收货地址
|
|
117
|
+
</xd-button>
|
|
151
118
|
<xd-down-drawer
|
|
152
119
|
v-if="showAddress"
|
|
153
120
|
:show.sync="showAddress"
|
|
@@ -183,7 +150,6 @@ import componentsMixins from "@/mixins/componentsMixins";
|
|
|
183
150
|
import extsMixins from "@/mixins/extsMixins";
|
|
184
151
|
import StyleForm from "@/utils/StyleForm";
|
|
185
152
|
import { getContainerPropsValue } from "@/utils/xd.base";
|
|
186
|
-
import XdTfkItem from "./XdTfkItem"
|
|
187
153
|
let styleForm = new StyleForm(
|
|
188
154
|
{
|
|
189
155
|
border: null,
|
|
@@ -208,7 +174,6 @@ export default {
|
|
|
208
174
|
XdButton,
|
|
209
175
|
XdDownDrawer,
|
|
210
176
|
XdAddress,
|
|
211
|
-
XdTfkItem,
|
|
212
177
|
},
|
|
213
178
|
mixins: [componentsMixins, extsMixins, JfbBaseAddressMixin],
|
|
214
179
|
data() {
|
|
@@ -219,17 +184,7 @@ export default {
|
|
|
219
184
|
location_url: "",
|
|
220
185
|
addressList: null,
|
|
221
186
|
...styleForm.getDataItem(),
|
|
222
|
-
version: ''
|
|
223
|
-
|
|
224
|
-
layout_style: "old",
|
|
225
|
-
edit_icon: "",
|
|
226
|
-
delete_icon: "",
|
|
227
|
-
cardRadius: 16,
|
|
228
|
-
bottomPadding: "",
|
|
229
|
-
bottomBgColor: "",
|
|
230
|
-
bottomBtnBgColor: "",
|
|
231
|
-
bottomBtnTextColor: "",
|
|
232
|
-
bottomBtnRadius: "",
|
|
187
|
+
version: ''
|
|
233
188
|
};
|
|
234
189
|
},
|
|
235
190
|
filters: {
|
|
@@ -255,16 +210,6 @@ export default {
|
|
|
255
210
|
return this.fixedStyle({ height: 0, zIndex: 111 });
|
|
256
211
|
},
|
|
257
212
|
...styleForm.getComputedItem(),
|
|
258
|
-
bottomBoxStyle(){
|
|
259
|
-
let padding = `${this.checkValue(this.bottomPadding.top, 20)}rpx`;
|
|
260
|
-
padding = `${padding} ${this.checkValue(this.bottomPadding.right, 20)}rpx`;
|
|
261
|
-
padding = `${padding} ${this.checkValue(this.bottomPadding.bottom, 20)}rpx`;
|
|
262
|
-
padding = `${padding} ${this.checkValue(this.bottomPadding.left, 20)}rpx`;
|
|
263
|
-
return {
|
|
264
|
-
padding: padding,
|
|
265
|
-
backgroundColor: this.bottomBgColor,
|
|
266
|
-
}
|
|
267
|
-
}
|
|
268
213
|
},
|
|
269
214
|
methods: {
|
|
270
215
|
onJfbLoad(options) {
|
|
@@ -291,16 +236,6 @@ export default {
|
|
|
291
236
|
{ value: "" }
|
|
292
237
|
).value;
|
|
293
238
|
styleForm.getInitItem(this, value);
|
|
294
|
-
this.layout_style = getContainerPropsValue(value, "content.layout_style", "old");
|
|
295
|
-
this.edit_icon = getContainerPropsValue(value, "content.edit_icon", "iconbianji-01");
|
|
296
|
-
this.delete_icon = getContainerPropsValue(value, "content.delete_icon", "iconshanchu-01");
|
|
297
|
-
this.cardRadius = getContainerPropsValue(value, "content.cardRadius", 16);
|
|
298
|
-
this.bottomPadding = getContainerPropsValue(value, "content.bottomPadding", {});
|
|
299
|
-
this.bottomBgColor = getContainerPropsValue(value, "content.bottomBgColor", "#FFFFFF");
|
|
300
|
-
this.bottomBtnBgColor = getContainerPropsValue(value, "content.bottomBtnBgColor", this.mainColor);
|
|
301
|
-
this.bottomBtnTextColor = getContainerPropsValue(value, "content.bottomBtnTextColor", "#FFFFFF");
|
|
302
|
-
this.bottomBtnRadius = getContainerPropsValue(value, "content.bottomBtnRadius", 40);
|
|
303
|
-
console.log("bottomBtnRadius", this.bottomBtnRadius)
|
|
304
239
|
},
|
|
305
240
|
getList(callback) {
|
|
306
241
|
this.$xdShowLoading({});
|
|
@@ -555,8 +490,7 @@ export default {
|
|
|
555
490
|
})
|
|
556
491
|
.catch(this.$xdLog.catch);
|
|
557
492
|
},
|
|
558
|
-
|
|
559
|
-
apiDataMapCompData(item){
|
|
493
|
+
handleEdit(item) {
|
|
560
494
|
let city_name = [
|
|
561
495
|
item["province_name"],
|
|
562
496
|
item["city_name"],
|
|
@@ -569,15 +503,13 @@ export default {
|
|
|
569
503
|
item["area_code"],
|
|
570
504
|
item["street_code"],
|
|
571
505
|
];
|
|
572
|
-
|
|
506
|
+
this.defaultValue = {
|
|
573
507
|
receipt_username: item["name"],
|
|
574
508
|
receipt_address: item["address_detail"],
|
|
575
509
|
receipt_phone: item["phone"],
|
|
576
510
|
receipt_default: item["is_default"] === "Y" ? true : false,
|
|
577
511
|
city_name: city_name,
|
|
578
512
|
city_code: city_code,
|
|
579
|
-
receipt_city_code: city_code,
|
|
580
|
-
receipt_city_name: city_name,
|
|
581
513
|
receipt_region_name: city_name.join(" "),
|
|
582
514
|
city_selected_data: city_name.map((item, index) => {
|
|
583
515
|
return { label: item, value: city_code[index] };
|
|
@@ -586,20 +518,11 @@ export default {
|
|
|
586
518
|
latitude: item["latitude"] || null,
|
|
587
519
|
longitude: item["longitude"] || null,
|
|
588
520
|
house_number: item["house_number"],
|
|
589
|
-
}
|
|
590
|
-
},
|
|
591
|
-
handleEdit(item) {
|
|
592
|
-
this.defaultValue = this.apiDataMapCompData(item);
|
|
521
|
+
};
|
|
593
522
|
|
|
594
523
|
console.log("handleEdit", item, this.defaultValue);
|
|
595
524
|
this.showAddress = true;
|
|
596
525
|
},
|
|
597
|
-
handleSetDefault(item){
|
|
598
|
-
let is_default = item.is_default === "Y" ? "N" : "Y";
|
|
599
|
-
this.$set(item, 'is_default', is_default);
|
|
600
|
-
let saveData = this.apiDataMapCompData({...item, is_default});
|
|
601
|
-
this.handleSave(saveData);
|
|
602
|
-
},
|
|
603
526
|
handleDel(item) {
|
|
604
527
|
console.log("handleDel", item);
|
|
605
528
|
this.$xdConfirm({
|
|
@@ -747,10 +670,9 @@ export default {
|
|
|
747
670
|
|
|
748
671
|
&-address {
|
|
749
672
|
&-item {
|
|
750
|
-
|
|
673
|
+
border-radius: unit(16, rpx);
|
|
751
674
|
margin-bottom: unit(20, rpx);
|
|
752
675
|
box-shadow: 0px 0px unit(20, rpx) 0px rgba(0, 0, 0, 0.1);
|
|
753
|
-
overflow: hidden;
|
|
754
676
|
|
|
755
677
|
&-top {
|
|
756
678
|
display: flex;
|
|
@@ -773,7 +695,7 @@ export default {
|
|
|
773
695
|
padding: unit(20, rpx) unit(40, rpx);
|
|
774
696
|
font-size: unit(28, rpx);
|
|
775
697
|
color: #fff;
|
|
776
|
-
|
|
698
|
+
border-radius: 0px 0px unit(16, rpx) unit(16, rpx);
|
|
777
699
|
|
|
778
700
|
& > view {
|
|
779
701
|
display: flex;
|
|
@@ -787,7 +709,9 @@ export default {
|
|
|
787
709
|
position: fixed;
|
|
788
710
|
left: 0;
|
|
789
711
|
right: 0;
|
|
712
|
+
padding-top: unit(20, rpx);
|
|
790
713
|
background: #fff;
|
|
714
|
+
height: unit(100, rpx);
|
|
791
715
|
}
|
|
792
716
|
}
|
|
793
717
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
'use strict';
|
|
2
|
-
import ICONS from '@/ICONS'
|
|
3
2
|
|
|
4
3
|
/**
|
|
5
4
|
* @description 当表单组件中有联动操作时候,使用方法进行返回
|
|
@@ -86,15 +85,15 @@ export default {
|
|
|
86
85
|
ele: 'el-input',
|
|
87
86
|
groupKey:'style',
|
|
88
87
|
type: 'number',
|
|
89
|
-
valueKey: '
|
|
90
|
-
value: data.
|
|
88
|
+
valueKey: 'padding',
|
|
89
|
+
value: data.padding===undefined? data.padding: '',
|
|
91
90
|
placeholder: '请输入行间距',
|
|
92
91
|
className: 'input60',
|
|
93
92
|
inline: false,
|
|
94
93
|
notice: '设置行间距,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">20</span>像素',
|
|
95
94
|
},
|
|
96
95
|
{
|
|
97
|
-
label: '
|
|
96
|
+
label: '外边距设置:',
|
|
98
97
|
ele: 'xd-margin-padding',
|
|
99
98
|
groupKey:'style',
|
|
100
99
|
valueKey: 'margin',
|
|
@@ -102,22 +101,9 @@ export default {
|
|
|
102
101
|
setting: {
|
|
103
102
|
type: 'margin',
|
|
104
103
|
},
|
|
105
|
-
placeholder: '
|
|
104
|
+
placeholder: '外边距设置',
|
|
106
105
|
inline: false,
|
|
107
|
-
notice: '
|
|
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>像素',
|
|
106
|
+
notice: '内容边距设置,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">20</span>像素',
|
|
121
107
|
},
|
|
122
108
|
{
|
|
123
109
|
ele: 'title',
|
|
@@ -253,9 +239,7 @@ export default {
|
|
|
253
239
|
icon: true,
|
|
254
240
|
notice: false,
|
|
255
241
|
subTitle: true,
|
|
256
|
-
|
|
257
|
-
},
|
|
258
|
-
icons:ICONS,
|
|
242
|
+
}
|
|
259
243
|
},
|
|
260
244
|
handleCustom({action, data}) {
|
|
261
245
|
if (action === 'number') {
|
|
@@ -16,15 +16,17 @@
|
|
|
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
|
|
20
|
-
class="fast-link"
|
|
21
|
-
:style="[bodyStyle]"
|
|
22
|
-
v-if="list.length > 0">
|
|
19
|
+
<view class="fast-link" :style="{ margin: outMargin}" v-if="list.length > 0">
|
|
23
20
|
<view
|
|
24
21
|
class="fast-link__item"
|
|
25
22
|
v-for="item in list"
|
|
26
23
|
:key="item.key"
|
|
27
|
-
:style="
|
|
24
|
+
:style="{
|
|
25
|
+
background: backgroundColor,
|
|
26
|
+
border: borderBox,
|
|
27
|
+
borderRadius: radius + 'rpx',
|
|
28
|
+
marginBottom: padding + 'rpx'
|
|
29
|
+
}"
|
|
28
30
|
@click="handleClick(item)"
|
|
29
31
|
>
|
|
30
32
|
<view class="fast-link__item-icon" v-if="item.icon">
|
|
@@ -105,8 +107,7 @@
|
|
|
105
107
|
|
|
106
108
|
//其他
|
|
107
109
|
margin: {},
|
|
108
|
-
padding:
|
|
109
|
-
rowSpacing: 20, //间距
|
|
110
|
+
padding: 20, //间距
|
|
110
111
|
}
|
|
111
112
|
},
|
|
112
113
|
watch: {
|
|
@@ -117,32 +118,16 @@
|
|
|
117
118
|
},
|
|
118
119
|
|
|
119
120
|
computed: {
|
|
120
|
-
|
|
121
|
-
let
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
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
|
-
}
|
|
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
|
|
135
127
|
},
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
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
|
-
}
|
|
128
|
+
borderBox() {
|
|
129
|
+
if (this.is_border === 'Y') return `${this.is_border_w}rpx solid ${this.is_border_c}`;
|
|
130
|
+
else return '0';
|
|
146
131
|
},
|
|
147
132
|
|
|
148
133
|
subNameSize(){
|
|
@@ -167,7 +152,6 @@
|
|
|
167
152
|
}
|
|
168
153
|
},
|
|
169
154
|
handleClick(item){
|
|
170
|
-
if (this.$configProject['isPreview']) return
|
|
171
155
|
if(item.path && item.path.value) {
|
|
172
156
|
this.$xdUniHelper.navigateTo({
|
|
173
157
|
url : `${item.path.value}`
|
|
@@ -184,8 +168,9 @@
|
|
|
184
168
|
this.fontSize = getContainerPropsValue(container, 'content.fontSize', 26);
|
|
185
169
|
this.radius = getContainerPropsValue(container, 'content.radius', 10);
|
|
186
170
|
this.iconColor = getContainerPropsValue(container, 'content.iconColor', '#999');
|
|
187
|
-
this.
|
|
171
|
+
this.padding = getContainerPropsValue(container, 'content.padding', 20);
|
|
188
172
|
this.is_layout = getContainerPropsValue(container, 'content.is_layout', 'noraml');
|
|
173
|
+
//this.fastName = getContainerPropsValue(container, 'content.fastName', '快速导航');
|
|
189
174
|
this.is_border = getContainerPropsValue(container, 'content.is_border', 'N');
|
|
190
175
|
this.is_border_c = getContainerPropsValue(container, 'content.is_border_c', '#fff');
|
|
191
176
|
this.is_border_w = getContainerPropsValue(container, 'content.is_border_w', 2);
|
|
@@ -228,8 +213,8 @@
|
|
|
228
213
|
}).filter((item,index)=>{
|
|
229
214
|
return index < 3
|
|
230
215
|
});
|
|
231
|
-
|
|
232
216
|
}
|
|
217
|
+
|
|
233
218
|
},
|
|
234
219
|
}
|
|
235
220
|
}
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
<view v-show="index !== 0" :style="{background: lineColor}"></view>
|
|
31
31
|
</view>
|
|
32
32
|
</view>
|
|
33
|
-
<view class="xd-fast-nave__body-mask" v-if="
|
|
33
|
+
<view class="xd-fast-nave__body-mask" v-if="0&&!close" @click="close=true"></view>
|
|
34
34
|
</view>
|
|
35
35
|
</view>
|
|
36
36
|
</template>
|
|
@@ -112,7 +112,6 @@
|
|
|
112
112
|
console.warn(item.path);
|
|
113
113
|
return;
|
|
114
114
|
}
|
|
115
|
-
this.close = true;
|
|
116
115
|
this.$xdUniHelper.navigateTo({
|
|
117
116
|
url: item.path
|
|
118
117
|
},false);
|