jufubao-base 1.0.197-beta5 → 1.0.197-beta8
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 +164 -80
- package/src/components/JfbBaseAddress/XdAddress.vue +5 -0
- package/src/components/JfbBaseAddress/XdTfkItem.vue +117 -0
- package/src/components/JfbBaseCardEntry/JfbBaseCardEntry.vue +1 -0
- package/src/components/JfbBaseCardEntry/XdCardNew.vue +1 -1
- package/src/components/JfbBaseConDialog/JfbBaseConDialog.vue +41 -13
- 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/JfbBaseHeader/Attr.js +8 -1
- package/src/components/JfbBaseHeader/JfbBaseHeader.vue +8 -5
- package/src/components/JfbBaseHeaderElephant/JfbBaseHeaderElephant.vue +12 -3
- package/src/components/JfbBaseOrderDetail/Attr.js +147 -65
- package/src/components/JfbBaseOrderDetail/JfbBaseOrderDetail.vue +97 -47
- 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/JfbBasePosterBigSmall/JfbBasePosterBigSmall.vue +27 -29
- package/src/components/JfbBasePosterBigSmall/getWidthHeight.js +13 -9
- package/src/components/JfbBaseUserCenter/Attr.js +297 -52
- package/src/components/JfbBaseUserCenter/JfbBaseUserCenter.vue +135 -44
- package/src/components/JfbBaseUserInfo/Attr.js +227 -85
- package/src/components/JfbBaseUserInfo/JfbBaseUserInfo.vue +106 -86
- package/src/components/JfbBaseUserOrder/Attr.js +332 -30
- package/src/components/JfbBaseUserOrder/JfbBaseUserOrder.vue +183 -55
- package/src/components/JfbBaseWallet/Attr.js +376 -8
- package/src/components/JfbBaseWallet/JfbBaseWallet.vue +185 -49
- package/src/mixins/componentsMixins.js +210 -35
|
@@ -46,10 +46,11 @@
|
|
|
46
46
|
:style="{
|
|
47
47
|
background:inputBackgroundColor,
|
|
48
48
|
color:inputTextColor,
|
|
49
|
-
borderRadius: searchBoxRadius + 'rpx'
|
|
49
|
+
borderRadius: searchBoxRadius + 'rpx',
|
|
50
|
+
border: inputBorder
|
|
50
51
|
}"
|
|
51
52
|
>
|
|
52
|
-
<view v-if="loaded && showLocation==='Y' && searchBoxPosition==='in'" class="header-city-in">
|
|
53
|
+
<view v-if="loaded && showLocation==='Y' && searchBoxPosition==='in'" class="header-city-in" @click.stop>
|
|
53
54
|
<xd-city-show-api
|
|
54
55
|
@done="handleCityDone"
|
|
55
56
|
@onChange="handleCityChange"
|
|
@@ -73,12 +74,12 @@
|
|
|
73
74
|
<xd-font-icon v-if="searchIconPosition==='right'" :icon="icon" :color="iconColor" size="32"/>
|
|
74
75
|
<view v-if="showSearchBtn==='Y' && searchBtnPosition==='in'"
|
|
75
76
|
:style="[searchBtnStyle]"
|
|
76
|
-
style="padding: 4rpx 32rpx;"
|
|
77
|
-
@click="doSearch"
|
|
77
|
+
style="padding: 4rpx 32rpx;font-size: 28rpx;"
|
|
78
|
+
@click.stop="doSearch"
|
|
78
79
|
>{{searchBtnText || '搜索'}}</view>
|
|
79
80
|
</view>
|
|
80
81
|
<view v-if="showSearchBtn==='Y' && searchBtnPosition==='out'"
|
|
81
|
-
style="margin-left: 4px;padding: 8rpx 32rpx;"
|
|
82
|
+
style="margin-left: 4px;padding: 8rpx 32rpx;font-size: 28rpx;"
|
|
82
83
|
:style="[searchBtnStyle]"
|
|
83
84
|
@click="doSearch"
|
|
84
85
|
>{{searchBtnText || '搜索'}}</view>
|
|
@@ -168,6 +169,7 @@
|
|
|
168
169
|
searchBtnRadius: 0,
|
|
169
170
|
searchBoxRadius: 30,
|
|
170
171
|
bottomBorder: "",
|
|
172
|
+
inputBorder: "",
|
|
171
173
|
}
|
|
172
174
|
},
|
|
173
175
|
watch: {
|
|
@@ -229,6 +231,7 @@
|
|
|
229
231
|
width: this.is_border_w,
|
|
230
232
|
color: this.is_border_c
|
|
231
233
|
})
|
|
234
|
+
this.inputBorder = this.getXdBorder({}, getContainerPropsValue(container, 'content.inputBorder', {}))
|
|
232
235
|
|
|
233
236
|
let name , logo, platform_logo;
|
|
234
237
|
if (this.projectAttr['site_name']) name = this.projectAttr['site_name'];
|
|
@@ -46,7 +46,10 @@
|
|
|
46
46
|
</view>
|
|
47
47
|
|
|
48
48
|
</view>
|
|
49
|
-
<view v-if="isExtendCate && showCategory==='Y'" class="_modal"
|
|
49
|
+
<view v-if="isExtendCate && showCategory==='Y'" class="_modal"
|
|
50
|
+
@click="isExtendCate=false"
|
|
51
|
+
@touchmove.stop.prevent="moveHandle"
|
|
52
|
+
></view>
|
|
50
53
|
</view>
|
|
51
54
|
</view>
|
|
52
55
|
</template>
|
|
@@ -71,6 +74,7 @@
|
|
|
71
74
|
return {
|
|
72
75
|
useNumber: 24,
|
|
73
76
|
cateList: [],
|
|
77
|
+
previewCateList: [],
|
|
74
78
|
site_logo: "",
|
|
75
79
|
site_name: "",
|
|
76
80
|
isPreview: false,
|
|
@@ -168,7 +172,7 @@
|
|
|
168
172
|
page_size: this.useNumber //可以不传
|
|
169
173
|
},
|
|
170
174
|
}).then(res => {
|
|
171
|
-
|
|
175
|
+
this.previewCateList = res.list;
|
|
172
176
|
if(res.list.length === 0 && this.isPreview) {
|
|
173
177
|
res.list = this.getTestData();
|
|
174
178
|
}
|
|
@@ -209,7 +213,10 @@
|
|
|
209
213
|
|
|
210
214
|
this.useNumber = this.navRow * this.navColumn;
|
|
211
215
|
if(this.isPreview){
|
|
212
|
-
this.
|
|
216
|
+
let testData = this.getTestData();
|
|
217
|
+
testData.unshift(...this.previewCateList);
|
|
218
|
+
//从数组testData中取useNumber个数据
|
|
219
|
+
this.handleOne(testData.slice(0, this.useNumber));
|
|
213
220
|
this.isExtendCate = this.navExpand === 'Y' ? true : false;
|
|
214
221
|
if(this.isExtendCate){
|
|
215
222
|
document.querySelector('.xd-Layout__top').style.zIndex = 149099;
|
|
@@ -218,6 +225,7 @@
|
|
|
218
225
|
}
|
|
219
226
|
}
|
|
220
227
|
},
|
|
228
|
+
moveHandle(){},
|
|
221
229
|
handleClick(item) {
|
|
222
230
|
if(!item.redirect_data) {
|
|
223
231
|
console.warn(`未配置链接地址: ${item.redirect_data}`);
|
|
@@ -387,6 +395,7 @@
|
|
|
387
395
|
|
|
388
396
|
.jfb-base-header-elephant {
|
|
389
397
|
&__body{
|
|
398
|
+
overflow: initial !important;
|
|
390
399
|
._modal{
|
|
391
400
|
position: fixed;
|
|
392
401
|
top: 0;
|
|
@@ -332,48 +332,50 @@ export default {
|
|
|
332
332
|
notice: '间距设置,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">20</span>像素',
|
|
333
333
|
},
|
|
334
334
|
{
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
335
|
+
label: "主体信息行间距:",
|
|
336
|
+
ele: 'el-input',
|
|
337
|
+
type: 'number',
|
|
338
|
+
valueKey: 'lineHeight',
|
|
338
339
|
groupKey:'style',
|
|
340
|
+
value: data['lineHeight'] || 20,
|
|
341
|
+
placeholder: '请输入主体信息行间距',
|
|
342
|
+
className: 'input80',
|
|
339
343
|
},
|
|
340
344
|
{
|
|
341
|
-
label: '
|
|
342
|
-
ele:
|
|
345
|
+
label: '投影设置:',
|
|
346
|
+
ele: "xd-shadow",
|
|
347
|
+
valueKey: "sectionShadow",
|
|
348
|
+
value: data.sectionShadow || {},
|
|
343
349
|
groupKey:'style',
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
350
|
+
handleCustom({action, data}) {
|
|
351
|
+
XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_radius'})
|
|
352
|
+
.then(res => {
|
|
353
|
+
data.cb(res.list)
|
|
354
|
+
})
|
|
355
|
+
.catch(error => {
|
|
356
|
+
console.error(error);
|
|
357
|
+
data.cb([])
|
|
358
|
+
});
|
|
359
|
+
},
|
|
353
360
|
},
|
|
354
|
-
|
|
355
|
-
label:
|
|
356
|
-
ele:
|
|
361
|
+
{
|
|
362
|
+
label: "边框设置:",
|
|
363
|
+
ele: "xd-border",
|
|
364
|
+
valueKey: "sectionBorder",
|
|
365
|
+
value: data.sectionBorder || {},
|
|
357
366
|
groupKey:'style',
|
|
358
|
-
valueKey: 'is_shadow_bg',
|
|
359
|
-
value: data['is_shadow_bg'] || '',
|
|
360
|
-
placeholder: '请选择投影颜色',
|
|
361
|
-
classNmae: 'input80',
|
|
362
367
|
},
|
|
363
|
-
|
|
364
|
-
label: '
|
|
368
|
+
{
|
|
369
|
+
label: '内容圆角设置:',
|
|
365
370
|
ele: 'xd-site-select-list',
|
|
366
|
-
valueKey: '
|
|
371
|
+
valueKey: 'radius',
|
|
367
372
|
groupKey:'style',
|
|
368
|
-
value: data['
|
|
369
|
-
placeholder: '
|
|
373
|
+
value: data['radius'] || '',
|
|
374
|
+
placeholder: '请选择内容圆角设置',
|
|
370
375
|
multiple: false,
|
|
371
376
|
className: 'input80',
|
|
372
377
|
handleCustom({ action, data }) {
|
|
373
|
-
XdBus.getParentApi('getOptionsSettingList')({
|
|
374
|
-
setting_id: 'edtix_style_radius',
|
|
375
|
-
key: Date.now()
|
|
376
|
-
})
|
|
378
|
+
XdBus.getParentApi('getOptionsSettingList')({ setting_id: 'edtix_style_radius' })
|
|
377
379
|
.then(res => {
|
|
378
380
|
data.cb(res.list)
|
|
379
381
|
})
|
|
@@ -383,50 +385,45 @@ export default {
|
|
|
383
385
|
},
|
|
384
386
|
},
|
|
385
387
|
{
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
388
|
+
label: "底部按钮配置",
|
|
389
|
+
ele: "title",
|
|
390
|
+
groupKey: "style",
|
|
391
|
+
size: "small"
|
|
390
392
|
},
|
|
391
393
|
{
|
|
392
|
-
label:
|
|
393
|
-
ele: 'xd-
|
|
394
|
-
valueKey: '
|
|
395
|
-
value: data['
|
|
394
|
+
label: "容器内边距:",
|
|
395
|
+
ele: 'xd-margin-padding',
|
|
396
|
+
valueKey: 'bottomPadding',
|
|
397
|
+
value: data['bottomPadding'] || null,
|
|
396
398
|
groupKey:'style',
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
{ label: '是', value: 'Y' },
|
|
402
|
-
{ label: '否', value: 'N' },
|
|
403
|
-
]
|
|
399
|
+
setting: {
|
|
400
|
+
type: 'padding',
|
|
401
|
+
},
|
|
402
|
+
placeholder: '请设置容器内边距',
|
|
404
403
|
},
|
|
405
|
-
|
|
406
|
-
label:
|
|
407
|
-
ele:
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
placeholder: '请选择边框颜色',
|
|
412
|
-
classNmae: 'input80',
|
|
404
|
+
{
|
|
405
|
+
label: "容器背景颜色:",
|
|
406
|
+
ele: "xd-color",
|
|
407
|
+
valueKey: "bottomBgColor",
|
|
408
|
+
value: data.bottomBgColor || null,
|
|
409
|
+
groupKey: "style",
|
|
413
410
|
},
|
|
414
|
-
|
|
415
|
-
label:
|
|
416
|
-
|
|
417
|
-
ele: 'el-input',
|
|
411
|
+
{
|
|
412
|
+
label: "按钮高度:",
|
|
413
|
+
ele: "el-input",
|
|
418
414
|
type: 'number',
|
|
419
|
-
valueKey:
|
|
420
|
-
|
|
421
|
-
|
|
415
|
+
valueKey: "bottomBtnHeight",
|
|
416
|
+
groupKey:'style',
|
|
417
|
+
value: data['bottomBtnHeight'] || 60,
|
|
418
|
+
placeholder: '请输入按钮高度',
|
|
422
419
|
className: 'input80',
|
|
423
420
|
},
|
|
424
421
|
{
|
|
425
|
-
label: '
|
|
426
|
-
ele:
|
|
427
|
-
valueKey:
|
|
422
|
+
label: '按钮圆角:',
|
|
423
|
+
ele: "xd-site-select-list",
|
|
424
|
+
valueKey: "bottomBtnRadius",
|
|
425
|
+
value: data['bottomBtnRadius'] || '',
|
|
428
426
|
groupKey:'style',
|
|
429
|
-
value: data['radius'] || '',
|
|
430
427
|
placeholder: '请选择内容圆角设置',
|
|
431
428
|
multiple: false,
|
|
432
429
|
className: 'input80',
|
|
@@ -440,7 +437,6 @@ export default {
|
|
|
440
437
|
});
|
|
441
438
|
},
|
|
442
439
|
},
|
|
443
|
-
|
|
444
440
|
{
|
|
445
441
|
label: '查看品牌路径:',
|
|
446
442
|
ele: 'xd-select-pages-path',
|
|
@@ -489,7 +485,93 @@ export default {
|
|
|
489
485
|
},
|
|
490
486
|
inline: false,
|
|
491
487
|
},
|
|
488
|
+
|
|
489
|
+
// 废弃 - 隐藏
|
|
490
|
+
{
|
|
491
|
+
label: '是否有投影:',
|
|
492
|
+
ele: 'xd-radio',
|
|
493
|
+
groupKey:'style',
|
|
494
|
+
valueKey: 'is_shadow',
|
|
495
|
+
value: data['is_shadow'] || 'N',
|
|
496
|
+
placeholder: '请选择是否投影',
|
|
497
|
+
multiple: false,
|
|
498
|
+
className: 'input80',
|
|
499
|
+
list: [
|
|
500
|
+
{ label: '是', value: 'Y' },
|
|
501
|
+
{ label: '否', value: 'N' },
|
|
502
|
+
],
|
|
503
|
+
hidden: true,
|
|
504
|
+
},
|
|
505
|
+
data['is_shadow'] === 'Y' && {
|
|
506
|
+
label: '投影颜色:',
|
|
507
|
+
ele: 'xd-color',
|
|
508
|
+
groupKey:'style',
|
|
509
|
+
valueKey: 'is_shadow_bg',
|
|
510
|
+
value: data['is_shadow_bg'] || '',
|
|
511
|
+
placeholder: '请选择投影颜色',
|
|
512
|
+
classNmae: 'input80',
|
|
513
|
+
hidden: true,
|
|
514
|
+
},
|
|
515
|
+
data['is_shadow'] === 'Y' && {
|
|
516
|
+
label: '投影范围:',
|
|
517
|
+
ele: 'xd-site-select-list',
|
|
518
|
+
valueKey: 'is_shadow_w',
|
|
519
|
+
groupKey:'style',
|
|
520
|
+
value: data['is_shadow_w'] || '10',
|
|
521
|
+
placeholder: '请选择投影范围',
|
|
522
|
+
multiple: false,
|
|
523
|
+
className: 'input80',
|
|
524
|
+
handleCustom({ action, data }) {
|
|
525
|
+
XdBus.getParentApi('getOptionsSettingList')({
|
|
526
|
+
setting_id: 'edtix_style_radius',
|
|
527
|
+
key: Date.now()
|
|
528
|
+
})
|
|
529
|
+
.then(res => {
|
|
530
|
+
data.cb(res.list)
|
|
531
|
+
})
|
|
532
|
+
.catch(error => {
|
|
533
|
+
console.error(error);
|
|
534
|
+
});
|
|
535
|
+
},
|
|
536
|
+
hidden: true,
|
|
537
|
+
},
|
|
492
538
|
{
|
|
539
|
+
label: '是否有边框:',
|
|
540
|
+
ele: 'xd-radio',
|
|
541
|
+
valueKey: 'is_border',
|
|
542
|
+
value: data['is_border'] || 'N',
|
|
543
|
+
groupKey:'style',
|
|
544
|
+
placeholder: '请选择是否有边框',
|
|
545
|
+
multiple: false,
|
|
546
|
+
className: 'input80',
|
|
547
|
+
list: [
|
|
548
|
+
{ label: '是', value: 'Y' },
|
|
549
|
+
{ label: '否', value: 'N' },
|
|
550
|
+
],
|
|
551
|
+
hidden: true,
|
|
552
|
+
},
|
|
553
|
+
data['is_border'] === 'Y' && {
|
|
554
|
+
label: '边框颜色:',
|
|
555
|
+
ele: 'xd-color',
|
|
556
|
+
groupKey:'style',
|
|
557
|
+
valueKey: 'is_border_c',
|
|
558
|
+
value: data['is_border_c'] || '',
|
|
559
|
+
placeholder: '请选择边框颜色',
|
|
560
|
+
className: 'input80',
|
|
561
|
+
hidden: true,
|
|
562
|
+
},
|
|
563
|
+
data['is_border'] === 'Y' && {
|
|
564
|
+
label: '边框大小:',
|
|
565
|
+
groupKey:'style',
|
|
566
|
+
ele: 'el-input',
|
|
567
|
+
type: 'number',
|
|
568
|
+
valueKey: 'is_border_w',
|
|
569
|
+
value: data['is_border_w'] || '',
|
|
570
|
+
placeholder: '请输入边框颜色',
|
|
571
|
+
className: 'input80',
|
|
572
|
+
hidden: true,
|
|
573
|
+
},
|
|
574
|
+
{
|
|
493
575
|
label: '是否展开票券信息:',
|
|
494
576
|
ele: 'xd-radio',
|
|
495
577
|
valueKey: 'is_open',
|
|
@@ -129,6 +129,9 @@
|
|
|
129
129
|
v-for="(Ditem, Dindex) in info.film_show.detail.items"
|
|
130
130
|
:key="Dindex"
|
|
131
131
|
class="jfb-base-order-detail__body-delivery-bottom-item"
|
|
132
|
+
:style="{
|
|
133
|
+
marginBottom: lineHeight + 'rpx'
|
|
134
|
+
}"
|
|
132
135
|
>
|
|
133
136
|
<view style="width: 130rpx"
|
|
134
137
|
>{{ Ditem.label }} <span v-if="Ditem.label">:</span>
|
|
@@ -209,11 +212,14 @@
|
|
|
209
212
|
class="jfb-base-order-detail__body-delivery-bottom"
|
|
210
213
|
v-if="item.info && item.info.length > 0"
|
|
211
214
|
>
|
|
212
|
-
<view class="jfb-base-order-detail__body-delivery-bottom-title"
|
|
215
|
+
<view class="jfb-base-order-detail__body-delivery-bottom-title">{{item.service_name}}</view>
|
|
213
216
|
<view
|
|
214
217
|
v-for="(Ditem, Dindex) in item.info"
|
|
215
218
|
:key="Dindex"
|
|
216
219
|
class="jfb-base-order-detail__body-delivery-bottom-item"
|
|
220
|
+
:style="{
|
|
221
|
+
marginBottom: lineHeight + 'rpx'
|
|
222
|
+
}"
|
|
217
223
|
>
|
|
218
224
|
<view style="width: 130rpx;display: flex;">
|
|
219
225
|
<view v-html="Ditem.label"></view>
|
|
@@ -510,6 +516,9 @@
|
|
|
510
516
|
v-for="(item, index) in info.detail"
|
|
511
517
|
:key="index"
|
|
512
518
|
class="jfb-base-order-detail__body-order"
|
|
519
|
+
:style="{
|
|
520
|
+
marginBottom: lineHeight + 'rpx'
|
|
521
|
+
}"
|
|
513
522
|
>
|
|
514
523
|
<view :style="{ fontWeight: item.style }">
|
|
515
524
|
<view style="display: flex;">
|
|
@@ -541,6 +550,9 @@
|
|
|
541
550
|
<view
|
|
542
551
|
v-if="item.type !== 'line'"
|
|
543
552
|
class="jfb-base-order-detail__body-price"
|
|
553
|
+
:style="{
|
|
554
|
+
marginBottom: lineHeight + 'rpx'
|
|
555
|
+
}"
|
|
544
556
|
>
|
|
545
557
|
<view :style="{ fontWeight: item.style }">{{ item.label }}</view>
|
|
546
558
|
<xd-unit
|
|
@@ -699,41 +711,51 @@
|
|
|
699
711
|
:style="prod_bottom"
|
|
700
712
|
v-if="info.buttons && info.buttons.length > 0"
|
|
701
713
|
>
|
|
702
|
-
<view
|
|
703
|
-
<view
|
|
704
|
-
style="display: flex; align-items: center"
|
|
705
|
-
v-if="item.action === 'pay'"
|
|
706
|
-
>
|
|
714
|
+
<view :style="[bottomBoxStyle]" class="btn_wrap">
|
|
715
|
+
<view v-for="(item, index) in info.buttons" :key="index">
|
|
707
716
|
<view
|
|
708
|
-
style="display: flex; align-items: center
|
|
709
|
-
v-if="
|
|
717
|
+
style="display: flex; align-items: center"
|
|
718
|
+
v-if="item.action === 'pay'"
|
|
710
719
|
>
|
|
711
|
-
<
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
720
|
+
<view
|
|
721
|
+
style="display: flex; align-items: center; margin-right: 30rpx"
|
|
722
|
+
v-if="biz_code !== 'gift' || info.is_show_gift_price"
|
|
723
|
+
>
|
|
724
|
+
<text>应付:</text>
|
|
725
|
+
<xd-unit
|
|
726
|
+
:price="info.pay_info.real_pay_amount"
|
|
727
|
+
:font-size="36"
|
|
728
|
+
:iocn-size="0.45"
|
|
729
|
+
></xd-unit>
|
|
730
|
+
</view>
|
|
731
|
+
<view>
|
|
732
|
+
<xd-button
|
|
733
|
+
@click="handleToPay"
|
|
734
|
+
size="small"
|
|
735
|
+
type="primary"
|
|
736
|
+
:style="{
|
|
737
|
+
height: bottomBtnHeight + 'rpx',
|
|
738
|
+
lineHeight: bottomBtnHeight + 'rpx',
|
|
739
|
+
}"
|
|
740
|
+
:radius="bottomBtnRadius + 'rpx'"
|
|
741
|
+
:bg-color="mainColor"
|
|
742
|
+
>{{ item.text }}
|
|
743
|
+
</xd-button>
|
|
744
|
+
</view>
|
|
717
745
|
</view>
|
|
718
|
-
<view>
|
|
746
|
+
<view v-else>
|
|
719
747
|
<xd-button
|
|
720
|
-
@click="handleToPay"
|
|
721
748
|
size="small"
|
|
722
|
-
type="primary"
|
|
723
|
-
radius="
|
|
724
|
-
:
|
|
725
|
-
|
|
726
|
-
|
|
749
|
+
:type="item.type !== undefined ? item.type: 'primary'"
|
|
750
|
+
:radius="bottomBtnRadius + 'rpx'"
|
|
751
|
+
:style="{
|
|
752
|
+
height: bottomBtnHeight + 'rpx',
|
|
753
|
+
lineHeight: bottomBtnHeight + 'rpx',
|
|
754
|
+
}"
|
|
755
|
+
@click="handleAction(item)"
|
|
756
|
+
>{{ item.text }}</xd-button>
|
|
727
757
|
</view>
|
|
728
758
|
</view>
|
|
729
|
-
<view v-else>
|
|
730
|
-
<xd-button
|
|
731
|
-
size="small"
|
|
732
|
-
:type="item.type !== undefined ? item.type: 'primary'"
|
|
733
|
-
radius="40rpx"
|
|
734
|
-
@click="handleAction(item)"
|
|
735
|
-
>{{ item.text }}</xd-button>
|
|
736
|
-
</view>
|
|
737
759
|
</view>
|
|
738
760
|
</view>
|
|
739
761
|
</view>
|
|
@@ -840,17 +862,20 @@ export default {
|
|
|
840
862
|
is_border_w: 0,
|
|
841
863
|
is_border_c: "",
|
|
842
864
|
|
|
865
|
+
|
|
843
866
|
//其他
|
|
844
|
-
margin: {
|
|
845
|
-
top: 0,
|
|
846
|
-
left: 0,
|
|
847
|
-
right: 0,
|
|
848
|
-
bottom: 0,
|
|
849
|
-
},
|
|
867
|
+
margin: {},
|
|
850
868
|
is_hot: "Y",
|
|
851
869
|
logo: "",
|
|
870
|
+
lineHeight: 20,
|
|
852
871
|
|
|
853
872
|
noticeBgc:'',
|
|
873
|
+
sectionShadow: "",
|
|
874
|
+
sectionBorder: "",
|
|
875
|
+
bottomBtnRadius: 0,
|
|
876
|
+
bottomPadding: "",
|
|
877
|
+
bottomBgColor: "",
|
|
878
|
+
bottomBtnHeight: "",
|
|
854
879
|
is_open: '',
|
|
855
880
|
is_show: '',
|
|
856
881
|
showAllProductDetail: false,
|
|
@@ -895,15 +920,21 @@ export default {
|
|
|
895
920
|
return str
|
|
896
921
|
},
|
|
897
922
|
shadowBox() {
|
|
898
|
-
|
|
899
|
-
return `0 0 ${this.is_shadow_w}rpx ${this.is_shadow_bg}`;
|
|
900
|
-
else return "0 0 0 rgba(0,0,0,0)";
|
|
923
|
+
return this.sectionShadow;
|
|
901
924
|
},
|
|
902
925
|
borderBox() {
|
|
903
|
-
|
|
904
|
-
return `${this.is_border_w}rpx solid ${this.is_border_c}`;
|
|
905
|
-
else return "0";
|
|
926
|
+
return this.sectionBorder;
|
|
906
927
|
},
|
|
928
|
+
bottomBoxStyle(){
|
|
929
|
+
let padding = `${this.checkValue(this.bottomPadding.top, 20)}rpx`;
|
|
930
|
+
padding = `${padding} ${this.checkValue(this.bottomPadding.right, 20)}rpx`;
|
|
931
|
+
padding = `${padding} ${this.checkValue(this.bottomPadding.bottom, 20)}rpx`;
|
|
932
|
+
padding = `${padding} ${this.checkValue(this.bottomPadding.left, 20)}rpx`;
|
|
933
|
+
return {
|
|
934
|
+
padding: padding,
|
|
935
|
+
backgroundColor: this.bottomBgColor,
|
|
936
|
+
}
|
|
937
|
+
}
|
|
907
938
|
},
|
|
908
939
|
created() {
|
|
909
940
|
this.noticeBgc = Color(this.warningColor).alpha(0.2).toString();
|
|
@@ -1143,12 +1174,30 @@ export default {
|
|
|
1143
1174
|
this.is_shadow_w = getContainerPropsValue(container, "content.is_shadow_w", "10");
|
|
1144
1175
|
|
|
1145
1176
|
this.is_border = getContainerPropsValue(container, "content.is_border", "N");
|
|
1146
|
-
this.is_hot = getContainerPropsValue(container, "content.is_hot", "Y");
|
|
1147
1177
|
this.is_border_c = getContainerPropsValue(container, "content.is_border_c", "#fff");
|
|
1148
1178
|
this.is_border_w = getContainerPropsValue(container, "content.is_border_w", 2);
|
|
1179
|
+
|
|
1180
|
+
this.is_hot = getContainerPropsValue(container, "content.is_hot", "Y");
|
|
1149
1181
|
this.viewStatus = getContainerPropsValue(container, "content.viewStatus", "mall");
|
|
1150
1182
|
this.is_show_support_shop = getContainerPropsValue(container, "content.is_show_support_shop", "N");
|
|
1151
1183
|
this.is_show_delete_order = getContainerPropsValue(container, "content.is_show_delete_order", "N");
|
|
1184
|
+
this.lineHeight = getContainerPropsValue(container, "content.lineHeight", 20);
|
|
1185
|
+
let sectionShadow = getContainerPropsValue(container, "content.sectionShadow", "");
|
|
1186
|
+
this.sectionShadow = this.getShadowCompatibleOldStyle(sectionShadow, {
|
|
1187
|
+
type: this.is_shadow,
|
|
1188
|
+
width: this.is_shadow_w,
|
|
1189
|
+
color: this.is_shadow_bg,
|
|
1190
|
+
})
|
|
1191
|
+
let sectionBorder = getContainerPropsValue(container, "content.sectionBorder", "");
|
|
1192
|
+
this.sectionBorder = this.getBorderCompatibleOldStyle(sectionBorder, {
|
|
1193
|
+
type: this.is_border,
|
|
1194
|
+
width: this.is_border_w,
|
|
1195
|
+
color: this.is_border_c,
|
|
1196
|
+
})
|
|
1197
|
+
this.bottomBtnRadius = getContainerPropsValue(container, "content.bottomBtnRadius", 0);
|
|
1198
|
+
this.bottomPadding = getContainerPropsValue(container, "content.bottomPadding", {});
|
|
1199
|
+
this.bottomBgColor = getContainerPropsValue(container, "content.bottomBgColor", "#ffffff");
|
|
1200
|
+
this.bottomBtnHeight = getContainerPropsValue(container, "content.bottomBtnHeight", 60);
|
|
1152
1201
|
this.is_open = getContainerPropsValue(container, "content.is_open", "N");
|
|
1153
1202
|
this.is_show = getContainerPropsValue(container, "content.is_show", '1');
|
|
1154
1203
|
this.showPayCard = this.is_open==='Y'
|
|
@@ -1801,8 +1850,6 @@ export default {
|
|
|
1801
1850
|
position: fixed;
|
|
1802
1851
|
left: 0;
|
|
1803
1852
|
right: 0;
|
|
1804
|
-
height: unit(100, rpx);
|
|
1805
|
-
padding: 0 unit(30, rpx);
|
|
1806
1853
|
box-shadow: 0 0 unit(10, rpx) rgba(0, 0, 0, 0.15);
|
|
1807
1854
|
background: #fff;
|
|
1808
1855
|
z-index: 3000;
|
|
@@ -1810,9 +1857,12 @@ export default {
|
|
|
1810
1857
|
justify-content: flex-end;
|
|
1811
1858
|
align-items: center;
|
|
1812
1859
|
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1860
|
+
.btn_wrap{
|
|
1861
|
+
display: flex;
|
|
1862
|
+
& > view {
|
|
1863
|
+
margin-left: unit(20, rpx);
|
|
1864
|
+
font-size: @xd-font-size-lg;
|
|
1865
|
+
}
|
|
1816
1866
|
}
|
|
1817
1867
|
}
|
|
1818
1868
|
|