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
|
@@ -13,25 +13,18 @@
|
|
|
13
13
|
<view class="jfb-base-user-order__edit-icon" @click="delEdit">删除</view>
|
|
14
14
|
</view>
|
|
15
15
|
<!-- #endif -->
|
|
16
|
-
<view
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
:style="{ padding: outMargin}"
|
|
20
|
-
>
|
|
21
|
-
<view :style="{borderRadius: bodyRadius + 'rpx', backgroundColor:bodyBackgroundColor, padding:outPadding}">
|
|
16
|
+
<view class="jfb-base-user-order__body">
|
|
17
|
+
<view class="x-line"></view>
|
|
18
|
+
<view :style="[bodyStyleComp]" v-if="list.length > 0">
|
|
22
19
|
<view class="my-order__add">
|
|
23
|
-
<view :style="{
|
|
24
|
-
<view
|
|
20
|
+
<view :style="[titleStyleComp]">{{myOrderName}}</view>
|
|
21
|
+
<view
|
|
22
|
+
v-if="isShowBtn === 'Y'"
|
|
23
|
+
@click="handleToLink(afterUrl)"
|
|
24
|
+
:style="[addBtnStyleComp]"
|
|
25
|
+
>{{afterBuyName}}</view>
|
|
25
26
|
</view>
|
|
26
|
-
<view
|
|
27
|
-
class="my-order__content"
|
|
28
|
-
:style="{
|
|
29
|
-
borderRadius: radius + 'rpx',
|
|
30
|
-
background: backgroundColor,
|
|
31
|
-
marginTop: spacing + 'rpx',
|
|
32
|
-
border: borderBox,
|
|
33
|
-
}"
|
|
34
|
-
>
|
|
27
|
+
<view class="my-order__content" :style="[contStyleComp]">
|
|
35
28
|
<view class="my-order__content-type">
|
|
36
29
|
<view
|
|
37
30
|
class="my-order__content-type-item"
|
|
@@ -40,14 +33,16 @@
|
|
|
40
33
|
@click="handleToLink(orderListUrl, item.status)"
|
|
41
34
|
>
|
|
42
35
|
<view class="my-order__content-type-item-icon">
|
|
36
|
+
<image v-if="item.image" :src="item.image"></image>
|
|
43
37
|
<xd-font-icon
|
|
38
|
+
v-else
|
|
44
39
|
:icon="item.icon"
|
|
45
40
|
:color="iconColor"
|
|
46
41
|
:size="item.size"
|
|
47
42
|
></xd-font-icon>
|
|
48
43
|
<view
|
|
49
44
|
v-if="item.num"
|
|
50
|
-
:style="
|
|
45
|
+
:style="[popComp]"
|
|
51
46
|
class="my-order__content-type-item-number"
|
|
52
47
|
>{{item.num}}</view>
|
|
53
48
|
</view>
|
|
@@ -67,6 +62,7 @@
|
|
|
67
62
|
import componentsMixins from "@/mixins/componentsMixins";
|
|
68
63
|
import extsMixins from "@/mixins/extsMixins"
|
|
69
64
|
import { getContainerPropsValue } from "@/utils/xd.base";
|
|
65
|
+
import getServiceUrl from "@/common/getServiceUrl";
|
|
70
66
|
export default {
|
|
71
67
|
name: "JfbBaseUserOrder",
|
|
72
68
|
components: {
|
|
@@ -74,23 +70,95 @@
|
|
|
74
70
|
},
|
|
75
71
|
mixins: [componentsMixins,extsMixins,JfbBaseUserOrderMixin],
|
|
76
72
|
computed: {
|
|
77
|
-
|
|
78
|
-
let str = `${this.checkValue(this.bodyPadding.top, 0)}rpx`;
|
|
79
|
-
str = `${str} ${this.checkValue(this.bodyPadding.right, 0)}rpx`;
|
|
80
|
-
str = `${str} ${this.checkValue(this.bodyPadding.bottom, 0)}rpx`;
|
|
81
|
-
str = `${str} ${this.checkValue(this.bodyPadding.left, 0)}rpx`;
|
|
82
|
-
return str
|
|
83
|
-
},
|
|
84
|
-
outMargin() {
|
|
85
|
-
let str = `${this.checkValue(this.bodyMargin.top, 20)}rpx`;
|
|
86
|
-
str = `${str} ${this.checkValue(this.bodyMargin.right, 20)}rpx`;
|
|
87
|
-
str = `${str} ${this.checkValue(this.bodyMargin.bottom, 20)}rpx`;
|
|
88
|
-
str = `${str} ${this.checkValue(this.bodyMargin.left, 20)}rpx`;
|
|
89
|
-
return str
|
|
90
|
-
},
|
|
91
|
-
borderBox() {
|
|
73
|
+
borderComp() {
|
|
92
74
|
if (this.is_border === 'Y') return `${this.is_border_w}rpx solid ${this.is_border_c}`;
|
|
93
75
|
else return '0';
|
|
76
|
+
},
|
|
77
|
+
titleStyleComp(){
|
|
78
|
+
return {
|
|
79
|
+
fontSize: this.titleStyle.fontSize || '28rpx',
|
|
80
|
+
color: `${this.titleStyle.color || this.cardNameColor ||'#333'}`,
|
|
81
|
+
fontWeight: `${this.titleStyle.fontWeight || 'normal'}`,
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
bodyStyleComp(){
|
|
85
|
+
let margin = `${this.checkValue(this.bodyMargin.top, 20)}rpx`;
|
|
86
|
+
margin = `${margin} ${this.checkValue(this.bodyMargin.right, 20)}rpx`;
|
|
87
|
+
margin = `${margin} ${this.checkValue(this.bodyMargin.bottom, 20)}rpx`;
|
|
88
|
+
margin = `${margin} ${this.checkValue(this.bodyMargin.left, 20)}rpx`;
|
|
89
|
+
|
|
90
|
+
let padding = `${this.checkValue(this.bodyPadding.top, 0)}rpx`;
|
|
91
|
+
padding = `${padding} ${this.checkValue(this.bodyPadding.right, 0)}rpx`;
|
|
92
|
+
padding = `${padding} ${this.checkValue(this.bodyPadding.bottom, 0)}rpx`;
|
|
93
|
+
padding = `${padding} ${this.checkValue(this.bodyPadding.left, 0)}rpx`;
|
|
94
|
+
|
|
95
|
+
return {
|
|
96
|
+
margin,
|
|
97
|
+
padding,
|
|
98
|
+
borderRadius: this.bodyRadius + 'rpx',
|
|
99
|
+
backgroundColor: this.bodyBackgroundColor,
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
addBtnStyleComp(){
|
|
103
|
+
let border = {};
|
|
104
|
+
if(this.addBtnBorder && this.addBtnBorder.type === 'Y') {
|
|
105
|
+
let value = this.addBtnBorder.value ||{};
|
|
106
|
+
if(value.width) border['borderWidth'] = value.width + 'rpx';
|
|
107
|
+
if(value.color) border['borderColor'] = value.color;
|
|
108
|
+
if(value.style) border['borderStyle'] = value.style;
|
|
109
|
+
}
|
|
110
|
+
let addBtnShadow = {};
|
|
111
|
+
if(this.addBtnShadow && this.addBtnShadow.type === 'Y') {
|
|
112
|
+
let value = this.addBtnShadow.value || {};
|
|
113
|
+
if(value.color && value.width) {
|
|
114
|
+
addBtnShadow['boxShadow'] = `0 0 ${value.width}rpx ${value.color}`
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
return {
|
|
118
|
+
color: this.addBtnStyle.color || this.mainColor,
|
|
119
|
+
fontSize: this.addBtnStyle.fontSize || '26rpx',
|
|
120
|
+
fontWeight: this.addBtnStyle.fontWeight || 'normal',
|
|
121
|
+
borderColor: this.mainColor,
|
|
122
|
+
borderWidth: '2rpx',
|
|
123
|
+
borderStyle:'solid',
|
|
124
|
+
backgroundColor: this.addBtnBgColor || 'rgba(0,0,0,0)',
|
|
125
|
+
borderRadius:this.addBtnRadius + 'rpx',
|
|
126
|
+
...border,
|
|
127
|
+
...addBtnShadow
|
|
128
|
+
}
|
|
129
|
+
},
|
|
130
|
+
popComp(){
|
|
131
|
+
return {
|
|
132
|
+
backgroundColor: this.popBgColor,
|
|
133
|
+
color: this.popColor || '#f00',
|
|
134
|
+
}
|
|
135
|
+
},
|
|
136
|
+
contStyleComp(){
|
|
137
|
+
let borderStyle = 'solid';
|
|
138
|
+
let borderWidth = 0;
|
|
139
|
+
let borderColor = 'rgba(0,0,0,0)';
|
|
140
|
+
if(this.is_border === 'Y') {
|
|
141
|
+
if(this.is_border_w !== undefined) borderWidth = this.is_border_w;
|
|
142
|
+
if(this.is_border_c !== undefined) borderColor = this.is_border_c;
|
|
143
|
+
}
|
|
144
|
+
if(this.contBorder && this.contBorder.type === 'Y') {
|
|
145
|
+
let value = this.contBorder.value ||{};
|
|
146
|
+
if(value.width) borderWidth = value.width + 'rpx';
|
|
147
|
+
if(value.color) borderColor = value.color;
|
|
148
|
+
if(value.style) borderStyle = value.style;
|
|
149
|
+
}
|
|
150
|
+
let padding = `${this.checkValue(this.contPadding.top, 40)}rpx`;
|
|
151
|
+
padding = `${padding} ${this.checkValue(this.contPadding.right, 20)}rpx`;
|
|
152
|
+
padding = `${padding} ${this.checkValue(this.contPadding.bottom, 34)}rpx`;
|
|
153
|
+
padding = `${padding} ${this.checkValue(this.contPadding.left, 20)}rpx`;
|
|
154
|
+
return {
|
|
155
|
+
borderRadius: this.radius + 'rpx',
|
|
156
|
+
backgroundColor: this.backgroundColor,
|
|
157
|
+
marginTop: this.spacing + 'rpx',
|
|
158
|
+
border: `${borderWidth} ${borderStyle} ${borderColor}`,
|
|
159
|
+
boxShadow: this.contShadow,
|
|
160
|
+
padding
|
|
161
|
+
}
|
|
94
162
|
}
|
|
95
163
|
},
|
|
96
164
|
data() {
|
|
@@ -98,14 +166,41 @@
|
|
|
98
166
|
options: {},
|
|
99
167
|
list: [],
|
|
100
168
|
|
|
101
|
-
|
|
169
|
+
//整体
|
|
170
|
+
bodyPadding: {},
|
|
171
|
+
bodyRadius: 0,
|
|
172
|
+
bodyBackgroundColor: 'rgba(0,0,0,0)',
|
|
173
|
+
bodyMargin: { },
|
|
174
|
+
spacing:20,
|
|
175
|
+
|
|
176
|
+
//内容列表
|
|
102
177
|
color: '#333',
|
|
103
|
-
backgroundColor: 'rgba(0,0,0,0)',
|
|
104
|
-
radius: 0,
|
|
105
178
|
iconColor: '',
|
|
106
|
-
spacing:20,
|
|
107
179
|
|
|
108
|
-
|
|
180
|
+
//我的标题
|
|
181
|
+
myOrderName: '我的订单',
|
|
182
|
+
cardNameColor: '#333',
|
|
183
|
+
titleStyle: {},
|
|
184
|
+
|
|
185
|
+
//售后订单
|
|
186
|
+
isShowBtn:'Y',
|
|
187
|
+
afterBuyName:'售后订单',
|
|
188
|
+
addBtnBgColor:'rgba(0,0,0,0)',
|
|
189
|
+
addBtnStyle:{},
|
|
190
|
+
addBtnBorder:{},
|
|
191
|
+
addBtnShadow:{},
|
|
192
|
+
addBtnRadius: '40',
|
|
193
|
+
|
|
194
|
+
//数字气泡
|
|
195
|
+
popColor:'#fff',
|
|
196
|
+
popBgColor:'#f00',
|
|
197
|
+
|
|
198
|
+
//content
|
|
199
|
+
backgroundColor: 'rgba(0,0,0,0)',
|
|
200
|
+
radius: 0,
|
|
201
|
+
contPadding:{},
|
|
202
|
+
contShadow:{},
|
|
203
|
+
contBorder:{},
|
|
109
204
|
is_border: 'Y',
|
|
110
205
|
is_border_w: 0,
|
|
111
206
|
is_border_c: '',
|
|
@@ -114,13 +209,6 @@
|
|
|
114
209
|
afterUrl: null,
|
|
115
210
|
orderListUrl: null,
|
|
116
211
|
|
|
117
|
-
//整体
|
|
118
|
-
bodyPadding: {top: 20, left: 20, right: 20, bottom: 20},
|
|
119
|
-
bodyRadius: 0,
|
|
120
|
-
bodyBackgroundColor: 'rgba(0,0,0,0)',
|
|
121
|
-
bodyMargin: {top: 0, left: 0, right: 0, bottom: 0},
|
|
122
|
-
cardNameColor: '#333',
|
|
123
|
-
subColor:'',
|
|
124
212
|
}
|
|
125
213
|
},
|
|
126
214
|
watch: {
|
|
@@ -178,6 +266,24 @@
|
|
|
178
266
|
* @param container {object} 业务组件对象自己
|
|
179
267
|
*/
|
|
180
268
|
init(container) {
|
|
269
|
+
this.isShowBtn = getContainerPropsValue(container, 'content.isShowBtn', 'Y');
|
|
270
|
+
this.afterBuyName = getContainerPropsValue(container, 'content.afterBuyName', '售后订单');
|
|
271
|
+
|
|
272
|
+
//数字气泡
|
|
273
|
+
this.popColor = getContainerPropsValue(container, 'content.popColor', '#fff');
|
|
274
|
+
this.popBgColor = getContainerPropsValue(container, 'content.popBgColor', '#f00');
|
|
275
|
+
|
|
276
|
+
|
|
277
|
+
//标题
|
|
278
|
+
this.myOrderName = getContainerPropsValue(container, 'content.myOrderName', '我的订单')
|
|
279
|
+
this.titleStyle = getContainerPropsValue(container, 'content.titleStyle', {});
|
|
280
|
+
|
|
281
|
+
//添加按钮
|
|
282
|
+
this.addBtnBgColor = getContainerPropsValue(container, 'content.addBtnBgColor', 'rgba(0,0,0,0)');
|
|
283
|
+
this.addBtnStyle = getContainerPropsValue(container, 'content.addBtnStyle', {});
|
|
284
|
+
this.addBtnBorder = getContainerPropsValue(container, 'content.addBtnBorder', {});
|
|
285
|
+
this.addBtnRadius = getContainerPropsValue(container, 'content.addBtnRadius', '40');
|
|
286
|
+
this.addBtnShadow = getContainerPropsValue(container, 'content.addBtnShadow', {});
|
|
181
287
|
|
|
182
288
|
//整体
|
|
183
289
|
this.bodyMargin = getContainerPropsValue(container, 'content.bodyMargin', {top: 0, left: 0, right: 0, bottom: 0});
|
|
@@ -195,23 +301,29 @@
|
|
|
195
301
|
|
|
196
302
|
//基础
|
|
197
303
|
this.radius = getContainerPropsValue(container, 'content.radius', 0);
|
|
198
|
-
this.color = getContainerPropsValue(container, 'content.textColor', '#333');
|
|
199
|
-
this.iconColor = getContainerPropsValue(container, 'content.iconColor', this.mainColor);
|
|
200
304
|
this.backgroundColor = getContainerPropsValue(container, 'content.backgroundColor', '#f8f8f8');
|
|
201
|
-
|
|
202
|
-
|
|
305
|
+
this.contPadding = getContainerPropsValue(container, 'content.contPadding', '{}')
|
|
306
|
+
this.contShadow = this.getXdShadow({width:20, color:'rgba(0,0,0,0)'},getContainerPropsValue(container, 'content.contShadow', {}))
|
|
307
|
+
this.contBorder = getContainerPropsValue(container, 'content.contBorder', {});
|
|
203
308
|
this.is_border = getContainerPropsValue(container, 'content.is_border', 'N');
|
|
204
309
|
this.is_border_c = getContainerPropsValue(container, 'content.is_border_c', '#f8f8f8');
|
|
205
310
|
this.is_border_w = getContainerPropsValue(container, 'content.is_border_w', '2');
|
|
206
311
|
|
|
207
|
-
|
|
312
|
+
//内容列表
|
|
208
313
|
this.list = getContainerPropsValue(container, 'content.orderTypeList', []).map(item=>{
|
|
314
|
+
let image = '';
|
|
315
|
+
if(this.$xdUniHelper.checkVarType(item.image) === 'object') {
|
|
316
|
+
image = getServiceUrl(item.image.url, 'size1');
|
|
317
|
+
}
|
|
209
318
|
return {
|
|
210
319
|
...item,
|
|
320
|
+
image,
|
|
211
321
|
size: Number(item.size ? item.size: 18) * 2,
|
|
212
322
|
num: 0
|
|
213
323
|
}
|
|
214
|
-
})
|
|
324
|
+
});
|
|
325
|
+
this.color = getContainerPropsValue(container, 'content.textColor', '#333');
|
|
326
|
+
this.iconColor = getContainerPropsValue(container, 'content.iconColor', this.mainColor);
|
|
215
327
|
},
|
|
216
328
|
|
|
217
329
|
onJfbShow(options) {
|
|
@@ -219,6 +331,7 @@
|
|
|
219
331
|
},
|
|
220
332
|
|
|
221
333
|
handleToLink(path, type) {
|
|
334
|
+
if (this.$configProject['isPreview']) return;
|
|
222
335
|
this.$xdUniHelper.navigateTo({
|
|
223
336
|
url: type ? `${path}?type=${type}` : path
|
|
224
337
|
})
|
|
@@ -244,6 +357,7 @@
|
|
|
244
357
|
justify-content: space-between;
|
|
245
358
|
align-items: center;
|
|
246
359
|
font-size: unit(28, rpx);
|
|
360
|
+
min-height: 62rpx;
|
|
247
361
|
|
|
248
362
|
& > view:nth-child(2) {
|
|
249
363
|
width: unit(200, rpx);
|
|
@@ -260,7 +374,6 @@
|
|
|
260
374
|
display: flex;
|
|
261
375
|
justify-content: space-around;
|
|
262
376
|
align-items: center;
|
|
263
|
-
padding: unit(40, rpx) unit(20, rpx) unit(35, rpx);
|
|
264
377
|
|
|
265
378
|
&-item {
|
|
266
379
|
font-size: unit(24, rpx);
|
|
@@ -268,13 +381,18 @@
|
|
|
268
381
|
flex: 1;
|
|
269
382
|
|
|
270
383
|
&-icon {
|
|
271
|
-
height: unit(
|
|
272
|
-
width: unit(
|
|
384
|
+
height: unit(54, rpx);
|
|
385
|
+
width: unit(54, rpx);
|
|
273
386
|
display: flex;
|
|
274
387
|
justify-content: center;
|
|
275
388
|
align-items: center;
|
|
276
389
|
margin: 0 auto;
|
|
277
390
|
position: relative;
|
|
391
|
+
|
|
392
|
+
& > image {
|
|
393
|
+
max-width: 100%;
|
|
394
|
+
max-height: 100%;
|
|
395
|
+
}
|
|
278
396
|
}
|
|
279
397
|
|
|
280
398
|
&-text {
|
|
@@ -7,6 +7,30 @@ export default {
|
|
|
7
7
|
style: [],
|
|
8
8
|
content: (data) => {
|
|
9
9
|
return [
|
|
10
|
+
{
|
|
11
|
+
label: '我的账户自定义名称:',
|
|
12
|
+
ele: 'el-input',
|
|
13
|
+
type: 'text',
|
|
14
|
+
valueKey: 'accountName',
|
|
15
|
+
groupKey:'content',
|
|
16
|
+
value: data['accountName'] || '',
|
|
17
|
+
placeholder: '请我的账户自定义名称',
|
|
18
|
+
className: 'input80',
|
|
19
|
+
rules: [
|
|
20
|
+
{
|
|
21
|
+
required: false,
|
|
22
|
+
validator: (rule, value, callback) => {
|
|
23
|
+
value = value.trim();
|
|
24
|
+
if(value.length === 0) return callback()
|
|
25
|
+
if (value.length < 2 || value.length > 6) callback('我的账户自定义名称长度为:2-6字符');
|
|
26
|
+
else callback()
|
|
27
|
+
},
|
|
28
|
+
trigger: 'blur'
|
|
29
|
+
}
|
|
30
|
+
],
|
|
31
|
+
notice: '我的账户自定义名称设置,默认值:<span style="color:red">我的账户</span>,长度为:2-6字符',
|
|
32
|
+
inline: false,
|
|
33
|
+
},
|
|
10
34
|
{
|
|
11
35
|
label: '更改分类label(可排序):',
|
|
12
36
|
ele: 'xd-set-sort-label',
|
|
@@ -36,7 +60,26 @@ export default {
|
|
|
36
60
|
value: 'score',
|
|
37
61
|
sort: 3
|
|
38
62
|
},
|
|
39
|
-
]
|
|
63
|
+
],
|
|
64
|
+
rules: [
|
|
65
|
+
{
|
|
66
|
+
required: false,
|
|
67
|
+
validator: (rule, value, callback) => {
|
|
68
|
+
let yes = [];
|
|
69
|
+
if(value.length === 0) return callback()
|
|
70
|
+
value.map(item=>{
|
|
71
|
+
if(item.newLabel && (item.newLabel.length < 2 || item.newLabel.length > 4)) {
|
|
72
|
+
yes.push(item.label)
|
|
73
|
+
}
|
|
74
|
+
});
|
|
75
|
+
if (yes.length > 0) callback('分类名称长度为:2-4字符');
|
|
76
|
+
else callback()
|
|
77
|
+
},
|
|
78
|
+
trigger: 'blur'
|
|
79
|
+
}
|
|
80
|
+
],
|
|
81
|
+
notice: '自定义分类名称长度为:2-4字符',
|
|
82
|
+
inline: false,
|
|
40
83
|
},
|
|
41
84
|
{
|
|
42
85
|
label: '是否展示票券入口:',
|
|
@@ -49,7 +92,6 @@ export default {
|
|
|
49
92
|
{ "label": "否", "value": 'N' },
|
|
50
93
|
]
|
|
51
94
|
},
|
|
52
|
-
|
|
53
95
|
{
|
|
54
96
|
label: '是否展示元宝入口:',
|
|
55
97
|
ele: 'xd-radio',
|
|
@@ -83,6 +125,302 @@ export default {
|
|
|
83
125
|
},
|
|
84
126
|
inline: false,
|
|
85
127
|
},
|
|
128
|
+
|
|
129
|
+
//style
|
|
130
|
+
{
|
|
131
|
+
label: '行间距:',
|
|
132
|
+
ele: 'el-input',
|
|
133
|
+
type: 'number',
|
|
134
|
+
valueKey: 'rowSpacing',
|
|
135
|
+
groupKey:'style',
|
|
136
|
+
value: data.rowSpacing|| '',
|
|
137
|
+
placeholder: '请输入行间距',
|
|
138
|
+
className: 'input60',
|
|
139
|
+
inline: false,
|
|
140
|
+
notice: '设置间距,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">10</span>像素',
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
label: '列间距:',
|
|
144
|
+
ele: 'el-input',
|
|
145
|
+
type: 'number',
|
|
146
|
+
groupKey:'style',
|
|
147
|
+
valueKey: 'columnSpacing',
|
|
148
|
+
value: data['columnSpacing'] || '',
|
|
149
|
+
notice: '列间距设置,单位:像素,默认值:<span style="color:red">36</span> px',
|
|
150
|
+
inline: false,
|
|
151
|
+
className: 'input60',
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
ele: 'title',
|
|
155
|
+
label: '轮廓设置',
|
|
156
|
+
size: 'small',
|
|
157
|
+
groupKey:'style',
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
label: '外边距:',
|
|
161
|
+
ele: 'xd-margin-padding',
|
|
162
|
+
valueKey: 'bodyMargin',
|
|
163
|
+
groupKey:'style',
|
|
164
|
+
value: data['bodyMargin'] || null,
|
|
165
|
+
setting: {
|
|
166
|
+
type: 'margin',
|
|
167
|
+
},
|
|
168
|
+
placeholder: '请设置外边距',
|
|
169
|
+
inline: false,
|
|
170
|
+
notice: '设置外边距,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">0</span>像素',
|
|
171
|
+
},
|
|
172
|
+
{
|
|
173
|
+
label: '外填充:',
|
|
174
|
+
ele: 'xd-margin-padding',
|
|
175
|
+
valueKey: 'bodyPadding',
|
|
176
|
+
groupKey:'style',
|
|
177
|
+
value: data['bodyPadding'] || null,
|
|
178
|
+
setting: {
|
|
179
|
+
type: 'padding',
|
|
180
|
+
},
|
|
181
|
+
placeholder: '请设置外填充',
|
|
182
|
+
inline: false,
|
|
183
|
+
notice: '设置填充值,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">20</span>像素',
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
label: '背景颜色:',
|
|
187
|
+
ele: 'xd-color',
|
|
188
|
+
valueKey: 'bodyBgColor',
|
|
189
|
+
groupKey:'style',
|
|
190
|
+
value: data['bodyBgColor'] || null,
|
|
191
|
+
placeholder: '请选择背景颜色',
|
|
192
|
+
classNmae: 'input80',
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
label: '圆角设置:',
|
|
196
|
+
ele: 'xd-site-select-list',
|
|
197
|
+
valueKey: 'bodyRadius',
|
|
198
|
+
groupKey:'style',
|
|
199
|
+
value: data['bodyRadius'],
|
|
200
|
+
placeholder: '请选择圆角设置',
|
|
201
|
+
multiple: false,
|
|
202
|
+
className: 'input80',
|
|
203
|
+
handleCustom({action, data}) {
|
|
204
|
+
XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_radius'})
|
|
205
|
+
.then(res => {
|
|
206
|
+
data.cb(res.list)
|
|
207
|
+
})
|
|
208
|
+
.catch(error => {
|
|
209
|
+
console.error(error);
|
|
210
|
+
});
|
|
211
|
+
},
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
ele: 'title',
|
|
215
|
+
label: '标题设置',
|
|
216
|
+
size: 'small',
|
|
217
|
+
groupKey:'style',
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
label: "标题样式设置",
|
|
221
|
+
ele: "xd-text-and-bgc",
|
|
222
|
+
groupKey:'style',
|
|
223
|
+
valueKey: 'titleStyle',
|
|
224
|
+
value: data['titleStyle'] || null,
|
|
225
|
+
setting: {
|
|
226
|
+
fontSize: true,
|
|
227
|
+
color: true,
|
|
228
|
+
bgColor: false,
|
|
229
|
+
weight: true,
|
|
230
|
+
selected:false
|
|
231
|
+
},
|
|
232
|
+
handleCustom({action, data}) {
|
|
233
|
+
XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_font_size'})
|
|
234
|
+
.then(res => {
|
|
235
|
+
data.cb(res.list)
|
|
236
|
+
})
|
|
237
|
+
.catch(error => {
|
|
238
|
+
console.error(error);
|
|
239
|
+
data.cb([])
|
|
240
|
+
});
|
|
241
|
+
},
|
|
242
|
+
},
|
|
243
|
+
|
|
244
|
+
{
|
|
245
|
+
ele: 'title',
|
|
246
|
+
label: '列表轮廓设置',
|
|
247
|
+
size: 'small',
|
|
248
|
+
groupKey:'style',
|
|
249
|
+
},
|
|
250
|
+
{
|
|
251
|
+
label: '填充:',
|
|
252
|
+
ele: 'xd-margin-padding',
|
|
253
|
+
valueKey: 'contPadding',
|
|
254
|
+
groupKey:'style',
|
|
255
|
+
value: data['contPadding'] || null,
|
|
256
|
+
setting: {
|
|
257
|
+
type: 'padding',
|
|
258
|
+
},
|
|
259
|
+
placeholder: '请设置外填充',
|
|
260
|
+
inline: false,
|
|
261
|
+
notice: '设置填充值,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">32px 32px 48px 48px</span>像素',
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
label: '背景颜色:',
|
|
265
|
+
ele: 'xd-color',
|
|
266
|
+
valueKey: 'contBgColor',
|
|
267
|
+
groupKey:'style',
|
|
268
|
+
value: data['contBgColor'] || null,
|
|
269
|
+
placeholder: '请选择背景颜色',
|
|
270
|
+
classNmae: 'input80',
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
label: '圆角设置:',
|
|
274
|
+
ele: 'xd-site-select-list',
|
|
275
|
+
valueKey: 'contRadius',
|
|
276
|
+
groupKey:'style',
|
|
277
|
+
value: data['contRadius'],
|
|
278
|
+
placeholder: '请选择圆角设置',
|
|
279
|
+
multiple: false,
|
|
280
|
+
className: 'input80',
|
|
281
|
+
handleCustom({action, data}) {
|
|
282
|
+
XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_radius'})
|
|
283
|
+
.then(res => {
|
|
284
|
+
data.cb(res.list)
|
|
285
|
+
})
|
|
286
|
+
.catch(error => {
|
|
287
|
+
console.error(error);
|
|
288
|
+
});
|
|
289
|
+
},
|
|
290
|
+
},
|
|
291
|
+
{
|
|
292
|
+
label: '投影设置:',
|
|
293
|
+
ele: 'xd-shadow',
|
|
294
|
+
groupKey:'style',
|
|
295
|
+
valueKey: 'contShadow',
|
|
296
|
+
value: data['contShadow'] || '',
|
|
297
|
+
setting: {
|
|
298
|
+
selected: 'N'
|
|
299
|
+
},
|
|
300
|
+
handleCustom({action, data}) {
|
|
301
|
+
XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_radius'})
|
|
302
|
+
.then(res => {
|
|
303
|
+
data.cb(res.list)
|
|
304
|
+
})
|
|
305
|
+
.catch(error => {
|
|
306
|
+
console.error(error);
|
|
307
|
+
data.cb([])
|
|
308
|
+
});
|
|
309
|
+
},
|
|
310
|
+
},
|
|
311
|
+
{
|
|
312
|
+
label: '边框设置:',
|
|
313
|
+
ele: 'xd-border',
|
|
314
|
+
groupKey:'style',
|
|
315
|
+
valueKey: 'contBorder',
|
|
316
|
+
value: data['contBorder'] || {},
|
|
317
|
+
setting: {
|
|
318
|
+
selected:'N'
|
|
319
|
+
},
|
|
320
|
+
},
|
|
321
|
+
|
|
322
|
+
{
|
|
323
|
+
ele: 'title',
|
|
324
|
+
label: '列表样式设置',
|
|
325
|
+
size: 'small',
|
|
326
|
+
groupKey:'style',
|
|
327
|
+
},
|
|
328
|
+
{
|
|
329
|
+
label: '填充:',
|
|
330
|
+
ele: 'xd-margin-padding',
|
|
331
|
+
valueKey: 'itemPadding',
|
|
332
|
+
groupKey:'style',
|
|
333
|
+
value: data['itemPadding'] || null,
|
|
334
|
+
setting: {
|
|
335
|
+
type: 'padding',
|
|
336
|
+
},
|
|
337
|
+
placeholder: '请设置外填充',
|
|
338
|
+
inline: false,
|
|
339
|
+
notice: '设置填充值,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">20px 20px 0 0</span>像素',
|
|
340
|
+
},
|
|
341
|
+
{
|
|
342
|
+
label: "标题样式设置",
|
|
343
|
+
ele: "xd-text-and-bgc",
|
|
344
|
+
groupKey:'style',
|
|
345
|
+
valueKey: 'itemStyle',
|
|
346
|
+
value: data['itemStyle'] || null,
|
|
347
|
+
setting: {
|
|
348
|
+
fontSize: true,
|
|
349
|
+
color: true,
|
|
350
|
+
bgColor: false,
|
|
351
|
+
weight: true,
|
|
352
|
+
selected:false
|
|
353
|
+
},
|
|
354
|
+
handleCustom({action, data}) {
|
|
355
|
+
XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_font_size'})
|
|
356
|
+
.then(res => {
|
|
357
|
+
data.cb(res.list)
|
|
358
|
+
})
|
|
359
|
+
.catch(error => {
|
|
360
|
+
console.error(error);
|
|
361
|
+
data.cb([])
|
|
362
|
+
});
|
|
363
|
+
},
|
|
364
|
+
},
|
|
365
|
+
{
|
|
366
|
+
label: '背景颜色:',
|
|
367
|
+
ele: 'xd-color',
|
|
368
|
+
valueKey: 'itemBgColor',
|
|
369
|
+
groupKey:'style',
|
|
370
|
+
value: data['itemBgColor'] || null,
|
|
371
|
+
placeholder: '请选择背景颜色',
|
|
372
|
+
classNmae: 'input80',
|
|
373
|
+
},
|
|
374
|
+
{
|
|
375
|
+
label: '圆角设置:',
|
|
376
|
+
ele: 'xd-site-select-list',
|
|
377
|
+
valueKey: 'itemRadius',
|
|
378
|
+
groupKey:'style',
|
|
379
|
+
value: data['itemRadius'],
|
|
380
|
+
placeholder: '请选择圆角设置',
|
|
381
|
+
multiple: false,
|
|
382
|
+
className: 'input80',
|
|
383
|
+
handleCustom({action, data}) {
|
|
384
|
+
XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_radius'})
|
|
385
|
+
.then(res => {
|
|
386
|
+
data.cb(res.list)
|
|
387
|
+
})
|
|
388
|
+
.catch(error => {
|
|
389
|
+
console.error(error);
|
|
390
|
+
});
|
|
391
|
+
},
|
|
392
|
+
},
|
|
393
|
+
{
|
|
394
|
+
label: '投影设置:',
|
|
395
|
+
ele: 'xd-shadow',
|
|
396
|
+
groupKey:'style',
|
|
397
|
+
valueKey: 'itemShadow',
|
|
398
|
+
value: data['itemShadow'] || '',
|
|
399
|
+
setting: {
|
|
400
|
+
selected: 'N'
|
|
401
|
+
},
|
|
402
|
+
handleCustom({action, data}) {
|
|
403
|
+
XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_radius'})
|
|
404
|
+
.then(res => {
|
|
405
|
+
data.cb(res.list)
|
|
406
|
+
})
|
|
407
|
+
.catch(error => {
|
|
408
|
+
console.error(error);
|
|
409
|
+
data.cb([])
|
|
410
|
+
});
|
|
411
|
+
},
|
|
412
|
+
},
|
|
413
|
+
{
|
|
414
|
+
label: '边框设置:',
|
|
415
|
+
ele: 'xd-border',
|
|
416
|
+
groupKey:'style',
|
|
417
|
+
valueKey: 'itemBorder',
|
|
418
|
+
value: data['itemBorder'] || {},
|
|
419
|
+
setting: {
|
|
420
|
+
selected:'N'
|
|
421
|
+
},
|
|
422
|
+
},
|
|
423
|
+
|
|
86
424
|
{
|
|
87
425
|
label: '票券跳转路径:',
|
|
88
426
|
ele: 'xd-select-pages-path',
|