jufubao-third 1.0.0-beta2 → 1.0.0-beta5
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/JfbThirdPay/Api.js +125 -30
- package/src/components/JfbThirdPay/Attr.js +29 -90
- package/src/components/JfbThirdPay/JfbThirdPay.vue +804 -18
- package/src/components/JfbThirdPay/WalletMix.js +227 -0
- package/src/components/JfbThirdPay/XdListItem.vue +137 -0
package/package.json
CHANGED
|
@@ -1,58 +1,153 @@
|
|
|
1
1
|
'use strict';
|
|
2
|
-
|
|
3
|
-
* @description 接口配置,
|
|
4
|
-
* 在设置方法名字当时候,别忘记加上【模块名字】:Pay
|
|
5
|
-
* @type {*[]}
|
|
6
|
-
*/
|
|
2
|
+
|
|
7
3
|
module.exports = [
|
|
8
4
|
{
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
path: '/api/account/film/list-film-square',
|
|
5
|
+
mapFnName: 'getThirdOrderInfo',
|
|
6
|
+
title: '三方 - 获取订单信息',
|
|
7
|
+
path: "/thirdmall/v1/order/confirm",
|
|
13
8
|
isRule: false,
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
page_size: ['每页数量', 'Number', '必选'],
|
|
9
|
+
data: {
|
|
10
|
+
main_order_id: ['main_order_id', 'Number', '必选'],
|
|
17
11
|
},
|
|
18
12
|
isConsole: true,
|
|
19
13
|
disabled: true,
|
|
20
14
|
},
|
|
21
15
|
{
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
path: '/api/account/film/paiqi-date',
|
|
16
|
+
mapFnName: 'getThirdListCards',
|
|
17
|
+
title: '三方 - 展示可选卡券列表',
|
|
18
|
+
path: "/mall/v1/order/pre/list-binded-cards",
|
|
26
19
|
isRule: false,
|
|
27
20
|
params: {
|
|
28
|
-
film_id: ['电影id', 'Number', '必选'],
|
|
29
|
-
cinema_id: ['影院id', 'Number', '必选'],
|
|
30
21
|
},
|
|
31
22
|
isConsole: true,
|
|
32
23
|
disabled: true,
|
|
33
24
|
},
|
|
34
25
|
{
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
path: '/api/account/film/paiqi-date',
|
|
26
|
+
mapFnName: 'setThirdSelectCard',
|
|
27
|
+
title: '三方 - 选择卡券',
|
|
28
|
+
path: '/mall/v1/order/pre/use-binded-card',
|
|
39
29
|
isRule: false,
|
|
40
|
-
|
|
41
|
-
|
|
30
|
+
data: {
|
|
31
|
+
selected_card_list_json: [
|
|
32
|
+
'被操作的卡券的卡号',
|
|
33
|
+
`[
|
|
34
|
+
{card_number:123,card_point:100,card_price:200},
|
|
35
|
+
{card_number:234,card_point:100,card_price:200,card_password:abc},
|
|
36
|
+
{card_number:456,card_point:100,card_price:200,qrcode:aaa}
|
|
37
|
+
]`,
|
|
38
|
+
'必选',
|
|
39
|
+
],
|
|
40
|
+
card_number: ['选中的卡券编号', 'Number', '必选'],
|
|
41
|
+
card_password: ['卡券密码', 'Number', '必选'],
|
|
42
|
+
card_qrcode: ['卡券qrcode', 'Number', '必选'],
|
|
43
|
+
total_price: ['总金额', 'Number', '必选'],
|
|
42
44
|
},
|
|
43
45
|
isConsole: true,
|
|
44
46
|
disabled: true,
|
|
45
47
|
},
|
|
46
48
|
{
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
path: '/api/account/film/paiqi-date',
|
|
49
|
+
mapFnName: 'setThirdCreateOrder',
|
|
50
|
+
title: '三方 - 创建订单',
|
|
51
|
+
path: '/mall/v1/order/pre/submit',
|
|
51
52
|
isRule: false,
|
|
52
|
-
|
|
53
|
-
|
|
53
|
+
data: {
|
|
54
|
+
pay_card_list: [
|
|
55
|
+
'被操作的卡券的卡号',
|
|
56
|
+
`[
|
|
57
|
+
{card_number:123,card_point:100,card_price:200},
|
|
58
|
+
{card_number:234,card_point:100,card_price:200,card_password:abc},
|
|
59
|
+
{card_number:456,card_point:100,card_price:200,qrcode:aaa}]`,
|
|
60
|
+
'必选',
|
|
61
|
+
],
|
|
62
|
+
total_price: ['总金额', 'Number', '必选'],
|
|
63
|
+
main_order_id: ['main_order_id', 'number', '必选'],
|
|
64
|
+
notify_provider_id: ['notify_provider_id', 'String', '可选']
|
|
65
|
+
},
|
|
66
|
+
isConsole: true,
|
|
67
|
+
disabled: true,
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
mapFnName: 'setThirdAddCard',
|
|
71
|
+
title: '三方 - 添加新卡券',
|
|
72
|
+
path: '/mall/v1/order/pre/use-new-card',
|
|
73
|
+
isRule: false,
|
|
74
|
+
data: {
|
|
75
|
+
selected_card_list_json: [
|
|
76
|
+
'被操作的卡券的卡号',
|
|
77
|
+
`[
|
|
78
|
+
{card_number:123,card_point:100,card_price:200},
|
|
79
|
+
{card_number:234,card_point:100,card_price:200,card_password:abc},
|
|
80
|
+
{card_number:456,card_point:100,card_price:200,qrcode:aaa}]`,
|
|
81
|
+
'必选',
|
|
82
|
+
],
|
|
83
|
+
card_number: ['选中的卡券编号', 'Number', '必选'],
|
|
84
|
+
card_password: ['卡券密码', 'Number', '必选'],
|
|
85
|
+
card_qrcode: ['卡券qrcode', 'Number', '必选'],
|
|
86
|
+
total_price: ['总金额', 'Number', '必选'],
|
|
87
|
+
valid_code: ['验证码正文', 'Number', '必选'],
|
|
88
|
+
valid_token: ['验证码token', 'Number', '必选'],
|
|
54
89
|
},
|
|
55
90
|
isConsole: true,
|
|
56
91
|
disabled: true,
|
|
57
92
|
},
|
|
93
|
+
{
|
|
94
|
+
mapFnName: "getListUserPayChannel",
|
|
95
|
+
title: "获取用户可用支付渠道",
|
|
96
|
+
path: "/pay/v1/pay-channel/list-user-pay-channel",
|
|
97
|
+
isRule: false,
|
|
98
|
+
params: {
|
|
99
|
+
providers: ['支付方式id 多个用逗号分隔', "String", '必选']
|
|
100
|
+
},
|
|
101
|
+
isConsole: true,
|
|
102
|
+
disabled: true
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
mapFnName: "setThirdPlace",
|
|
106
|
+
title: "第三方渠道下单",
|
|
107
|
+
path: "/pay/v1/order/third-place",
|
|
108
|
+
isRule: false,
|
|
109
|
+
data: {
|
|
110
|
+
order_id: ['订单号', "String", "必填"],
|
|
111
|
+
channel_provider_id: ['支付渠道id', "String", '必选']
|
|
112
|
+
},
|
|
113
|
+
isConsole: true,
|
|
114
|
+
disabled: true
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
mapFnName: "getPayMethod",
|
|
118
|
+
title: "订单支付-获取支付列表",
|
|
119
|
+
path: "/pay/v1/wallet/list-user-available-pay-method",
|
|
120
|
+
isRule: false,
|
|
121
|
+
params: {
|
|
122
|
+
support_methods: ['元宝:wallet 积分: score 补差:third 卡券:card', 'Array', true],
|
|
123
|
+
},
|
|
124
|
+
isConsole: true,
|
|
125
|
+
disabled: true
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
mapFnName: "getUserWallet",
|
|
129
|
+
title: "订单支付-可用钱包列表",
|
|
130
|
+
path: "/pay/v1/wallet/list-user-available-wallet",
|
|
131
|
+
isRule: false,
|
|
132
|
+
params: {
|
|
133
|
+
support_method: ['元宝:wallet 积分: score', 'string', true],
|
|
134
|
+
business_code: ['业务线', 'string', true],
|
|
135
|
+
sub_business_codes: ['子业务线', 'string', true],
|
|
136
|
+
},
|
|
137
|
+
isConsole: true,
|
|
138
|
+
disabled: true
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
mapFnName: "useBindedWallet",
|
|
142
|
+
title: "使用已绑钱包",
|
|
143
|
+
path: "/mall/v1/order/pre/use-binded-wallet",
|
|
144
|
+
isRule: false,
|
|
145
|
+
data: {
|
|
146
|
+
selected_card_list_json: ['卡', 'string', true],
|
|
147
|
+
selected_wallet_list_json: ['钱包', 'string', true],
|
|
148
|
+
total_price: ['总金额', 'string', true],
|
|
149
|
+
},
|
|
150
|
+
isConsole: true,
|
|
151
|
+
disabled: true
|
|
152
|
+
}
|
|
58
153
|
];
|
|
@@ -1,106 +1,45 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
/**
|
|
4
|
-
* @description 当表单组件中有联动操作时候,使用方法进行返回
|
|
5
|
-
*/
|
|
6
3
|
export default {
|
|
7
4
|
style: [],
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
{
|
|
11
|
-
label: '背景颜色:', //label
|
|
12
|
-
ele: 'xd-color', //package 名称
|
|
13
|
-
valueKey: 'bgcolor', //form[valueKey]
|
|
14
|
-
value: data.bgcolor || '', //v-model
|
|
15
|
-
placeholder: '请输入占位框背景颜色',
|
|
16
|
-
classNmae: 'input80', //样式名称 //input100,input80,input70,input60,input50,input40,input30,input20,
|
|
17
|
-
rules: [
|
|
18
|
-
{
|
|
19
|
-
required: true,
|
|
20
|
-
message: '请输入占位框背景颜色',
|
|
21
|
-
trigger: 'blur'
|
|
22
|
-
},
|
|
23
|
-
]
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
label: '选中路径:', //label
|
|
27
|
-
ele: 'xd-select-pages-path', //package 名称
|
|
28
|
-
valueKey: 'select-pages-path', //form[valueKey]
|
|
29
|
-
value: data['select-pages-path'] || {},
|
|
30
|
-
setting: {
|
|
31
|
-
router: XdBus.getParentApi('getPagesTree')
|
|
32
|
-
},
|
|
33
|
-
inline: false,
|
|
34
|
-
},
|
|
35
|
-
data.bgcolor && {
|
|
36
|
-
label: '高度:', //label
|
|
37
|
-
ele: 'el-input', //package 名称
|
|
38
|
-
type: 'number',
|
|
39
|
-
valueKey: 'height', //form[valueKey]
|
|
40
|
-
value: data.height || 100, //v-model
|
|
41
|
-
placeholder: '请输入占位框高度,单位像素,默认:10px',
|
|
42
|
-
className: 'input80', //样式名称 //input100,input80,input70,input60,input50,input40,input30,input20,
|
|
43
|
-
rules: [
|
|
44
|
-
{
|
|
45
|
-
required: true,
|
|
46
|
-
message: '请输入占位框高度',
|
|
47
|
-
trigger: 'blur'
|
|
48
|
-
},
|
|
49
|
-
]
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
label: '', //label
|
|
53
|
-
ele: 'slot', //package 名称
|
|
54
|
-
slot: 'is_reference',
|
|
55
|
-
},
|
|
56
|
-
].filter(i=>i)
|
|
57
|
-
},
|
|
58
|
-
advanced: [
|
|
5
|
+
advanced: [],
|
|
6
|
+
content: [
|
|
59
7
|
{
|
|
60
|
-
label:
|
|
61
|
-
ele:
|
|
62
|
-
valueKey:
|
|
63
|
-
value:
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
},
|
|
72
|
-
]
|
|
8
|
+
label: "选择业务线",
|
|
9
|
+
ele: "xd-choose-namespace",
|
|
10
|
+
valueKey: "xnamespace",
|
|
11
|
+
value: "",
|
|
12
|
+
handleCustom: (cb) => {
|
|
13
|
+
XdBus.getParentApi('getOptionsNamespaces')()
|
|
14
|
+
.then(res => {
|
|
15
|
+
cb(res.list)
|
|
16
|
+
})
|
|
17
|
+
.catch();
|
|
18
|
+
}
|
|
73
19
|
},
|
|
74
20
|
{
|
|
75
|
-
label: '
|
|
21
|
+
label: '支付成功路径:', //label
|
|
76
22
|
ele: 'xd-select-pages-path', //package 名称
|
|
77
|
-
valueKey: '
|
|
23
|
+
valueKey: 'orderSuccessPath', //form[valueKey]
|
|
24
|
+
placeholder: '请选择核销成功路径',
|
|
78
25
|
value: null,
|
|
79
26
|
setting: {
|
|
80
|
-
router: XdBus.getParentApi('getPagesTree')
|
|
27
|
+
router: XdBus.getParentApi('getPagesTree'),
|
|
28
|
+
|
|
81
29
|
},
|
|
82
30
|
inline: false,
|
|
83
31
|
},
|
|
84
32
|
{
|
|
85
|
-
label: '
|
|
86
|
-
ele: '
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
value: null,
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
message: '请输入占位框高度',
|
|
96
|
-
trigger: 'blur'
|
|
97
|
-
},
|
|
98
|
-
]
|
|
99
|
-
},
|
|
100
|
-
{
|
|
101
|
-
label: '', //label
|
|
102
|
-
ele: 'slot', //package 名称
|
|
103
|
-
slot: 'is_reference',
|
|
33
|
+
label: '三方支付补差路径:', //label
|
|
34
|
+
ele: 'xd-select-pages-path', //package 名称
|
|
35
|
+
valueKey: 'thirdPayPath', //form[valueKey]
|
|
36
|
+
placeholder: '请选择支付路径',
|
|
37
|
+
value: null,
|
|
38
|
+
setting: {
|
|
39
|
+
router: XdBus.getParentApi('getPagesTree'),
|
|
40
|
+
|
|
41
|
+
},
|
|
42
|
+
inline: false,
|
|
104
43
|
},
|
|
105
44
|
],
|
|
106
|
-
}
|
|
45
|
+
}
|