jufubao-third 1.0.0-beta2 → 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-beta2",
3
+ "version": "1.0.0-beta4",
4
4
  "private": false,
5
5
  "description": "聚福宝业务组件第三方购物平台包",
6
6
  "main": "index.js",
@@ -1,58 +1,153 @@
1
1
  'use strict';
2
- /**
3
- * @description 接口配置,
4
- * 在设置方法名字当时候,别忘记加上【模块名字】:Pay
5
- * @type {*[]}
6
- */
2
+
7
3
  module.exports = [
8
4
  {
9
- //设置方法名字当别忘记加上【模块名字】:Pay
10
- mapFnName: 'getPayByIdFilmSquate',
11
- title: '获取电影广场列表',
12
- path: '/api/account/film/list-film-square',
5
+ mapFnName: 'getThirdOrderInfo',
6
+ title: '三方 - 获取订单信息',
7
+ path: "/thirdmall/v1/order/confirm",
13
8
  isRule: false,
14
- params: {
15
- last_key: ['当前页', 'Number', '必选'],
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
- //设置方法名字当别忘记加上【模块名字】:Pay
23
- mapFnName: 'updatePayFilmPaiqiDate',
24
- title: '更新排期',
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
- //设置方法名字当别忘记加上【模块名字】:Pay
36
- mapFnName: 'removePayFilmAddress',
37
- title: '删除我的配送地址',
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
- params: {
41
- film_id: ['电影id', 'Number', '必选'],
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
- //设置方法名字当别忘记加上【模块名字】:Pay
48
- mapFnName: 'addPayFilmcart',
49
- title: '添加购物车',
50
- path: '/api/account/film/paiqi-date',
49
+ mapFnName: 'setThirdCreateOrder',
50
+ title: '三方 - 创建订单',
51
+ path: '/mall/v1/order/pre/submit',
51
52
  isRule: false,
52
- params: {
53
- film_id: ['电影id', 'Number', '必选'],
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,32 @@
1
1
  'use strict';
2
2
 
3
- /**
4
- * @description 当表单组件中有联动操作时候,使用方法进行返回
5
- */
6
3
  export default {
7
4
  style: [],
8
- content: (data) => {
9
- return [
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: '背景颜色:', //label
61
- ele: 'xd-color', //package 名称
62
- valueKey: 'bgcolor', //form[valueKey]
63
- value: '', //v-model
64
- placeholder: '请输入占位框背景颜色',
65
- classNmae: 'input80', //样式名称 //input100,input80,input70,input60,input50,input40,input30,input20,
66
- rules: [
67
- {
68
- required: true,
69
- message: '请输入占位框背景颜色',
70
- trigger: 'blur'
71
- },
72
- ]
73
- },
74
- {
75
- label: '选中路径:', //label
8
+ label: '支付成功路径:', //label
76
9
  ele: 'xd-select-pages-path', //package 名称
77
- valueKey: 'select-pages-path', //form[valueKey]
10
+ valueKey: 'orderSuccessPath', //form[valueKey]
11
+ placeholder: '请选择核销成功路径',
78
12
  value: null,
79
13
  setting: {
80
- router: XdBus.getParentApi('getPagesTree')
14
+ router: XdBus.getParentApi('getPagesTree'),
15
+
81
16
  },
82
17
  inline: false,
83
18
  },
84
19
  {
85
- label: '高度:', //label
86
- ele: 'el-input', //package 名称
87
- type: 'number',
88
- valueKey: 'height', //form[valueKey]
89
- value: null, //v-model
90
- placeholder: '请输入占位框高度,单位像素,默认:10px',
91
- classNmae: 'input80', //样式名称 //input100,input80,input70,input60,input50,input40,input30,input20,
92
- rules: [
93
- {
94
- required: true,
95
- message: '请输入占位框高度',
96
- trigger: 'blur'
97
- },
98
- ]
99
- },
100
- {
101
- label: '', //label
102
- ele: 'slot', //package 名称
103
- slot: 'is_reference',
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,
104
30
  },
105
31
  ],
106
- };
32
+ }