jufubao-base 1.0.187-beta2 → 1.0.188
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/components/JfbBaseAddress/Attr.js +1 -109
- package/src/components/JfbBaseAddress/JfbBaseAddress.vue +77 -153
- package/src/components/JfbBaseCardDetailEntry/JfbBaseCardDetailEntry.vue +4 -1
- package/src/components/JfbBaseCardEntry/JfbBaseCardEntry.vue +4 -1
- package/src/components/JfbBaseFastLink/Attr.js +6 -22
- package/src/components/JfbBaseFastLink/JfbBaseFastLink.vue +20 -35
- package/src/components/JfbBaseFastLink/XdFastNav.vue +1 -2
- package/src/components/JfbBaseFooter/Attr.js +75 -141
- package/src/components/JfbBaseFooter/JfbBaseFooter.vue +11 -46
- package/src/components/JfbBaseOrderDetail/Attr.js +65 -61
- package/src/components/JfbBaseOrderDetail/JfbBaseOrderDetail.vue +52 -82
- package/src/components/JfbBaseOrderList/Attr.js +0 -23
- package/src/components/JfbBaseOrderList/JfbBaseOrderList.vue +86 -117
- package/src/components/JfbBaseTfkCardDetail/JfbBaseTfkCardDetail.vue +4 -1
- package/src/components/JfbBaseTfkCardLogin/JfbBaseTfkCardLogin.vue +1 -0
- package/src/components/JfbBaseUserCenter/Attr.js +48 -240
- package/src/components/JfbBaseUserCenter/JfbBaseUserCenter.vue +30 -101
- package/src/components/JfbBaseUserInfo/Attr.js +30 -179
- package/src/components/JfbBaseUserInfo/JfbBaseUserInfo.vue +44 -80
- package/src/components/JfbBaseUserOrder/Attr.js +25 -291
- package/src/components/JfbBaseUserOrder/JfbBaseUserOrder.vue +54 -172
- package/src/components/JfbBaseWallet/Attr.js +2 -340
- package/src/components/JfbBaseWallet/JfbBaseWallet.vue +49 -173
- package/src/ICONS.js +0 -1128
- package/src/components/JfbBaseAddress/XdTfkItem.vue +0 -117
- package/src/components/JfbBaseOrderList/XdTfkOrderItem.vue +0 -246
|
@@ -24,26 +24,15 @@ export default {
|
|
|
24
24
|
className: 'input80',
|
|
25
25
|
rules: [
|
|
26
26
|
{
|
|
27
|
-
required:
|
|
27
|
+
required: true,
|
|
28
28
|
validator: (rule, value, callback) => {
|
|
29
29
|
value = value.trim();
|
|
30
|
-
if(value.length === 0) return callback()
|
|
31
30
|
if (value.length < 1 || value.length > 4) callback('卡券自定义名称长度为:1-4字符');
|
|
32
31
|
else callback()
|
|
33
32
|
},
|
|
34
33
|
trigger: 'blur'
|
|
35
34
|
}
|
|
36
35
|
],
|
|
37
|
-
notice: '卡券自定义名称设置,默认值:<span style="color:red">卡券</span>,长度为:1-4字符',
|
|
38
|
-
inline: false,
|
|
39
|
-
},
|
|
40
|
-
|
|
41
|
-
//style
|
|
42
|
-
{
|
|
43
|
-
ele: 'title',
|
|
44
|
-
label: '轮廓设置',
|
|
45
|
-
size: 'small',
|
|
46
|
-
groupKey:'style',
|
|
47
36
|
},
|
|
48
37
|
{
|
|
49
38
|
label: '卡券文字颜色:',
|
|
@@ -53,7 +42,13 @@ export default {
|
|
|
53
42
|
value: data['cardNameColor'] || null,
|
|
54
43
|
placeholder: '请选择卡券文字颜色',
|
|
55
44
|
classNmae: 'input80',
|
|
56
|
-
|
|
45
|
+
},
|
|
46
|
+
|
|
47
|
+
{
|
|
48
|
+
ele: 'title',
|
|
49
|
+
label: '整体风格',
|
|
50
|
+
size: 'small',
|
|
51
|
+
groupKey:'style',
|
|
57
52
|
},
|
|
58
53
|
{
|
|
59
54
|
label: '背景颜色:',
|
|
@@ -84,13 +79,13 @@ export default {
|
|
|
84
79
|
},
|
|
85
80
|
},
|
|
86
81
|
{
|
|
87
|
-
label: '
|
|
82
|
+
label: '间距:',
|
|
88
83
|
ele: 'el-input',
|
|
89
84
|
type: 'number',
|
|
90
85
|
valueKey: 'padding',
|
|
91
86
|
groupKey:'style',
|
|
92
87
|
value: data.padding || '',
|
|
93
|
-
placeholder: '
|
|
88
|
+
placeholder: '请输入间距',
|
|
94
89
|
className: 'input60',
|
|
95
90
|
inline: false,
|
|
96
91
|
notice: '设置间距,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">20</span>像素',
|
|
@@ -123,160 +118,10 @@ export default {
|
|
|
123
118
|
},
|
|
124
119
|
{
|
|
125
120
|
ele: 'title',
|
|
126
|
-
label: '
|
|
127
|
-
size: 'small',
|
|
128
|
-
groupKey:'style',
|
|
129
|
-
},
|
|
130
|
-
{
|
|
131
|
-
label: "标题样式设置",
|
|
132
|
-
ele: "xd-text-and-bgc",
|
|
133
|
-
groupKey:'style',
|
|
134
|
-
valueKey: 'titleStyle',
|
|
135
|
-
value: data['titleStyle'] || null,
|
|
136
|
-
setting: {
|
|
137
|
-
fontSize: true,
|
|
138
|
-
color: true,
|
|
139
|
-
bgColor: false,
|
|
140
|
-
weight: true,
|
|
141
|
-
selected:false
|
|
142
|
-
},
|
|
143
|
-
handleCustom({action, data}) {
|
|
144
|
-
XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_font_size'})
|
|
145
|
-
.then(res => {
|
|
146
|
-
data.cb(res.list)
|
|
147
|
-
})
|
|
148
|
-
.catch(error => {
|
|
149
|
-
console.error(error);
|
|
150
|
-
data.cb([])
|
|
151
|
-
});
|
|
152
|
-
},
|
|
153
|
-
},
|
|
154
|
-
{
|
|
155
|
-
ele: 'title',
|
|
156
|
-
label: `添加${data['cardName'] || '卡券'}设置`,
|
|
157
|
-
size: 'small',
|
|
158
|
-
groupKey:'style',
|
|
159
|
-
},
|
|
160
|
-
{
|
|
161
|
-
label: "文字样式设置",
|
|
162
|
-
ele: "xd-text-and-bgc",
|
|
163
|
-
groupKey:'style',
|
|
164
|
-
valueKey: 'addBtnStyle',
|
|
165
|
-
value: data['addBtnStyle'] || null,
|
|
166
|
-
setting: {
|
|
167
|
-
fontSize: true,
|
|
168
|
-
color: true,
|
|
169
|
-
bgColor: false,
|
|
170
|
-
weight: true,
|
|
171
|
-
selected:false
|
|
172
|
-
},
|
|
173
|
-
handleCustom({action, data}) {
|
|
174
|
-
XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_font_size'})
|
|
175
|
-
.then(res => {
|
|
176
|
-
data.cb(res.list)
|
|
177
|
-
})
|
|
178
|
-
.catch(error => {
|
|
179
|
-
console.error(error);
|
|
180
|
-
data.cb([])
|
|
181
|
-
});
|
|
182
|
-
},
|
|
183
|
-
},
|
|
184
|
-
{
|
|
185
|
-
label: '圆角设置:',
|
|
186
|
-
ele: 'xd-site-select-list',
|
|
187
|
-
valueKey: 'addBtnRadius',
|
|
188
|
-
groupKey:'style',
|
|
189
|
-
value: data['addBtnRadius'] || '40',
|
|
190
|
-
placeholder: '请选择圆角设置',
|
|
191
|
-
multiple: false,
|
|
192
|
-
className: 'input80',
|
|
193
|
-
handleCustom({action, data}) {
|
|
194
|
-
XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_radius'})
|
|
195
|
-
.then(res => {
|
|
196
|
-
data.cb(res.list)
|
|
197
|
-
})
|
|
198
|
-
.catch(error => {
|
|
199
|
-
console.error(error);
|
|
200
|
-
});
|
|
201
|
-
},
|
|
202
|
-
},
|
|
203
|
-
{
|
|
204
|
-
label: '背景颜色:',
|
|
205
|
-
ele: 'xd-color',
|
|
206
|
-
valueKey: 'addBtnBgColor',
|
|
207
|
-
groupKey:'style',
|
|
208
|
-
value: data['addBtnBgColor'] || null,
|
|
209
|
-
placeholder: '请选择背景颜色',
|
|
210
|
-
classNmae: 'input80',
|
|
211
|
-
},
|
|
212
|
-
{
|
|
213
|
-
label: '投影设置:',
|
|
214
|
-
ele: 'xd-shadow',
|
|
215
|
-
groupKey:'style',
|
|
216
|
-
valueKey: 'addBtnShadow',
|
|
217
|
-
value: data['addBtnShadow'] || '',
|
|
218
|
-
setting: {
|
|
219
|
-
selected: 'N'
|
|
220
|
-
},
|
|
221
|
-
handleCustom({action, data}) {
|
|
222
|
-
XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_radius'})
|
|
223
|
-
.then(res => {
|
|
224
|
-
data.cb(res.list)
|
|
225
|
-
})
|
|
226
|
-
.catch(error => {
|
|
227
|
-
console.error(error);
|
|
228
|
-
data.cb([])
|
|
229
|
-
});
|
|
230
|
-
},
|
|
231
|
-
},
|
|
232
|
-
{
|
|
233
|
-
label: '边框设置:',
|
|
234
|
-
ele: 'xd-border',
|
|
235
|
-
groupKey:'style',
|
|
236
|
-
valueKey: 'addBtnBorder',
|
|
237
|
-
value: data['addBtnBorder'] || {},
|
|
238
|
-
setting: {
|
|
239
|
-
selected:'N'
|
|
240
|
-
},
|
|
241
|
-
},
|
|
242
|
-
{
|
|
243
|
-
ele: 'title',
|
|
244
|
-
label: `进入我的${data['cardName'] || '卡券'}设置`,
|
|
121
|
+
label: '内容区域风格',
|
|
245
122
|
size: 'small',
|
|
246
123
|
groupKey:'style',
|
|
247
124
|
},
|
|
248
|
-
{
|
|
249
|
-
label: '填充:',
|
|
250
|
-
ele: 'xd-margin-padding',
|
|
251
|
-
valueKey: 'contentPadding',
|
|
252
|
-
groupKey:'style',
|
|
253
|
-
value: data['contentPadding'] || null,
|
|
254
|
-
setting: {
|
|
255
|
-
type: 'padding',
|
|
256
|
-
},
|
|
257
|
-
placeholder: '请设填充',
|
|
258
|
-
inline: false,
|
|
259
|
-
notice: '设置填充值,<span style="color: red">单位:像素</span>。默认值:<span style="color:red">40</span>像素',
|
|
260
|
-
},
|
|
261
|
-
{
|
|
262
|
-
label: '圆角设置:',
|
|
263
|
-
ele: 'xd-site-select-list',
|
|
264
|
-
valueKey: 'radius',
|
|
265
|
-
groupKey:'style',
|
|
266
|
-
value: data['radius'] || '10',
|
|
267
|
-
placeholder: '请选择内容圆角设置',
|
|
268
|
-
multiple: false,
|
|
269
|
-
className: 'input80',
|
|
270
|
-
handleCustom({action, data}) {
|
|
271
|
-
XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_radius'})
|
|
272
|
-
.then(res => {
|
|
273
|
-
data.cb(res.list)
|
|
274
|
-
})
|
|
275
|
-
.catch(error => {
|
|
276
|
-
console.error(error);
|
|
277
|
-
});
|
|
278
|
-
},
|
|
279
|
-
},
|
|
280
125
|
{
|
|
281
126
|
label: '背景颜色:',
|
|
282
127
|
ele: 'xd-color',
|
|
@@ -287,88 +132,30 @@ export default {
|
|
|
287
132
|
classNmae: 'input80',
|
|
288
133
|
},
|
|
289
134
|
{
|
|
290
|
-
label: '
|
|
291
|
-
ele: 'xd-shadow',
|
|
292
|
-
groupKey:'style',
|
|
293
|
-
valueKey: 'contShadow',
|
|
294
|
-
value: data['contShadow'] || '',
|
|
295
|
-
setting: {
|
|
296
|
-
selected: 'N'
|
|
297
|
-
},
|
|
298
|
-
handleCustom({action, data}) {
|
|
299
|
-
XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_radius'})
|
|
300
|
-
.then(res => {
|
|
301
|
-
data.cb(res.list)
|
|
302
|
-
})
|
|
303
|
-
.catch(error => {
|
|
304
|
-
console.error(error);
|
|
305
|
-
data.cb([])
|
|
306
|
-
});
|
|
307
|
-
},
|
|
308
|
-
},
|
|
309
|
-
{
|
|
310
|
-
label: '边框设置:',
|
|
311
|
-
ele: 'xd-border',
|
|
312
|
-
groupKey:'style',
|
|
313
|
-
valueKey: 'contBorder',
|
|
314
|
-
value: data['contBorder'] || {},
|
|
315
|
-
setting: {
|
|
316
|
-
selected:'N'
|
|
317
|
-
},
|
|
318
|
-
},
|
|
319
|
-
{
|
|
320
|
-
ele: 'title',
|
|
321
|
-
label: `进入我的${data['cardName'] || '卡券'}按钮样式设置`,
|
|
322
|
-
size: 'small',
|
|
323
|
-
groupKey:'style',
|
|
324
|
-
},
|
|
325
|
-
{
|
|
326
|
-
label: '圆角设置:',
|
|
327
|
-
ele: 'xd-site-select-list',
|
|
328
|
-
valueKey: 'btnRadius',
|
|
329
|
-
value: data['btnRadius'] || '40',
|
|
330
|
-
groupKey:'style',
|
|
331
|
-
placeholder: '请选择圆角设置',
|
|
332
|
-
multiple: false,
|
|
333
|
-
className: 'input60',
|
|
334
|
-
handleCustom({action, data}) {
|
|
335
|
-
XdBus.getParentApi('getOptionsSettingList')({
|
|
336
|
-
setting_id: 'edtix_style_radius',
|
|
337
|
-
key: Date.now()
|
|
338
|
-
})
|
|
339
|
-
.then(res => {
|
|
340
|
-
data.cb(res.list)
|
|
341
|
-
})
|
|
342
|
-
.catch(error => {
|
|
343
|
-
console.error(error);
|
|
344
|
-
});
|
|
345
|
-
},
|
|
346
|
-
},
|
|
347
|
-
{
|
|
348
|
-
label: '背景颜色:',
|
|
135
|
+
label: '按钮背景颜色:',
|
|
349
136
|
ele: 'xd-color',
|
|
350
137
|
valueKey: 'btnBgColor',
|
|
351
138
|
groupKey:'style',
|
|
352
139
|
value: data['btnBgColor'] || null,
|
|
353
|
-
placeholder: '
|
|
140
|
+
placeholder: '请选择按钮背景颜色',
|
|
354
141
|
classNmae: 'input80',
|
|
355
142
|
},
|
|
356
143
|
{
|
|
357
|
-
label: '
|
|
144
|
+
label: '按钮文字颜色:',
|
|
358
145
|
ele: 'xd-color',
|
|
359
146
|
valueKey: 'btnTextColor',
|
|
360
147
|
groupKey:'style',
|
|
361
148
|
value: data['btnTextColor'] || null,
|
|
362
|
-
placeholder: '
|
|
149
|
+
placeholder: '请选择按钮文字颜色',
|
|
363
150
|
classNmae: 'input80',
|
|
364
151
|
},
|
|
365
152
|
{
|
|
366
|
-
label: '
|
|
153
|
+
label: '按钮文字大小:',
|
|
367
154
|
ele: 'xd-site-select-list',
|
|
368
155
|
valueKey: 'btnFontSize',
|
|
369
156
|
groupKey:'style',
|
|
370
157
|
value: data['btnFontSize'] || '',
|
|
371
|
-
placeholder: '
|
|
158
|
+
placeholder: '请选择按钮文字大小',
|
|
372
159
|
multiple: false,
|
|
373
160
|
className: 'input80',
|
|
374
161
|
handleCustom({action, data}) {
|
|
@@ -384,13 +171,11 @@ export default {
|
|
|
384
171
|
},
|
|
385
172
|
},
|
|
386
173
|
|
|
387
|
-
//=====属性已废弃(不能删除,已隐藏)====
|
|
388
174
|
{
|
|
389
175
|
ele: 'title',
|
|
390
176
|
label: '边框设置',
|
|
391
177
|
size: 'small',
|
|
392
178
|
groupKey:'style',
|
|
393
|
-
hidden: true
|
|
394
179
|
},
|
|
395
180
|
{
|
|
396
181
|
label: '是否有边框:',
|
|
@@ -401,7 +186,6 @@ export default {
|
|
|
401
186
|
placeholder: '请选择是否有边框',
|
|
402
187
|
multiple: false,
|
|
403
188
|
className: 'input80',
|
|
404
|
-
hidden: true,
|
|
405
189
|
list: [
|
|
406
190
|
{label: '是', value: 'Y'},
|
|
407
191
|
{label: '否', value: 'N'},
|
|
@@ -415,7 +199,6 @@ export default {
|
|
|
415
199
|
value: data['is_border_c'] || '',
|
|
416
200
|
placeholder: '请选择边框颜色',
|
|
417
201
|
classNmae: 'input80',
|
|
418
|
-
hidden: true
|
|
419
202
|
},
|
|
420
203
|
data['is_border'] === 'Y' && {
|
|
421
204
|
label: '边框大小:',
|
|
@@ -426,10 +209,26 @@ export default {
|
|
|
426
209
|
value: data['is_border_w'] || '',
|
|
427
210
|
placeholder: '请输入边框颜色',
|
|
428
211
|
className: 'input80',
|
|
429
|
-
hidden: true
|
|
430
212
|
},
|
|
431
|
-
|
|
432
|
-
|
|
213
|
+
{
|
|
214
|
+
label: '内容圆角设置:',
|
|
215
|
+
ele: 'xd-site-select-list',
|
|
216
|
+
valueKey: 'radius',
|
|
217
|
+
groupKey:'style',
|
|
218
|
+
value: data['radius'] || '10',
|
|
219
|
+
placeholder: '请选择内容圆角设置',
|
|
220
|
+
multiple: false,
|
|
221
|
+
className: 'input80',
|
|
222
|
+
handleCustom({action, data}) {
|
|
223
|
+
XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_radius'})
|
|
224
|
+
.then(res => {
|
|
225
|
+
data.cb(res.list)
|
|
226
|
+
})
|
|
227
|
+
.catch(error => {
|
|
228
|
+
console.error(error);
|
|
229
|
+
});
|
|
230
|
+
},
|
|
231
|
+
},
|
|
433
232
|
{
|
|
434
233
|
label: '添加卡券路径:',
|
|
435
234
|
ele: 'xd-select-pages-path',
|
|
@@ -437,34 +236,43 @@ export default {
|
|
|
437
236
|
groupKey:'advanced',
|
|
438
237
|
placeholder: '请选择添加卡券路径',
|
|
439
238
|
value: data['add_url'] || null,
|
|
440
|
-
className: 'input100',
|
|
441
239
|
setting: {
|
|
442
240
|
router: XdBus.getParentApi('getPagesTree'),
|
|
443
241
|
},
|
|
242
|
+
rules: [
|
|
243
|
+
{required: true, message: '请选择添加卡券路径', trigger: 'change'},
|
|
244
|
+
],
|
|
245
|
+
inline: false,
|
|
444
246
|
},
|
|
445
247
|
{
|
|
446
248
|
label: '设置支付密码路径:',
|
|
447
249
|
ele: 'xd-select-pages-path',
|
|
448
250
|
valueKey: 'pwd_url',
|
|
449
251
|
groupKey:'advanced',
|
|
450
|
-
className: 'input100',
|
|
451
252
|
placeholder: '请选择设置支付密码路径',
|
|
452
253
|
value: data['pwd_url'] || null,
|
|
453
254
|
setting: {
|
|
454
255
|
router: XdBus.getParentApi('getPagesTree'),
|
|
455
256
|
},
|
|
257
|
+
rules: [
|
|
258
|
+
{required: true, message: '请选择设置支付密码路径', trigger: 'change'},
|
|
259
|
+
],
|
|
260
|
+
inline: false,
|
|
456
261
|
},
|
|
457
262
|
{
|
|
458
263
|
label: '进入我的票券路径:',
|
|
459
264
|
ele: 'xd-select-pages-path',
|
|
460
265
|
valueKey: 'card_url',
|
|
461
266
|
groupKey:'advanced',
|
|
462
|
-
className: 'input100',
|
|
463
267
|
placeholder: '请选择进入我的票券路径',
|
|
464
268
|
value: data['card_url'] || null,
|
|
465
269
|
setting: {
|
|
466
270
|
router: XdBus.getParentApi('getPagesTree'),
|
|
467
271
|
},
|
|
272
|
+
rules: [
|
|
273
|
+
{required: true, message: '请选择进入我的票券路径', trigger: 'change'},
|
|
274
|
+
],
|
|
275
|
+
inline: false,
|
|
468
276
|
},
|
|
469
277
|
{
|
|
470
278
|
label: '',
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
<view class="user-center-box" :style="{padding: outMargin}">
|
|
19
19
|
<view :style="{borderRadius: bodyRadius + 'rpx', backgroundColor:bodyBackgroundColor, padding:outPadding}">
|
|
20
20
|
<view class="my-card-add__btn">
|
|
21
|
-
<view :style="
|
|
22
|
-
<view :style="
|
|
21
|
+
<view :style="{color: cardNameColor}">我的{{cardName}}</view>
|
|
22
|
+
<view :style="{borderColor:btnBoxColor || mainColor,color:btnBoxColor || mainColor}" @click="handleToLink(add_url)">添加{{cardName}}</view>
|
|
23
23
|
</view>
|
|
24
24
|
<view
|
|
25
25
|
class="my-card-add__link"
|
|
@@ -27,9 +27,7 @@
|
|
|
27
27
|
borderRadius: radius + 'rpx',
|
|
28
28
|
background: backgroundColor,
|
|
29
29
|
border: borderBox,
|
|
30
|
-
marginTop:
|
|
31
|
-
padding:contentPaddingComp,
|
|
32
|
-
boxShadow: contShadow
|
|
30
|
+
marginTop: padding + 'rpx'
|
|
33
31
|
}"
|
|
34
32
|
>
|
|
35
33
|
<view class="my-card-add__link-num" v-if="0">
|
|
@@ -44,8 +42,7 @@
|
|
|
44
42
|
:style="{
|
|
45
43
|
color:btnTextColor,
|
|
46
44
|
background:btnBgColor,
|
|
47
|
-
fontSize: btnFontSize + 'rpx'
|
|
48
|
-
borderRadius:btnRadius + 'rpx',
|
|
45
|
+
fontSize: btnFontSize + 'rpx'
|
|
49
46
|
}"
|
|
50
47
|
@click="handleToLink(card_url)"
|
|
51
48
|
>
|
|
@@ -89,91 +86,38 @@
|
|
|
89
86
|
return str
|
|
90
87
|
},
|
|
91
88
|
borderBox() {
|
|
92
|
-
if (this.is_border === 'Y') return `${this.is_border_w}rpx
|
|
89
|
+
if (this.is_border === 'Y') return `${this.is_border_w}rpx solid ${this.is_border_c}`;
|
|
93
90
|
else return '0';
|
|
94
91
|
},
|
|
95
|
-
titleStyleComp(){
|
|
96
|
-
return {
|
|
97
|
-
fontSize: this.titleStyle.fontSize || '28rpx',
|
|
98
|
-
color: `${this.titleStyle.color || '#333'}`,
|
|
99
|
-
fontWeight: `${this.titleStyle.fontWeight || 'normal'}`,
|
|
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
|
-
contentPaddingComp(){
|
|
131
|
-
let str = `${this.checkValue(this.contentPadding.top, 40)}rpx`;
|
|
132
|
-
str = `${str} ${this.checkValue(this.contentPadding.right, 40)}rpx`;
|
|
133
|
-
str = `${str} ${this.checkValue(this.contentPadding.bottom, 40)}rpx`;
|
|
134
|
-
str = `${str} ${this.checkValue(this.contentPadding.left, 40)}rpx`;
|
|
135
|
-
return str
|
|
136
|
-
}
|
|
137
92
|
},
|
|
138
93
|
data() {
|
|
139
94
|
return {
|
|
140
95
|
add_url: '',
|
|
141
96
|
pwd_url: '',
|
|
142
97
|
card_url:'',
|
|
143
|
-
cardName: '
|
|
144
|
-
bodyPadding: {},
|
|
145
|
-
bodyRadius: 0,
|
|
146
|
-
bodyBackgroundColor: 'rgba(0,0,0,0)',
|
|
147
|
-
bodyMargin:{},
|
|
148
|
-
rowSpacing: 20,
|
|
149
|
-
|
|
150
|
-
//title
|
|
151
|
-
titleStyle:{},
|
|
152
|
-
|
|
153
|
-
//添加按钮
|
|
154
|
-
addBtnBgColor:'rgba(0,0,0,0)',
|
|
155
|
-
addBtnStyle:{},
|
|
156
|
-
addBtnBorder:{},
|
|
157
|
-
addBtnShadow:{},
|
|
158
|
-
addBtnRadius: '40',
|
|
98
|
+
cardName: '',
|
|
159
99
|
|
|
160
|
-
|
|
161
|
-
|
|
100
|
+
//基础
|
|
101
|
+
color: '#333',
|
|
162
102
|
backgroundColor: 'rgba(0,0,0,0)',
|
|
163
103
|
radius: 0,
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
//进入按钮样式
|
|
104
|
+
padding: 20,
|
|
167
105
|
btnBgColor: '',
|
|
168
106
|
btnTextColor: '',
|
|
169
107
|
btnFontSize: 24,
|
|
170
|
-
btnRadius:'40',
|
|
171
108
|
|
|
172
109
|
//边框
|
|
173
110
|
is_border: 'Y',
|
|
174
111
|
is_border_w: 0,
|
|
175
112
|
is_border_c: '',
|
|
176
113
|
|
|
114
|
+
//整体
|
|
115
|
+
bodyPadding: {},
|
|
116
|
+
bodyRadius: 0,
|
|
117
|
+
bodyBackgroundColor: 'rgba(0,0,0,0)',
|
|
118
|
+
bodyMargin:{},
|
|
119
|
+
cardNameColor: '#333',
|
|
120
|
+
btnBoxColor:'',
|
|
177
121
|
}
|
|
178
122
|
},
|
|
179
123
|
watch: {
|
|
@@ -187,7 +131,6 @@
|
|
|
187
131
|
},
|
|
188
132
|
methods: {
|
|
189
133
|
handleToLink(path, type) {
|
|
190
|
-
if (this.$configProject['isPreview']) return;
|
|
191
134
|
if(!path) {
|
|
192
135
|
console.warn(`跳转地址不存在`)
|
|
193
136
|
}
|
|
@@ -201,51 +144,33 @@
|
|
|
201
144
|
* @param container {object} 业务组件对象自己
|
|
202
145
|
*/
|
|
203
146
|
init(container) {
|
|
204
|
-
|
|
147
|
+
|
|
148
|
+
//整体
|
|
205
149
|
this.bodyMargin = getContainerPropsValue(container, 'content.bodyMargin', {});
|
|
206
150
|
this.bodyRadius = getContainerPropsValue(container, 'content.bodyRadius', 0);
|
|
207
151
|
this.bodyBackgroundColor = getContainerPropsValue(container, 'content.bodyBackgroundColor', 'rgba(0,0,0,0)');
|
|
208
152
|
this.bodyPadding = getContainerPropsValue(container, 'content.bodyPadding', {});
|
|
209
|
-
this.rowSpacing = getContainerPropsValue(container, 'content.padding', 20);
|
|
210
153
|
|
|
211
|
-
|
|
212
|
-
this.titleStyle = getContainerPropsValue(container, 'content.titleStyle', {});
|
|
213
|
-
|
|
214
|
-
//添加按钮
|
|
215
|
-
this.addBtnBgColor = getContainerPropsValue(container, 'content.addBtnBgColor', 'rgba(0,0,0,0)');
|
|
216
|
-
this.addBtnStyle = getContainerPropsValue(container, 'content.addBtnStyle', {});
|
|
217
|
-
this.addBtnBorder = getContainerPropsValue(container, 'content.addBtnBorder', {});
|
|
218
|
-
this.addBtnRadius = getContainerPropsValue(container, 'content.addBtnRadius', '40');
|
|
219
|
-
this.addBtnShadow = getContainerPropsValue(container, 'content.addBtnShadow', {});
|
|
220
|
-
|
|
221
|
-
//进入
|
|
222
|
-
this.contentPadding = getContainerPropsValue(container, 'content.contentPadding', {});
|
|
154
|
+
//基础
|
|
223
155
|
this.radius = getContainerPropsValue(container, 'content.radius', 0);
|
|
224
156
|
this.color = getContainerPropsValue(container, 'content.textColor', '#333');
|
|
225
157
|
this.backgroundColor = getContainerPropsValue(container, 'content.backgroundColor', '#f8f8f8');
|
|
226
|
-
this.
|
|
227
|
-
|
|
228
|
-
//进入按钮
|
|
229
|
-
this.btnBgColor = getContainerPropsValue(container, 'content.btnBgColor', this.mainGradient||this.mainColor);
|
|
158
|
+
this.padding = getContainerPropsValue(container, 'content.padding', 20);
|
|
159
|
+
this.btnBgColor = getContainerPropsValue(container, 'content.btnBgColor', this.mainGradient);
|
|
230
160
|
this.btnTextColor = getContainerPropsValue(container, 'content.btnTextColor', '#fff');
|
|
231
161
|
this.btnFontSize = getContainerPropsValue(container, 'content.btnFontSize',26);
|
|
232
|
-
this.
|
|
233
|
-
this.
|
|
162
|
+
this.cardNameColor = getContainerPropsValue(container, 'content.cardNameColor','#333');
|
|
163
|
+
this.btnBoxColor = getContainerPropsValue(container, 'content.cardNameColor','');
|
|
234
164
|
this.is_border = getContainerPropsValue(container, 'content.is_border', 'N');
|
|
235
165
|
this.is_border_c = getContainerPropsValue(container, 'content.is_border_c', '#fff');
|
|
236
166
|
this.is_border_w = getContainerPropsValue(container, 'content.is_border_w', 2);
|
|
237
|
-
this.is_border_s = 'solid';
|
|
238
|
-
if(this.contBorder.type === 'Y') {
|
|
239
|
-
this.is_border = 'Y';
|
|
240
|
-
if(this.contBorder.value && this.contBorder.value.width) this.is_border_w = this.contBorder.value.width;
|
|
241
|
-
if(this.contBorder.value && this.contBorder.value.color) this.is_border_c = this.contBorder.value.color;
|
|
242
|
-
if(this.contBorder.value && this.contBorder.value.style) this.is_border_s = this.contBorder.value.style;
|
|
243
167
|
|
|
244
|
-
|
|
245
|
-
//链接
|
|
168
|
+
//其他
|
|
246
169
|
this.add_url = getContainerPropsValue(container, 'content.add_url', {value: ''}).value;
|
|
247
170
|
this.pwd_url = getContainerPropsValue(container, 'content.pwd_url', {value: ''}).value;
|
|
248
171
|
this.card_url = getContainerPropsValue(container, 'content.card_url', {value: ''}).value;
|
|
172
|
+
this.cardName = getContainerPropsValue(container, 'content.cardName', '卡券');
|
|
173
|
+
|
|
249
174
|
},
|
|
250
175
|
}
|
|
251
176
|
}
|
|
@@ -272,6 +197,9 @@
|
|
|
272
197
|
width: unit(200, rpx);
|
|
273
198
|
height: unit(60, rpx);
|
|
274
199
|
line-height: unit(60, rpx);
|
|
200
|
+
border-radius: unit(30, rpx);
|
|
201
|
+
border: 1px solid #FF5733;
|
|
202
|
+
color: #FF5733;
|
|
275
203
|
text-align: center;
|
|
276
204
|
}
|
|
277
205
|
}
|
|
@@ -307,6 +235,7 @@
|
|
|
307
235
|
height: unit(80, rpx);
|
|
308
236
|
line-height: unit(80, rpx);
|
|
309
237
|
border-radius: unit(100, rpx);
|
|
238
|
+
font-size: unit(24, rpx);
|
|
310
239
|
text-align: center;
|
|
311
240
|
margin-top: unit(30, rpx);
|
|
312
241
|
}
|