jufubao-base 1.0.243-beta206 → 1.0.243-beta207

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.243-beta206",
3
+ "version": "1.0.243-beta207",
4
4
  "private": false,
5
5
  "description": "聚福宝业务组件基础插件包",
6
6
  "main": "index.js",
@@ -51,4 +51,15 @@ module.exports = [
51
51
  isConsole: true,
52
52
  disabled: true,
53
53
  },
54
+ {
55
+ path: "/aftersale/v1/service-order/order-support-quick-refund",
56
+ title: "售后订单支持快速退款",
57
+ mapFnName: "getSupportQuickRefund",
58
+ isRule: false,
59
+ params: {
60
+ order_id: ['订单ID', 'String', true],
61
+ },
62
+ isConsole: true,
63
+ disabled: true,
64
+ }
54
65
  ];
@@ -1457,17 +1457,28 @@ export default {
1457
1457
  });
1458
1458
  }
1459
1459
  else if(item.action === 'apply_refund'){
1460
- //普通退款
1461
- if(this.info.is_support_quick_refund !== "Y"){
1462
- this.$xdUniHelper.navigateTo({
1463
- url: `${this.refundPath}?order_id=${this.main_order_id}`,
1464
- });
1465
- }else{
1466
- //极速退款
1467
- this.$xdUniHelper.navigateTo({
1468
- url: `${this.refundFastPath}?order_id=${this.main_order_id}`,
1469
- });
1470
- }
1460
+ this.$xdShowLoading({});
1461
+ jfbRootExec("getSupportQuickRefund", {
1462
+ vm: this,
1463
+ data: {
1464
+ main_order_id: this.main_order_id
1465
+ }
1466
+ }).then(res => {
1467
+ this.$xdHideLoading();
1468
+ //普通退款
1469
+ if(res.is_support_quick_refund !== "Y"){
1470
+ this.$xdUniHelper.navigateTo({
1471
+ url: `${this.refundPath}?order_id=${this.main_order_id}`,
1472
+ });
1473
+ }else{
1474
+ //极速退款
1475
+ this.$xdUniHelper.navigateTo({
1476
+ url: `${this.refundFastPath}?order_id=${this.main_order_id}`,
1477
+ });
1478
+ }
1479
+ }).catch(err => {
1480
+ this.$xdHideLoading();
1481
+ })
1471
1482
  }
1472
1483
  else {
1473
1484
  console.error(`item.action=${item.action}, 此action不可用`)