jufubao-base 1.0.260 → 1.0.261

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.
Files changed (40) hide show
  1. package/package.json +1 -1
  2. package/src/components/JfbBaseAfterOrderList/Attr.js +13 -0
  3. package/src/components/JfbBaseAfterOrderList/JfbBaseAfterOrderList.vue +33 -1
  4. package/src/components/JfbBaseAfterSales/Api.js +58 -0
  5. package/src/components/JfbBaseAfterSales/Attr.js +25 -0
  6. package/src/components/JfbBaseAfterSales/JfbBaseAfterSales.vue +598 -0
  7. package/src/components/JfbBaseAfterSales/JfbBaseAfterSalesLess.less +79 -0
  8. package/src/components/JfbBaseAfterSales/JfbBaseAfterSalesMixin.js +30 -0
  9. package/src/components/JfbBaseAfterSales/Mock.js +6 -0
  10. package/src/components/JfbBaseAfterSales/refundOrderInfo.vue +150 -0
  11. package/src/components/JfbBaseAfterSalesDetail/Api.js +41 -0
  12. package/src/components/JfbBaseAfterSalesDetail/Attr.js +25 -0
  13. package/src/components/JfbBaseAfterSalesDetail/JfbBaseAfterSalesDetail.vue +562 -0
  14. package/src/components/JfbBaseAfterSalesDetail/JfbBaseAfterSalesDetailLess.less +79 -0
  15. package/src/components/JfbBaseAfterSalesDetail/JfbBaseAfterSalesDetailMixin.js +30 -0
  16. package/src/components/JfbBaseAfterSalesDetail/Mock.js +60 -0
  17. package/src/components/JfbBaseAfterSalesDetail/secProd.vue +66 -0
  18. package/src/components/JfbBaseAfterSalesFast/Api.js +30 -0
  19. package/src/components/JfbBaseAfterSalesFast/Attr.js +32 -0
  20. package/src/components/JfbBaseAfterSalesFast/JfbBaseAfterSalesFast.vue +297 -0
  21. package/src/components/JfbBaseAfterSalesFast/JfbBaseAfterSalesFastLess.less +79 -0
  22. package/src/components/JfbBaseAfterSalesFast/JfbBaseAfterSalesFastMixin.js +30 -0
  23. package/src/components/JfbBaseAfterSalesFast/Mock.js +38 -0
  24. package/src/components/JfbBaseAfterSalesList/Api.js +40 -0
  25. package/src/components/JfbBaseAfterSalesList/Attr.js +130 -0
  26. package/src/components/JfbBaseAfterSalesList/JfbBaseAfterSalesList.vue +512 -0
  27. package/src/components/JfbBaseAfterSalesList/JfbBaseAfterSalesListLess.less +79 -0
  28. package/src/components/JfbBaseAfterSalesList/JfbBaseAfterSalesListMixin.js +30 -0
  29. package/src/components/JfbBaseAfterSalesList/Mock.js +362 -0
  30. package/src/components/JfbBaseCard/JfbBaseCard.vue +3 -1
  31. package/src/components/JfbBaseCardV2/JfbBaseCardV2.vue +3 -1
  32. package/src/components/JfbBaseCardV3/JfbBaseCardV3.vue +3 -1
  33. package/src/components/JfbBaseOrderDetail/Api.js +11 -0
  34. package/src/components/JfbBaseOrderDetail/Attr.js +36 -0
  35. package/src/components/JfbBaseOrderDetail/JfbBaseOrderDetail.vue +47 -2
  36. package/src/components/JfbBaseOrderList/Api.js +11 -0
  37. package/src/components/JfbBaseOrderList/Attr.js +36 -0
  38. package/src/components/JfbBaseOrderList/JfbBaseOrderList.vue +50 -2
  39. package/src/components/JfbBaseOrderList/Mock.js +1 -1
  40. package/src/components/JfbBaseOrderList/XdTfkOrderItem.vue +17 -5
@@ -0,0 +1,79 @@
1
+ /**
2
+ * @desc 获取绝对路径完整地址
3
+ * @param @path
4
+ **/
5
+ //例如:https://image.jufubao.cn/20220501010108/image/bg/default_gonghui_bg.png
6
+ @basePath: 'business/';
7
+ @doMain: '//sandbox-img.jufubao.cn/';
8
+
9
+ .getBusinessImageUrl(@path, @size: 'size8') {
10
+ @url: "@{doMain}@{basePath}@{path}?x-oss-process=style/@{size}";
11
+ background-image: url(@url);
12
+ }
13
+
14
+ //start
15
+ .jfb-base-after-sales-list {
16
+ box-sizing: border-box;
17
+
18
+ &__body{
19
+ position: relative;
20
+ overflow: hidden;
21
+ z-index: 2
22
+ }
23
+
24
+ &.editx,&.editx:hover {
25
+ position: relative;
26
+ min-height: unit(100, rpx);
27
+ z-index: 3;
28
+ &::after {
29
+ border: 2rpx dashed blue;
30
+ content: " ";
31
+ position: absolute;
32
+ top:0;
33
+ left:0;
34
+ bottom:0;
35
+ right:0;
36
+ z-index: 4;
37
+ cursor: pointer;
38
+ }
39
+
40
+ }
41
+
42
+
43
+ &__edit {
44
+ cursor: pointer;
45
+ position: absolute;
46
+ right: unit(0, rpx);
47
+ top: unit(-52, rpx);
48
+ height: unit(50, rpx);
49
+ line-height: unit(50, rpx);
50
+ display: flex;
51
+ justify-content: center;
52
+ align-items: center;
53
+ background: rgba(0, 0, 0, .6);
54
+ border-radius: unit(10, rpx);
55
+ box-shadow: 0 0 10px rbga(0, 0, 0, 0.3);
56
+ color: #fff;
57
+ font-size: unit(22, rpx);
58
+
59
+ &-icon{
60
+ padding: 0 unit(20, rpx);
61
+ }
62
+
63
+ &.editx {
64
+ box-sizing: border-box;
65
+
66
+ }
67
+ }
68
+ }
69
+ //end
70
+
71
+
72
+ /**notPreview**/
73
+ .jfb-base-after-sales-list {
74
+ //&:before {
75
+ //content: " ";
76
+ //display: table;
77
+ //}
78
+ }
79
+ /**endNotPreview**/
@@ -0,0 +1,30 @@
1
+ 'use strict';
2
+
3
+
4
+ //@AttrImport
5
+ import Attr from "./Attr";
6
+ //@EndAttrImport
7
+
8
+
9
+ export default {
10
+ data() {
11
+ return {
12
+ //#ifdef H5
13
+
14
+ //@AttrData
15
+ Attr:{}, //对外开发编辑属性
16
+ //@EndAttrData
17
+
18
+ // #endif
19
+ cssRoot: 'jfb-base-after-sales-list'
20
+ }
21
+ },
22
+ created() {
23
+
24
+ //@AttrDataCreated
25
+ this.Attr = this.$xdUniHelper.customClone(Attr);
26
+ //@EndAttrDataCreated
27
+
28
+
29
+ },
30
+ }
@@ -0,0 +1,362 @@
1
+ "use strict";
2
+
3
+ module.exports = {
4
+ getAfterServiceOrderList: {
5
+ list: [
6
+ {
7
+ main_order_id: "m751032915998359578",
8
+ service_order_id: "so762621229997408268",
9
+ customer_feedback: "",
10
+ sub_order_id: "",
11
+ after_sale_method: "refund_and_good",
12
+ after_sale_method_name: "退款",
13
+ refund_voucher: "",
14
+ after_sale_type: "",
15
+ after_sale_type_name: "",
16
+ created_time: 1740020734,
17
+ refund_goods_data: "",
18
+ product_list: [
19
+ {
20
+ product_id: 60038026,
21
+ product_name: "卡密取卡测试商品-兑换码",
22
+ product_sku_id: "0",
23
+ product_sku_name: "",
24
+ product_num: 1,
25
+ sale_price: 1001,
26
+ thumb: "//sandbox-img.jufubao.cn/uploads/20250219/144b27ad32143856af7cd56b5561c382.jpg",
27
+ after_count: 1,
28
+ refund_amount: 1001,
29
+ gift_id: 0,
30
+ brand_id: 0,
31
+ brand_name: ""
32
+ }
33
+ ],
34
+ refund_settlement: [],
35
+ new_product_list: [],
36
+ business_name: "蛋糕(勿改)",
37
+ business_icon: "",
38
+ business_code: "cake",
39
+ after_order_id: "a751035152917192705",
40
+ progress: [],
41
+ express_info: null,
42
+ is_show_delete_btn: "Y",
43
+ is_show_cancel_btn: "N"
44
+ },
45
+ {
46
+ main_order_id: "m740577429104705537",
47
+ service_order_id: "so762621221919117325",
48
+ customer_feedback: "",
49
+ sub_order_id: "",
50
+ after_sale_method: "refund_and_good",
51
+ after_sale_method_name: "退款",
52
+ refund_voucher: "",
53
+ after_sale_type: "",
54
+ after_sale_type_name: "",
55
+ created_time: 1737527447,
56
+ refund_goods_data: "",
57
+ product_list: [
58
+ {
59
+ product_id: 60031268,
60
+ product_name: "礼包-商品3",
61
+ product_sku_id: "0",
62
+ product_sku_name: "",
63
+ product_num: 1,
64
+ sale_price: 9270,
65
+ thumb: "//sandbox-img.jufubao.cn/uploads/20241226/ea3e20a74abb9a47b1707d020a3c4b10.jpeg",
66
+ after_count: 1,
67
+ refund_amount: 9270,
68
+ gift_id: 1775541,
69
+ brand_id: 0,
70
+ brand_name: ""
71
+ }
72
+ ],
73
+ refund_settlement: [],
74
+ new_product_list: [],
75
+ business_name: "礼包(勿改)",
76
+ business_icon: "",
77
+ business_code: "gift",
78
+ after_order_id: "a740577550684426240",
79
+ progress: [],
80
+ express_info: null,
81
+ is_show_delete_btn: "Y",
82
+ is_show_cancel_btn: "N"
83
+ },
84
+ {
85
+ main_order_id: "m740573565349609473",
86
+ service_order_id: "so762621221768749060",
87
+ customer_feedback: "",
88
+ sub_order_id: "",
89
+ after_sale_method: "refund_and_good",
90
+ after_sale_method_name: "退款",
91
+ refund_voucher: "",
92
+ after_sale_type: "",
93
+ after_sale_type_name: "",
94
+ created_time: 1737526543,
95
+ refund_goods_data: "",
96
+ product_list: [
97
+ {
98
+ product_id: 60031268,
99
+ product_name: "礼包-商品3",
100
+ product_sku_id: "0",
101
+ product_sku_name: "",
102
+ product_num: 1,
103
+ sale_price: 9270,
104
+ thumb: "/uploads/20241226/ea3e20a74abb9a47b1707d020a3c4b10.jpeg",
105
+ after_count: 1,
106
+ refund_amount: 9270,
107
+ gift_id: 1775541,
108
+ brand_id: 0,
109
+ brand_name: ""
110
+ }
111
+ ],
112
+ refund_settlement: [],
113
+ new_product_list: [],
114
+ business_name: "礼包(勿改)",
115
+ business_icon: "",
116
+ business_code: "gift",
117
+ after_order_id: "a740573757845233664",
118
+ progress: [],
119
+ express_info: null,
120
+ is_show_delete_btn: "Y",
121
+ is_show_cancel_btn: "N"
122
+ },
123
+ {
124
+ main_order_id: "m738480254887477249",
125
+ service_order_id: "so762621219337035799",
126
+ customer_feedback: "",
127
+ sub_order_id: "",
128
+ after_sale_method: "refund_and_good",
129
+ after_sale_method_name: "退款",
130
+ refund_voucher: "",
131
+ after_sale_type: "",
132
+ after_sale_type_name: "",
133
+ created_time: 1737027483,
134
+ refund_goods_data: "",
135
+ product_list: [
136
+ {
137
+ product_id: 60031268,
138
+ product_name: "礼包-商品3",
139
+ product_sku_id: "0",
140
+ product_sku_name: "",
141
+ product_num: 1,
142
+ sale_price: 9270,
143
+ thumb: "//sandbox-img.jufubao.cn/uploads/20241226/ea3e20a74abb9a47b1707d020a3c4b10.jpeg",
144
+ after_count: 1,
145
+ refund_amount: 9270,
146
+ gift_id: 1775541,
147
+ brand_id: 0,
148
+ brand_name: ""
149
+ }
150
+ ],
151
+ refund_settlement: [],
152
+ new_product_list: [],
153
+ business_name: "礼包(勿改)",
154
+ business_icon: "",
155
+ business_code: "gift",
156
+ after_order_id: "a738480549507104768",
157
+ progress: [],
158
+ express_info: null,
159
+ is_show_delete_btn: "Y",
160
+ is_show_cancel_btn: "N"
161
+ },
162
+ {
163
+ main_order_id: "m738110635274223617",
164
+ service_order_id: "so762621217958711311",
165
+ customer_feedback: "",
166
+ sub_order_id: "",
167
+ after_sale_method: "refund_and_good",
168
+ after_sale_method_name: "退款",
169
+ refund_voucher: "",
170
+ after_sale_type: "",
171
+ after_sale_type_name: "",
172
+ created_time: 1736939406,
173
+ refund_goods_data: "",
174
+ product_list: [
175
+ {
176
+ product_id: 452,
177
+ product_name: "【热销超百万】辣堡藤椒堡任选2件套MT23",
178
+ product_sku_id: "086a90b11b9d4084aed343f1e5da3363",
179
+ product_sku_name: "【热销超百万】辣堡藤椒堡任选2件套MT23",
180
+ product_num: 1,
181
+ sale_price: 1790,
182
+ thumb: "//sandbox-img.jufubao.cn/other/meituan-200_200.png",
183
+ after_count: 1,
184
+ refund_amount: 2059,
185
+ gift_id: 0,
186
+ brand_id: 0,
187
+ brand_name: ""
188
+ }
189
+ ],
190
+ refund_settlement: [],
191
+ new_product_list: [],
192
+ business_name: "蛋糕(勿改)",
193
+ business_icon: "",
194
+ business_code: "cake",
195
+ after_order_id: "a738111130461335553",
196
+ progress: [],
197
+ express_info: null,
198
+ is_show_delete_btn: "Y",
199
+ is_show_cancel_btn: "N"
200
+ },
201
+ {
202
+ main_order_id: "m738089357565837313",
203
+ service_order_id: "so762621217799405579",
204
+ customer_feedback: "",
205
+ sub_order_id: "",
206
+ after_sale_method: "refund_and_good",
207
+ after_sale_method_name: "退款",
208
+ refund_voucher: "",
209
+ after_sale_type: "",
210
+ after_sale_type_name: "",
211
+ created_time: 1736937818,
212
+ refund_goods_data: "",
213
+ product_list: [
214
+ {
215
+ product_id: 451,
216
+ product_name: "那爷火锅海鲜大排档单人餐",
217
+ product_sku_id: "1603e3c907b199602c5d1ab129b06250",
218
+ product_sku_name: "那爷火锅海鲜大排档单人餐",
219
+ product_num: 1,
220
+ sale_price: 3990,
221
+ thumb: "/other/meituan-200_200.png",
222
+ after_count: 1,
223
+ refund_amount: 4589,
224
+ gift_id: 0,
225
+ brand_id: 0,
226
+ brand_name: ""
227
+ }
228
+ ],
229
+ refund_settlement: [],
230
+ new_product_list: [],
231
+ business_name: "蛋糕(勿改)",
232
+ business_icon: "",
233
+ business_code: "cake",
234
+ after_order_id: "a738104468956561409",
235
+ progress: [],
236
+ express_info: null,
237
+ is_show_delete_btn: "Y",
238
+ is_show_cancel_btn: "N"
239
+ },
240
+ {
241
+ main_order_id: "c737312647604871168",
242
+ service_order_id: "so762621216906330120",
243
+ customer_feedback: "",
244
+ sub_order_id: "",
245
+ after_sale_method: "refund_and_good",
246
+ after_sale_method_name: "退款",
247
+ refund_voucher: "",
248
+ after_sale_type: "",
249
+ after_sale_type_name: "",
250
+ created_time: 1736749455,
251
+ refund_goods_data: "",
252
+ product_list: [
253
+ {
254
+ product_id: 54,
255
+ product_name: "蛋糕自定义(使用中)",
256
+ product_sku_id: "0",
257
+ product_sku_name: "",
258
+ product_num: 1,
259
+ sale_price: 100,
260
+ thumb: "",
261
+ after_count: 1,
262
+ refund_amount: 400,
263
+ gift_id: 0,
264
+ brand_id: 0,
265
+ brand_name: ""
266
+ }
267
+ ],
268
+ refund_settlement: [],
269
+ new_product_list: [],
270
+ business_name: "蛋糕(勿改)",
271
+ business_icon: "",
272
+ business_code: "cake",
273
+ after_order_id: "a737314416675721217",
274
+ progress: [],
275
+ express_info: null,
276
+ is_show_delete_btn: "Y",
277
+ is_show_cancel_btn: "N"
278
+ },
279
+ {
280
+ main_order_id: "c737271378876567553",
281
+ service_order_id: "so762621216344469518",
282
+ customer_feedback: "",
283
+ sub_order_id: "",
284
+ after_sale_method: "refund_and_good",
285
+ after_sale_method_name: "退款",
286
+ refund_voucher: "",
287
+ after_sale_type: "",
288
+ after_sale_type_name: "",
289
+ created_time: 1736739204,
290
+ refund_goods_data: "",
291
+ product_list: [
292
+ {
293
+ product_id: 262,
294
+ product_name: "幸福西饼、goodlike品牌",
295
+ product_sku_id: "0",
296
+ product_sku_name: "",
297
+ product_num: 1,
298
+ sale_price: 200,
299
+ thumb: "",
300
+ after_count: 1,
301
+ refund_amount: 500,
302
+ gift_id: 0,
303
+ brand_id: 0,
304
+ brand_name: ""
305
+ }
306
+ ],
307
+ refund_settlement: [],
308
+ new_product_list: [],
309
+ business_name: "蛋糕(勿改)",
310
+ business_icon: "",
311
+ business_code: "cake",
312
+ after_order_id: "a737271421289738241",
313
+ progress: [],
314
+ express_info: null,
315
+ is_show_delete_btn: "Y",
316
+ is_show_cancel_btn: "N"
317
+ },
318
+ {
319
+ main_order_id: "m733291561033744385",
320
+ service_order_id: "so762621205763829773",
321
+ customer_feedback: "",
322
+ sub_order_id: "",
323
+ after_sale_method: "refund_and_good",
324
+ after_sale_method_name: "退款",
325
+ refund_voucher: "",
326
+ after_sale_type: "",
327
+ after_sale_type_name: "",
328
+ created_time: 1735792178,
329
+ refund_goods_data: "",
330
+ product_list: [
331
+ {
332
+ product_id: 60031266,
333
+ product_name: "礼包-商品1",
334
+ product_sku_id: "0",
335
+ product_sku_name: "",
336
+ product_num: 1,
337
+ sale_price: 19999,
338
+ thumb: "/uploads/20241226/cfbc3bbb57583a3beac3dc9f70b26ef6.jpeg",
339
+ after_count: 1,
340
+ refund_amount: 19999,
341
+ gift_id: 1775549,
342
+ brand_id: 0,
343
+ brand_name: ""
344
+ }
345
+ ],
346
+ refund_settlement: [],
347
+ new_product_list: [],
348
+ business_name: "礼包(勿改)",
349
+ business_icon: "",
350
+ business_code: "gift",
351
+ after_order_id: "a733299305361567744",
352
+ progress: [],
353
+ express_info: null,
354
+ is_show_delete_btn: "Y",
355
+ is_show_cancel_btn: "N"
356
+ }
357
+ ],
358
+ next_page_token: "3",
359
+ total_size: 905,
360
+ request_id: "448a3876e113db4e"
361
+ }
362
+ };
@@ -594,7 +594,9 @@ export default {
594
594
  //#endif
595
595
 
596
596
  //单业务线卡券直接跳转到业务线
597
- if(item.entries.length ===1) {
597
+ if((item.business_codes && item.business_codes.length === 1)
598
+ && item.entries.length ===1
599
+ ) {
598
600
  this.handleOneBussClick(item.entries[0]);
599
601
  return
600
602
  }
@@ -311,7 +311,9 @@
311
311
  //#endif
312
312
 
313
313
  //单业务线卡券直接跳转到业务线
314
- if(item.entries.length ===1) {
314
+ if((item.business_codes && item.business_codes.length === 1)
315
+ && item.entries.length ===1
316
+ ) {
315
317
  this.handleOneBussClick(item.entries[0]);
316
318
  return
317
319
  }
@@ -228,7 +228,9 @@
228
228
  //#endif
229
229
 
230
230
  //单业务线卡券直接跳转到业务线
231
- if(item.entries.length ===1) {
231
+ if((item.business_codes && item.business_codes.length === 1)
232
+ && item.entries.length ===1
233
+ ) {
232
234
  this.handleOneBussClick(item.entries[0]);
233
235
  return
234
236
  }
@@ -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
  ];
@@ -5,6 +5,18 @@ export default {
5
5
  advanced: [],
6
6
  content: (data)=>{
7
7
  return [
8
+ {
9
+ label: "申请售后:",
10
+ ele: 'xd-radio',
11
+ valueKey: "showApplyAfter",
12
+ value: data.showApplyAfter || 'N',
13
+ list: [
14
+ {label: '展示', value: 'Y'},
15
+ {label: '隐藏', value: 'N'},
16
+ ],
17
+ groupKey:'content',
18
+ labelInline: true,
19
+ },
8
20
  {
9
21
  label: '业务类型预览(只是预览模式生效)',
10
22
  ele: "xd-select-list",
@@ -646,6 +658,30 @@ export default {
646
658
  { label: '隐藏', value: '0' },
647
659
  ]
648
660
  },
661
+ {
662
+ label: '售后服务页面路径:',
663
+ ele: 'xd-select-pages-path',
664
+ valueKey: 'refundPath',
665
+ groupKey:'advanced',
666
+ placeholder: '请选择普通售后服务路径',
667
+ value: data['refundPath'] || null,
668
+ setting: {
669
+ router: XdBus.getParentApi('getPagesTree'),
670
+ },
671
+ inline: false,
672
+ },
673
+ {
674
+ label: '极速退款页面路径:',
675
+ ele: 'xd-select-pages-path',
676
+ valueKey: 'refundFastPath',
677
+ groupKey:'advanced',
678
+ placeholder: '请选择极速退款页面路径',
679
+ value: data['refundFastPath'] || null,
680
+ setting: {
681
+ router: XdBus.getParentApi('getPagesTree'),
682
+ },
683
+ inline: false,
684
+ },
649
685
  ].filter(i=>i)
650
686
  },
651
687
  }
@@ -781,6 +781,19 @@
781
781
  </xd-button>
782
782
  </view>
783
783
  </view>
784
+ <view v-else-if="item.action === 'apply_refund'">
785
+ <xd-button
786
+ v-if="showApplyAfter === 'Y'"
787
+ size="small"
788
+ :type="item.type !== undefined ? item.type: 'primary'"
789
+ :radius="bottomBtnRadius + 'rpx'"
790
+ :style="{
791
+ height: bottomBtnHeight + 'rpx',
792
+ lineHeight: bottomBtnHeight + 'rpx',
793
+ }"
794
+ @click="handleAction(item)"
795
+ >{{ item.text }}</xd-button>
796
+ </view>
784
797
  <view v-else>
785
798
  <xd-button
786
799
  size="small"
@@ -904,6 +917,8 @@ export default {
904
917
  dialogPassword: "",
905
918
  dialogCode: null,
906
919
 
920
+ showApplyAfter: "",
921
+
907
922
  //基础
908
923
  radius: 0,
909
924
  backgroundColor: "",
@@ -939,6 +954,8 @@ export default {
939
954
  is_show_all_detail: '',
940
955
  showPreviewCode: true,
941
956
  is_show_product: "",
957
+ refundPath: "",
958
+ refundFastPath: "",
942
959
  btnTextSize: 20,
943
960
 
944
961
  showSupplement: false,
@@ -1045,7 +1062,8 @@ export default {
1045
1062
  custom_content_container_id: this.cid,
1046
1063
  is_show_jhd_code: Number(this.is_show),
1047
1064
  is_show_product: this.is_show_product === "Y" ? 1 : 0,
1048
- version: 'v2'
1065
+ version: 'v2',
1066
+ is_show_after_btn: this.showApplyAfter === 'Y' ? 1 : 0
1049
1067
  },
1050
1068
  })
1051
1069
  .then((res) => {
@@ -1246,10 +1264,13 @@ export default {
1246
1264
  * @param container {object} 业务组件对象自己
1247
1265
  */
1248
1266
  init(container) {
1267
+ this.showApplyAfter = getContainerPropsValue(container, "content.showApplyAfter", "N");
1268
+
1249
1269
  this.bgColor = this.$colorChange(this.mainColor).alpha(0.1).toString();
1250
1270
  this.brandPath = getContainerPropsValue(container, "content.brandPath", {value: "",}).value;
1251
1271
  this.payPath = getContainerPropsValue(container, "content.payPath", {value: "",}).value;
1252
-
1272
+ this.refundPath = getContainerPropsValue(container, "content.refundPath", {value: "",}).value;
1273
+ this.refundFastPath = getContainerPropsValue(container, "content.refundFastPath", {value: "",}).value;
1253
1274
 
1254
1275
  this.packageListPath = getContainerPropsValue(container, "content.packageListPath", { value: "" }).value;
1255
1276
  this.webViewPath = getContainerPropsValue(container, "content.webViewPath", {value: "",}).value;
@@ -1436,6 +1457,30 @@ export default {
1436
1457
  },
1437
1458
  });
1438
1459
  }
1460
+ else if(item.action === 'apply_refund'){
1461
+ this.$xdShowLoading({});
1462
+ jfbRootExec("getSupportQuickRefund", {
1463
+ vm: this,
1464
+ data: {
1465
+ main_order_id: this.main_order_id
1466
+ }
1467
+ }).then(res => {
1468
+ this.$xdHideLoading();
1469
+ //普通退款
1470
+ if(res.is_support_quick_refund !== "Y"){
1471
+ this.$xdUniHelper.navigateTo({
1472
+ url: `${this.refundPath}?order_id=${this.main_order_id}`,
1473
+ });
1474
+ }else{
1475
+ //极速退款
1476
+ this.$xdUniHelper.navigateTo({
1477
+ url: `${this.refundFastPath}?order_id=${this.main_order_id}`,
1478
+ });
1479
+ }
1480
+ }).catch(err => {
1481
+ this.$xdHideLoading();
1482
+ })
1483
+ }
1439
1484
  else {
1440
1485
  console.error(`item.action=${item.action}, 此action不可用`)
1441
1486
  }
@@ -35,4 +35,15 @@ module.exports = [
35
35
  isConsole: true,
36
36
  disabled: true,
37
37
  },
38
+ {
39
+ path: "/aftersale/v1/service-order/order-support-quick-refund",
40
+ title: "售后订单支持快速退款",
41
+ mapFnName: "getSupportQuickRefund",
42
+ isRule: false,
43
+ params: {
44
+ order_id: ['订单ID', 'String', true],
45
+ },
46
+ isConsole: true,
47
+ disabled: true,
48
+ }
38
49
  ];