jufubao-third 1.0.0-beta1 → 1.0.0-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-third",
3
- "version": "1.0.0-beta1",
3
+ "version": "1.0.0-beta4",
4
4
  "private": false,
5
5
  "description": "聚福宝业务组件第三方购物平台包",
6
6
  "main": "index.js",
@@ -0,0 +1,153 @@
1
+ 'use strict';
2
+
3
+ module.exports = [
4
+ {
5
+ mapFnName: 'getThirdOrderInfo',
6
+ title: '三方 - 获取订单信息',
7
+ path: "/thirdmall/v1/order/confirm",
8
+ isRule: false,
9
+ data: {
10
+ main_order_id: ['main_order_id', 'Number', '必选'],
11
+ },
12
+ isConsole: true,
13
+ disabled: true,
14
+ },
15
+ {
16
+ mapFnName: 'getThirdListCards',
17
+ title: '三方 - 展示可选卡券列表',
18
+ path: "/mall/v1/order/pre/list-binded-cards",
19
+ isRule: false,
20
+ params: {
21
+ },
22
+ isConsole: true,
23
+ disabled: true,
24
+ },
25
+ {
26
+ mapFnName: 'setThirdSelectCard',
27
+ title: '三方 - 选择卡券',
28
+ path: '/mall/v1/order/pre/use-binded-card',
29
+ isRule: false,
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', '必选'],
44
+ },
45
+ isConsole: true,
46
+ disabled: true,
47
+ },
48
+ {
49
+ mapFnName: 'setThirdCreateOrder',
50
+ title: '三方 - 创建订单',
51
+ path: '/mall/v1/order/pre/submit',
52
+ isRule: false,
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', '必选'],
89
+ },
90
+ isConsole: true,
91
+ disabled: true,
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
+ }
153
+ ];
@@ -0,0 +1,32 @@
1
+ 'use strict';
2
+
3
+ export default {
4
+ style: [],
5
+ advanced: [],
6
+ content: [
7
+ {
8
+ label: '支付成功路径:', //label
9
+ ele: 'xd-select-pages-path', //package 名称
10
+ valueKey: 'orderSuccessPath', //form[valueKey]
11
+ placeholder: '请选择核销成功路径',
12
+ value: null,
13
+ setting: {
14
+ router: XdBus.getParentApi('getPagesTree'),
15
+
16
+ },
17
+ inline: false,
18
+ },
19
+ {
20
+ label: '三方支付补差路径:', //label
21
+ ele: 'xd-select-pages-path', //package 名称
22
+ valueKey: 'thirdPayPath', //form[valueKey]
23
+ placeholder: '请选择支付路径',
24
+ value: null,
25
+ setting: {
26
+ router: XdBus.getParentApi('getPagesTree'),
27
+
28
+ },
29
+ inline: false,
30
+ },
31
+ ],
32
+ }