jufubao-base 1.0.184 → 1.0.186-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/package.json +1 -1
- package/src/components/JfbBaseFastLink/Attr.js +18 -5
- package/src/components/JfbBaseFastLink/JfbBaseFastLink.vue +8 -8
- package/src/components/JfbBaseFastLink/XdFastNav.vue +12 -0
- package/src/components/JfbBaseOrderDetail/Attr.js +42 -0
- package/src/components/JfbBaseOrderDetail/JfbBaseOrderDetail.vue +40 -7
- package/src/components/JfbBasePhoneCollect/Attr.js +945 -411
- package/src/components/JfbBasePhoneCollect/JfbBasePhoneCollect.vue +307 -27
- package/src/components/JfbBasePhoneLogin/Attr.js +893 -405
- package/src/components/JfbBasePhoneLogin/JfbBasePhoneLogin.vue +609 -253
- package/src/components/JfbBaseTfkCardLogin/JfbBaseTfkCardLogin.vue +0 -1
package/package.json
CHANGED
|
@@ -27,9 +27,22 @@ export default {
|
|
|
27
27
|
{label: '悬浮', value: 'fixed'},
|
|
28
28
|
],
|
|
29
29
|
inline: false,
|
|
30
|
-
notice:
|
|
30
|
+
notice: `使用悬浮布局时,链接数量不可超过<span style="color:red"> 3 </span>个,超出部分不显示, 并且把该组件移动到最后`
|
|
31
31
|
},
|
|
32
|
-
|
|
32
|
+
{
|
|
33
|
+
label: '默认是否收起:',
|
|
34
|
+
ele: 'xd-radio',
|
|
35
|
+
valueKey: 'isNotExpand',
|
|
36
|
+
groupKey:'content',
|
|
37
|
+
value: data['isNotExpand'] || 'Y',
|
|
38
|
+
className: 'input80',
|
|
39
|
+
list: [
|
|
40
|
+
{label: '是', value: 'Y'},
|
|
41
|
+
{label: '否', value: 'N'},
|
|
42
|
+
],
|
|
43
|
+
hidden: data['is_layout'] !=='fixed'
|
|
44
|
+
},
|
|
45
|
+
data['is_layout'] ==='fixed' && 0 && {
|
|
33
46
|
label: '自定义名称:',
|
|
34
47
|
ele: 'el-input',
|
|
35
48
|
type: 'text',
|
|
@@ -68,16 +81,16 @@ export default {
|
|
|
68
81
|
},
|
|
69
82
|
},
|
|
70
83
|
{
|
|
71
|
-
label: '
|
|
84
|
+
label: '行间距:',
|
|
72
85
|
ele: 'el-input',
|
|
73
86
|
groupKey:'style',
|
|
74
87
|
type: 'number',
|
|
75
88
|
valueKey: 'padding',
|
|
76
89
|
value: data.padding===undefined? data.padding: '',
|
|
77
|
-
placeholder: '
|
|
90
|
+
placeholder: '请输入行间距',
|
|
78
91
|
className: 'input60',
|
|
79
92
|
inline: false,
|
|
80
|
-
notice: '
|
|
93
|
+
notice: '设置行间距,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">20</span>像素',
|
|
81
94
|
},
|
|
82
95
|
{
|
|
83
96
|
label: '外边距设置:',
|
|
@@ -50,6 +50,7 @@
|
|
|
50
50
|
>弹窗模式方便编辑(占位),在线上此模块不显</view>
|
|
51
51
|
</template>
|
|
52
52
|
<xd-fast-nav
|
|
53
|
+
:is-not-expand="isNotExpand === 'Y'"
|
|
53
54
|
:list="listNave"
|
|
54
55
|
:color="mainColor"
|
|
55
56
|
:is-preview="isPreview"
|
|
@@ -86,6 +87,7 @@
|
|
|
86
87
|
list: [],
|
|
87
88
|
backgroundColor: '',
|
|
88
89
|
isPreview:false,
|
|
90
|
+
isNotExpand: 'Y',
|
|
89
91
|
|
|
90
92
|
//基础信息
|
|
91
93
|
background: '#fff',
|
|
@@ -104,12 +106,7 @@
|
|
|
104
106
|
is_border_c: '',
|
|
105
107
|
|
|
106
108
|
//其他
|
|
107
|
-
margin: {
|
|
108
|
-
top: 0,
|
|
109
|
-
left: 0,
|
|
110
|
-
right: 0,
|
|
111
|
-
bottom: 0
|
|
112
|
-
},
|
|
109
|
+
margin: {},
|
|
113
110
|
padding: 20, //间距
|
|
114
111
|
}
|
|
115
112
|
},
|
|
@@ -157,7 +154,7 @@
|
|
|
157
154
|
handleClick(item){
|
|
158
155
|
if(item.path && item.path.value) {
|
|
159
156
|
this.$xdUniHelper.navigateTo({
|
|
160
|
-
url : `${item.path.value}`
|
|
157
|
+
url : `${item.path.value}`
|
|
161
158
|
})
|
|
162
159
|
}
|
|
163
160
|
},
|
|
@@ -173,7 +170,7 @@
|
|
|
173
170
|
this.iconColor = getContainerPropsValue(container, 'content.iconColor', '#999');
|
|
174
171
|
this.padding = getContainerPropsValue(container, 'content.padding', 20);
|
|
175
172
|
this.is_layout = getContainerPropsValue(container, 'content.is_layout', 'noraml');
|
|
176
|
-
this.fastName = getContainerPropsValue(container, 'content.fastName', '快速导航');
|
|
173
|
+
//this.fastName = getContainerPropsValue(container, 'content.fastName', '快速导航');
|
|
177
174
|
this.is_border = getContainerPropsValue(container, 'content.is_border', 'N');
|
|
178
175
|
this.is_border_c = getContainerPropsValue(container, 'content.is_border_c', '#fff');
|
|
179
176
|
this.is_border_w = getContainerPropsValue(container, 'content.is_border_w', 2);
|
|
@@ -187,6 +184,7 @@
|
|
|
187
184
|
this.margin = getContainerPropsValue(container, 'content.margin', {top: 0, left: 0, right: 0, bottom: 0});
|
|
188
185
|
this.subColor = getContainerPropsValue(container, 'content.textSubColor', '#000');
|
|
189
186
|
this.fontSubSize = getContainerPropsValue(container, 'content.fontSubSize', 24);
|
|
187
|
+
this.isNotExpand = getContainerPropsValue(container, 'content.isNotExpand', 'Y');
|
|
190
188
|
if(this.is_layout === 'fixed') {
|
|
191
189
|
this.listNave = this.list.map(item=>{
|
|
192
190
|
let {appValue,path} = item.path
|
|
@@ -212,6 +210,8 @@
|
|
|
212
210
|
jumpUrl = `${jumpUrl}${bus}`;
|
|
213
211
|
return { name: item.name, path: jumpUrl, icon: item.icon, size: item.size }
|
|
214
212
|
}
|
|
213
|
+
}).filter((item,index)=>{
|
|
214
|
+
return index < 3
|
|
215
215
|
});
|
|
216
216
|
}
|
|
217
217
|
|
|
@@ -75,7 +75,12 @@
|
|
|
75
75
|
return {}
|
|
76
76
|
}
|
|
77
77
|
},
|
|
78
|
+
isNotExpand:{
|
|
79
|
+
type:Boolean,
|
|
80
|
+
default: true
|
|
81
|
+
},
|
|
78
82
|
},
|
|
83
|
+
|
|
79
84
|
data(){
|
|
80
85
|
return {
|
|
81
86
|
uizIndex: 100,
|
|
@@ -83,6 +88,11 @@
|
|
|
83
88
|
lineColor: '#fff'
|
|
84
89
|
}
|
|
85
90
|
},
|
|
91
|
+
watch:{
|
|
92
|
+
isNotExpand(value){
|
|
93
|
+
this.close = value;
|
|
94
|
+
}
|
|
95
|
+
},
|
|
86
96
|
|
|
87
97
|
computed:{
|
|
88
98
|
uiTop(){
|
|
@@ -92,6 +102,8 @@
|
|
|
92
102
|
|
|
93
103
|
created() {
|
|
94
104
|
this.lineColor = Color(this.color).alpha(0.2).toString();
|
|
105
|
+
this.close = this.isNotExpand;
|
|
106
|
+
|
|
95
107
|
},
|
|
96
108
|
|
|
97
109
|
methods: {
|
|
@@ -489,6 +489,48 @@ export default {
|
|
|
489
489
|
},
|
|
490
490
|
inline: false,
|
|
491
491
|
},
|
|
492
|
+
{
|
|
493
|
+
label: '是否展开票券信息:',
|
|
494
|
+
ele: 'xd-radio',
|
|
495
|
+
valueKey: 'is_open',
|
|
496
|
+
value: data['is_open'] || 'N',
|
|
497
|
+
groupKey:'content',
|
|
498
|
+
placeholder: '请选择是否展开票券信息',
|
|
499
|
+
multiple: false,
|
|
500
|
+
className: 'input80',
|
|
501
|
+
list: [
|
|
502
|
+
{ label: '展开', value: 'Y' },
|
|
503
|
+
{ label: '收起', value: 'N' },
|
|
504
|
+
]
|
|
505
|
+
},
|
|
506
|
+
{
|
|
507
|
+
label: '是否展开商品详情:',
|
|
508
|
+
ele: 'xd-radio',
|
|
509
|
+
valueKey: 'is_show_all_detail',
|
|
510
|
+
value: data['is_show_all_detail'] || 'N',
|
|
511
|
+
groupKey:'content',
|
|
512
|
+
placeholder: '请选择是否展开商品详情',
|
|
513
|
+
multiple: false,
|
|
514
|
+
className: 'input80',
|
|
515
|
+
list: [
|
|
516
|
+
{ label: '展开', value: 'Y' },
|
|
517
|
+
{ label: '收起', value: 'N' },
|
|
518
|
+
]
|
|
519
|
+
},
|
|
520
|
+
{
|
|
521
|
+
label: '提货码展示/隐藏:',
|
|
522
|
+
ele: 'xd-radio',
|
|
523
|
+
valueKey: 'is_show',
|
|
524
|
+
value: data['is_show'] || 1,
|
|
525
|
+
groupKey:'content',
|
|
526
|
+
placeholder: '请选择提货码展示/隐藏',
|
|
527
|
+
multiple: false,
|
|
528
|
+
className: 'input80',
|
|
529
|
+
list: [
|
|
530
|
+
{ label: '显示', value: 1 },
|
|
531
|
+
{ label: '隐藏', value: 0 },
|
|
532
|
+
]
|
|
533
|
+
},
|
|
492
534
|
].filter(i=>i)
|
|
493
535
|
},
|
|
494
536
|
}
|
|
@@ -259,7 +259,7 @@
|
|
|
259
259
|
class="jfb-base-order-detail__body-card jfb-base-order-detail__body-cashier"
|
|
260
260
|
>
|
|
261
261
|
<view class="jfb-base-order-detail__body-cashier-text">{{info.codes[0].show_type === "qrcode" ? "二维码" : "条形码" }}</view>
|
|
262
|
-
<view style="position: relative">
|
|
262
|
+
<view v-if="showPreviewCode" style="position: relative">
|
|
263
263
|
<image
|
|
264
264
|
:style="{
|
|
265
265
|
height: info.codes[0].show_type === 'qrcode' ? '50vw' : '25vw',
|
|
@@ -556,20 +556,18 @@
|
|
|
556
556
|
></view>
|
|
557
557
|
</view>
|
|
558
558
|
<view v-if="info.pay_info.cards && info.pay_info.cards.length > 0">
|
|
559
|
-
<view class="jfb-base-order-detail__body-show" v-if="!showPayCard">
|
|
559
|
+
<view @click="showPayCard = true" class="jfb-base-order-detail__body-show" v-if="!showPayCard">
|
|
560
560
|
<text>使用 {{ info.pay_info.cards.length }} 张票券 展开</text>
|
|
561
561
|
<xd-font-icon
|
|
562
562
|
style="margin-left: 8rpx"
|
|
563
|
-
@click="showPayCard = true"
|
|
564
563
|
size="28"
|
|
565
564
|
icon="iconxia_down"
|
|
566
565
|
></xd-font-icon>
|
|
567
566
|
</view>
|
|
568
|
-
<view class="jfb-base-order-detail__body-show" v-else>
|
|
567
|
+
<view @click="showPayCard = false" class="jfb-base-order-detail__body-show" v-else>
|
|
569
568
|
<text>使用{{ info.pay_info.cards.length }}张票券 收起</text>
|
|
570
569
|
<xd-font-icon
|
|
571
570
|
style="margin-left: 8rpx"
|
|
572
|
-
@click="showPayCard = false"
|
|
573
571
|
size="28"
|
|
574
572
|
icon="iconshang_up"
|
|
575
573
|
></xd-font-icon>
|
|
@@ -653,8 +651,25 @@
|
|
|
653
651
|
<view class="jfb-base-order-detail__body-shop-title">
|
|
654
652
|
<view :style="{ background: mainColor }"></view>
|
|
655
653
|
<view>商品详情</view>
|
|
654
|
+
<view @click="showAllProductDetail=!showAllProductDetail" v-if="!showAllProductDetail" style="color:#999;display:flex;align-items:center;margin-left:10px">
|
|
655
|
+
<text> 展开</text>
|
|
656
|
+
<xd-font-icon
|
|
657
|
+
style="margin-left: 8rpx"
|
|
658
|
+
size="28"
|
|
659
|
+
icon="iconxia_down"
|
|
660
|
+
></xd-font-icon>
|
|
661
|
+
</view>
|
|
662
|
+
<view @click="showAllProductDetail=!showAllProductDetail" v-if="showAllProductDetail" style="color:#999;display:flex;align-items:center;margin-left:10px">
|
|
663
|
+
<text> 收起</text>
|
|
664
|
+
<xd-font-icon
|
|
665
|
+
style="margin-left: 8rpx"
|
|
666
|
+
size="28"
|
|
667
|
+
icon="iconxia_down"
|
|
668
|
+
></xd-font-icon>
|
|
669
|
+
</view>
|
|
670
|
+
</view>
|
|
671
|
+
<view v-if="showAllProductDetail" v-html="info.product_detail">
|
|
656
672
|
</view>
|
|
657
|
-
<view v-html="info.productDetail"></view>
|
|
658
673
|
</view>
|
|
659
674
|
<view
|
|
660
675
|
v-if="info.custom_content"
|
|
@@ -835,6 +850,11 @@ export default {
|
|
|
835
850
|
logo: "",
|
|
836
851
|
|
|
837
852
|
noticeBgc:'',
|
|
853
|
+
is_open: '',
|
|
854
|
+
is_show: '',
|
|
855
|
+
showAllProductDetail: false,
|
|
856
|
+
is_show_all_detail: '',
|
|
857
|
+
showPreviewCode: true
|
|
838
858
|
};
|
|
839
859
|
},
|
|
840
860
|
watch: {
|
|
@@ -921,6 +941,7 @@ export default {
|
|
|
921
941
|
main_order_id: this.main_order_id,
|
|
922
942
|
custom_content_page_id: this.pageAttr.page_id,
|
|
923
943
|
custom_content_container_id: this.cid,
|
|
944
|
+
is_show_jhd_code: this.is_show
|
|
924
945
|
},
|
|
925
946
|
})
|
|
926
947
|
.then((res) => {
|
|
@@ -1047,7 +1068,7 @@ export default {
|
|
|
1047
1068
|
}
|
|
1048
1069
|
|
|
1049
1070
|
//增加删除订单按钮
|
|
1050
|
-
if(this.is_show_delete_order
|
|
1071
|
+
if(this.is_show_delete_order === 'Y') {
|
|
1051
1072
|
let pay = (res.buttons||[]).filter(item => item.action === 'pay');
|
|
1052
1073
|
let del = [{action:'delete', text:'删除订单', type: 'info'}];
|
|
1053
1074
|
if(pay.length === 1) del = []
|
|
@@ -1119,6 +1140,18 @@ export default {
|
|
|
1119
1140
|
this.viewStatus = getContainerPropsValue(container, "content.viewStatus", "mall");
|
|
1120
1141
|
this.is_show_support_shop = getContainerPropsValue(container, "content.is_show_support_shop", "N");
|
|
1121
1142
|
this.is_show_delete_order = getContainerPropsValue(container, "content.is_show_delete_order", "N");
|
|
1143
|
+
this.is_open = getContainerPropsValue(container, "content.is_open", "N");
|
|
1144
|
+
this.is_show = getContainerPropsValue(container, "content.is_show", 1);
|
|
1145
|
+
this.showPayCard = this.is_open==='Y'
|
|
1146
|
+
this.is_show_all_detail = getContainerPropsValue(container, "content.is_show_all_detail", "N");
|
|
1147
|
+
this.showAllProductDetail = this.is_show_all_detail==='Y'
|
|
1148
|
+
if(this.isPreview) {
|
|
1149
|
+
if(this.is_show===0) {
|
|
1150
|
+
this.showPreviewCode = false;
|
|
1151
|
+
} else {
|
|
1152
|
+
this.showPreviewCode = true;
|
|
1153
|
+
}
|
|
1154
|
+
}
|
|
1122
1155
|
},
|
|
1123
1156
|
getCountDown() {
|
|
1124
1157
|
this.timer = setInterval(() => {
|