jufubao-third 1.0.22-beta2 → 1.0.22-beta3

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.22-beta2",
3
+ "version": "1.0.22-beta3",
4
4
  "private": false,
5
5
  "description": "聚福宝业务组件第三方购物平台包",
6
6
  "main": "index.js",
@@ -6,15 +6,11 @@
6
6
  */
7
7
  module.exports = [
8
8
  {
9
- mapFnName: 'rideOrderList',
10
- title: "打车 - 订单列表",
11
- path: "/thirdmall/v1/:xnamespace/amapcar/ride/order-list",
9
+ mapFnName: 'checkUnpaidOrder',
10
+ title: "查询未支付订单",
11
+ path: "/thirdmall/v1/order/has-unpaid-order",
12
12
  isRule: false,
13
- data: {
14
- xnamespace: ['业务线', 'String', true],
15
- order_type: ['类型', 'COM已完成,ING进行中', true],
16
- page_token: ['分页参数', 'String', false],
17
- page_size: ['分页大小', 'Number', false],
13
+ params: {
18
14
  },
19
15
  isConsole: true,
20
16
  disabled: true,
@@ -19,12 +19,12 @@
19
19
  <!-- 预览占位 -->
20
20
  <!-- #ifdef H5 -->
21
21
  <view v-if="$configProject.isPreview" class="check-pay-placeholder">
22
- <text class="check-pay-placeholder__text">出行待支付检查(引用组件)</text>
22
+ <text class="check-pay-placeholder__text">出行待支付检查占位</text>
23
23
  </view>
24
24
  <!-- #endif -->
25
25
  <!-- 待支付弹窗 -->
26
- <view class="check-pay-mask" v-if="showPayModal" @click.stop>
27
- <view class="check-pay-modal">
26
+ <view class="check-pay-mask" v-if="showPayModal" @click="handleClosePayModal">
27
+ <view class="check-pay-modal" @click.stop>
28
28
  <text class="check-pay-modal__text">当前您还有待支付的订单</text>
29
29
  <text class="check-pay-modal__text">请先完成支付</text>
30
30
  <view class="check-pay-modal__btn" @click="handleGoPay">
@@ -77,26 +77,23 @@
77
77
  * @description 检查是否有待支付订单
78
78
  */
79
79
  checkUnpaidOrder() {
80
- jfbRootExec("rideOrderList", {
80
+ jfbRootExec("checkUnpaidOrder", {
81
81
  vm: this,
82
82
  data: {
83
- xnamespace: this.xnamespace,
84
- order_type: 'ING',
85
- page_token: '1',
86
- page_size: 10
83
+ xnamespace: this.xnamespace
87
84
  }
88
85
  }).then(res => {
89
- const list = res && res.list || [];
90
- // 查找待支付订单(need_pay_price > 0 或 show_status 表示待支付)
91
- const unpaid = list.find(item => {
92
- return item.need_pay_price > 0 || item.show_status_name === '待支付';
93
- });
94
- if (unpaid) {
95
- this.unpaidOrder = unpaid;
86
+ // if (res && res.has_unpaid_order) {
96
87
  this.showPayModal = true;
97
- }
88
+ // }
98
89
  }).catch(() => {})
99
90
  },
91
+ /**
92
+ * @description 手动关闭待支付弹窗
93
+ */
94
+ handleClosePayModal() {
95
+ this.showPayModal = false;
96
+ },
100
97
  /**
101
98
  * @description 点击去支付
102
99
  */
@@ -1,38 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  module.exports = {
4
- rideOrderList: {
5
- "total_size": 1,
6
- "next_page_token": "",
7
- "list": [
8
- {
9
- "channel_order_id": "40160320001350016846830466",
10
- "pay_order_id": "pay_order_001",
11
- "need_pay_price": 500,
12
- "user_id": 5000020,
13
- "mobile": "",
14
- "user_name": "",
15
- "start_name": "中国民生银行(北京西客站支行)",
16
- "end_name": "清华大学",
17
- "ride_type": 1,
18
- "ride_type_name": "经济型",
19
- "total_fee": 8527,
20
- "enterprise_amount": 0,
21
- "person_amount": 0,
22
- "estimate_price": 10430,
23
- "estimate_mileage": 19200,
24
- "estimate_time": 2473,
25
- "duration": "41",
26
- "mileage": "19200",
27
- "show_status": 2,
28
- "show_status_name": "待支付",
29
- "to_order_detail": "N",
30
- "order_service_type": 1,
31
- "order_service_type_name": "实时单",
32
- "request_time": "2026-08-14 16:48:07",
33
- "depart_time": 1786697287,
34
- }
35
- ],
36
- "request_id": "8d5f00c80f8d22ce"
4
+ checkUnpaidOrder: {
5
+ "has_unpaid_order": false, //返回 true 则禁止下单
37
6
  }
38
7
  }
@@ -18,5 +18,16 @@ module.exports = [
18
18
  },
19
19
  isConsole: true,
20
20
  disabled: true,
21
+ },
22
+ {
23
+ mapFnName: 'orderDetailUrl',
24
+ title: "订单详情url",
25
+ path: "/thirdmall-apiuri/v1/order/detail-url/:channel_order_id",
26
+ isRule: false,
27
+ params: {
28
+ channel_order_id: ['订单号', 'String', true],
29
+ },
30
+ isConsole: true,
31
+
21
32
  }
22
33
  ];
@@ -261,9 +261,25 @@
261
261
  jfbRootExec('navigateBack', { vm: this })
262
262
  },
263
263
  handleCardClick(item) {
264
- this.$xdUniHelper.navigateTo({
265
- url: this.orderDetailsPath + '?order_id=' + item.channel_order_id
266
- })
264
+ if(item.to_order_detail === 'Y'){
265
+ this.$xdUniHelper.navigateTo({
266
+ url: this.orderDetailsPath + '?order_id=' + item.main_order_id
267
+ })
268
+ }else{
269
+ jfbRootExec("orderDetailUrl", {
270
+ vm: this,
271
+ data: {
272
+ channel_order_id: item.channel_order_id,
273
+ channel_code: "amapcar",
274
+ business_code: this.xnamespace
275
+ }
276
+ }).then(res => {
277
+ let url = res.value;
278
+ // #ifdef H5
279
+ window.location.href = url;
280
+ // #endif
281
+ })
282
+ }
267
283
  },
268
284
  /**
269
285
  * @description 监听事件变化