jufubao-base 1.0.189 → 1.0.191
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/get.package.path.js +2 -2
- package/package.json +1 -1
- package/src/components/JfbBaseCardEntry/JfbBaseCardEntry.vue +1 -2
- package/src/components/JfbBaseOrderDetail/Api.js +1 -0
- package/src/components/JfbBaseOrderDetail/Attr.js +54 -0
- package/src/components/JfbBaseOrderDetail/JfbBaseOrderDetail.vue +72 -11
- 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/JfbBaseSuccess/Attr.js +1 -1
- package/src/components/JfbBaseTfkCardLogin/JfbBaseTfkCardLogin.vue +0 -1
- package/src/components/JfbBaseWallet/Attr.js +4 -1
package/get.package.path.js
CHANGED
|
@@ -8,11 +8,11 @@
|
|
|
8
8
|
*/
|
|
9
9
|
const getPackagePath = (threePackagePath, packname = 'gxd-commands-bussiness')=>{
|
|
10
10
|
if(packname === 'gxd-commands-bussiness') {
|
|
11
|
-
return `/Users/shiyonggao/
|
|
11
|
+
return `/Users/shiyonggao/Desktop/code/BASE/UNIAPP/xd-commands-bussiness/${threePackagePath}`;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
if (packname === 'gxd-uni-library-editx') {
|
|
15
|
-
return `/Users/shiyonggao/
|
|
15
|
+
return `/Users/shiyonggao/Desktop/code/BASE/UNIAPP/xd-uni-library-editx/${threePackagePath}`;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
};
|
package/package.json
CHANGED
|
@@ -737,7 +737,6 @@ export default {
|
|
|
737
737
|
if (this.$configProject.isPreview) {
|
|
738
738
|
console.log("handleBindLogin", "预览模式不跳转", this.inCallback);
|
|
739
739
|
}
|
|
740
|
-
|
|
741
740
|
else {
|
|
742
741
|
this.handleClick(entry);
|
|
743
742
|
}
|
|
@@ -779,7 +778,7 @@ export default {
|
|
|
779
778
|
if (this.$configProject['isPreview']) return;
|
|
780
779
|
|
|
781
780
|
//登陆成功,有回调地址返回回调地址
|
|
782
|
-
if(this.
|
|
781
|
+
if(this.inCallbackUrlOrg) {
|
|
783
782
|
this.$xdUniHelper.redirectTo({
|
|
784
783
|
url:this.inCallback
|
|
785
784
|
}, false);
|
|
@@ -489,6 +489,60 @@ 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_product',
|
|
510
|
+
groupKey:'content',
|
|
511
|
+
value:data['is_show_product'] || 'Y',
|
|
512
|
+
placeholder: '请选择',
|
|
513
|
+
list: [
|
|
514
|
+
{"label": "是", "value": "Y"},
|
|
515
|
+
{"label": "否", "value": "N"},
|
|
516
|
+
],
|
|
517
|
+
},
|
|
518
|
+
{
|
|
519
|
+
label: '是否展开商品详情:',
|
|
520
|
+
ele: 'xd-radio',
|
|
521
|
+
valueKey: 'is_show_all_detail',
|
|
522
|
+
value: data['is_show_all_detail'] || 'N',
|
|
523
|
+
groupKey:'content',
|
|
524
|
+
placeholder: '请选择是否展开商品详情',
|
|
525
|
+
multiple: false,
|
|
526
|
+
className: 'input80',
|
|
527
|
+
list: [
|
|
528
|
+
{ label: '展开', value: 'Y' },
|
|
529
|
+
{ label: '收起', value: 'N' },
|
|
530
|
+
]
|
|
531
|
+
},
|
|
532
|
+
{
|
|
533
|
+
label: '提货码展示/隐藏:',
|
|
534
|
+
ele: 'xd-radio',
|
|
535
|
+
valueKey: 'is_show',
|
|
536
|
+
value: data['is_show'] || '1',
|
|
537
|
+
groupKey:'content',
|
|
538
|
+
placeholder: '请选择提货码展示/隐藏',
|
|
539
|
+
multiple: false,
|
|
540
|
+
className: 'input80',
|
|
541
|
+
list: [
|
|
542
|
+
{ label: '显示', value: '1' },
|
|
543
|
+
{ label: '隐藏', value: '0' },
|
|
544
|
+
]
|
|
545
|
+
},
|
|
492
546
|
].filter(i=>i)
|
|
493
547
|
},
|
|
494
548
|
}
|
|
@@ -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,26 @@
|
|
|
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" class="jfb-base-order-detail__body-product-show">
|
|
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" class="jfb-base-order-detail__body-product-show">
|
|
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 class="jfb-base-order-detail__body-html" v-if="showAllProductDetail">
|
|
672
|
+
<view v-html="info.productDetail"></view>
|
|
656
673
|
</view>
|
|
657
|
-
<view v-html="info.productDetail"></view>
|
|
658
674
|
</view>
|
|
659
675
|
<view
|
|
660
676
|
v-if="info.custom_content"
|
|
@@ -835,6 +851,12 @@ export default {
|
|
|
835
851
|
logo: "",
|
|
836
852
|
|
|
837
853
|
noticeBgc:'',
|
|
854
|
+
is_open: '',
|
|
855
|
+
is_show: '',
|
|
856
|
+
showAllProductDetail: false,
|
|
857
|
+
is_show_all_detail: '',
|
|
858
|
+
showPreviewCode: true,
|
|
859
|
+
is_show_product: "",
|
|
838
860
|
};
|
|
839
861
|
},
|
|
840
862
|
watch: {
|
|
@@ -914,13 +936,15 @@ export default {
|
|
|
914
936
|
this.getCountDown();
|
|
915
937
|
}
|
|
916
938
|
},
|
|
917
|
-
getOrderDetail() {
|
|
939
|
+
getOrderDetail() {
|
|
918
940
|
jfbRootExec("getBaseOrderDetail", {
|
|
919
941
|
vm: this,
|
|
920
942
|
data: {
|
|
921
943
|
main_order_id: this.main_order_id,
|
|
922
944
|
custom_content_page_id: this.pageAttr.page_id,
|
|
923
945
|
custom_content_container_id: this.cid,
|
|
946
|
+
is_show_jhd_code: Number(this.is_show),
|
|
947
|
+
is_show_product: this.is_show_product === "Y" ? 1 : 0,
|
|
924
948
|
},
|
|
925
949
|
})
|
|
926
950
|
.then((res) => {
|
|
@@ -1047,7 +1071,7 @@ export default {
|
|
|
1047
1071
|
}
|
|
1048
1072
|
|
|
1049
1073
|
//增加删除订单按钮
|
|
1050
|
-
if(this.is_show_delete_order
|
|
1074
|
+
if(this.is_show_delete_order === 'Y') {
|
|
1051
1075
|
let pay = (res.buttons||[]).filter(item => item.action === 'pay');
|
|
1052
1076
|
let del = [{action:'delete', text:'删除订单', type: 'info'}];
|
|
1053
1077
|
if(pay.length === 1) del = []
|
|
@@ -1060,11 +1084,12 @@ export default {
|
|
|
1060
1084
|
}
|
|
1061
1085
|
|
|
1062
1086
|
if (res.product) {
|
|
1063
|
-
|
|
1087
|
+
try {
|
|
1088
|
+
jfbRootExec("getBaseProductDetail", {
|
|
1064
1089
|
vm: this,
|
|
1065
1090
|
data: {
|
|
1066
|
-
xnamespace:
|
|
1067
|
-
product_id:
|
|
1091
|
+
xnamespace: res.product.business_code,
|
|
1092
|
+
product_id: res.product.product_id,
|
|
1068
1093
|
},
|
|
1069
1094
|
})
|
|
1070
1095
|
.then((result) => {
|
|
@@ -1077,6 +1102,11 @@ export default {
|
|
|
1077
1102
|
.catch((err) => {
|
|
1078
1103
|
console.log(err, "err");
|
|
1079
1104
|
});
|
|
1105
|
+
} catch (error) {
|
|
1106
|
+
console.log(error,'apapapa');
|
|
1107
|
+
|
|
1108
|
+
}
|
|
1109
|
+
|
|
1080
1110
|
}
|
|
1081
1111
|
else {
|
|
1082
1112
|
this.info = res;
|
|
@@ -1119,6 +1149,19 @@ export default {
|
|
|
1119
1149
|
this.viewStatus = getContainerPropsValue(container, "content.viewStatus", "mall");
|
|
1120
1150
|
this.is_show_support_shop = getContainerPropsValue(container, "content.is_show_support_shop", "N");
|
|
1121
1151
|
this.is_show_delete_order = getContainerPropsValue(container, "content.is_show_delete_order", "N");
|
|
1152
|
+
this.is_open = getContainerPropsValue(container, "content.is_open", "N");
|
|
1153
|
+
this.is_show = getContainerPropsValue(container, "content.is_show", '1');
|
|
1154
|
+
this.showPayCard = this.is_open==='Y'
|
|
1155
|
+
this.is_show_all_detail = getContainerPropsValue(container, "content.is_show_all_detail", "N");
|
|
1156
|
+
this.is_show_product = getContainerPropsValue(container, "content.is_show_product", "Y");
|
|
1157
|
+
this.showAllProductDetail = this.is_show_all_detail==='Y'
|
|
1158
|
+
if(this.isPreview) {
|
|
1159
|
+
if(this.is_show==='0') {
|
|
1160
|
+
this.showPreviewCode = false;
|
|
1161
|
+
} else {
|
|
1162
|
+
this.showPreviewCode = true;
|
|
1163
|
+
}
|
|
1164
|
+
}
|
|
1122
1165
|
},
|
|
1123
1166
|
getCountDown() {
|
|
1124
1167
|
this.timer = setInterval(() => {
|
|
@@ -1773,6 +1816,24 @@ export default {
|
|
|
1773
1816
|
}
|
|
1774
1817
|
}
|
|
1775
1818
|
|
|
1819
|
+
&-product {
|
|
1820
|
+
&-show {
|
|
1821
|
+
display: flex;
|
|
1822
|
+
justify-content: center;
|
|
1823
|
+
align-items: center;
|
|
1824
|
+
padding: unit(16, rpx);
|
|
1825
|
+
border-radius: unit(4, rpx);
|
|
1826
|
+
color: #999999;
|
|
1827
|
+
font-size: unit(24, rpx);
|
|
1828
|
+
margin-left:10px
|
|
1829
|
+
}
|
|
1830
|
+
}
|
|
1831
|
+
|
|
1832
|
+
&-html {
|
|
1833
|
+
padding: unit(20, rpx) 0;
|
|
1834
|
+
color: #999;
|
|
1835
|
+
}
|
|
1836
|
+
|
|
1776
1837
|
}
|
|
1777
1838
|
.dialog_password{
|
|
1778
1839
|
text-align: center;
|