jufubao-base 1.0.243-beta205 → 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-beta205",
3
+ "version": "1.0.243-beta207",
4
4
  "private": false,
5
5
  "description": "聚福宝业务组件基础插件包",
6
6
  "main": "index.js",
@@ -461,6 +461,9 @@
461
461
  .sec_body{
462
462
  font-size: 24rpx;
463
463
  font-weight: 400;
464
+ .sec_prod + .sec_prod{
465
+ margin-top: 24rpx;
466
+ }
464
467
  .sec_item{
465
468
  display: flex;
466
469
  align-items: center;
@@ -503,8 +506,9 @@
503
506
  }
504
507
  }
505
508
  .sec_r{
506
- width: 100rpx;
509
+
507
510
  ._copy{
511
+ width: 80rpx;
508
512
  padding: 4rpx 20rpx;
509
513
  border-radius: 24rpx;
510
514
  color: #CCCCCC;
@@ -58,8 +58,8 @@
58
58
  :size="28"
59
59
  ></xd-font-icon>
60
60
  {{item.business_name}}</view>
61
- <view class="service_type" :style="getMethodTypeStyle(item.after_sale_method)">
62
- <xd-font-icon :icon="getMethodTypeIcon(item.after_sale_method)" size="32"></xd-font-icon>
61
+ <view class="service_type" :style="[item.colorStyle]">
62
+ <xd-font-icon :icon="item.icon" size="32"></xd-font-icon>
63
63
  <view style="margin-left: 8rpx;">{{ item.after_sale_method_name }}</view>
64
64
  </view>
65
65
  </view>
@@ -196,35 +196,7 @@
196
196
 
197
197
  this.afterSalesDetailPath = getContainerPropsValue(container, "content.afterSalesDetailPath", { value: "" }).value;
198
198
  },
199
- getMethodTypeStyle(method){
200
- switch (method) {
201
- case "refund_and_good":
202
- return { color: "#FF5733" };
203
- case "refund":
204
- return { color: "#FF5733" };
205
- case "exchange":
206
- return { color: "#2A82E4" };
207
- case "again":
208
- return { color: "#43CF7C" };
209
- case "good":
210
- return { color: "#FF8D1A" };
211
- case "zero":
212
- return { color: "#FF8D1A" };
213
- default:
214
- return {};
215
- }
216
- },
217
- getMethodTypeIcon(method){
218
- let method_icon = {
219
- 'refund_and_good': "icontuikuan",
220
- 'refund': "icontuihuo",
221
- 'exchange': "iconhuanhuo",
222
- 'again': "iconbufa",
223
- 'zero': 'iconhuanhuo'
224
- }
225
- return method_icon[method] || "";
226
-
227
- },
199
+
228
200
  handleSearch(e){
229
201
  console.log("handleSearch",e)
230
202
  this.page_token = 1;
@@ -265,6 +237,34 @@
265
237
  })
266
238
  }, '确定删除当前工单吗?')
267
239
  },
240
+ getMethodTypeStyle(method){
241
+ switch (method) {
242
+ case "refund_and_good":
243
+ return { color: "#FF5733" };
244
+ case "refund":
245
+ return { color: "#FF5733" };
246
+ case "exchange":
247
+ return { color: "#2A82E4" };
248
+ case "again":
249
+ return { color: "#43CF7C" };
250
+ case "good":
251
+ return { color: "#FF8D1A" };
252
+ case "zero":
253
+ return { color: "#FF8D1A" };
254
+ default:
255
+ return {};
256
+ }
257
+ },
258
+ getMethodTypeIcon(method){
259
+ let method_icon = {
260
+ 'refund_and_good': "icontuikuan",
261
+ 'refund': "icontuihuo",
262
+ 'exchange': "iconhuanhuo",
263
+ 'again': "iconbufa",
264
+ 'zero': 'iconhuanhuo'
265
+ }
266
+ return method_icon[method] || "";
267
+ },
268
268
  getList() {
269
269
  this.$xdShowLoading({});
270
270
  jfbRootExec("getAfterServiceOrderList", {
@@ -285,6 +285,8 @@
285
285
  prod.thumb = getServiceUrl(prod.thumb);
286
286
  return prod;
287
287
  })
288
+ item.colorStyle = this.getMethodTypeStyle(item.after_sale_method);
289
+ item.icon = this.getMethodTypeIcon(item.after_sale_method);
288
290
  return item;
289
291
  });
290
292
  if (this.page_token === 1) {
@@ -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不可用`)