jufubao-base 1.0.243-beta1 → 1.0.243-beta201

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 (36) 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 +550 -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 +13 -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 +538 -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 +58 -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 +107 -0
  26. package/src/components/JfbBaseAfterSalesList/JfbBaseAfterSalesList.vue +463 -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/JfbBaseOrderDetail/Attr.js +36 -0
  31. package/src/components/JfbBaseOrderDetail/JfbBaseOrderDetail.vue +21 -1
  32. package/src/components/JfbBaseOrderList/Attr.js +36 -0
  33. package/src/components/JfbBaseOrderList/JfbBaseOrderList.vue +30 -0
  34. package/src/components/JfbBaseOrderList/Mock.js +1 -1
  35. package/src/components/JfbBaseOrderList/XdTfkOrderItem.vue +17 -5
  36. package/src/components/JfbBasePhoneLogin/JfbBasePhoneLogin.vue +24 -13
@@ -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
+ };
@@ -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
  }
@@ -865,6 +865,8 @@ export default {
865
865
  dialogPassword: "",
866
866
  dialogCode: null,
867
867
 
868
+ showApplyAfter: "",
869
+
868
870
  //基础
869
871
  radius: 0,
870
872
  backgroundColor: "",
@@ -900,6 +902,8 @@ export default {
900
902
  is_show_all_detail: '',
901
903
  showPreviewCode: true,
902
904
  is_show_product: "",
905
+ refundPath: "",
906
+ refundFastPath: "",
903
907
  btnTextSize: 20,
904
908
  };
905
909
  },
@@ -1195,10 +1199,13 @@ export default {
1195
1199
  * @param container {object} 业务组件对象自己
1196
1200
  */
1197
1201
  init(container) {
1202
+ this.showApplyAfter = getContainerPropsValue(container, "content.showApplyAfter", "");
1203
+
1198
1204
  this.bgColor = this.$colorChange(this.mainColor).alpha(0.1).toString();
1199
1205
  this.brandPath = getContainerPropsValue(container, "content.brandPath", {value: "",}).value;
1200
1206
  this.payPath = getContainerPropsValue(container, "content.payPath", {value: "",}).value;
1201
-
1207
+ this.refundPath = getContainerPropsValue(container, "content.refundPath", {value: "",}).value;
1208
+ this.refundFastPath = getContainerPropsValue(container, "content.refundFastPath", {value: "",}).value;
1202
1209
 
1203
1210
  this.packageListPath = getContainerPropsValue(container, "content.packageListPath", { value: "" }).value;
1204
1211
  this.webViewPath = getContainerPropsValue(container, "content.webViewPath", {value: "",}).value;
@@ -1380,6 +1387,19 @@ export default {
1380
1387
  },
1381
1388
  });
1382
1389
  }
1390
+ else if(item.action === 'apply_refund'){
1391
+ //普通退款
1392
+ if(this.info.is_support_quick_refund !== "Y"){
1393
+ this.$xdUniHelper.navigateTo({
1394
+ url: `${this.refundPath}?order_id=${this.main_order_id}`,
1395
+ });
1396
+ }else{
1397
+ //极速退款
1398
+ this.$xdUniHelper.navigateTo({
1399
+ url: `${this.refundFastPath}?order_id=${this.main_order_id}`,
1400
+ });
1401
+ }
1402
+ }
1383
1403
  else {
1384
1404
  console.error(`item.action=${item.action}, 此action不可用`)
1385
1405
  }
@@ -4,6 +4,18 @@ export default {
4
4
  style: [],
5
5
  content: (data)=>{
6
6
  return [
7
+ {
8
+ label: "申请售后:",
9
+ ele: 'xd-radio',
10
+ valueKey: "showApplyAfter",
11
+ value: data.showApplyAfter || 'N',
12
+ list: [
13
+ {label: '展示', value: 'Y'},
14
+ {label: '隐藏', value: 'N'},
15
+ ],
16
+ groupKey:'content',
17
+ labelInline: true,
18
+ },
7
19
  {
8
20
  label: "布局样式配置",
9
21
  ele: "xd-radio",
@@ -264,6 +276,30 @@ export default {
264
276
  },
265
277
  inline: false,
266
278
  },
279
+ {
280
+ label: '售后服务页面路径:',
281
+ ele: 'xd-select-pages-path',
282
+ valueKey: 'refundPath',
283
+ groupKey:'advanced',
284
+ placeholder: '请选择普通售后服务路径',
285
+ value: data['refundPath'] || null,
286
+ setting: {
287
+ router: XdBus.getParentApi('getPagesTree'),
288
+ },
289
+ inline: false,
290
+ },
291
+ {
292
+ label: '极速退款页面路径:',
293
+ ele: 'xd-select-pages-path',
294
+ valueKey: 'refundFastPath',
295
+ groupKey:'advanced',
296
+ placeholder: '请选择极速退款页面路径',
297
+ value: data['refundFastPath'] || null,
298
+ setting: {
299
+ router: XdBus.getParentApi('getPagesTree'),
300
+ },
301
+ inline: false,
302
+ },
267
303
  ].filter(i=>i)
268
304
  },
269
305
  advanced: [],
@@ -155,7 +155,16 @@
155
155
  v-if="item.buttons.length"
156
156
  >
157
157
  <view v-for="(btn,index) in item.buttons" :key="btn.key">
158
+ <template v-if="btn.action === 'apply_refund'">
159
+ <xd-button
160
+ v-if="showApplyAfter === 'Y'"
161
+ type="default"
162
+ size="mini"
163
+ @click="handleBtnEvent(btn.action, item)"
164
+ >{{ btn.text }}</xd-button>
165
+ </template>
158
166
  <xd-button
167
+ v-else
159
168
  :type="getBtnType(btn.action)"
160
169
  size="mini"
161
170
  @click="handleBtnEvent(btn.action, item)"
@@ -182,6 +191,7 @@
182
191
  :mainColor="mainColor"
183
192
  :isShowOrderNo="isShowOrderNo"
184
193
  :brandTextColor="brandTextColor"
194
+ :showApplyAfter="showApplyAfter"
185
195
  :item="item"
186
196
  @handleBtnEvent="action => handleBtnEvent(action, item)"
187
197
  ></xd-tfk-order-item>
@@ -243,6 +253,8 @@ export default {
243
253
  initStatus: false,
244
254
  loadingList: true,
245
255
 
256
+ showApplyAfter: "",
257
+
246
258
  //基础
247
259
  radius: 0,
248
260
  backgroundColor: "",
@@ -271,6 +283,9 @@ export default {
271
283
  layout_style: "old",
272
284
  isShowOrderNo: "Y",
273
285
 
286
+ refundPath: "",
287
+ refundFastPath: "",
288
+
274
289
  noticeBgc:'',
275
290
  };
276
291
  },
@@ -332,6 +347,7 @@ export default {
332
347
  * @param container {object} 业务组件对象自己
333
348
  */
334
349
  init(container) {
350
+ this.showApplyAfter = getContainerPropsValue(container, "content.showApplyAfter", "N");
335
351
  this.margin = getContainerPropsValue(container, "content.margin", {top: 0, left: 0, right: 0, bottom: 0,});
336
352
  this.radius = getContainerPropsValue(container, "content.radius", 0);
337
353
  this.backgroundColor = getContainerPropsValue(container, "content.backgroundColor", "#f8f8f8");
@@ -360,6 +376,8 @@ export default {
360
376
 
361
377
  this.detailPath = getContainerPropsValue(container, "content.detailPath", { value: "" }).value;
362
378
  this.payPath = getContainerPropsValue(container, "content.payPath", {value: "",}).value;
379
+ this.refundPath = getContainerPropsValue(container, "content.refundPath", {value: "",}).value;
380
+ this.refundFastPath = getContainerPropsValue(container, "content.refundFastPath", {value: "",}).value;
363
381
  this.layout_style = getContainerPropsValue(container, "content.layout_style", "old");
364
382
  this.isShowOrderNo = getContainerPropsValue(container, "content.isShowOrderNo", "Y");
365
383
  this.tabList = getContainerPropsValue(container, "content.orderTypeList", []).map((item) => {
@@ -426,6 +444,18 @@ export default {
426
444
  this.$xdUniHelper.navigateTo({
427
445
  url: `${this.payPath}?order_id=${item.pay_order_id}&main_order_id=${item.main_order_id}`,
428
446
  });
447
+ } else if( action === 'apply_refund'){
448
+ //普通退款
449
+ if(item.is_support_quick_refund !== "Y"){
450
+ this.$xdUniHelper.navigateTo({
451
+ url: `${this.refundPath}?order_id=${item.main_order_id}`,
452
+ });
453
+ }else{
454
+ //极速退款
455
+ this.$xdUniHelper.navigateTo({
456
+ url: `${this.refundFastPath}?order_id=${item.main_order_id}`,
457
+ });
458
+ }
429
459
  }
430
460
  },
431
461
 
@@ -25,7 +25,7 @@ module.exports = {
25
25
  "product_thumb": "\/\/sandbox-img.jufubao.cn\/uploads\/20230506\/40018e35f8d9b3bcc2f180cfe073ce28.png",
26
26
  "sale_price": 2678
27
27
  }],
28
- "buttons": [{"text": "支付", "action": "pay"}, {"text": "取消订单", "action": "cancel_unpaid"}]
28
+ "buttons": [{"text": "支付", "action": "pay"}, {"text": "取消订单", "action": "cancel_unpaid"}, { "text": "申请退款", "action": "apply_refund"}]
29
29
  },
30
30
  {
31
31
  "main_order_id": "m513033785675509760",
@@ -83,10 +83,21 @@
83
83
  </view>
84
84
  <view v-if="item.buttons.length" class="prod_footer">
85
85
  <view style="flex: 1;"></view>
86
- <view class="btn"
87
- v-for="(btn,index) in item.buttons" :key="btn.key"
88
- @click="handleBtnEvent(btn.action, item)"
89
- >{{btn.text}}</view>
86
+ <template v-for="(btn,index) in item.buttons">
87
+ <template v-if="btn.action === 'apply_refund'">
88
+ <view class="btn"
89
+ v-if="showApplyAfter === 'Y'"
90
+ :key="btn.key"
91
+ @click="handleBtnEvent(btn.action, item)"
92
+ >{{btn.text}}</view>
93
+ </template>
94
+ <view class="btn"
95
+ v-else
96
+ :key="btn.key"
97
+ @click="handleBtnEvent(btn.action, item)"
98
+ >{{btn.text}}</view>
99
+ </template>
100
+
90
101
  </view>
91
102
  </view>
92
103
  </template>
@@ -106,7 +117,8 @@
106
117
  isShowOrderNo: {
107
118
  type: String,
108
119
  },
109
- brandTextColor: String
120
+ brandTextColor: String,
121
+ showApplyAfter: String
110
122
  },
111
123
  data(){
112
124
  return{