jufubao-base 1.0.198-beta1 → 1.0.199
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 +152 -77
- package/src/components/JfbBaseAddress/XdTfkItem.vue +117 -0
- package/src/components/JfbBaseConDialog/JfbBaseConDialog.vue +13 -41
- package/src/components/JfbBaseFastLink/Attr.js +24 -8
- package/src/components/JfbBaseFastLink/JfbBaseFastLink.vue +37 -21
- package/src/components/JfbBaseFooter/Attr.js +141 -75
- package/src/components/JfbBaseFooter/JfbBaseFooter.vue +50 -15
- 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/JfbBaseUserCenter/Attr.js +297 -52
- package/src/components/JfbBaseUserCenter/JfbBaseUserCenter.vue +135 -44
- package/src/components/JfbBaseUserInfo/Attr.js +212 -37
- package/src/components/JfbBaseUserInfo/JfbBaseUserInfo.vue +89 -60
- package/src/components/JfbBaseUserOrder/Attr.js +332 -30
- package/src/components/JfbBaseUserOrder/JfbBaseUserOrder.vue +183 -55
- package/src/components/JfbBaseWallet/Attr.js +376 -8
- package/src/components/JfbBaseWallet/JfbBaseWallet.vue +185 -49
- package/src/mixins/componentsMixins.js +210 -35
|
@@ -17,17 +17,28 @@
|
|
|
17
17
|
<view class="x-line"></view>
|
|
18
18
|
<view class="user-center-box" :style="{padding: outMargin}">
|
|
19
19
|
<view :style="{borderRadius: bodyRadius + 'rpx', backgroundColor:bodyBackgroundColor, padding:outPadding}">
|
|
20
|
-
<view class="my-card-add__btn">
|
|
21
|
-
<view :style="
|
|
22
|
-
<view
|
|
20
|
+
<view class="my-card-add__btn" :style="[titleMarginComp]">
|
|
21
|
+
<view :style="[titleStyleComp]">我的{{cardName}}</view>
|
|
22
|
+
<view class="addBtn" :style="[addBtnStyleComp]" @click="handleToLink(add_url)">
|
|
23
|
+
<text>添加{{cardName}}</text>
|
|
24
|
+
<view v-if="isShowICONBtn === 'Y'">
|
|
25
|
+
<xd-font-icon
|
|
26
|
+
icon="iconxiangyou_xian"
|
|
27
|
+
:color="addBtnStyleComp.color"
|
|
28
|
+
:size="20"
|
|
29
|
+
></xd-font-icon>
|
|
30
|
+
</view>
|
|
31
|
+
</view>
|
|
23
32
|
</view>
|
|
24
33
|
<view
|
|
25
34
|
class="my-card-add__link"
|
|
26
35
|
:style="{
|
|
27
36
|
borderRadius: radius + 'rpx',
|
|
28
37
|
background: backgroundColor,
|
|
29
|
-
border:
|
|
30
|
-
marginTop:
|
|
38
|
+
border: borderBoxComp,
|
|
39
|
+
marginTop: rowSpacing + 'rpx',
|
|
40
|
+
padding:contentPaddingComp,
|
|
41
|
+
boxShadow: contShadow
|
|
31
42
|
}"
|
|
32
43
|
>
|
|
33
44
|
<view class="my-card-add__link-num" v-if="0">
|
|
@@ -42,7 +53,8 @@
|
|
|
42
53
|
:style="{
|
|
43
54
|
color:btnTextColor,
|
|
44
55
|
background:btnBgColor,
|
|
45
|
-
fontSize: btnFontSize + 'rpx'
|
|
56
|
+
fontSize: btnFontSize + 'rpx',
|
|
57
|
+
borderRadius:btnRadius + 'rpx',
|
|
46
58
|
}"
|
|
47
59
|
@click="handleToLink(card_url)"
|
|
48
60
|
>
|
|
@@ -71,23 +83,68 @@
|
|
|
71
83
|
},
|
|
72
84
|
mixins: [componentsMixins,extsMixins,JfbBaseUserCenterMixin],
|
|
73
85
|
computed: {
|
|
86
|
+
titleMarginComp(){
|
|
87
|
+
return {
|
|
88
|
+
padding: this.getMarginAndPadding(this.titleMargin, 0),
|
|
89
|
+
}
|
|
90
|
+
},
|
|
74
91
|
outPadding() {
|
|
75
|
-
|
|
76
|
-
str = `${str} ${this.checkValue(this.bodyPadding.right, 0)}rpx`;
|
|
77
|
-
str = `${str} ${this.checkValue(this.bodyPadding.bottom, 0)}rpx`;
|
|
78
|
-
str = `${str} ${this.checkValue(this.bodyPadding.left, 0)}rpx`;
|
|
79
|
-
return str
|
|
92
|
+
return this.getMarginAndPadding(this.bodyPadding,0)
|
|
80
93
|
},
|
|
81
94
|
outMargin() {
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
95
|
+
return this.getMarginAndPadding(this.bodyMargin, 20)
|
|
96
|
+
},
|
|
97
|
+
borderBoxComp() {
|
|
98
|
+
return this.getBorderCompatibleOldStyle(this.contBorder, {
|
|
99
|
+
color: this.is_border_c,
|
|
100
|
+
width: this.is_border_w,
|
|
101
|
+
type: this.is_border,
|
|
102
|
+
style: 'solid'
|
|
103
|
+
})
|
|
87
104
|
},
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
105
|
+
titleStyleComp(){
|
|
106
|
+
return {
|
|
107
|
+
fontSize: this.titleStyle.fontSize || '28rpx',
|
|
108
|
+
color: `${this.titleStyle.color || '#333'}`,
|
|
109
|
+
fontWeight: `${this.titleStyle.fontWeight || 'normal'}`,
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
addBtnStyleComp(){
|
|
113
|
+
let border = {};
|
|
114
|
+
if(this.addBtnBorder && this.addBtnBorder.type === 'Y') {
|
|
115
|
+
let value = this.addBtnBorder.value ||{};
|
|
116
|
+
if(value.width) border['borderWidth'] = value.width + 'rpx';
|
|
117
|
+
if(value.color) border['borderColor'] = value.color;
|
|
118
|
+
if(value.style) border['borderStyle'] = value.style;
|
|
119
|
+
}
|
|
120
|
+
if(this.addBtnBorder && this.addBtnBorder.type === 'N') {
|
|
121
|
+
border['borderWidth'] = 0;
|
|
122
|
+
border['borderColor'] = '';
|
|
123
|
+
border['borderStyle'] = ''
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
let addBtnShadow = {};
|
|
127
|
+
if(this.addBtnShadow && this.addBtnShadow.type === 'Y') {
|
|
128
|
+
let value = this.addBtnShadow.value || {};
|
|
129
|
+
if(value.color && value.width) {
|
|
130
|
+
addBtnShadow['boxShadow'] = `0 0 ${value.width}rpx ${value.color}`
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
return {
|
|
134
|
+
color: this.addBtnStyle.color || this.mainColor,
|
|
135
|
+
fontSize: this.addBtnStyle.fontSize || '26rpx',
|
|
136
|
+
fontWeight: this.addBtnStyle.fontWeight || 'normal',
|
|
137
|
+
borderColor: this.mainColor,
|
|
138
|
+
borderWidth: '2rpx',
|
|
139
|
+
borderStyle:'solid',
|
|
140
|
+
backgroundColor: this.addBtnBgColor || 'rgba(0,0,0,0)',
|
|
141
|
+
borderRadius:this.addBtnRadius + 'rpx',
|
|
142
|
+
...border,
|
|
143
|
+
...addBtnShadow
|
|
144
|
+
}
|
|
145
|
+
},
|
|
146
|
+
contentPaddingComp(){
|
|
147
|
+
return this.getMarginAndPadding(this.contentPadding, 40)
|
|
91
148
|
},
|
|
92
149
|
},
|
|
93
150
|
data() {
|
|
@@ -95,29 +152,43 @@
|
|
|
95
152
|
add_url: '',
|
|
96
153
|
pwd_url: '',
|
|
97
154
|
card_url:'',
|
|
98
|
-
cardName: '',
|
|
155
|
+
cardName: '卡券',
|
|
156
|
+
bodyPadding: {},
|
|
157
|
+
bodyRadius: 0,
|
|
158
|
+
bodyBackgroundColor: 'rgba(0,0,0,0)',
|
|
159
|
+
bodyMargin:{},
|
|
160
|
+
rowSpacing: 20,
|
|
161
|
+
|
|
162
|
+
//title
|
|
163
|
+
titleStyle:{},
|
|
164
|
+
titleMargin:{},
|
|
99
165
|
|
|
100
|
-
|
|
101
|
-
|
|
166
|
+
//添加按钮
|
|
167
|
+
addBtnBgColor:'rgba(0,0,0,0)',
|
|
168
|
+
addBtnStyle:{},
|
|
169
|
+
addBtnBorder:{},
|
|
170
|
+
addBtnShadow:{},
|
|
171
|
+
addBtnRadius: '40',
|
|
172
|
+
isShowICONBtn:'N',
|
|
173
|
+
|
|
174
|
+
//进入
|
|
175
|
+
contentPadding:{},
|
|
102
176
|
backgroundColor: 'rgba(0,0,0,0)',
|
|
103
177
|
radius: 0,
|
|
104
|
-
|
|
178
|
+
contShadow:'0 0 0 rgba(0,0,0,0)',
|
|
179
|
+
|
|
180
|
+
//进入按钮样式
|
|
105
181
|
btnBgColor: '',
|
|
106
182
|
btnTextColor: '',
|
|
107
183
|
btnFontSize: 24,
|
|
184
|
+
btnRadius:'40',
|
|
108
185
|
|
|
109
186
|
//边框
|
|
187
|
+
contBorder:{},
|
|
110
188
|
is_border: 'Y',
|
|
111
189
|
is_border_w: 0,
|
|
112
190
|
is_border_c: '',
|
|
113
191
|
|
|
114
|
-
//整体
|
|
115
|
-
bodyPadding: {},
|
|
116
|
-
bodyRadius: 0,
|
|
117
|
-
bodyBackgroundColor: 'rgba(0,0,0,0)',
|
|
118
|
-
bodyMargin:{},
|
|
119
|
-
cardNameColor: '#333',
|
|
120
|
-
btnBoxColor:'',
|
|
121
192
|
}
|
|
122
193
|
},
|
|
123
194
|
watch: {
|
|
@@ -131,6 +202,7 @@
|
|
|
131
202
|
},
|
|
132
203
|
methods: {
|
|
133
204
|
handleToLink(path, type) {
|
|
205
|
+
if (this.$configProject['isPreview']) return;
|
|
134
206
|
if(!path) {
|
|
135
207
|
console.warn(`跳转地址不存在`)
|
|
136
208
|
}
|
|
@@ -144,33 +216,48 @@
|
|
|
144
216
|
* @param container {object} 业务组件对象自己
|
|
145
217
|
*/
|
|
146
218
|
init(container) {
|
|
147
|
-
|
|
148
|
-
//整体
|
|
219
|
+
this.cardName = getContainerPropsValue(container, 'content.cardName', '卡券');
|
|
149
220
|
this.bodyMargin = getContainerPropsValue(container, 'content.bodyMargin', {});
|
|
150
221
|
this.bodyRadius = getContainerPropsValue(container, 'content.bodyRadius', 0);
|
|
151
222
|
this.bodyBackgroundColor = getContainerPropsValue(container, 'content.bodyBackgroundColor', 'rgba(0,0,0,0)');
|
|
152
223
|
this.bodyPadding = getContainerPropsValue(container, 'content.bodyPadding', {});
|
|
224
|
+
this.rowSpacing = getContainerPropsValue(container, 'content.padding', 20);
|
|
225
|
+
|
|
226
|
+
//标题
|
|
227
|
+
this.titleStyle = getContainerPropsValue(container, 'content.titleStyle', {});
|
|
228
|
+
this.titleMargin = getContainerPropsValue(container, 'content.titleMargin', {})
|
|
153
229
|
|
|
154
|
-
|
|
230
|
+
//添加按钮
|
|
231
|
+
this.addBtnBgColor = getContainerPropsValue(container, 'content.addBtnBgColor', 'rgba(0,0,0,0)');
|
|
232
|
+
this.addBtnStyle = getContainerPropsValue(container, 'content.addBtnStyle', {});
|
|
233
|
+
this.addBtnBorder = getContainerPropsValue(container, 'content.addBtnBorder', {});
|
|
234
|
+
this.addBtnRadius = getContainerPropsValue(container, 'content.addBtnRadius', '40');
|
|
235
|
+
this.addBtnShadow = getContainerPropsValue(container, 'content.addBtnShadow', {});
|
|
236
|
+
this.isShowICONBtn = getContainerPropsValue(container, 'content.isShowICONBtn', 'N')
|
|
237
|
+
|
|
238
|
+
//进入
|
|
239
|
+
this.contentPadding = getContainerPropsValue(container, 'content.contentPadding', {});
|
|
155
240
|
this.radius = getContainerPropsValue(container, 'content.radius', 0);
|
|
156
241
|
this.color = getContainerPropsValue(container, 'content.textColor', '#333');
|
|
157
242
|
this.backgroundColor = getContainerPropsValue(container, 'content.backgroundColor', '#f8f8f8');
|
|
158
|
-
this.
|
|
159
|
-
|
|
243
|
+
this.contShadow = this.getXdShadow({width:20, color:'rgba(0,0,0,0)'},getContainerPropsValue(container, 'content.contShadow', {}))
|
|
244
|
+
|
|
245
|
+
//进入按钮
|
|
246
|
+
this.btnBgColor = getContainerPropsValue(container, 'content.btnBgColor', this.mainGradient||this.mainColor);
|
|
160
247
|
this.btnTextColor = getContainerPropsValue(container, 'content.btnTextColor', '#fff');
|
|
161
248
|
this.btnFontSize = getContainerPropsValue(container, 'content.btnFontSize',26);
|
|
162
|
-
this.
|
|
163
|
-
|
|
249
|
+
this.btnRadius = getContainerPropsValue(container, 'content.btnRadius','40');
|
|
250
|
+
|
|
251
|
+
//边框兼容
|
|
252
|
+
this.contBorder = getContainerPropsValue(container, 'content.contBorder', {});
|
|
164
253
|
this.is_border = getContainerPropsValue(container, 'content.is_border', 'N');
|
|
165
254
|
this.is_border_c = getContainerPropsValue(container, 'content.is_border_c', '#fff');
|
|
166
255
|
this.is_border_w = getContainerPropsValue(container, 'content.is_border_w', 2);
|
|
167
256
|
|
|
168
|
-
|
|
257
|
+
//链接
|
|
169
258
|
this.add_url = getContainerPropsValue(container, 'content.add_url', {value: ''}).value;
|
|
170
259
|
this.pwd_url = getContainerPropsValue(container, 'content.pwd_url', {value: ''}).value;
|
|
171
260
|
this.card_url = getContainerPropsValue(container, 'content.card_url', {value: ''}).value;
|
|
172
|
-
this.cardName = getContainerPropsValue(container, 'content.cardName', '卡券');
|
|
173
|
-
|
|
174
261
|
},
|
|
175
262
|
}
|
|
176
263
|
}
|
|
@@ -182,7 +269,15 @@
|
|
|
182
269
|
|
|
183
270
|
.jfb-base-user-center {
|
|
184
271
|
&__body{
|
|
272
|
+
& .addBtn {
|
|
273
|
+
display: flex;
|
|
274
|
+
justify-content: center;
|
|
275
|
+
align-items: center;
|
|
185
276
|
|
|
277
|
+
& > view {
|
|
278
|
+
margin-left: 10rpx;
|
|
279
|
+
}
|
|
280
|
+
}
|
|
186
281
|
}
|
|
187
282
|
}
|
|
188
283
|
|
|
@@ -197,9 +292,6 @@
|
|
|
197
292
|
width: unit(200, rpx);
|
|
198
293
|
height: unit(60, rpx);
|
|
199
294
|
line-height: unit(60, rpx);
|
|
200
|
-
border-radius: unit(30, rpx);
|
|
201
|
-
border: 1px solid #FF5733;
|
|
202
|
-
color: #FF5733;
|
|
203
295
|
text-align: center;
|
|
204
296
|
}
|
|
205
297
|
}
|
|
@@ -235,7 +327,6 @@
|
|
|
235
327
|
height: unit(80, rpx);
|
|
236
328
|
line-height: unit(80, rpx);
|
|
237
329
|
border-radius: unit(100, rpx);
|
|
238
|
-
font-size: unit(24, rpx);
|
|
239
330
|
text-align: center;
|
|
240
331
|
margin-top: unit(30, rpx);
|
|
241
332
|
}
|
|
@@ -1,17 +1,23 @@
|
|
|
1
1
|
'use strict';
|
|
2
|
+
import {oldTonNewBorAndSha, checkValue} from '@/utils/AttrTools'
|
|
3
|
+
|
|
2
4
|
/**
|
|
3
5
|
* @description 当表单组件中有联动操作时候,使用方法进行返回
|
|
4
6
|
*/
|
|
5
7
|
export default {
|
|
6
8
|
style: [],
|
|
7
9
|
content: (data)=>{
|
|
10
|
+
let defContBorder = oldTonNewBorAndSha(data.contBorder, data.is_border,data.is_border_w ,data.is_border_c,'solid');
|
|
11
|
+
if(defContBorder.type === 'Y' && data.is_border ==='Y') {
|
|
12
|
+
data.is_border = 'N'
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
let defContShadow = oldTonNewBorAndSha(data.contShadow, data.is_shadow,data.is_shadow_w ,data.is_shadow_bg);
|
|
16
|
+
if(defContShadow.type === 'Y' && data.is_shadow ==='Y') {
|
|
17
|
+
data.is_shadow = 'N'
|
|
18
|
+
}
|
|
19
|
+
|
|
8
20
|
return [
|
|
9
|
-
{
|
|
10
|
-
label: '',
|
|
11
|
-
ele: 'slot',
|
|
12
|
-
slot: 'is_reference_title',
|
|
13
|
-
groupKey:'advanced',
|
|
14
|
-
},
|
|
15
21
|
{
|
|
16
22
|
label: '内容排版:',
|
|
17
23
|
ele: 'xd-radio',
|
|
@@ -27,30 +33,66 @@ export default {
|
|
|
27
33
|
]
|
|
28
34
|
},
|
|
29
35
|
{
|
|
30
|
-
label: '
|
|
31
|
-
ele: '
|
|
32
|
-
|
|
36
|
+
label: '退出登录自定义名称:',
|
|
37
|
+
ele: 'el-input',
|
|
38
|
+
type: 'text',
|
|
39
|
+
groupKey:'content',
|
|
40
|
+
valueKey: 'logoutName',
|
|
41
|
+
value: data['logoutName'] || '',
|
|
42
|
+
notice: '退出登录自定义名称设置,默认值:<span style="color:red">[退出登录]</span>',
|
|
43
|
+
inline: false,
|
|
44
|
+
className: 'input60',
|
|
45
|
+
},
|
|
46
|
+
|
|
47
|
+
{
|
|
48
|
+
ele: 'title',
|
|
49
|
+
label: '基础',
|
|
50
|
+
size: 'small',
|
|
33
51
|
groupKey:'style',
|
|
34
|
-
value: data.textColor || '',
|
|
35
|
-
placeholder: '请选择内容文字颜色',
|
|
36
|
-
classNmae: 'input80',
|
|
37
52
|
},
|
|
38
53
|
{
|
|
39
|
-
label: '
|
|
54
|
+
label: '设置外边距:',
|
|
55
|
+
ele: 'xd-margin-padding',
|
|
56
|
+
valueKey: 'margin',
|
|
57
|
+
groupKey:'style',
|
|
58
|
+
value: data['margin'] || null,
|
|
59
|
+
setting: {
|
|
60
|
+
type: 'margin',
|
|
61
|
+
},
|
|
62
|
+
inline: false,
|
|
63
|
+
notice: '设置外边距,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">20</span>像素',
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
label: '设置填充:',
|
|
67
|
+
groupKey:'style',
|
|
68
|
+
ele: 'xd-margin-padding',
|
|
69
|
+
valueKey: 'padding',
|
|
70
|
+
value: data['padding'] || null,
|
|
71
|
+
setting: {
|
|
72
|
+
type: 'padding',
|
|
73
|
+
},
|
|
74
|
+
placeholder: '设置填充',
|
|
75
|
+
inline: false,
|
|
76
|
+
notice: '设置填充,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">20</span>像素',
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
label: '背景颜色:',
|
|
40
80
|
ele: 'xd-color',
|
|
41
81
|
valueKey: 'backgroundColor',
|
|
42
82
|
groupKey:'style',
|
|
43
83
|
value: data.backgroundColor || '',
|
|
44
|
-
|
|
84
|
+
labelInline:true,
|
|
85
|
+
placeholder: '请选择背景颜色',
|
|
45
86
|
classNmae: 'input80',
|
|
46
87
|
},
|
|
47
88
|
{
|
|
48
|
-
label: '
|
|
89
|
+
label: '圆角设置:',
|
|
49
90
|
ele: 'xd-site-select-list',
|
|
50
91
|
valueKey: 'radius',
|
|
51
|
-
value: data['radius'] || '',
|
|
92
|
+
value: data['radius'] || '0',
|
|
93
|
+
labelInline:true,
|
|
52
94
|
groupKey:'style',
|
|
53
|
-
placeholder: '
|
|
95
|
+
placeholder: '请选择圆角设置',
|
|
54
96
|
multiple: false,
|
|
55
97
|
className: 'input60',
|
|
56
98
|
handleCustom({action, data}) {
|
|
@@ -67,36 +109,138 @@ export default {
|
|
|
67
109
|
},
|
|
68
110
|
},
|
|
69
111
|
{
|
|
70
|
-
label: '
|
|
71
|
-
ele: 'xd-
|
|
72
|
-
valueKey: 'margin',
|
|
112
|
+
label: '投影设置:',
|
|
113
|
+
ele: 'xd-shadow',
|
|
73
114
|
groupKey:'style',
|
|
74
|
-
|
|
115
|
+
valueKey: 'contShadow',
|
|
116
|
+
value: defContShadow,
|
|
117
|
+
labelInline:true,
|
|
75
118
|
setting: {
|
|
76
|
-
|
|
119
|
+
selected: defContShadow.type
|
|
120
|
+
},
|
|
121
|
+
handleCustom({action, data}) {
|
|
122
|
+
XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_radius'})
|
|
123
|
+
.then(res => {
|
|
124
|
+
data.cb(res.list)
|
|
125
|
+
})
|
|
126
|
+
.catch(error => {
|
|
127
|
+
console.error(error);
|
|
128
|
+
data.cb([])
|
|
129
|
+
});
|
|
77
130
|
},
|
|
78
|
-
placeholder: '请设置外边距',
|
|
79
|
-
inline: false,
|
|
80
|
-
notice: '设置外边距,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">0</span>像素',
|
|
81
131
|
},
|
|
82
132
|
{
|
|
83
|
-
label: '
|
|
133
|
+
label: '边框设置:',
|
|
134
|
+
ele: 'xd-border',
|
|
84
135
|
groupKey:'style',
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
136
|
+
valueKey: 'contBorder',
|
|
137
|
+
value: defContBorder,
|
|
138
|
+
labelInline:true,
|
|
88
139
|
setting: {
|
|
89
|
-
type
|
|
140
|
+
selected:defContBorder.type
|
|
90
141
|
},
|
|
91
|
-
placeholder: '请设置边距',
|
|
92
|
-
inline: false,
|
|
93
|
-
notice: '设置内边距,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">20</span>像素',
|
|
94
142
|
},
|
|
143
|
+
{
|
|
144
|
+
label: "昵称字体样式设置",
|
|
145
|
+
ele: "xd-text-and-bgc",
|
|
146
|
+
groupKey:'style',
|
|
147
|
+
valueKey: 'nickStyle',
|
|
148
|
+
value: data['nickStyle'] || null,
|
|
149
|
+
setting: {
|
|
150
|
+
fontSize: true,
|
|
151
|
+
color: true,
|
|
152
|
+
bgColor: false,
|
|
153
|
+
weight: true,
|
|
154
|
+
selected:false
|
|
155
|
+
},
|
|
156
|
+
handleCustom({action, data}) {
|
|
157
|
+
XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_font_size'})
|
|
158
|
+
.then(res => {
|
|
159
|
+
data.cb(res.list)
|
|
160
|
+
})
|
|
161
|
+
.catch(error => {
|
|
162
|
+
console.error(error);
|
|
163
|
+
data.cb([])
|
|
164
|
+
});
|
|
165
|
+
},
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
label: "退出字体样式设置",
|
|
169
|
+
ele: "xd-text-and-bgc",
|
|
170
|
+
groupKey:'style',
|
|
171
|
+
valueKey: 'logoutStyle',
|
|
172
|
+
value: data['logoutStyle'] || null,
|
|
173
|
+
setting: {
|
|
174
|
+
fontSize: true,
|
|
175
|
+
color: true,
|
|
176
|
+
bgColor: false,
|
|
177
|
+
weight: true,
|
|
178
|
+
selected:false
|
|
179
|
+
},
|
|
180
|
+
handleCustom({action, data}) {
|
|
181
|
+
XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_font_size'})
|
|
182
|
+
.then(res => {
|
|
183
|
+
data.cb(res.list)
|
|
184
|
+
})
|
|
185
|
+
.catch(error => {
|
|
186
|
+
console.error(error);
|
|
187
|
+
data.cb([])
|
|
188
|
+
});
|
|
189
|
+
},
|
|
190
|
+
},
|
|
191
|
+
|
|
192
|
+
{
|
|
193
|
+
ele: 'title',
|
|
194
|
+
label: '用户图像设置',
|
|
195
|
+
size: 'small',
|
|
196
|
+
groupKey:'style',
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
label: '边框颜色:',
|
|
200
|
+
ele: 'xd-color',
|
|
201
|
+
groupKey:'style',
|
|
202
|
+
valueKey: 'imageColor',
|
|
203
|
+
value: data['imageColor'] || '',
|
|
204
|
+
placeholder: '请选择背景颜色',
|
|
205
|
+
classNmae: 'input80',
|
|
206
|
+
labelInline:true,
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
label: '圆角设置:',
|
|
210
|
+
ele: 'xd-site-select-list',
|
|
211
|
+
valueKey: 'imageRadius',
|
|
212
|
+
value: data['imageRadius'] || '50%',
|
|
213
|
+
groupKey:'style',
|
|
214
|
+
placeholder: '请选择圆角设置',
|
|
215
|
+
labelInline:true,
|
|
216
|
+
multiple: false,
|
|
217
|
+
className: 'input60',
|
|
218
|
+
handleCustom({action, data}) {
|
|
219
|
+
XdBus.getParentApi('getOptionsSettingList')({
|
|
220
|
+
setting_id: 'edtix_style_radius',
|
|
221
|
+
key: Date.now()
|
|
222
|
+
})
|
|
223
|
+
.then(res => {
|
|
224
|
+
data.cb(res.list.map(item=>{
|
|
225
|
+
return {
|
|
226
|
+
...item,
|
|
227
|
+
value: item.value + 'rpx'
|
|
228
|
+
}
|
|
229
|
+
}).concat({label: '圆角', value:'50%'}))
|
|
230
|
+
})
|
|
231
|
+
.catch(error => {
|
|
232
|
+
console.error(error);
|
|
233
|
+
});
|
|
234
|
+
},
|
|
235
|
+
},
|
|
236
|
+
|
|
237
|
+
//=====属性已废弃(不能删除,已隐藏)====
|
|
95
238
|
{
|
|
96
239
|
ele: 'title',
|
|
97
240
|
label: '投影设置',
|
|
98
241
|
size: 'small',
|
|
99
242
|
groupKey:'style',
|
|
243
|
+
hidden: true,
|
|
100
244
|
},
|
|
101
245
|
{
|
|
102
246
|
label: '是否有投影:',
|
|
@@ -107,12 +251,13 @@ export default {
|
|
|
107
251
|
placeholder: '请选择是否投影',
|
|
108
252
|
multiple: false,
|
|
109
253
|
className: 'input80',
|
|
254
|
+
hidden: true,
|
|
110
255
|
list: [
|
|
111
256
|
{label: '是', value: 'Y'},
|
|
112
257
|
{label: '否', value: 'N'},
|
|
113
258
|
]
|
|
114
259
|
},
|
|
115
|
-
|
|
260
|
+
{
|
|
116
261
|
label: '投影颜色:',
|
|
117
262
|
ele: 'xd-color',
|
|
118
263
|
valueKey: 'is_shadow_bg',
|
|
@@ -120,8 +265,9 @@ export default {
|
|
|
120
265
|
value: data['is_shadow_bg'] || '',
|
|
121
266
|
placeholder: '请选择投影颜色',
|
|
122
267
|
classNmae: 'input80',
|
|
268
|
+
hidden: true,
|
|
123
269
|
},
|
|
124
|
-
|
|
270
|
+
{
|
|
125
271
|
label: '投影范围:',
|
|
126
272
|
groupKey:'style',
|
|
127
273
|
ele: 'xd-site-select-list',
|
|
@@ -142,16 +288,21 @@ export default {
|
|
|
142
288
|
console.error(error);
|
|
143
289
|
});
|
|
144
290
|
},
|
|
291
|
+
hidden: true,
|
|
145
292
|
},
|
|
293
|
+
|
|
294
|
+
//=====属性已废弃(不能删除,已隐藏)====
|
|
146
295
|
{
|
|
147
296
|
ele: 'title',
|
|
148
297
|
label: '边框设置',
|
|
149
298
|
size: 'small',
|
|
150
299
|
groupKey:'style',
|
|
300
|
+
hidden: true,
|
|
151
301
|
},
|
|
152
302
|
{
|
|
153
303
|
label: '是否有边框:',
|
|
154
304
|
ele: 'xd-radio',
|
|
305
|
+
hidden: true,
|
|
155
306
|
valueKey: 'is_border',
|
|
156
307
|
groupKey:'style',
|
|
157
308
|
value: data['is_border'] || 'N',
|
|
@@ -163,8 +314,9 @@ export default {
|
|
|
163
314
|
{label: '否', value: 'N'},
|
|
164
315
|
]
|
|
165
316
|
},
|
|
166
|
-
|
|
317
|
+
{
|
|
167
318
|
label: '边框颜色:',
|
|
319
|
+
hidden: true,
|
|
168
320
|
ele: 'xd-color',
|
|
169
321
|
groupKey:'style',
|
|
170
322
|
valueKey: 'is_border_c',
|
|
@@ -172,7 +324,8 @@ export default {
|
|
|
172
324
|
placeholder: '请选择边框颜色',
|
|
173
325
|
classNmae: 'input80',
|
|
174
326
|
},
|
|
175
|
-
|
|
327
|
+
{
|
|
328
|
+
hidden: true,
|
|
176
329
|
label: '边框大小:',
|
|
177
330
|
ele: 'el-input',
|
|
178
331
|
type: 'number',
|
|
@@ -182,6 +335,28 @@ export default {
|
|
|
182
335
|
placeholder: '请输入边框颜色',
|
|
183
336
|
className: 'input80',
|
|
184
337
|
},
|
|
338
|
+
//=====属性已废弃(不能删除,已隐藏)====
|
|
339
|
+
|
|
340
|
+
0&&{
|
|
341
|
+
label: '是否显示设置:',
|
|
342
|
+
ele: 'xd-radio',
|
|
343
|
+
valueKey: 'isSetting',
|
|
344
|
+
value: data['isSetting'] || 'N',
|
|
345
|
+
groupKey:'advanced',
|
|
346
|
+
placeholder: '是否显示设置',
|
|
347
|
+
multiple: false,
|
|
348
|
+
className: 'input80',
|
|
349
|
+
list: [
|
|
350
|
+
{label: '不显示', value: 'N'},
|
|
351
|
+
{label: '显示', value: 'Y'},
|
|
352
|
+
]
|
|
353
|
+
},
|
|
354
|
+
{
|
|
355
|
+
label: '',
|
|
356
|
+
ele: 'slot',
|
|
357
|
+
slot: 'is_reference_title',
|
|
358
|
+
groupKey:'advanced',
|
|
359
|
+
},
|
|
185
360
|
{
|
|
186
361
|
label: '',
|
|
187
362
|
ele: 'slot',
|