jufubao-base 1.0.191 → 1.0.192-beta1
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/commands.js +1 -1
- 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/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 +50 -15
- package/src/components/JfbBaseLogin/Attr.js +3 -9
- package/src/components/JfbBaseOrderDetail/Attr.js +147 -65
- package/src/components/JfbBaseOrderDetail/JfbBaseOrderDetail.vue +96 -46
- package/src/components/JfbBaseOrderList/Attr.js +59 -2
- package/src/components/JfbBaseOrderList/JfbBaseOrderList.vue +139 -92
- package/src/components/JfbBaseOrderList/Mock.js +3 -0
- package/src/components/JfbBaseOrderList/XdTfkOrderItem.vue +267 -0
- package/src/components/JfbBasePhoneCollect/Attr.js +3 -15
- package/src/components/JfbBasePhoneLogin/Attr.js +3 -14
- 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 +340 -2
- package/src/components/JfbBaseWallet/JfbBaseWallet.vue +173 -49
|
@@ -18,10 +18,9 @@
|
|
|
18
18
|
<view
|
|
19
19
|
class="jfb-base-user-info__body-header"
|
|
20
20
|
:style="{
|
|
21
|
-
margin:
|
|
22
|
-
background:backgroundColor,
|
|
23
|
-
|
|
24
|
-
padding: outPadding,
|
|
21
|
+
margin: marginComp,
|
|
22
|
+
background : backgroundColor,
|
|
23
|
+
padding: paddingComp,
|
|
25
24
|
boxShadow: shadow,
|
|
26
25
|
borderRadius: radius + 'rpx',
|
|
27
26
|
border: borderBox
|
|
@@ -34,26 +33,26 @@
|
|
|
34
33
|
>
|
|
35
34
|
<template v-if="logined">
|
|
36
35
|
<image v-if="userInfo['head_url']" :src="userInfo['head_url']"></image>
|
|
37
|
-
<view class="no-image" :style="{borderColor:
|
|
38
|
-
<xd-font-icon :color="
|
|
36
|
+
<view class="no-image" :style="{borderColor: imageColor, borderRadius:imageRadius}" v-else>
|
|
37
|
+
<xd-font-icon :color="imageColor" icon="iconwode_mian" size="100"></xd-font-icon>
|
|
39
38
|
</view>
|
|
40
39
|
</template>
|
|
41
|
-
<view v-else class="no-image" :style="{borderColor:
|
|
42
|
-
<xd-font-icon :color="
|
|
40
|
+
<view v-else class="no-image" :style="{borderColor: imageColor, borderRadius:imageRadius}">
|
|
41
|
+
<xd-font-icon :color="imageColor" icon="iconwode_mian" size="90"></xd-font-icon>
|
|
43
42
|
</view>
|
|
44
|
-
<view v-if="logined && textType ==='N'" :style="
|
|
45
|
-
<view class="vertical-user" v-if="logined && textType ==='Y'"
|
|
46
|
-
<view>{{userInfo|getName}}</view>
|
|
43
|
+
<view v-if="logined && textType ==='N'" :style="[nickNameStyle]">{{userInfo|getName}}</view>
|
|
44
|
+
<view class="vertical-user" v-if="logined && textType ==='Y'">
|
|
45
|
+
<view :style="[nickNameStyle]">{{userInfo|getName}}</view>
|
|
47
46
|
<view class="logout" @click="handleLogout()">
|
|
48
|
-
<view :style="{
|
|
47
|
+
<view :style="[logoutStyleComp]">{{logoutName}}</view>
|
|
49
48
|
</view>
|
|
50
|
-
<view @click="handleToLink()" v-if="
|
|
51
|
-
<xd-font-icon
|
|
49
|
+
<view @click="handleToLink()" v-if="isSetting === 'Y'">
|
|
50
|
+
<xd-font-icon size="26" icon="iconshezhi_mian"></xd-font-icon>
|
|
52
51
|
</view>
|
|
53
52
|
</view>
|
|
54
53
|
</view>
|
|
55
54
|
<view @click="handleLogout()" v-if="logined && textType ==='N'" class="logout">
|
|
56
|
-
<view :style="{
|
|
55
|
+
<view :style="[logoutStyleComp]">{{logoutName}}</view>
|
|
57
56
|
</view>
|
|
58
57
|
</view>
|
|
59
58
|
</view>
|
|
@@ -79,14 +78,14 @@
|
|
|
79
78
|
computed: {
|
|
80
79
|
...mapState(['jfbAuthorize']),
|
|
81
80
|
|
|
82
|
-
|
|
81
|
+
marginComp() {
|
|
83
82
|
let str = `${this.checkValue(this.margin.top, 20)}rpx`;
|
|
84
83
|
str = `${str} ${this.checkValue(this.margin.right, 20)}rpx`;
|
|
85
84
|
str = `${str} ${this.checkValue(this.margin.bottom, 20)}rpx`;
|
|
86
85
|
str = `${str} ${this.checkValue(this.margin.left, 20)}rpx`;
|
|
87
86
|
return str
|
|
88
87
|
},
|
|
89
|
-
|
|
88
|
+
paddingComp() {
|
|
90
89
|
let str = `${this.checkValue(this.padding.top, 20)}rpx`;
|
|
91
90
|
str = `${str} ${this.checkValue(this.padding.right, 20)}rpx`;
|
|
92
91
|
str = `${str} ${this.checkValue(this.padding.bottom, 20)}rpx`;
|
|
@@ -98,8 +97,22 @@
|
|
|
98
97
|
else return '0 0 0 rgba(0,0,0,0)';
|
|
99
98
|
},
|
|
100
99
|
borderBox(){
|
|
101
|
-
if (this.is_border === 'Y') return `${this.is_border_w}rpx
|
|
100
|
+
if (this.is_border === 'Y') return `${this.is_border_w}rpx ${this.is_border_s} ${this.is_border_c}`;
|
|
102
101
|
else return '0';
|
|
102
|
+
},
|
|
103
|
+
nickNameStyle(){
|
|
104
|
+
return {
|
|
105
|
+
fontSize: this.nickStyle.fontSize || '32rpx',
|
|
106
|
+
color: `${this.nickStyle.color || '#333'}`,
|
|
107
|
+
fontWeight: `${this.nickStyle.fontWeight || 'normal'}`,
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
logoutStyleComp(){
|
|
111
|
+
return {
|
|
112
|
+
fontSize: this.logoutStyle.fontSize || '20rpx',
|
|
113
|
+
color: `${this.logoutStyle.color || '#333'}`,
|
|
114
|
+
fontWeight: `${this.logoutStyle.fontWeight || 'normal'}`,
|
|
115
|
+
}
|
|
103
116
|
}
|
|
104
117
|
},
|
|
105
118
|
filters:{
|
|
@@ -111,39 +124,32 @@
|
|
|
111
124
|
return {
|
|
112
125
|
logined: false,
|
|
113
126
|
userInfo: null,
|
|
114
|
-
|
|
127
|
+
isSetting:'N',
|
|
128
|
+
logoutName:'[退出登录]',
|
|
129
|
+
imageRadius:'50%',
|
|
115
130
|
|
|
116
131
|
//基础
|
|
117
|
-
|
|
132
|
+
imageColor: '#333',
|
|
118
133
|
backgroundColor: 'rgba(0,0,0,0)',
|
|
119
134
|
textType: 'N', //默认水平
|
|
120
135
|
radius: 0,
|
|
121
136
|
|
|
122
137
|
//投影
|
|
123
|
-
is_shadow: '
|
|
138
|
+
is_shadow: 'N',
|
|
124
139
|
is_shadow_bg: 0,
|
|
125
140
|
is_shadow_w: 0,
|
|
126
141
|
|
|
127
|
-
|
|
128
142
|
//边框
|
|
129
|
-
is_border: '
|
|
143
|
+
is_border: 'N',
|
|
130
144
|
is_border_w: 0,
|
|
131
145
|
is_border_c: '',
|
|
146
|
+
is_border_s:'solid',
|
|
132
147
|
|
|
133
148
|
//其他
|
|
134
|
-
margin: {
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
bottom: 0
|
|
139
|
-
},
|
|
140
|
-
padding: {
|
|
141
|
-
top: 0,
|
|
142
|
-
left: 0,
|
|
143
|
-
right: 0,
|
|
144
|
-
bottom: 0
|
|
145
|
-
},
|
|
146
|
-
|
|
149
|
+
margin: {},
|
|
150
|
+
padding: {},
|
|
151
|
+
nickStyle:{},
|
|
152
|
+
logoutStyle:{},
|
|
147
153
|
}
|
|
148
154
|
},
|
|
149
155
|
watch: {
|
|
@@ -216,21 +222,44 @@
|
|
|
216
222
|
* @param container {object} 业务组件对象自己
|
|
217
223
|
*/
|
|
218
224
|
init(container) {
|
|
219
|
-
this.margin = getContainerPropsValue(container, 'content.margin', {
|
|
220
|
-
this.padding = getContainerPropsValue(container, 'content.padding', {
|
|
221
|
-
this.address_url = getContainerPropsValue(container, 'content.address_url', {value: ''});
|
|
222
|
-
this.color = getContainerPropsValue(container, 'content.textColor', '#333');
|
|
225
|
+
this.margin = getContainerPropsValue(container, 'content.margin', {});
|
|
226
|
+
this.padding = getContainerPropsValue(container, 'content.padding', {});
|
|
223
227
|
this.backgroundColor = getContainerPropsValue(container, 'content.backgroundColor', '#f8f8f8');
|
|
224
228
|
this.textType = getContainerPropsValue(container, 'content.text_type', 'N');
|
|
229
|
+
this.radius = getContainerPropsValue(container, 'content.radius', '10');
|
|
230
|
+
this.isSetting = getContainerPropsValue(container, 'content.isSetting', 'N');
|
|
231
|
+
this.logoutName = getContainerPropsValue(container, 'content.logoutName', '[退出登录]');
|
|
232
|
+
this.imageRadius = getContainerPropsValue(container, 'content.imageRadius', '50%');
|
|
233
|
+
this.imageColor = getContainerPropsValue(container, 'content.imageColor', '#333');
|
|
225
234
|
|
|
235
|
+
//Shadow
|
|
236
|
+
this.contShadow = getContainerPropsValue(container, 'content.contShadow', {})
|
|
226
237
|
this.is_shadow = getContainerPropsValue(container, 'content.is_shadow', 'N');
|
|
227
238
|
this.is_shadow_bg = getContainerPropsValue(container, 'content.is_shadow_bg', '#fff');
|
|
228
239
|
this.is_shadow_w = getContainerPropsValue(container, 'content.is_shadow_w', '10');
|
|
240
|
+
if(this.contShadow.type === 'Y') {
|
|
241
|
+
this.is_shadow = 'Y';
|
|
242
|
+
if(this.contShadow.value && this.contShadow.value.width) this.is_shadow_w = this.contShadow.value.width;
|
|
243
|
+
if(this.contShadow.value && this.contShadow.value.color) this.is_shadow_bg = this.contShadow.value.color;
|
|
244
|
+
}
|
|
229
245
|
|
|
246
|
+
//边框
|
|
247
|
+
this.contBorder = getContainerPropsValue(container, 'content.contBorder', {});
|
|
230
248
|
this.is_border = getContainerPropsValue(container, 'content.is_border', 'N');
|
|
231
249
|
this.is_border_c = getContainerPropsValue(container, 'content.is_border_c', '#fff');
|
|
232
250
|
this.is_border_w = getContainerPropsValue(container, 'content.is_border_w', 0);
|
|
233
|
-
this.
|
|
251
|
+
this.is_border_s = 'solid';
|
|
252
|
+
if(this.contBorder.type === 'Y') {
|
|
253
|
+
this.is_border = 'Y';
|
|
254
|
+
if(this.contBorder.value && this.contBorder.value.width) this.is_border_w = this.contBorder.value.width;
|
|
255
|
+
if(this.contBorder.value && this.contBorder.value.color) this.is_border_c = this.contBorder.value.color;
|
|
256
|
+
if(this.contBorder.value && this.contBorder.value.style) this.is_border_s = this.contBorder.value.style;
|
|
257
|
+
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
this.nickStyle = getContainerPropsValue(container, 'content.nickStyle', {});
|
|
261
|
+
this.logoutStyle = getContainerPropsValue(container, 'content.logoutStyle', {});
|
|
262
|
+
|
|
234
263
|
},
|
|
235
264
|
}
|
|
236
265
|
}
|
|
@@ -245,7 +274,15 @@
|
|
|
245
274
|
justify-content: center;
|
|
246
275
|
align-items: center;
|
|
247
276
|
& > view:nth-child(2) {
|
|
248
|
-
margin-left: unit(
|
|
277
|
+
margin-left: unit(15, rpx);
|
|
278
|
+
}
|
|
279
|
+
& > view:nth-child(3) {
|
|
280
|
+
width: 26rpx;
|
|
281
|
+
height: 26rpx;
|
|
282
|
+
margin-left: unit(15, rpx);
|
|
283
|
+
display: flex;
|
|
284
|
+
justify-content: center;
|
|
285
|
+
align-items: center;
|
|
249
286
|
}
|
|
250
287
|
}
|
|
251
288
|
|
|
@@ -281,8 +318,7 @@
|
|
|
281
318
|
& > image, .no-image {
|
|
282
319
|
width: unit(140, rpx);
|
|
283
320
|
height: unit(140, rpx);
|
|
284
|
-
margin-right: unit(30, rpx)
|
|
285
|
-
border-radius: 50%;
|
|
321
|
+
margin-right: unit(30, rpx);;
|
|
286
322
|
display: flex;
|
|
287
323
|
justify-content: center;
|
|
288
324
|
align-items: center;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
|
+
import ICONS from '@/ICONS'
|
|
2
3
|
|
|
3
4
|
/**
|
|
4
5
|
* @description 当表单组件中有联动操作时候,使用方法进行返回
|
|
@@ -13,6 +14,69 @@ export default {
|
|
|
13
14
|
slot: 'is_reference_title',
|
|
14
15
|
groupKey:'advanced',
|
|
15
16
|
},
|
|
17
|
+
{
|
|
18
|
+
label: '我的订单自定义名称:',
|
|
19
|
+
ele: 'el-input',
|
|
20
|
+
type: 'text',
|
|
21
|
+
valueKey: 'myOrderName',
|
|
22
|
+
groupKey:'content',
|
|
23
|
+
value: data['myOrderName'] || '',
|
|
24
|
+
placeholder: '请输入我的订单自定义名称',
|
|
25
|
+
className: 'input80',
|
|
26
|
+
rules: [
|
|
27
|
+
{
|
|
28
|
+
required: false,
|
|
29
|
+
validator: (rule, value, callback) => {
|
|
30
|
+
value = value.trim();
|
|
31
|
+
if(value.length === 0) return callback()
|
|
32
|
+
if (value.length < 1 || value.length > 4) callback('我的订单自定义名称长度为:1-4字符');
|
|
33
|
+
else callback()
|
|
34
|
+
},
|
|
35
|
+
trigger: 'blur'
|
|
36
|
+
}
|
|
37
|
+
],
|
|
38
|
+
notice: '我的订单自定义名称设置,默认值:<span style="color:red">我的订单</span>,长度为:1-4字符',
|
|
39
|
+
inline: false,
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
label: '是否售后订单:',
|
|
43
|
+
ele: 'xd-radio',
|
|
44
|
+
valueKey: 'isShowBtn',
|
|
45
|
+
value: data['isShowBtn'] || 'Y',
|
|
46
|
+
placeholder: '请选择是否售后订单',
|
|
47
|
+
groupKey:'content',
|
|
48
|
+
multiple: false,
|
|
49
|
+
className: 'input80',
|
|
50
|
+
list: [
|
|
51
|
+
{label: '是', value: 'Y'},
|
|
52
|
+
{label: '否', value: 'N'},
|
|
53
|
+
]
|
|
54
|
+
},
|
|
55
|
+
data['isShowBtn'] === 'Y' && {
|
|
56
|
+
label: '售后订单自定义名称:',
|
|
57
|
+
ele: 'el-input',
|
|
58
|
+
type: 'text',
|
|
59
|
+
valueKey: 'afterBuyName',
|
|
60
|
+
groupKey:'content',
|
|
61
|
+
value: data['afterBuyName'] || '',
|
|
62
|
+
placeholder: '请输入售后订单自定义名称',
|
|
63
|
+
className: 'input80',
|
|
64
|
+
rules: [
|
|
65
|
+
{
|
|
66
|
+
required: false,
|
|
67
|
+
validator: (rule, value, callback) => {
|
|
68
|
+
value = value.trim();
|
|
69
|
+
if(value.length === 0) return callback()
|
|
70
|
+
if (value.length < 1 || value.length > 4) callback('售后订单自定义名称长度为:1-4字符');
|
|
71
|
+
else callback()
|
|
72
|
+
},
|
|
73
|
+
trigger: 'blur'
|
|
74
|
+
}
|
|
75
|
+
],
|
|
76
|
+
notice: '售后订单自定义名称设置,默认值:<span style="color:red">售后订单</span>,长度为:1-4字符',
|
|
77
|
+
inline: false,
|
|
78
|
+
},
|
|
79
|
+
|
|
16
80
|
{
|
|
17
81
|
label: '设置订单状态:',
|
|
18
82
|
ele: 'xd-order-setting',
|
|
@@ -21,6 +85,7 @@ export default {
|
|
|
21
85
|
value: data['orderTypeList'] || null,
|
|
22
86
|
setting: {
|
|
23
87
|
router: XdBus.getParentApi('getPagesTree'),
|
|
88
|
+
icons:ICONS,
|
|
24
89
|
},
|
|
25
90
|
handleCustom({action, data}) {
|
|
26
91
|
if (action === 'number') {
|
|
@@ -39,6 +104,25 @@ export default {
|
|
|
39
104
|
{required: true, message: '设置订单配置错误!请检查配置', trigger: 'change'},
|
|
40
105
|
],
|
|
41
106
|
},
|
|
107
|
+
{
|
|
108
|
+
label: '行间距:',
|
|
109
|
+
ele: 'el-input',
|
|
110
|
+
type: 'number',
|
|
111
|
+
valueKey: 'spacing',
|
|
112
|
+
groupKey:'style',
|
|
113
|
+
value: data.spacing || '',
|
|
114
|
+
placeholder: '请输入行间距',
|
|
115
|
+
className: 'input60',
|
|
116
|
+
inline: false,
|
|
117
|
+
notice: '设置间距,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">20</span>像素',
|
|
118
|
+
},
|
|
119
|
+
|
|
120
|
+
{
|
|
121
|
+
ele: 'title',
|
|
122
|
+
label: '轮廓样式设置',
|
|
123
|
+
size: 'small',
|
|
124
|
+
groupKey:'style',
|
|
125
|
+
},
|
|
42
126
|
{
|
|
43
127
|
label: '背景颜色:',
|
|
44
128
|
ele: 'xd-color',
|
|
@@ -68,19 +152,7 @@ export default {
|
|
|
68
152
|
},
|
|
69
153
|
},
|
|
70
154
|
{
|
|
71
|
-
label: '
|
|
72
|
-
ele: 'el-input',
|
|
73
|
-
type: 'number',
|
|
74
|
-
valueKey: 'spacing',
|
|
75
|
-
groupKey:'style',
|
|
76
|
-
value: data.spacing || '',
|
|
77
|
-
placeholder: '请输入间距',
|
|
78
|
-
className: 'input60',
|
|
79
|
-
inline: false,
|
|
80
|
-
notice: '设置间距,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">20</span>像素',
|
|
81
|
-
},
|
|
82
|
-
{
|
|
83
|
-
label: '外边距:',
|
|
155
|
+
label: '边距:',
|
|
84
156
|
ele: 'xd-margin-padding',
|
|
85
157
|
valueKey: 'bodyMargin',
|
|
86
158
|
groupKey:'style',
|
|
@@ -105,6 +177,37 @@ export default {
|
|
|
105
177
|
inline: false,
|
|
106
178
|
notice: '设置填充,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">0</span>像素',
|
|
107
179
|
},
|
|
180
|
+
|
|
181
|
+
{
|
|
182
|
+
ele: 'title',
|
|
183
|
+
label: '标题设置',
|
|
184
|
+
size: 'small',
|
|
185
|
+
groupKey:'style',
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
label: "标题样式设置",
|
|
189
|
+
ele: "xd-text-and-bgc",
|
|
190
|
+
groupKey:'style',
|
|
191
|
+
valueKey: 'titleStyle',
|
|
192
|
+
value: data['titleStyle'] || null,
|
|
193
|
+
setting: {
|
|
194
|
+
fontSize: true,
|
|
195
|
+
color: true,
|
|
196
|
+
bgColor: false,
|
|
197
|
+
weight: true,
|
|
198
|
+
selected:false
|
|
199
|
+
},
|
|
200
|
+
handleCustom({action, data}) {
|
|
201
|
+
XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_font_size'})
|
|
202
|
+
.then(res => {
|
|
203
|
+
data.cb(res.list)
|
|
204
|
+
})
|
|
205
|
+
.catch(error => {
|
|
206
|
+
console.error(error);
|
|
207
|
+
data.cb([])
|
|
208
|
+
});
|
|
209
|
+
},
|
|
210
|
+
},
|
|
108
211
|
{
|
|
109
212
|
label: '标题样式颜色:',
|
|
110
213
|
ele: 'xd-color',
|
|
@@ -113,32 +216,117 @@ export default {
|
|
|
113
216
|
value: data['cardNameColor'] || null,
|
|
114
217
|
placeholder: '请选择标题样式颜色',
|
|
115
218
|
classNmae: 'input60',
|
|
219
|
+
hidden:true,
|
|
116
220
|
},
|
|
117
221
|
|
|
118
222
|
{
|
|
119
223
|
ele: 'title',
|
|
120
|
-
label:
|
|
224
|
+
label: `售后订单按钮样式设置`,
|
|
121
225
|
size: 'small',
|
|
122
226
|
groupKey:'style',
|
|
123
227
|
},
|
|
124
228
|
{
|
|
125
|
-
label:
|
|
126
|
-
ele:
|
|
229
|
+
label: "文字样式设置",
|
|
230
|
+
ele: "xd-text-and-bgc",
|
|
127
231
|
groupKey:'style',
|
|
128
|
-
valueKey: '
|
|
129
|
-
value: data['
|
|
130
|
-
|
|
131
|
-
|
|
232
|
+
valueKey: 'addBtnStyle',
|
|
233
|
+
value: data['addBtnStyle'] || null,
|
|
234
|
+
setting: {
|
|
235
|
+
fontSize: true,
|
|
236
|
+
color: true,
|
|
237
|
+
bgColor: false,
|
|
238
|
+
weight: true,
|
|
239
|
+
selected:false
|
|
240
|
+
},
|
|
241
|
+
handleCustom({action, data}) {
|
|
242
|
+
XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_font_size'})
|
|
243
|
+
.then(res => {
|
|
244
|
+
data.cb(res.list)
|
|
245
|
+
})
|
|
246
|
+
.catch(error => {
|
|
247
|
+
console.error(error);
|
|
248
|
+
data.cb([])
|
|
249
|
+
});
|
|
250
|
+
},
|
|
132
251
|
},
|
|
133
252
|
{
|
|
134
|
-
label: '
|
|
253
|
+
label: '圆角设置:',
|
|
254
|
+
ele: 'xd-site-select-list',
|
|
255
|
+
valueKey: 'addBtnRadius',
|
|
256
|
+
groupKey:'style',
|
|
257
|
+
value: data['addBtnRadius'] || '40',
|
|
258
|
+
placeholder: '请选择圆角设置',
|
|
259
|
+
multiple: false,
|
|
260
|
+
className: 'input80',
|
|
261
|
+
handleCustom({action, data}) {
|
|
262
|
+
XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_radius'})
|
|
263
|
+
.then(res => {
|
|
264
|
+
data.cb(res.list)
|
|
265
|
+
})
|
|
266
|
+
.catch(error => {
|
|
267
|
+
console.error(error);
|
|
268
|
+
});
|
|
269
|
+
},
|
|
270
|
+
},
|
|
271
|
+
{
|
|
272
|
+
label: '背景颜色:',
|
|
135
273
|
ele: 'xd-color',
|
|
136
|
-
valueKey: '
|
|
274
|
+
valueKey: 'addBtnBgColor',
|
|
137
275
|
groupKey:'style',
|
|
138
|
-
value: data['
|
|
139
|
-
placeholder: '
|
|
276
|
+
value: data['addBtnBgColor'] || null,
|
|
277
|
+
placeholder: '请选择背景颜色',
|
|
140
278
|
classNmae: 'input80',
|
|
141
279
|
},
|
|
280
|
+
{
|
|
281
|
+
label: '投影设置:',
|
|
282
|
+
ele: 'xd-shadow',
|
|
283
|
+
groupKey:'style',
|
|
284
|
+
valueKey: 'addBtnShadow',
|
|
285
|
+
value: data['addBtnShadow'] || '',
|
|
286
|
+
setting: {
|
|
287
|
+
selected: 'N'
|
|
288
|
+
},
|
|
289
|
+
handleCustom({action, data}) {
|
|
290
|
+
XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_radius'})
|
|
291
|
+
.then(res => {
|
|
292
|
+
data.cb(res.list)
|
|
293
|
+
})
|
|
294
|
+
.catch(error => {
|
|
295
|
+
console.error(error);
|
|
296
|
+
data.cb([])
|
|
297
|
+
});
|
|
298
|
+
},
|
|
299
|
+
},
|
|
300
|
+
{
|
|
301
|
+
label: '边框设置:',
|
|
302
|
+
ele: 'xd-border',
|
|
303
|
+
groupKey:'style',
|
|
304
|
+
valueKey: 'addBtnBorder',
|
|
305
|
+
value: data['addBtnBorder'] || {},
|
|
306
|
+
setting: {
|
|
307
|
+
selected:'N'
|
|
308
|
+
},
|
|
309
|
+
},
|
|
310
|
+
|
|
311
|
+
{
|
|
312
|
+
ele: 'title',
|
|
313
|
+
label: '列表轮阔样式设置',
|
|
314
|
+
size: 'small',
|
|
315
|
+
groupKey:'style',
|
|
316
|
+
},
|
|
317
|
+
{
|
|
318
|
+
label: '填充:',
|
|
319
|
+
ele: 'xd-margin-padding',
|
|
320
|
+
valueKey: 'contPadding',
|
|
321
|
+
groupKey:'style',
|
|
322
|
+
value: data['contPadding'] || null,
|
|
323
|
+
setting: {
|
|
324
|
+
type: 'padding',
|
|
325
|
+
},
|
|
326
|
+
placeholder: '请设置填充',
|
|
327
|
+
inline: false,
|
|
328
|
+
notice: '设置填充,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">40px 34px 20px 20px</span>像素',
|
|
329
|
+
},
|
|
142
330
|
{
|
|
143
331
|
label: '背景颜色:',
|
|
144
332
|
ele: 'xd-color',
|
|
@@ -167,12 +355,87 @@ export default {
|
|
|
167
355
|
});
|
|
168
356
|
},
|
|
169
357
|
},
|
|
358
|
+
{
|
|
359
|
+
label: '投影设置:',
|
|
360
|
+
ele: 'xd-shadow',
|
|
361
|
+
groupKey:'style',
|
|
362
|
+
valueKey: 'contShadow',
|
|
363
|
+
value: data['contShadow'] || '',
|
|
364
|
+
setting: {
|
|
365
|
+
selected: 'N'
|
|
366
|
+
},
|
|
367
|
+
handleCustom({action, data}) {
|
|
368
|
+
XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_radius'})
|
|
369
|
+
.then(res => {
|
|
370
|
+
data.cb(res.list)
|
|
371
|
+
})
|
|
372
|
+
.catch(error => {
|
|
373
|
+
console.error(error);
|
|
374
|
+
data.cb([])
|
|
375
|
+
});
|
|
376
|
+
},
|
|
377
|
+
},
|
|
378
|
+
{
|
|
379
|
+
label: '边框设置:',
|
|
380
|
+
ele: 'xd-border',
|
|
381
|
+
groupKey:'style',
|
|
382
|
+
valueKey: 'contBorder',
|
|
383
|
+
value: data['contBorder'] || {},
|
|
384
|
+
setting: {
|
|
385
|
+
selected:'N'
|
|
386
|
+
},
|
|
387
|
+
},
|
|
388
|
+
|
|
389
|
+
{
|
|
390
|
+
ele: 'title',
|
|
391
|
+
label: '列表内容样式设置',
|
|
392
|
+
size: 'small',
|
|
393
|
+
groupKey:'style',
|
|
394
|
+
},
|
|
395
|
+
{
|
|
396
|
+
label: '文字颜色:',
|
|
397
|
+
ele: 'xd-color',
|
|
398
|
+
groupKey:'style',
|
|
399
|
+
valueKey: 'textColor',
|
|
400
|
+
value: data['textColor'] || '',
|
|
401
|
+
placeholder: '请选择文字颜色',
|
|
402
|
+
classNmae: 'input80',
|
|
403
|
+
},
|
|
404
|
+
{
|
|
405
|
+
label: 'ICON颜色:',
|
|
406
|
+
ele: 'xd-color',
|
|
407
|
+
valueKey: 'iconColor',
|
|
408
|
+
groupKey:'style',
|
|
409
|
+
value: data['iconColor'] || '',
|
|
410
|
+
placeholder: '请选择ICON颜色',
|
|
411
|
+
classNmae: 'input80',
|
|
412
|
+
},
|
|
413
|
+
|
|
170
414
|
{
|
|
171
415
|
ele: 'title',
|
|
172
|
-
label: '
|
|
416
|
+
label: '数字气泡样式设置',
|
|
173
417
|
size: 'small',
|
|
174
418
|
groupKey:'style',
|
|
175
419
|
},
|
|
420
|
+
{
|
|
421
|
+
label: '数字颜色:',
|
|
422
|
+
ele: 'xd-color',
|
|
423
|
+
groupKey:'style',
|
|
424
|
+
valueKey: 'popColor',
|
|
425
|
+
value: data['popColor'] || '',
|
|
426
|
+
placeholder: '请选择数字颜色',
|
|
427
|
+
classNmae: 'input80',
|
|
428
|
+
},
|
|
429
|
+
{
|
|
430
|
+
label: '气泡背景:',
|
|
431
|
+
ele: 'xd-color',
|
|
432
|
+
valueKey: 'popBgColor',
|
|
433
|
+
groupKey:'style',
|
|
434
|
+
value: data['popBgColor'] || '',
|
|
435
|
+
placeholder: '请选择气泡背景',
|
|
436
|
+
classNmae: 'input80',
|
|
437
|
+
},
|
|
438
|
+
|
|
176
439
|
{
|
|
177
440
|
label: '是否有边框:',
|
|
178
441
|
ele: 'xd-radio',
|
|
@@ -181,6 +444,7 @@ export default {
|
|
|
181
444
|
placeholder: '请选择是否有边框',
|
|
182
445
|
groupKey:'style',
|
|
183
446
|
multiple: false,
|
|
447
|
+
hidden: true,
|
|
184
448
|
className: 'input80',
|
|
185
449
|
list: [
|
|
186
450
|
{label: '是', value: 'Y'},
|
|
@@ -191,6 +455,7 @@ export default {
|
|
|
191
455
|
label: '边框颜色:',
|
|
192
456
|
ele: 'xd-color',
|
|
193
457
|
groupKey:'style',
|
|
458
|
+
hidden: true,
|
|
194
459
|
valueKey: 'is_border_c',
|
|
195
460
|
value: data['is_border_c'] || '',
|
|
196
461
|
placeholder: '请选择边框颜色',
|
|
@@ -201,6 +466,7 @@ export default {
|
|
|
201
466
|
ele: 'el-input',
|
|
202
467
|
type: 'number',
|
|
203
468
|
groupKey:'style',
|
|
469
|
+
hidden: true,
|
|
204
470
|
valueKey: 'is_border_w',
|
|
205
471
|
value: data['is_border_w'] || '',
|
|
206
472
|
placeholder: '请输入边框大小',
|