jufubao-base 1.0.195 → 1.0.196-beta101
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 +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/JfbBasePoster/Attr.js +8 -0
- package/src/components/JfbBasePoster/JfbBasePoster.vue +3 -0
- package/src/components/JfbBaseUserCenter/Attr.js +308 -52
- package/src/components/JfbBaseUserCenter/JfbBaseUserCenter.vue +138 -31
- package/src/components/JfbBaseUserInfo/Attr.js +194 -33
- package/src/components/JfbBaseUserInfo/JfbBaseUserInfo.vue +80 -44
- package/src/components/JfbBaseUserOrder/Attr.js +322 -28
- package/src/components/JfbBaseUserOrder/JfbBaseUserOrder.vue +205 -54
- package/src/components/JfbBaseWallet/Attr.js +376 -8
- package/src/components/JfbBaseWallet/JfbBaseWallet.vue +185 -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
|
+
labelInline:true,
|
|
50
|
+
className: 'input80',
|
|
51
|
+
list: [
|
|
52
|
+
{label: '展示', value: 'Y'},
|
|
53
|
+
{label: '隐藏', value: 'N'},
|
|
54
|
+
]
|
|
55
|
+
},
|
|
56
|
+
data['isShowBtn'] === 'Y' && {
|
|
57
|
+
label: '售后订单自定义名称:',
|
|
58
|
+
ele: 'el-input',
|
|
59
|
+
type: 'text',
|
|
60
|
+
valueKey: 'afterBuyName',
|
|
61
|
+
groupKey:'content',
|
|
62
|
+
value: data['afterBuyName'] || '',
|
|
63
|
+
placeholder: '请输入售后订单自定义名称',
|
|
64
|
+
className: 'input80',
|
|
65
|
+
rules: [
|
|
66
|
+
{
|
|
67
|
+
required: false,
|
|
68
|
+
validator: (rule, value, callback) => {
|
|
69
|
+
value = value.trim();
|
|
70
|
+
if(value.length === 0) return callback()
|
|
71
|
+
if (value.length < 1 || value.length > 4) callback('售后订单自定义名称长度为:1-4字符');
|
|
72
|
+
else callback()
|
|
73
|
+
},
|
|
74
|
+
trigger: 'blur'
|
|
75
|
+
}
|
|
76
|
+
],
|
|
77
|
+
notice: '售后订单自定义名称设置,默认值:<span style="color:red">售后订单</span>,长度为:1-4字符',
|
|
78
|
+
inline: false,
|
|
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,10 +104,30 @@ 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',
|
|
45
129
|
groupKey:'style',
|
|
130
|
+
labelInline:true,
|
|
46
131
|
valueKey: 'bodyBackgroundColor',
|
|
47
132
|
value: data['bodyBackgroundColor'] || null,
|
|
48
133
|
placeholder: '请选择背景颜色',
|
|
@@ -51,6 +136,7 @@ export default {
|
|
|
51
136
|
{
|
|
52
137
|
label: '圆角设置:',
|
|
53
138
|
groupKey:'style',
|
|
139
|
+
labelInline:true,
|
|
54
140
|
ele: 'xd-site-select-list',
|
|
55
141
|
valueKey: 'bodyRadius',
|
|
56
142
|
value: data['bodyRadius'],
|
|
@@ -67,18 +153,6 @@ export default {
|
|
|
67
153
|
});
|
|
68
154
|
},
|
|
69
155
|
},
|
|
70
|
-
{
|
|
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
156
|
{
|
|
83
157
|
label: '外边距:',
|
|
84
158
|
ele: 'xd-margin-padding',
|
|
@@ -93,7 +167,7 @@ export default {
|
|
|
93
167
|
notice: '设置外边距,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">20</span>像素',
|
|
94
168
|
},
|
|
95
169
|
{
|
|
96
|
-
label: '
|
|
170
|
+
label: '外填充:',
|
|
97
171
|
ele: 'xd-margin-padding',
|
|
98
172
|
valueKey: 'bodyPadding',
|
|
99
173
|
groupKey:'style',
|
|
@@ -103,7 +177,51 @@ export default {
|
|
|
103
177
|
},
|
|
104
178
|
placeholder: '请设置外填充',
|
|
105
179
|
inline: false,
|
|
106
|
-
notice: '
|
|
180
|
+
notice: '设置外填充,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">0</span>像素',
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
label: '标题边距设置:',
|
|
184
|
+
ele: 'xd-margin-padding',
|
|
185
|
+
valueKey: 'titleMargin',
|
|
186
|
+
groupKey:'style',
|
|
187
|
+
value: data['titleMargin'] || null,
|
|
188
|
+
setting: {
|
|
189
|
+
type: 'padding',
|
|
190
|
+
},
|
|
191
|
+
placeholder: '请设置标题边距',
|
|
192
|
+
inline: false,
|
|
193
|
+
notice: '设置标题边距,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">0</span>像素',
|
|
194
|
+
},
|
|
195
|
+
|
|
196
|
+
{
|
|
197
|
+
ele: 'title',
|
|
198
|
+
label: '我的订单设置',
|
|
199
|
+
size: 'small',
|
|
200
|
+
groupKey:'style',
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
label: "样式设置",
|
|
204
|
+
ele: "xd-text-and-bgc",
|
|
205
|
+
groupKey:'style',
|
|
206
|
+
valueKey: 'titleStyle',
|
|
207
|
+
value: data['titleStyle'] || null,
|
|
208
|
+
setting: {
|
|
209
|
+
fontSize: true,
|
|
210
|
+
color: true,
|
|
211
|
+
bgColor: false,
|
|
212
|
+
weight: true,
|
|
213
|
+
selected:false
|
|
214
|
+
},
|
|
215
|
+
handleCustom({action, data}) {
|
|
216
|
+
XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_font_size'})
|
|
217
|
+
.then(res => {
|
|
218
|
+
data.cb(res.list)
|
|
219
|
+
})
|
|
220
|
+
.catch(error => {
|
|
221
|
+
console.error(error);
|
|
222
|
+
data.cb([])
|
|
223
|
+
});
|
|
224
|
+
},
|
|
107
225
|
},
|
|
108
226
|
{
|
|
109
227
|
label: '标题样式颜色:',
|
|
@@ -113,32 +231,135 @@ export default {
|
|
|
113
231
|
value: data['cardNameColor'] || null,
|
|
114
232
|
placeholder: '请选择标题样式颜色',
|
|
115
233
|
classNmae: 'input60',
|
|
234
|
+
hidden:true,
|
|
116
235
|
},
|
|
117
236
|
|
|
118
237
|
{
|
|
119
238
|
ele: 'title',
|
|
120
|
-
label:
|
|
239
|
+
label: `售后订单设置`,
|
|
121
240
|
size: 'small',
|
|
122
241
|
groupKey:'style',
|
|
123
242
|
},
|
|
124
243
|
{
|
|
125
|
-
label: '
|
|
126
|
-
ele: 'xd-
|
|
244
|
+
label: '是否展示ICON:',
|
|
245
|
+
ele: 'xd-radio',
|
|
246
|
+
valueKey: 'isShowICONBtn',
|
|
247
|
+
value: data['isShowICONBtn'] || 'N',
|
|
127
248
|
groupKey:'style',
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
249
|
+
multiple: false,
|
|
250
|
+
labelInline:true,
|
|
251
|
+
className: 'input80',
|
|
252
|
+
list: [
|
|
253
|
+
{label: '展示', value: 'Y'},
|
|
254
|
+
{label: '隐藏', value: 'N'},
|
|
255
|
+
]
|
|
132
256
|
},
|
|
133
257
|
{
|
|
134
|
-
label:
|
|
258
|
+
label: "文字样式设置",
|
|
259
|
+
ele: "xd-text-and-bgc",
|
|
260
|
+
groupKey:'style',
|
|
261
|
+
valueKey: 'addBtnStyle',
|
|
262
|
+
value: data['addBtnStyle'] || null,
|
|
263
|
+
setting: {
|
|
264
|
+
fontSize: true,
|
|
265
|
+
color: true,
|
|
266
|
+
bgColor: false,
|
|
267
|
+
weight: true,
|
|
268
|
+
selected:false
|
|
269
|
+
},
|
|
270
|
+
handleCustom({action, data}) {
|
|
271
|
+
XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_font_size'})
|
|
272
|
+
.then(res => {
|
|
273
|
+
data.cb(res.list)
|
|
274
|
+
})
|
|
275
|
+
.catch(error => {
|
|
276
|
+
console.error(error);
|
|
277
|
+
data.cb([])
|
|
278
|
+
});
|
|
279
|
+
},
|
|
280
|
+
},
|
|
281
|
+
{
|
|
282
|
+
label: '圆角设置:',
|
|
283
|
+
ele: 'xd-site-select-list',
|
|
284
|
+
valueKey: 'addBtnRadius',
|
|
285
|
+
groupKey:'style',
|
|
286
|
+
value: data['addBtnRadius'] || '40',
|
|
287
|
+
labelInline:true,
|
|
288
|
+
placeholder: '请选择圆角设置',
|
|
289
|
+
multiple: false,
|
|
290
|
+
className: 'input80',
|
|
291
|
+
handleCustom({action, data}) {
|
|
292
|
+
XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_radius'})
|
|
293
|
+
.then(res => {
|
|
294
|
+
data.cb(res.list)
|
|
295
|
+
})
|
|
296
|
+
.catch(error => {
|
|
297
|
+
console.error(error);
|
|
298
|
+
});
|
|
299
|
+
},
|
|
300
|
+
},
|
|
301
|
+
{
|
|
302
|
+
label: '背景颜色:',
|
|
135
303
|
ele: 'xd-color',
|
|
136
|
-
valueKey: '
|
|
304
|
+
valueKey: 'addBtnBgColor',
|
|
137
305
|
groupKey:'style',
|
|
138
|
-
value: data['
|
|
139
|
-
placeholder: '
|
|
306
|
+
value: data['addBtnBgColor'] || null,
|
|
307
|
+
placeholder: '请选择背景颜色',
|
|
308
|
+
labelInline:true,
|
|
140
309
|
classNmae: 'input80',
|
|
141
310
|
},
|
|
311
|
+
{
|
|
312
|
+
label: '投影设置:',
|
|
313
|
+
ele: 'xd-shadow',
|
|
314
|
+
groupKey:'style',
|
|
315
|
+
valueKey: 'addBtnShadow',
|
|
316
|
+
value: data['addBtnShadow'] || '',
|
|
317
|
+
labelInline:true,
|
|
318
|
+
setting: {
|
|
319
|
+
selected: 'N'
|
|
320
|
+
},
|
|
321
|
+
handleCustom({action, data}) {
|
|
322
|
+
XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_radius'})
|
|
323
|
+
.then(res => {
|
|
324
|
+
data.cb(res.list)
|
|
325
|
+
})
|
|
326
|
+
.catch(error => {
|
|
327
|
+
console.error(error);
|
|
328
|
+
data.cb([])
|
|
329
|
+
});
|
|
330
|
+
},
|
|
331
|
+
},
|
|
332
|
+
{
|
|
333
|
+
label: '边框设置:',
|
|
334
|
+
ele: 'xd-border',
|
|
335
|
+
groupKey:'style',
|
|
336
|
+
valueKey: 'addBtnBorder',
|
|
337
|
+
value: data['addBtnBorder'] || {},
|
|
338
|
+
labelInline:true,
|
|
339
|
+
setting: {
|
|
340
|
+
selected:'N'
|
|
341
|
+
},
|
|
342
|
+
},
|
|
343
|
+
|
|
344
|
+
{
|
|
345
|
+
ele: 'title',
|
|
346
|
+
label: '内容设置',
|
|
347
|
+
size: 'small',
|
|
348
|
+
groupKey:'style',
|
|
349
|
+
},
|
|
350
|
+
{
|
|
351
|
+
label: '填充:',
|
|
352
|
+
ele: 'xd-margin-padding',
|
|
353
|
+
valueKey: 'contPadding',
|
|
354
|
+
groupKey:'style',
|
|
355
|
+
value: data['contPadding'] || null,
|
|
356
|
+
setting: {
|
|
357
|
+
type: 'padding',
|
|
358
|
+
},
|
|
359
|
+
placeholder: '请设置填充',
|
|
360
|
+
inline: false,
|
|
361
|
+
notice: '设置填充,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">40px 34px 20px 20px</span>像素',
|
|
362
|
+
},
|
|
142
363
|
{
|
|
143
364
|
label: '背景颜色:',
|
|
144
365
|
ele: 'xd-color',
|
|
@@ -147,6 +368,7 @@ export default {
|
|
|
147
368
|
value: data['backgroundColor'] || '',
|
|
148
369
|
placeholder: '请选择背景颜色',
|
|
149
370
|
classNmae: 'input80',
|
|
371
|
+
labelInline:true,
|
|
150
372
|
},
|
|
151
373
|
{
|
|
152
374
|
label: '圆角设置:',
|
|
@@ -157,6 +379,7 @@ export default {
|
|
|
157
379
|
placeholder: '请选择内容圆角设置',
|
|
158
380
|
multiple: false,
|
|
159
381
|
className: 'input60',
|
|
382
|
+
labelInline:true,
|
|
160
383
|
handleCustom({action, data}) {
|
|
161
384
|
XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_radius'})
|
|
162
385
|
.then(res => {
|
|
@@ -168,11 +391,79 @@ export default {
|
|
|
168
391
|
},
|
|
169
392
|
},
|
|
170
393
|
{
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
394
|
+
label: '投影设置:',
|
|
395
|
+
ele: 'xd-shadow',
|
|
396
|
+
groupKey:'style',
|
|
397
|
+
valueKey: 'contShadow',
|
|
398
|
+
value: data['contShadow'] || '',
|
|
399
|
+
labelInline:true,
|
|
400
|
+
setting: {
|
|
401
|
+
selected: 'N'
|
|
402
|
+
},
|
|
403
|
+
handleCustom({action, data}) {
|
|
404
|
+
XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_radius'})
|
|
405
|
+
.then(res => {
|
|
406
|
+
data.cb(res.list)
|
|
407
|
+
})
|
|
408
|
+
.catch(error => {
|
|
409
|
+
console.error(error);
|
|
410
|
+
data.cb([])
|
|
411
|
+
});
|
|
412
|
+
},
|
|
413
|
+
},
|
|
414
|
+
{
|
|
415
|
+
label: '边框设置:',
|
|
416
|
+
ele: 'xd-border',
|
|
174
417
|
groupKey:'style',
|
|
418
|
+
valueKey: 'contBorder',
|
|
419
|
+
value: data['contBorder'] || {},
|
|
420
|
+
labelInline:true,
|
|
421
|
+
setting: {
|
|
422
|
+
selected:'N'
|
|
423
|
+
},
|
|
175
424
|
},
|
|
425
|
+
{
|
|
426
|
+
label: '标题颜色:',
|
|
427
|
+
ele: 'xd-color',
|
|
428
|
+
groupKey:'style',
|
|
429
|
+
valueKey: 'textColor',
|
|
430
|
+
value: data['textColor'] || '',
|
|
431
|
+
placeholder: '请选择文字颜色',
|
|
432
|
+
classNmae: 'input80',
|
|
433
|
+
labelInline:true,
|
|
434
|
+
},
|
|
435
|
+
{
|
|
436
|
+
label: 'ICON颜色:',
|
|
437
|
+
ele: 'xd-color',
|
|
438
|
+
valueKey: 'iconColor',
|
|
439
|
+
groupKey:'style',
|
|
440
|
+
value: data['iconColor'] || '',
|
|
441
|
+
placeholder: '请选择ICON颜色',
|
|
442
|
+
classNmae: 'input80',
|
|
443
|
+
labelInline:true,
|
|
444
|
+
},
|
|
445
|
+
{
|
|
446
|
+
label: '数字气泡颜色:',
|
|
447
|
+
ele: 'xd-color',
|
|
448
|
+
groupKey:'style',
|
|
449
|
+
valueKey: 'popColor',
|
|
450
|
+
value: data['popColor'] || '',
|
|
451
|
+
placeholder: '请选择数字颜色',
|
|
452
|
+
labelInline:true,
|
|
453
|
+
classNmae: 'input80',
|
|
454
|
+
},
|
|
455
|
+
{
|
|
456
|
+
label: '数字气泡背景色:',
|
|
457
|
+
ele: 'xd-color',
|
|
458
|
+
valueKey: 'popBgColor',
|
|
459
|
+
groupKey:'style',
|
|
460
|
+
value: data['popBgColor'] || '',
|
|
461
|
+
placeholder: '请选择气泡背景',
|
|
462
|
+
classNmae: 'input80',
|
|
463
|
+
labelInline:true,
|
|
464
|
+
},
|
|
465
|
+
|
|
466
|
+
|
|
176
467
|
{
|
|
177
468
|
label: '是否有边框:',
|
|
178
469
|
ele: 'xd-radio',
|
|
@@ -181,6 +472,7 @@ export default {
|
|
|
181
472
|
placeholder: '请选择是否有边框',
|
|
182
473
|
groupKey:'style',
|
|
183
474
|
multiple: false,
|
|
475
|
+
hidden: true,
|
|
184
476
|
className: 'input80',
|
|
185
477
|
list: [
|
|
186
478
|
{label: '是', value: 'Y'},
|
|
@@ -191,6 +483,7 @@ export default {
|
|
|
191
483
|
label: '边框颜色:',
|
|
192
484
|
ele: 'xd-color',
|
|
193
485
|
groupKey:'style',
|
|
486
|
+
hidden: true,
|
|
194
487
|
valueKey: 'is_border_c',
|
|
195
488
|
value: data['is_border_c'] || '',
|
|
196
489
|
placeholder: '请选择边框颜色',
|
|
@@ -201,6 +494,7 @@ export default {
|
|
|
201
494
|
ele: 'el-input',
|
|
202
495
|
type: 'number',
|
|
203
496
|
groupKey:'style',
|
|
497
|
+
hidden: true,
|
|
204
498
|
valueKey: 'is_border_w',
|
|
205
499
|
value: data['is_border_w'] || '',
|
|
206
500
|
placeholder: '请输入边框大小',
|