jufubao-base 1.0.232-beta6 → 1.0.232-beta8

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.232-beta6",
3
+ "version": "1.0.232-beta8",
4
4
  "private": false,
5
5
  "description": "聚福宝业务组件基础插件包",
6
6
  "main": "index.js",
@@ -90,6 +90,7 @@
90
90
  recordList: [],
91
91
  hasNext: true,
92
92
  page_token: 1,
93
+ next_page_token: ''
93
94
  }
94
95
  },
95
96
  computed: {
@@ -153,12 +154,13 @@
153
154
  ).fullTime;
154
155
  return item;
155
156
  })
156
- this.hasNext = res.next_page_token !== "";
157
157
  if (this.page_token === 1) {
158
158
  this.recordList = list
159
159
  } else {
160
160
  this.recordList = this.recordList.concat(list);
161
161
  }
162
+ this.next_page_token = res.next_page_token
163
+ this.hasNext = res.next_page_token !== "";
162
164
  })
163
165
  },
164
166
  getContent() {
@@ -201,6 +203,7 @@
201
203
  this.wallet_type = item.wallet_type;
202
204
  this.isWithDraw = item.is_support_withdraw;
203
205
  this.amount = item.amount;
206
+ this.next_page_token=''
204
207
  this.hasNext = true;
205
208
  this.page_token = 1;
206
209
  this.recordList = [];
@@ -1,13 +1,9 @@
1
1
  'use strict';
2
2
 
3
3
  module.exports = {
4
-
5
- getBalanceByIdFilmSquate:{},
6
-
7
- updateBalanceFilmPaiqiDate:{},
8
-
9
- removeBalanceFilmAddress:{},
10
-
11
- addBalanceFilmcart:{},
12
-
4
+
5
+ getBalanceDetail: { "wallet_list": [{ "sort": 2, "wallet_type": "UC", "show_name": "可用余额", "amount": 19940, "is_support_withdraw": "Y" }, { "sort": 0, "wallet_type": "UT", "show_name": "待到账余额", "amount": 0, "is_support_withdraw": "N" }], "request_id": "279b309d137cae9f" },
6
+
7
+ getBalanceWalletTradeList: { "next_page_token": "2", "total_size": 0, "list": [{ "trade_nnid": "eDaOl5aPD4Fx8gtBJC1bd", "order_id": "i771037005030096968", "amount": 10, "trade_type": "user_withdraw_chargeback", "trade_type_name": "提现失败", "operate_type": "A", "operate_type_name": "收入", "trade_name": "", "comment": "余额提现", "created_time": 1744883229 }, { "trade_nnid": "qhBI-btv4hh8TpsGdCrDG", "order_id": "i771066286233878607", "amount": 10, "trade_type": "user_withdraw", "trade_type_name": "余额提现", "operate_type": "R", "operate_type_name": "支出", "trade_name": "", "comment": "", "created_time": 1744796528 }, { "trade_nnid": "NCI4DolRx-0GqFfY5J9-P", "order_id": "i771065517556367438", "amount": 10, "trade_type": "user_withdraw", "trade_type_name": "余额提现", "operate_type": "R", "operate_type_name": "支出", "trade_name": "", "comment": "", "created_time": 1744796345 }, { "trade_nnid": "upM7epMxX3FqoTytFyKUn", "order_id": "i771062549364867149", "amount": 10, "trade_type": "user_withdraw", "trade_type_name": "余额提现", "operate_type": "R", "operate_type_name": "支出", "trade_name": "", "comment": "", "created_time": 1744795637 }, { "trade_nnid": "nzH3e_P25C-q7wcN52L-z", "order_id": "i771061580484837452", "amount": 10, "trade_type": "user_withdraw", "trade_type_name": "余额提现", "operate_type": "R", "operate_type_name": "支出", "trade_name": "", "comment": "", "created_time": 1744795406 }, { "trade_nnid": "aduSpdXNKl0dwqxPhovf0", "order_id": "i771059916772212811", "amount": 10, "trade_type": "user_withdraw", "trade_type_name": "余额提现", "operate_type": "R", "operate_type_name": "支出", "trade_name": "", "comment": "", "created_time": 1744795009 }, { "trade_nnid": "dTTmA75uN-Mv3as8XE1Te", "order_id": "i771054224359293002", "amount": 10, "trade_type": "user_withdraw", "trade_type_name": "余额提现", "operate_type": "R", "operate_type_name": "支出", "trade_name": "", "comment": "", "created_time": 1744793652 }, { "trade_nnid": "jo4IOWJ1wPyGXiA5wQYUU", "order_id": "i771037005030096968", "amount": 10, "trade_type": "user_withdraw", "trade_type_name": "余额提现", "operate_type": "R", "operate_type_name": "支出", "trade_name": "", "comment": "", "created_time": 1744789547 }, { "trade_nnid": "78qU6Cemnhqnvms2-iJDI", "order_id": "i771019326374281284", "amount": 1000, "trade_type": "user_withdraw_chargeback", "trade_type_name": "提现失败", "operate_type": "A", "operate_type_name": "收入", "trade_name": "", "comment": "余额提现", "created_time": 1744789418 }, { "trade_nnid": "yLLohJoE-qowAuxastB1z", "order_id": "i771034873199591494", "amount": 1000, "trade_type": "user_withdraw_chargeback", "trade_type_name": "提现失败", "operate_type": "A", "operate_type_name": "收入", "trade_name": "", "comment": "余额提现", "created_time": 1744789410 }], "request_id": "e9f0142e62066570" },
8
+
13
9
  }
@@ -263,6 +263,18 @@ export default {
263
263
  },
264
264
  inline: false,
265
265
  },
266
+ {
267
+ label: '支付页面跳转路径:',
268
+ ele: 'xd-select-pages-path',
269
+ valueKey: 'payPath',
270
+ groupKey:'advanced',
271
+ placeholder: '请选择支付页面跳转路径',
272
+ value: data['payPath'] || null,
273
+ setting: {
274
+ router: XdBus.getParentApi('getPagesTree'),
275
+ },
276
+ inline: false,
277
+ },
266
278
  ].filter(i=>i)
267
279
  },
268
280
  advanced: [],
@@ -79,6 +79,7 @@
79
79
  //todo
80
80
  description: "",
81
81
  vipSuccessPath: "",
82
+ payPath: "",
82
83
  }
83
84
  },
84
85
  computed: {
@@ -114,6 +115,7 @@
114
115
  init(container) {
115
116
  this.description = getContainerPropsValue(container, 'content.description', "");
116
117
  this.vipSuccessPath = getContainerPropsValue(container, 'content.vipSuccessPath', {value: ""}).value;
118
+ this.payPath = getContainerPropsValue(container, 'content.payPath', {value: ""}).value;
117
119
  },
118
120
  handlePrivacy(code){
119
121
  let params = `page_id=${this.pageAttr["page_id"]}`;
@@ -144,10 +146,19 @@
144
146
  business_code: this.xnamespace,
145
147
  product_id: this.vipInfo.product_id,
146
148
  notify_provider_id: this.projectAttr.notify_provider_id,
147
- need_pay_price: 0
149
+ need_pay_price: 0,
150
+ selected_card_list_json: this.vipInfo.selected_card_list_json
148
151
  }
149
152
  }).then(res => {
150
-
153
+ if(res.need_pay_price > 0){
154
+ this.$xdUniHelper.redirectTo({
155
+ url: this.payPath + `?order_id=${res.pay_order_id}&main_order_id=${res.main_order_id}`
156
+ })
157
+ }else{
158
+ this.$xdUniHelper.redirectTo({
159
+ url: this.vipSuccessPath + `?order_id=${res.main_order_id}`
160
+ })
161
+ }
151
162
  })
152
163
  },
153
164
  onJfbScroll(options) {
@@ -7,52 +7,127 @@
7
7
  module.exports = [
8
8
  {
9
9
  //设置方法名字当别忘记加上【模块名字】:Consump
10
- mapFnName: 'getConsumpByIdFilmSquate',
11
- title: '获取电影广场列表',
12
- path: '/api/account/film/list-film-square',
10
+ mapFnName: 'getConsumpCode',
11
+ title: '获取支付码',
12
+ path: '/store/v1/order/get-quick-pay-code',
13
13
  isRule: false,
14
14
  params: {
15
- last_key: ['当前页', 'Number', '必选'],
16
- page_size: ['每页数量', 'Number', '必选'],
15
+ shop_id: ['门店ID', 'Number', '必选'],
16
+ temp_order_id: ['临时订单号第一次获取为空,再次获取需要传上次获取到数据', 'Number', '非必选'],
17
17
  },
18
18
  isConsole: true,
19
19
  disabled: true,
20
20
  },
21
21
  {
22
22
  //设置方法名字当别忘记加上【模块名字】:Consump
23
- mapFnName: 'updateConsumpFilmPaiqiDate',
24
- title: '更新排期',
25
- path: '/api/account/film/paiqi-date',
23
+ mapFnName: 'getConsumpCodeScanStatus',
24
+ title: '获取支付码扫码状态',
25
+ path: '/store/v1/order/get-quick-pay-scan-status',
26
26
  isRule: false,
27
27
  params: {
28
- film_id: ['电影id', 'Number', '必选'],
29
- cinema_id: ['影院id', 'Number', '必选'],
28
+ temp_order_id: ['临时订单号', 'Number', '必选'],
30
29
  },
31
30
  isConsole: true,
32
31
  disabled: true,
33
32
  },
34
33
  {
35
- //设置方法名字当别忘记加上【模块名字】:Consump
36
- mapFnName: 'removeConsumpFilmAddress',
37
- title: '删除我的配送地址',
38
- path: '/api/account/film/paiqi-date',
34
+ mapFnName: "getConsumpListUserPayChannel",
35
+ title: "获取用户可用支付渠道",
36
+ path: "/pay/v1/pay-channel/list-user-pay-channel",
37
+ isRule: false,
38
+ params: {
39
+ providers: ['支付方式id 多个用逗号分隔', "String", '必选']
40
+ },
41
+ isConsole: true,
42
+ disabled: true
43
+ },
44
+ {
45
+ path: '/store/v1/order/async-submit-status',
46
+ title: "获取异步下单的状态",
47
+ mapFnName: "getConsumpAsyncSubmitStatus",
39
48
  isRule: false,
40
49
  params: {
41
- film_id: ['电影id', 'Number', '必选'],
50
+ request_order_id: ['temp_order_id', 'Number', '必选'],
42
51
  },
43
52
  isConsole: true,
44
53
  disabled: true,
45
54
  },
55
+ {
56
+ mapFnName: "setConsumpThirdPlace",
57
+ title: "第三方渠道下单",
58
+ path: "/pay/v1/order/third-place",
59
+ isRule: false,
60
+ data: {
61
+ order_id: ['订单号', "String", "必填"],
62
+ channel_provider_id: ['支付渠道id', "String", '必选']
63
+ },
64
+ isConsole: true,
65
+ disabled: true
66
+ },
67
+ {
68
+ mapFnName: "updateConsumpPay",
69
+ title: "修改订单为支付中",
70
+ path: "/order/v1/order/update-to-paying",
71
+ isRule: false,
72
+ data: {
73
+ main_order_id: ['订单号', "String", "必填"],
74
+ },
75
+ isConsole: true,
76
+ disabled: true
77
+ },
46
78
  {
47
79
  //设置方法名字当别忘记加上【模块名字】:Consump
48
- mapFnName: 'addConsumpFilmcart',
49
- title: '添加购物车',
50
- path: '/api/account/film/paiqi-date',
80
+ mapFnName: 'batchConsumpUseCardCreated',
81
+ title: '批量使用卡券下单',
82
+ path: '/store/v1/order/batch-use-card-created',
83
+ isRule: false,
84
+ data: {
85
+ temp_order_id: ['临时订单号', 'Number', '必选'],
86
+ },
87
+ isConsole: true,
88
+ disabled: true,
89
+ },
90
+ {
91
+ //设置方法名字当别忘记加上【模块名字】:Consump
92
+ mapFnName: 'getConsumpShopList',
93
+ title: '获取附近门店列表',
94
+ path: '/mall/v1/shop/msearch',
95
+ isRule: false,
96
+ params: {},
97
+ isConsole: true,
98
+ disabled: true,
99
+ },
100
+ {
101
+ mapFnName: 'getConsumpSettleMainInfo',
102
+ title: '门店核销 - 展示主界面数据',
103
+ // path: '/store/v1/cash/settle/main-info',
104
+ path: "/store/v1/order/main-info",
51
105
  isRule: false,
52
106
  params: {
53
- film_id: ['电影id', 'Number', '必选'],
107
+ shop_id: ['门店id', 'Number', '必选'],
54
108
  },
55
109
  isConsole: true,
56
110
  disabled: true,
57
111
  },
112
+ {
113
+ mapFnName: 'addConsumpCashierTempOrderData',
114
+ title: '门店核销 - 保存临时购物数据',
115
+ path: "/store/v1/order/save-cart-order-data",
116
+ isRule: false,
117
+ data: {
118
+ shop_id: ['门店id', 'Number', '必选'],
119
+ settle_tag_id: ['结算标签id', 'Number', '必选'],
120
+ },
121
+ isConsole: true,
122
+ disabled: true,
123
+ },
124
+ {
125
+ mapFnName: 'getConsumpBaseUserInfo',
126
+ title: '获取用户信息',
127
+ path: '/passport/v1/user/get',
128
+ params: {},
129
+ isRule: false,
130
+ isConsole: true,
131
+ disabled: true,
132
+ }
58
133
  ];
@@ -42,6 +42,19 @@ export default {
42
42
  },
43
43
  inline: false,
44
44
  },
45
+ {
46
+ label: '核销支付路径:',
47
+ ele: 'xd-select-pages-path',
48
+ valueKey: 'cash_pay_path',
49
+ placeholder: '请选择核销支付路径',
50
+ className: 'input100',
51
+ groupKey:'advanced',
52
+ value: null,
53
+ setting: {
54
+ router: XdBus.getParentApi('getPagesTree')
55
+ },
56
+ inline: false,
57
+ },
45
58
  ].filter(i=>i)
46
59
  },
47
60
  advanced: [],