jufubao-base 1.0.186 → 1.0.187-beta3
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/JfbBaseCardDetailEntry/JfbBaseCardDetailEntry.vue +4 -1
- package/src/components/JfbBaseCardEntry/JfbBaseCardEntry.vue +17 -5
- package/src/components/JfbBaseFastLink/Attr.js +22 -6
- package/src/components/JfbBaseFastLink/JfbBaseFastLink.vue +35 -20
- package/src/components/JfbBaseFastLink/XdFastNav.vue +1 -2
- package/src/components/JfbBaseFooter/Attr.js +141 -75
- package/src/components/JfbBaseFooter/JfbBaseFooter.vue +50 -15
- package/src/components/JfbBaseOrderDetail/Api.js +1 -0
- package/src/components/JfbBaseOrderDetail/Attr.js +201 -65
- package/src/components/JfbBaseOrderDetail/JfbBaseOrderDetail.vue +168 -57
- 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 +945 -411
- package/src/components/JfbBasePhoneCollect/JfbBasePhoneCollect.vue +307 -27
- package/src/components/JfbBasePhoneLogin/Attr.js +893 -405
- package/src/components/JfbBasePhoneLogin/JfbBasePhoneLogin.vue +609 -253
- package/src/components/JfbBaseSuccess/Attr.js +1 -1
- package/src/components/JfbBaseTfkCardDetail/JfbBaseTfkCardDetail.vue +4 -1
- package/src/components/JfbBaseTfkCardLogin/JfbBaseTfkCardLogin.vue +0 -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 +344 -3
- package/src/components/JfbBaseWallet/JfbBaseWallet.vue +173 -49
|
@@ -6,12 +6,6 @@ export default {
|
|
|
6
6
|
style: [],
|
|
7
7
|
content: (data)=>{
|
|
8
8
|
return [
|
|
9
|
-
{
|
|
10
|
-
label: '',
|
|
11
|
-
ele: 'slot',
|
|
12
|
-
slot: 'is_reference_title',
|
|
13
|
-
groupKey:'advanced',
|
|
14
|
-
},
|
|
15
9
|
{
|
|
16
10
|
label: '内容排版:',
|
|
17
11
|
ele: 'xd-radio',
|
|
@@ -27,30 +21,39 @@ export default {
|
|
|
27
21
|
]
|
|
28
22
|
},
|
|
29
23
|
{
|
|
30
|
-
label: '
|
|
31
|
-
ele: '
|
|
32
|
-
|
|
33
|
-
groupKey:'
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
24
|
+
label: '退出登录自定义名称:',
|
|
25
|
+
ele: 'el-input',
|
|
26
|
+
type: 'text',
|
|
27
|
+
groupKey:'content',
|
|
28
|
+
valueKey: 'logoutName',
|
|
29
|
+
value: data['logoutName'] || '',
|
|
30
|
+
notice: '退出登录自定义名称设置,默认值:<span style="color:red">[退出登录]</span>',
|
|
31
|
+
inline: false,
|
|
32
|
+
className: 'input60',
|
|
33
|
+
},
|
|
34
|
+
|
|
35
|
+
{
|
|
36
|
+
ele: 'title',
|
|
37
|
+
label: '用户图像设置',
|
|
38
|
+
size: 'small',
|
|
39
|
+
groupKey:'content',
|
|
37
40
|
},
|
|
38
41
|
{
|
|
39
|
-
label: '
|
|
42
|
+
label: '边框颜色:',
|
|
40
43
|
ele: 'xd-color',
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
value: data
|
|
44
|
-
placeholder: '
|
|
44
|
+
groupKey:'content',
|
|
45
|
+
valueKey: 'imageColor',
|
|
46
|
+
value: data['imageColor'] || '',
|
|
47
|
+
placeholder: '请选择背景颜色',
|
|
45
48
|
classNmae: 'input80',
|
|
46
49
|
},
|
|
47
50
|
{
|
|
48
|
-
label: '
|
|
51
|
+
label: '圆角设置:',
|
|
49
52
|
ele: 'xd-site-select-list',
|
|
50
|
-
valueKey: '
|
|
51
|
-
value: data['
|
|
52
|
-
groupKey:'
|
|
53
|
-
placeholder: '
|
|
53
|
+
valueKey: 'imageRadius',
|
|
54
|
+
value: data['imageRadius'] || '50%',
|
|
55
|
+
groupKey:'content',
|
|
56
|
+
placeholder: '请选择圆角设置',
|
|
54
57
|
multiple: false,
|
|
55
58
|
className: 'input60',
|
|
56
59
|
handleCustom({action, data}) {
|
|
@@ -59,15 +62,21 @@ export default {
|
|
|
59
62
|
key: Date.now()
|
|
60
63
|
})
|
|
61
64
|
.then(res => {
|
|
62
|
-
data.cb(res.list
|
|
65
|
+
data.cb(res.list.map(item=>{
|
|
66
|
+
return {
|
|
67
|
+
...item,
|
|
68
|
+
value: item.value + 'rpx'
|
|
69
|
+
}
|
|
70
|
+
}).concat({label: '圆角', value:'50%'}))
|
|
63
71
|
})
|
|
64
72
|
.catch(error => {
|
|
65
73
|
console.error(error);
|
|
66
74
|
});
|
|
67
75
|
},
|
|
68
76
|
},
|
|
77
|
+
|
|
69
78
|
{
|
|
70
|
-
label: '
|
|
79
|
+
label: '设置外边距:',
|
|
71
80
|
ele: 'xd-margin-padding',
|
|
72
81
|
valueKey: 'margin',
|
|
73
82
|
groupKey:'style',
|
|
@@ -75,12 +84,11 @@ export default {
|
|
|
75
84
|
setting: {
|
|
76
85
|
type: 'margin',
|
|
77
86
|
},
|
|
78
|
-
placeholder: '请设置外边距',
|
|
79
87
|
inline: false,
|
|
80
|
-
notice: '设置外边距,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">
|
|
88
|
+
notice: '设置外边距,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">20</span>像素',
|
|
81
89
|
},
|
|
82
90
|
{
|
|
83
|
-
label: '
|
|
91
|
+
label: '设置填充:',
|
|
84
92
|
groupKey:'style',
|
|
85
93
|
ele: 'xd-margin-padding',
|
|
86
94
|
valueKey: 'padding',
|
|
@@ -88,15 +96,127 @@ export default {
|
|
|
88
96
|
setting: {
|
|
89
97
|
type: 'padding',
|
|
90
98
|
},
|
|
91
|
-
placeholder: '
|
|
99
|
+
placeholder: '设置填充',
|
|
92
100
|
inline: false,
|
|
93
|
-
notice: '
|
|
101
|
+
notice: '设置填充,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">20</span>像素',
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
label: '背景颜色:',
|
|
105
|
+
ele: 'xd-color',
|
|
106
|
+
valueKey: 'backgroundColor',
|
|
107
|
+
groupKey:'style',
|
|
108
|
+
value: data.backgroundColor || '',
|
|
109
|
+
placeholder: '请选择背景颜色',
|
|
110
|
+
classNmae: 'input80',
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
label: '圆角设置:',
|
|
114
|
+
ele: 'xd-site-select-list',
|
|
115
|
+
valueKey: 'radius',
|
|
116
|
+
value: data['radius'] || '0',
|
|
117
|
+
groupKey:'style',
|
|
118
|
+
placeholder: '请选择圆角设置',
|
|
119
|
+
multiple: false,
|
|
120
|
+
className: 'input60',
|
|
121
|
+
handleCustom({action, data}) {
|
|
122
|
+
XdBus.getParentApi('getOptionsSettingList')({
|
|
123
|
+
setting_id: 'edtix_style_radius',
|
|
124
|
+
key: Date.now()
|
|
125
|
+
})
|
|
126
|
+
.then(res => {
|
|
127
|
+
data.cb(res.list)
|
|
128
|
+
})
|
|
129
|
+
.catch(error => {
|
|
130
|
+
console.error(error);
|
|
131
|
+
});
|
|
132
|
+
},
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
label: '投影设置:',
|
|
136
|
+
ele: 'xd-shadow',
|
|
137
|
+
groupKey:'style',
|
|
138
|
+
valueKey: 'contShadow',
|
|
139
|
+
value: data['contShadow'] || '',
|
|
140
|
+
setting: {
|
|
141
|
+
selected: 'N'
|
|
142
|
+
},
|
|
143
|
+
handleCustom({action, data}) {
|
|
144
|
+
XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_radius'})
|
|
145
|
+
.then(res => {
|
|
146
|
+
data.cb(res.list)
|
|
147
|
+
})
|
|
148
|
+
.catch(error => {
|
|
149
|
+
console.error(error);
|
|
150
|
+
data.cb([])
|
|
151
|
+
});
|
|
152
|
+
},
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
label: '边框设置:',
|
|
156
|
+
ele: 'xd-border',
|
|
157
|
+
groupKey:'style',
|
|
158
|
+
valueKey: 'contBorder',
|
|
159
|
+
value: data['contBorder'] || '',
|
|
160
|
+
setting: {
|
|
161
|
+
selected:'N'
|
|
162
|
+
},
|
|
94
163
|
},
|
|
164
|
+
{
|
|
165
|
+
label: "昵称字体样式设置",
|
|
166
|
+
ele: "xd-text-and-bgc",
|
|
167
|
+
groupKey:'style',
|
|
168
|
+
valueKey: 'nickStyle',
|
|
169
|
+
value: data['nickStyle'] || null,
|
|
170
|
+
setting: {
|
|
171
|
+
fontSize: true,
|
|
172
|
+
color: true,
|
|
173
|
+
bgColor: false,
|
|
174
|
+
weight: true,
|
|
175
|
+
selected:false
|
|
176
|
+
},
|
|
177
|
+
handleCustom({action, data}) {
|
|
178
|
+
XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_font_size'})
|
|
179
|
+
.then(res => {
|
|
180
|
+
data.cb(res.list)
|
|
181
|
+
})
|
|
182
|
+
.catch(error => {
|
|
183
|
+
console.error(error);
|
|
184
|
+
data.cb([])
|
|
185
|
+
});
|
|
186
|
+
},
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
label: "退出字体样式设置",
|
|
190
|
+
ele: "xd-text-and-bgc",
|
|
191
|
+
groupKey:'style',
|
|
192
|
+
valueKey: 'logoutStyle',
|
|
193
|
+
value: data['logoutStyle'] || null,
|
|
194
|
+
setting: {
|
|
195
|
+
fontSize: true,
|
|
196
|
+
color: true,
|
|
197
|
+
bgColor: false,
|
|
198
|
+
weight: true,
|
|
199
|
+
selected:false
|
|
200
|
+
},
|
|
201
|
+
handleCustom({action, data}) {
|
|
202
|
+
XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_font_size'})
|
|
203
|
+
.then(res => {
|
|
204
|
+
data.cb(res.list)
|
|
205
|
+
})
|
|
206
|
+
.catch(error => {
|
|
207
|
+
console.error(error);
|
|
208
|
+
data.cb([])
|
|
209
|
+
});
|
|
210
|
+
},
|
|
211
|
+
},
|
|
212
|
+
|
|
213
|
+
//=====属性已废弃(不能删除,已隐藏)====
|
|
95
214
|
{
|
|
96
215
|
ele: 'title',
|
|
97
216
|
label: '投影设置',
|
|
98
217
|
size: 'small',
|
|
99
218
|
groupKey:'style',
|
|
219
|
+
hidden: true,
|
|
100
220
|
},
|
|
101
221
|
{
|
|
102
222
|
label: '是否有投影:',
|
|
@@ -107,6 +227,7 @@ export default {
|
|
|
107
227
|
placeholder: '请选择是否投影',
|
|
108
228
|
multiple: false,
|
|
109
229
|
className: 'input80',
|
|
230
|
+
hidden: true,
|
|
110
231
|
list: [
|
|
111
232
|
{label: '是', value: 'Y'},
|
|
112
233
|
{label: '否', value: 'N'},
|
|
@@ -120,6 +241,7 @@ export default {
|
|
|
120
241
|
value: data['is_shadow_bg'] || '',
|
|
121
242
|
placeholder: '请选择投影颜色',
|
|
122
243
|
classNmae: 'input80',
|
|
244
|
+
hidden: true,
|
|
123
245
|
},
|
|
124
246
|
data['is_shadow'] === 'Y' && {
|
|
125
247
|
label: '投影范围:',
|
|
@@ -142,16 +264,19 @@ export default {
|
|
|
142
264
|
console.error(error);
|
|
143
265
|
});
|
|
144
266
|
},
|
|
267
|
+
hidden: true,
|
|
145
268
|
},
|
|
146
269
|
{
|
|
147
270
|
ele: 'title',
|
|
148
271
|
label: '边框设置',
|
|
149
272
|
size: 'small',
|
|
150
273
|
groupKey:'style',
|
|
274
|
+
hidden: true,
|
|
151
275
|
},
|
|
152
276
|
{
|
|
153
277
|
label: '是否有边框:',
|
|
154
278
|
ele: 'xd-radio',
|
|
279
|
+
hidden: true,
|
|
155
280
|
valueKey: 'is_border',
|
|
156
281
|
groupKey:'style',
|
|
157
282
|
value: data['is_border'] || 'N',
|
|
@@ -165,6 +290,7 @@ export default {
|
|
|
165
290
|
},
|
|
166
291
|
data['is_border'] === 'Y' && {
|
|
167
292
|
label: '边框颜色:',
|
|
293
|
+
hidden: true,
|
|
168
294
|
ele: 'xd-color',
|
|
169
295
|
groupKey:'style',
|
|
170
296
|
valueKey: 'is_border_c',
|
|
@@ -173,6 +299,7 @@ export default {
|
|
|
173
299
|
classNmae: 'input80',
|
|
174
300
|
},
|
|
175
301
|
data['is_border'] === 'Y' && {
|
|
302
|
+
hidden: true,
|
|
176
303
|
label: '边框大小:',
|
|
177
304
|
ele: 'el-input',
|
|
178
305
|
type: 'number',
|
|
@@ -182,6 +309,28 @@ export default {
|
|
|
182
309
|
placeholder: '请输入边框颜色',
|
|
183
310
|
className: 'input80',
|
|
184
311
|
},
|
|
312
|
+
//=====属性已废弃====
|
|
313
|
+
|
|
314
|
+
0&&{
|
|
315
|
+
label: '是否显示设置:',
|
|
316
|
+
ele: 'xd-radio',
|
|
317
|
+
valueKey: 'isSetting',
|
|
318
|
+
value: data['isSetting'] || 'N',
|
|
319
|
+
groupKey:'advanced',
|
|
320
|
+
placeholder: '是否显示设置',
|
|
321
|
+
multiple: false,
|
|
322
|
+
className: 'input80',
|
|
323
|
+
list: [
|
|
324
|
+
{label: '不显示', value: 'N'},
|
|
325
|
+
{label: '显示', value: 'Y'},
|
|
326
|
+
]
|
|
327
|
+
},
|
|
328
|
+
{
|
|
329
|
+
label: '',
|
|
330
|
+
ele: 'slot',
|
|
331
|
+
slot: 'is_reference_title',
|
|
332
|
+
groupKey:'advanced',
|
|
333
|
+
},
|
|
185
334
|
{
|
|
186
335
|
label: '',
|
|
187
336
|
ele: 'slot',
|
|
@@ -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;
|