jufubao-third 1.0.10-beta1 → 1.0.10-beta21
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
|
@@ -149,17 +149,5 @@ module.exports = [
|
|
|
149
149
|
},
|
|
150
150
|
isConsole: true,
|
|
151
151
|
disabled: true
|
|
152
|
-
},
|
|
153
|
-
{
|
|
154
|
-
mapFnName: "getVipList",
|
|
155
|
-
title: "会员中心 - 会员卡列表",
|
|
156
|
-
path: "/member/v1/:namespace/vip-card",
|
|
157
|
-
isRule: false,
|
|
158
|
-
params: {
|
|
159
|
-
namespace: ['业务线', 'String', true],
|
|
160
|
-
is_show_exchange_code: ['是否展示 兑换码 ', 'Y/N,默认N', false],
|
|
161
|
-
},
|
|
162
|
-
isConsole: true,
|
|
163
|
-
disabled: true
|
|
164
152
|
}
|
|
165
153
|
];
|
|
@@ -17,106 +17,82 @@
|
|
|
17
17
|
<!-- #endif -->
|
|
18
18
|
<view class="jfb-third-pay__body">
|
|
19
19
|
<view class="column-group">
|
|
20
|
-
<view
|
|
21
|
-
<view
|
|
22
|
-
<view class="
|
|
23
|
-
|
|
24
|
-
<
|
|
25
|
-
<xd-unit :price="product_total_price" :isOld="false" :font-size="24" :icon-size="0.3"></xd-unit>
|
|
26
|
-
</view>
|
|
27
|
-
</view>
|
|
28
|
-
<view v-if="servicePrice" class="column-item noBorder">
|
|
29
|
-
<view class="column_label text_gray">平台服务费总额</view>
|
|
30
|
-
<view class="column_value text-gray">
|
|
31
|
-
<xd-unit :price="servicePrice" :isOld="false" :font-size="24" :icon-size="0.3"></xd-unit>
|
|
32
|
-
</view>
|
|
33
|
-
</view>
|
|
34
|
-
<view v-if="logisticsPrice" class="column-item noBorder">
|
|
35
|
-
<view class="column_label text_gray">运费</view>
|
|
36
|
-
<view class="column_value text-gray">
|
|
37
|
-
<xd-unit :price="logisticsPrice" :isOld="false" :font-size="24" :icon-size="0.3"></xd-unit>
|
|
38
|
-
</view>
|
|
20
|
+
<view style="padding: 20rpx 0 0;">
|
|
21
|
+
<view class="column-item noBorder">
|
|
22
|
+
<view v-if="product_total_price" class="column_label text_gray">商品总额</view>
|
|
23
|
+
<view class="column_value text-gray">
|
|
24
|
+
<xd-unit :price="product_total_price" :isOld="false" :font-size="24" :icon-size="0.3"></xd-unit>
|
|
39
25
|
</view>
|
|
40
26
|
</view>
|
|
41
|
-
<view class="column-item">
|
|
42
|
-
<view class="column_label">
|
|
43
|
-
|
|
27
|
+
<view v-if="servicePrice" class="column-item noBorder">
|
|
28
|
+
<view class="column_label text_gray">平台服务费总额</view>
|
|
29
|
+
<view class="column_value text-gray">
|
|
30
|
+
<xd-unit :price="servicePrice" :isOld="false" :font-size="24" :icon-size="0.3"></xd-unit>
|
|
44
31
|
</view>
|
|
32
|
+
</view>
|
|
33
|
+
<view v-if="logisticsPrice" class="column-item noBorder">
|
|
34
|
+
<view class="column_label text_gray">运费</view>
|
|
45
35
|
<view class="column_value text-gray">
|
|
46
|
-
<xd-unit
|
|
47
|
-
:price="total_price"
|
|
48
|
-
:isOld="false"
|
|
49
|
-
:font-size="24"
|
|
50
|
-
:icon-size="0.3"
|
|
51
|
-
></xd-unit>
|
|
36
|
+
<xd-unit :price="logisticsPrice" :isOld="false" :font-size="24" :icon-size="0.3"></xd-unit>
|
|
52
37
|
</view>
|
|
53
38
|
</view>
|
|
54
39
|
</view>
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
40
|
+
<view class="column-item">
|
|
41
|
+
<view class="column_label">
|
|
42
|
+
订单总额
|
|
43
|
+
</view>
|
|
44
|
+
<view class="column_value text-gray">
|
|
45
|
+
<xd-unit
|
|
46
|
+
:price="total_price"
|
|
47
|
+
:isOld="false"
|
|
48
|
+
:font-size="24"
|
|
49
|
+
:icon-size="0.3"
|
|
50
|
+
></xd-unit>
|
|
51
|
+
</view>
|
|
61
52
|
</view>
|
|
62
|
-
<view
|
|
63
|
-
<
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
53
|
+
<view class="column-item">
|
|
54
|
+
<view class="column_label">
|
|
55
|
+
仍需支付
|
|
56
|
+
<view class="label_sub">(可使用多张票券支付)</view>
|
|
57
|
+
</view>
|
|
58
|
+
<view class="column_value text-primary">
|
|
59
|
+
<xd-unit
|
|
60
|
+
:price="showOldPay ? needPayPrice :orderNeedPayPrice"
|
|
61
|
+
:isOld="false"
|
|
62
|
+
:font-size="24"
|
|
63
|
+
:icon-size="0.3"
|
|
64
|
+
></xd-unit>
|
|
65
|
+
</view>
|
|
68
66
|
</view>
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
<view class="
|
|
73
|
-
仍需支付
|
|
74
|
-
<view class="label_sub">(可使用多张票券支付)</view>
|
|
75
|
-
</view>
|
|
76
|
-
<view class="column_value text-primary">
|
|
77
|
-
<xd-unit
|
|
78
|
-
:price="showOldPay ? needPayPrice :orderNeedPayPrice"
|
|
79
|
-
:isOld="false"
|
|
80
|
-
:font-size="24"
|
|
81
|
-
:icon-size="0.3"
|
|
82
|
-
></xd-unit>
|
|
83
|
-
</view>
|
|
67
|
+
<view v-if="showOldPay" class="column-item">
|
|
68
|
+
<view class="column_label">
|
|
69
|
+
我的票券
|
|
70
|
+
<view class="label_sub">(已使用{{checkedCards.length}}张票券)</view>
|
|
84
71
|
</view>
|
|
85
|
-
<view
|
|
86
|
-
<
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
radius="60rpx"
|
|
94
|
-
type="primary"
|
|
95
|
-
size="small"
|
|
96
|
-
@click="xdDownDrawer=true; switchValidToken()"
|
|
97
|
-
>使用新票券</xd-button>
|
|
98
|
-
</view>
|
|
72
|
+
<view class="column_value">
|
|
73
|
+
<xd-button
|
|
74
|
+
width="220rpx"
|
|
75
|
+
radius="60rpx"
|
|
76
|
+
type="primary"
|
|
77
|
+
size="small"
|
|
78
|
+
@click="xdDownDrawer=true; switchValidToken()"
|
|
79
|
+
>使用新票券</xd-button>
|
|
99
80
|
</view>
|
|
100
81
|
</view>
|
|
101
82
|
</view>
|
|
102
|
-
|
|
103
|
-
<xd-list-item label="账户余额" size="small" paddingLR="40rpx" showRight>
|
|
104
|
-
<view style="color: #999999;">30.00</view>
|
|
105
|
-
</xd-list-item>
|
|
106
|
-
</view> -->
|
|
107
|
-
<view class="pay_section" v-if="!showOldPay">
|
|
83
|
+
<template v-if="!showOldPay">
|
|
108
84
|
<template v-for="item in otherPayMethod">
|
|
109
|
-
<xd-list-item v-if="item.method === 'card'" :key="item.method" :label="item.show_name" paddingLR="
|
|
85
|
+
<xd-list-item v-if="item.method === 'card'" :key="item.method" :label="item.show_name" paddingLR="60rpx" size="small" showRight @click="toChoseCard">
|
|
110
86
|
<view v-if="choseCard && choseCard.cardPayPrice" slot="label">{{item.show_name}} <text style="color:red;margin-left: 4px;">(已选{{ choseCard.selectedCardList.length }}张)</text></view>
|
|
111
87
|
<xd-unit v-if="choseCard && choseCard.cardPayPrice" :price="choseCard.cardPayPrice" :isOld="false" :fontSize="24" :iconSize="0.3"></xd-unit>
|
|
112
88
|
<view v-else>请选择</view>
|
|
113
89
|
</xd-list-item>
|
|
114
|
-
<xd-list-item v-if="item.method === 'wallet'" :key="item.method" :label="item.show_name" paddingLR="
|
|
90
|
+
<xd-list-item v-if="item.method === 'wallet'" :key="item.method" :label="item.show_name" paddingLR="60rpx" size="small" showRight @click="toChoseWallet">
|
|
115
91
|
<xd-unit v-if="choseWallet && choseWallet.walletPayPrice" :price='choseWallet.walletPayPrice' :isOld="false" :fontSize="24" :iconSize="0.3"></xd-unit>
|
|
116
92
|
<view v-else>请选择</view>
|
|
117
93
|
</xd-list-item>
|
|
118
94
|
</template>
|
|
119
|
-
</
|
|
95
|
+
</template>
|
|
120
96
|
|
|
121
97
|
<view
|
|
122
98
|
class="ticket_list"
|
|
@@ -307,7 +283,6 @@
|
|
|
307
283
|
import XdListItem from "./XdListItem.vue"
|
|
308
284
|
import XdCardPayChose from "@/components/XdCardPayChose/XdCardPayChose"
|
|
309
285
|
import XdWalletChose from "@/components/XdWalletChose/XdWalletChose"
|
|
310
|
-
import CusVipList from "@/components/CusVipList/CusVipList"
|
|
311
286
|
import {mapState} from "vuex"
|
|
312
287
|
import { getContainerPropsValue } from "@/utils/xd.base";
|
|
313
288
|
export default {
|
|
@@ -324,8 +299,7 @@
|
|
|
324
299
|
XdUnit,
|
|
325
300
|
XdListItem,
|
|
326
301
|
XdCardPayChose,
|
|
327
|
-
XdWalletChose
|
|
328
|
-
CusVipList
|
|
302
|
+
XdWalletChose
|
|
329
303
|
},
|
|
330
304
|
mixins: [
|
|
331
305
|
componentsMixins, extsMixins, JfbThirdPayMixin, WalletMixins
|
|
@@ -361,11 +335,6 @@
|
|
|
361
335
|
selectedCardList: [], //卡绑定使用的
|
|
362
336
|
options: {},
|
|
363
337
|
|
|
364
|
-
show_vip_card: "",
|
|
365
|
-
vipCardList: [],
|
|
366
|
-
vip_card_id: 0,
|
|
367
|
-
plus_saving_money: 0,
|
|
368
|
-
|
|
369
338
|
//面板
|
|
370
339
|
orderSuccessPath: "",
|
|
371
340
|
thirdPayPath: "",
|
|
@@ -430,7 +399,6 @@
|
|
|
430
399
|
this.validImageAPIUrl = this.brandInfo['api_host'] + '/common/v1/valid_code/image/show'
|
|
431
400
|
|
|
432
401
|
this.getOrderConfirm();
|
|
433
|
-
|
|
434
402
|
},
|
|
435
403
|
/**
|
|
436
404
|
* @description 监听事件变化
|
|
@@ -451,27 +419,12 @@
|
|
|
451
419
|
}
|
|
452
420
|
return time;
|
|
453
421
|
},
|
|
454
|
-
handleChoseVipCard(vip_card_id){
|
|
455
|
-
this.vip_card_id = vip_card_id;
|
|
456
|
-
this.getOrderConfirm();
|
|
457
|
-
},
|
|
458
|
-
p_getVipList(xnamespace){
|
|
459
|
-
jfbRootExec("getVipList", {
|
|
460
|
-
vm: this,
|
|
461
|
-
data: {
|
|
462
|
-
namespace: xnamespace,
|
|
463
|
-
}
|
|
464
|
-
}).then(res => {
|
|
465
|
-
this.vipCardList = res.list;
|
|
466
|
-
})
|
|
467
|
-
},
|
|
468
422
|
getOrderConfirm(){
|
|
469
423
|
jfbRootExec("getThirdOrderInfo", {
|
|
470
424
|
vm: this,
|
|
471
425
|
data: {
|
|
472
426
|
main_order_id: this.main_order_id,
|
|
473
427
|
namespace: this.xnamespace,
|
|
474
|
-
vip_card_id: this.vip_card_id,
|
|
475
428
|
...this.options,
|
|
476
429
|
}
|
|
477
430
|
}).then(res => {
|
|
@@ -497,11 +450,6 @@
|
|
|
497
450
|
this.servicePrice = this.$xdUniHelper.multiplyFloatNumber(res.service_fee, 1);
|
|
498
451
|
this.logisticsPrice = this.$xdUniHelper.multiplyFloatNumber(res.logistics_amount, 1);
|
|
499
452
|
this.product_total_price = this.$xdUniHelper.multiplyFloatNumber(res.product_total_price, 1);
|
|
500
|
-
this.plus_saving_money = this.$xdUniHelper.multiplyFloatNumber(res.discount_price, 1);
|
|
501
|
-
this.show_vip_card = res.show_vip_card;
|
|
502
|
-
if(res.show_vip_card === 'Y' && !this.vipCardList.length){
|
|
503
|
-
this.p_getVipList(res.business_code);
|
|
504
|
-
}
|
|
505
453
|
})
|
|
506
454
|
},
|
|
507
455
|
p_getH5WxAuthorize(){
|
|
@@ -566,7 +514,6 @@
|
|
|
566
514
|
other_channel_pay_price: needPayPrice,
|
|
567
515
|
need_pay_price: needPayPrice,
|
|
568
516
|
namespace: this.xnamespace,
|
|
569
|
-
vip_card_id: this.vip_card_id,
|
|
570
517
|
...this.options,
|
|
571
518
|
}, res => {
|
|
572
519
|
this.$xdLog.setARMSInfo({
|
|
@@ -862,31 +809,22 @@
|
|
|
862
809
|
.jfb-third-pay {
|
|
863
810
|
&__body{
|
|
864
811
|
padding-bottom: 150rpx;
|
|
865
|
-
|
|
812
|
+
background: #FFFFFF;
|
|
866
813
|
|
|
867
|
-
.pay_section{
|
|
868
|
-
margin: 24rpx;
|
|
869
|
-
background-color: #FFFFFF;
|
|
870
|
-
border-radius: 20rpx;
|
|
871
|
-
overflow: hidden;
|
|
872
|
-
}
|
|
873
814
|
.text_gray{
|
|
874
815
|
color: #666666 !important;
|
|
875
|
-
}
|
|
876
|
-
.vip_list_wrap{
|
|
877
|
-
|
|
878
816
|
}
|
|
879
817
|
.column-group{
|
|
880
818
|
.column-item{
|
|
881
819
|
display: flex;
|
|
882
820
|
align-items: center;
|
|
883
821
|
justify-content: space-between;
|
|
884
|
-
|
|
885
|
-
padding: 30rpx
|
|
822
|
+
border-bottom: 1px solid rgba(238, 238, 238, 1);
|
|
823
|
+
padding: 30rpx 50rpx;
|
|
886
824
|
|
|
887
825
|
&.noBorder{
|
|
888
826
|
border-bottom: none;
|
|
889
|
-
padding: 12rpx
|
|
827
|
+
padding: 12rpx 50rpx;
|
|
890
828
|
}
|
|
891
829
|
|
|
892
830
|
.column_label{
|
|
@@ -1,66 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
'use strict';
|
|
2
2
|
|
|
3
3
|
module.exports = {
|
|
4
|
-
getThirdOrderInfo: {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
show_time: 1684396260,
|
|
10
|
-
remark: "",
|
|
11
|
-
count_down: 897,
|
|
12
|
-
product_total_price: "1680",
|
|
13
|
-
logistics_amount: "100",
|
|
14
|
-
request_id: "d2002455fa902b94"
|
|
15
|
-
},
|
|
16
|
-
getThirdListCards: {
|
|
17
|
-
list: [
|
|
18
|
-
{
|
|
19
|
-
card_number: "101001000005388",
|
|
20
|
-
card_type_name: "聚福宝福",
|
|
21
|
-
end_time: 1764345599,
|
|
22
|
-
card_point: 8319,
|
|
23
|
-
is_bind_card: true
|
|
24
|
-
}
|
|
25
|
-
],
|
|
26
|
-
request_id: "7a01f757e9c2b1ab"
|
|
27
|
-
},
|
|
28
|
-
getPayMethod: {
|
|
29
|
-
list: [
|
|
30
|
-
{ method: "wallet", show_name: "使用我的元宝", icon: "icon_1" },
|
|
31
|
-
{ method: "third", show_name: "使用补差", icon: "icon_2" },
|
|
32
|
-
{ method: "score", show_name: "使用积分", icon: "icon_3" },
|
|
33
|
-
{ method: "card", show_name: "使用票券1", icon: "icon_4" }
|
|
34
|
-
],
|
|
35
|
-
request_id: "6549409a86024ecf"
|
|
36
|
-
},
|
|
37
|
-
getUserWallet: {
|
|
38
|
-
show_name: "我的元宝",
|
|
39
|
-
icon: "icon_1",
|
|
40
|
-
total_amount: 127134,
|
|
41
|
-
list: [
|
|
42
|
-
{
|
|
43
|
-
wallet_type: "UC",
|
|
44
|
-
wallet_name: "测试账户1",
|
|
45
|
-
wallet_virtual_number: "1000000000000245",
|
|
46
|
-
amount: 66955,
|
|
47
|
-
business_codes: "cake,v-RcA8Mv-Gpd96_Y_mjIf,movie",
|
|
48
|
-
business_codes_name: "蛋糕(勿改),商城,电影(勿改)",
|
|
49
|
-
wallet_rule:
|
|
50
|
-
'<p>UC使用规则说明</p>\n<p>123</p>\n<p>阿达我娃的啊我啊我啊我啊我</p>\n<p><span style="color: #ff0000;">阿我打我爱我的啊我啊我</span></p>'
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
wallet_type: "UB",
|
|
54
|
-
wallet_name: "测试账户3",
|
|
55
|
-
wallet_virtual_number: "1000000000000244",
|
|
56
|
-
amount: 60179,
|
|
57
|
-
business_codes: "cake,movie,market,video,book",
|
|
58
|
-
business_codes_name:
|
|
59
|
-
"蛋糕(勿改),电影(勿改),商城(对应百货)(勿改),网络视听(勿改),图书(勿改)",
|
|
60
|
-
wallet_rule: "<p>UB使用规则说明</p>\n<p>123456</p>"
|
|
61
|
-
}
|
|
62
|
-
],
|
|
63
|
-
request_id: "c9975f7b9bc426a5"
|
|
64
|
-
},
|
|
65
|
-
getVipList:{"total_size":3,"next_page_token":"","list":[{"vip_card_id":3,"product_id":60038520,"product_name":"体验卡","sale_price":10000000,"vip_card_icon":""},{"vip_card_id":2,"product_id":60038519,"product_name":"月卡","sale_price":10000000,"vip_card_icon":""},{"vip_card_id":1,"product_id":60038515,"product_name":"测1","sale_price":10000000,"vip_card_icon":""}],"request_id":"c5cf58415cffdc30"},
|
|
66
|
-
};
|
|
4
|
+
getThirdOrderInfo: {"main_order_id":"b517729203734716416","address":"北京市东城区崇文门外大街18号1幢(F1-1)号商铺","phone":"13611111111","total_price":"1680","show_time":1684396260,"remark":"","count_down":897,"request_id":"d2002455fa902b94"},
|
|
5
|
+
getThirdListCards: {"list":[{"card_number":"101001000005388","card_type_name":"聚福宝福","end_time":1764345599,"card_point":8319,"is_bind_card":true}],"request_id":"7a01f757e9c2b1ab"},
|
|
6
|
+
getPayMethod: {"list":[{"method":"wallet","show_name":"使用我的元宝","icon":"icon_1"},{"method":"third","show_name":"使用补差","icon":"icon_2"},{"method":"score","show_name":"使用积分","icon":"icon_3"},{"method":"card","show_name":"使用票券1","icon":"icon_4"}],"request_id":"6549409a86024ecf"},
|
|
7
|
+
getUserWallet: {"show_name":"我的元宝","icon":"icon_1","total_amount":127134,"list":[{"wallet_type":"UC","wallet_name":"测试账户1","wallet_virtual_number":"1000000000000245","amount":66955,"business_codes":"cake,v-RcA8Mv-Gpd96_Y_mjIf,movie","business_codes_name":"蛋糕(勿改),商城,电影(勿改)","wallet_rule":"<p>UC使用规则说明<\/p>\n<p>123<\/p>\n<p>阿达我娃的啊我啊我啊我啊我<\/p>\n<p><span style=\"color: #ff0000;\">阿我打我爱我的啊我啊我<\/span><\/p>"},{"wallet_type":"UB","wallet_name":"测试账户3","wallet_virtual_number":"1000000000000244","amount":60179,"business_codes":"cake,movie,market,video,book","business_codes_name":"蛋糕(勿改),电影(勿改),商城(对应百货)(勿改),网络视听(勿改),图书(勿改)","wallet_rule":"<p>UB使用规则说明<\/p>\n<p>123456<\/p>"}],"request_id":"c9975f7b9bc426a5"},
|
|
8
|
+
}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { jfbRootExec } from "@/utils/xd.event";
|
|
2
|
-
|
|
3
|
-
import cookie from "@/common/cookie";
|
|
4
|
-
//#endif
|
|
2
|
+
import {mapState} from "vuex";
|
|
5
3
|
import {Base64} from "js-base64";
|
|
6
4
|
|
|
7
5
|
export default {
|
|
@@ -20,6 +18,7 @@ export default {
|
|
|
20
18
|
}
|
|
21
19
|
},
|
|
22
20
|
computed: {
|
|
21
|
+
...mapState(['jfbAuthorize','brandInfo']),
|
|
23
22
|
payWallet(){
|
|
24
23
|
return this.otherPayMethod.find(item => item.method === 'wallet')
|
|
25
24
|
},
|
|
@@ -210,7 +209,6 @@ export default {
|
|
|
210
209
|
selected_wallet_list_json: JSON.stringify(selected_wallet_list),
|
|
211
210
|
need_pay_price: this.orderNeedPayPrice,
|
|
212
211
|
namespace: this.xnamespace,
|
|
213
|
-
vip_card_id: this.vip_card_id,
|
|
214
212
|
...this.options,
|
|
215
213
|
}, (res) => {
|
|
216
214
|
console.warn("创建订单成功");
|
|
@@ -231,7 +229,7 @@ export default {
|
|
|
231
229
|
let payPath = '';
|
|
232
230
|
let isMp = false;
|
|
233
231
|
// #ifdef H5
|
|
234
|
-
payPath =
|
|
232
|
+
payPath = this.jfbAuthorize.getMpKey('paySetting');
|
|
235
233
|
if(navigator.userAgent.match(/miniprogram/i)) isMp = true;
|
|
236
234
|
//#endif
|
|
237
235
|
if(payPath && isMp) {
|