jufubao-base 1.0.418 → 1.0.419-beta4
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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jufubao-base",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.419-beta4",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "聚福宝业务组件基础插件包",
|
|
6
6
|
"main": "index.js",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"dingtalk-jsapi": "^3.0.31",
|
|
52
52
|
"flyio": "^0.6.2",
|
|
53
53
|
"gxd-commands-bussiness": "^1.0.12",
|
|
54
|
-
"gxd-uni-library-editx": "1.0.
|
|
54
|
+
"gxd-uni-library-editx": "1.0.198-beta1",
|
|
55
55
|
"jweixin-module": "^1.6.0",
|
|
56
56
|
"md5": "^2.3.0",
|
|
57
57
|
"path-to-regexp": "^6.2.1",
|
|
@@ -5,7 +5,7 @@ module.exports = {
|
|
|
5
5
|
"channel_provider_id":"1rRq74ACKJj5nIx5CgLpb",
|
|
6
6
|
"channel_provider_name":"微信支付",
|
|
7
7
|
"channel_code":"wxpay",
|
|
8
|
-
"
|
|
8
|
+
"channel_logo":"https://jfb-public-images.oss-cn-qingdao.aliyuncs.com/system-paychannel-logo-wxpay.png?x-oss-process=style/200_200"
|
|
9
9
|
}
|
|
10
10
|
],
|
|
11
11
|
"request_id":"aba26aa6eb494d07"
|
|
@@ -125,14 +125,14 @@
|
|
|
125
125
|
<view class="jfb-base-success__body-icon-item-tip">{{info.status.comment }}</view>
|
|
126
126
|
</view>
|
|
127
127
|
<view class="jfb-base-success__body-icon-btn">
|
|
128
|
-
<view v-for="(item
|
|
128
|
+
<view v-for="(item) in btnComp" :key="item.value">
|
|
129
129
|
<xd-button
|
|
130
130
|
v-if="item['label']"
|
|
131
131
|
size="small"
|
|
132
132
|
:type="item['type']"
|
|
133
|
+
:disabled="item['disabled']"
|
|
133
134
|
@click="handleOnBtnClick(item)"
|
|
134
|
-
>{{ item["label"] }}
|
|
135
|
-
</xd-button>
|
|
135
|
+
>{{ item["label"] }}</xd-button>
|
|
136
136
|
</view>
|
|
137
137
|
</view>
|
|
138
138
|
</view>
|
|
@@ -543,11 +543,17 @@ export default {
|
|
|
543
543
|
is_plus_site: false,
|
|
544
544
|
layoutStyle: '1',
|
|
545
545
|
|
|
546
|
+
//优化返回按钮参数
|
|
547
|
+
ext_params: '',
|
|
548
|
+
btn_disabled: true,
|
|
549
|
+
|
|
546
550
|
//按钮
|
|
547
551
|
btnTextColor:'',
|
|
548
552
|
btnBgColor:'',
|
|
549
553
|
btnBorderColor:'',
|
|
550
554
|
btnTextSize: '',
|
|
555
|
+
custom_btn_name: '',
|
|
556
|
+
custom_btn_path:'',
|
|
551
557
|
|
|
552
558
|
info: null,
|
|
553
559
|
timeer: null,
|
|
@@ -575,6 +581,18 @@ export default {
|
|
|
575
581
|
computed: {
|
|
576
582
|
...mapState(["brandInfo", "siteInfo", "jfbAuthorize"]),
|
|
577
583
|
...styleForm.getComputedItem(),
|
|
584
|
+
btnComp(){
|
|
585
|
+
return [
|
|
586
|
+
{ label: "返回首页", value: 1, type: "default", radius: "12rpx", disabled: this.btn_disabled },
|
|
587
|
+
this.custom_btn_name && {
|
|
588
|
+
label: this.custom_btn_name,
|
|
589
|
+
value: 2,
|
|
590
|
+
type: "primary",
|
|
591
|
+
radius: "12rpx",
|
|
592
|
+
disabled: this.btn_disabled
|
|
593
|
+
},
|
|
594
|
+
].filter(i=>i)
|
|
595
|
+
},
|
|
578
596
|
},
|
|
579
597
|
created() {
|
|
580
598
|
this.isPreview = this.$configProject.isPreview;
|
|
@@ -669,19 +687,16 @@ export default {
|
|
|
669
687
|
init(value) {
|
|
670
688
|
this.order_id = this.$xdUniHelper.parseURL()["params"].order_id;
|
|
671
689
|
this.bgColor = this.$colorChange(this.mainColor).alpha(0.1).toString();
|
|
690
|
+
this.custom_btn_name = getContainerPropsValue(value, "content.custom_btn_name",'')
|
|
672
691
|
this.boxBgColor = getContainerPropsValue(value, "content.boxBgColor", '#f8f8f8');
|
|
673
692
|
this.btnBgColor = getContainerPropsValue(value, "content.btnBgColor", '#e5e5e5');
|
|
674
693
|
this.btnTextColor = getContainerPropsValue(value, "content.btnTextColor", '#666');
|
|
675
694
|
this.btnBorderColor = getContainerPropsValue(value, "content.btnBorderColor", 'rgba(0,0,0,0)');
|
|
676
695
|
this.btnTextSize = getContainerPropsValue(value, "content.btnTextSize", '28');
|
|
677
696
|
this.payBgColor = getContainerPropsValue(value, "content.payBgColor", '#fff');
|
|
678
|
-
|
|
697
|
+
|
|
679
698
|
this.layoutStyle = getContainerPropsValue(value, "content.layoutStyle", '1');
|
|
680
|
-
this.custom_btn_path = getContainerPropsValue(
|
|
681
|
-
value,
|
|
682
|
-
"content.custom_btn_path",
|
|
683
|
-
{ value: "" }
|
|
684
|
-
).value;
|
|
699
|
+
this.custom_btn_path = getContainerPropsValue(value, "content.custom_btn_path", { value: "" }).value;
|
|
685
700
|
this.is_show_code = getContainerPropsValue(
|
|
686
701
|
value,
|
|
687
702
|
"content.is_show_code",
|
|
@@ -829,22 +844,15 @@ export default {
|
|
|
829
844
|
|
|
830
845
|
handleOrderResolve(info) {
|
|
831
846
|
//#ifdef MP-WEIXIN
|
|
832
|
-
if(info
|
|
847
|
+
if(info['is_clear_vip_cookie'] && info['is_clear_vip_cookie'] === 'Y'){
|
|
833
848
|
this.jfbAuthorize.removeToken('access');
|
|
834
849
|
}
|
|
835
850
|
//#endif
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
"content.custom_btn_name"
|
|
842
|
-
),
|
|
843
|
-
value: 2,
|
|
844
|
-
type: "primary",
|
|
845
|
-
radius: "12rpx",
|
|
846
|
-
},
|
|
847
|
-
];
|
|
851
|
+
|
|
852
|
+
//设置请求参数
|
|
853
|
+
if(info['pay_info'] && info['pay_info']['ext_params']) this.ext_params = info['pay_info']['ext_params'];
|
|
854
|
+
this.btn_disabled = false;
|
|
855
|
+
|
|
848
856
|
if (info.status.status_type === "success") {
|
|
849
857
|
info.status.icon = "iconchenggong";
|
|
850
858
|
info.status.iconColor = "#43CF7C";
|
|
@@ -859,8 +867,7 @@ export default {
|
|
|
859
867
|
info.status.iconColor = "#F7AF57";
|
|
860
868
|
}
|
|
861
869
|
|
|
862
|
-
|
|
863
|
-
//info.codes = [info.codes[0]]
|
|
870
|
+
|
|
864
871
|
info.codes =
|
|
865
872
|
info.codes &&
|
|
866
873
|
info.codes.map((item) => {
|
|
@@ -906,7 +913,7 @@ export default {
|
|
|
906
913
|
//设置预览内容
|
|
907
914
|
info["productDetail"] = null;
|
|
908
915
|
if (info.product) {
|
|
909
|
-
jfbRootExec("
|
|
916
|
+
jfbRootExec("getMallSuccessProductDetail", {
|
|
910
917
|
vm: this,
|
|
911
918
|
data: {
|
|
912
919
|
xnamespace: (info.product && info.product.business_code) || 'cake',
|
|
@@ -977,16 +984,24 @@ export default {
|
|
|
977
984
|
handleOnBtnClick(btn) {
|
|
978
985
|
if (this.$configProject.isPreview) return;
|
|
979
986
|
if (btn["value"] === 1) {
|
|
980
|
-
this
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
987
|
+
let index = this.index;
|
|
988
|
+
if(this.ext_params) {
|
|
989
|
+
if(this.index.indexOf('?') === -1) index = this.index + '?' + this.ext_params;
|
|
990
|
+
else index = this.index + '&' + this.ext_params;
|
|
991
|
+
}
|
|
992
|
+
|
|
993
|
+
this.$xdUniHelper.redirectTo({url: index,}, false);
|
|
986
994
|
}
|
|
987
995
|
if (btn["value"] === 2) {
|
|
996
|
+
if(!this.custom_btn_path) return;
|
|
997
|
+
|
|
998
|
+
let custom_btn_path = this.custom_btn_path;
|
|
999
|
+
if (this.ext_params) {
|
|
1000
|
+
if (this.custom_btn_path.indexOf('?') === -1) custom_btn_path = this.custom_btn_path + '?' + this.ext_params;
|
|
1001
|
+
else custom_btn_path = this.custom_btn_path + '&' + this.ext_params;
|
|
1002
|
+
}
|
|
988
1003
|
this.$xdUniHelper.redirectTo({
|
|
989
|
-
url:
|
|
1004
|
+
url: custom_btn_path,
|
|
990
1005
|
});
|
|
991
1006
|
}
|
|
992
1007
|
},
|
|
@@ -1092,7 +1107,7 @@ export default {
|
|
|
1092
1107
|
color: #999;
|
|
1093
1108
|
border-top: unit(1, rpx) solid #eee;
|
|
1094
1109
|
padding-top: unit(20, rpx);
|
|
1095
|
-
|
|
1110
|
+
|
|
1096
1111
|
text {
|
|
1097
1112
|
margin-right: unit(10, rpx);
|
|
1098
1113
|
}
|
|
@@ -1369,7 +1384,7 @@ export default {
|
|
|
1369
1384
|
z-index: 1;
|
|
1370
1385
|
display: flex;
|
|
1371
1386
|
box-sizing: border-box;
|
|
1372
|
-
|
|
1387
|
+
|
|
1373
1388
|
.card-left {
|
|
1374
1389
|
flex: 1;
|
|
1375
1390
|
display: flex;
|
|
@@ -8,11 +8,13 @@ module.exports = {
|
|
|
8
8
|
"status_name": "出票成功",
|
|
9
9
|
"status_type": "success",
|
|
10
10
|
"comment": "非常感谢您购买我们的产品",
|
|
11
|
-
"loading": false
|
|
11
|
+
"loading": false,
|
|
12
|
+
|
|
12
13
|
},
|
|
13
14
|
"pay_info": {
|
|
14
15
|
"goods_amount": 9990,
|
|
15
|
-
"real_pay_amount": 9990
|
|
16
|
+
"real_pay_amount": 9990,
|
|
17
|
+
"ext_params":"x-jfb-os=jhd"
|
|
16
18
|
},
|
|
17
19
|
"settle_info":[
|
|
18
20
|
{"label": "核销门店", "value": "安德鲁森中航城店", "type": "text"},
|
|
@@ -80,9 +82,9 @@ module.exports = {
|
|
|
80
82
|
},
|
|
81
83
|
"request_id": "741ac434786f7615"
|
|
82
84
|
},
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
85
|
+
getMallSuccessProductDetail: {
|
|
86
|
+
content: '<p><img class="tinymce-image" src="//sandbox-img.jufubao.cn/uploads/20230522/61f22091cc434863e2d52cce0d769221.jpg" /></p>',
|
|
87
|
+
request_id: "11438a7010425aff"
|
|
86
88
|
}
|
|
87
89
|
}
|
|
88
90
|
|