jufubao-base 1.0.243-beta204 → 1.0.243-beta206
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
|
@@ -112,6 +112,9 @@
|
|
|
112
112
|
</view>
|
|
113
113
|
<view class="_main">抱歉,该订单已无可申请售后商品</view>
|
|
114
114
|
<view class="_sub">若您对商品售后有疑问,请联系客服处理</view>
|
|
115
|
+
<view style="margin-top: 40rpx;">
|
|
116
|
+
<xd-button type="primary" width="360rpx" @click="toAfterSaleDetail">售后详情</xd-button>
|
|
117
|
+
</view>
|
|
115
118
|
</view>
|
|
116
119
|
<view slot="btn"></view>
|
|
117
120
|
</xd-dailog>
|
|
@@ -156,6 +159,7 @@
|
|
|
156
159
|
service_product_list: [],
|
|
157
160
|
customer_feedback: "",
|
|
158
161
|
showDialog: false,
|
|
162
|
+
last_service_order_id: "",
|
|
159
163
|
|
|
160
164
|
productList: [],
|
|
161
165
|
afterSalesTypes: [],
|
|
@@ -287,7 +291,8 @@
|
|
|
287
291
|
}
|
|
288
292
|
}).then(res => {
|
|
289
293
|
this.$xdHideLoading();
|
|
290
|
-
const { product_list, base_info } = res;
|
|
294
|
+
const { product_list, base_info, last_service_order_id } = res;
|
|
295
|
+
this.last_service_order_id = last_service_order_id;
|
|
291
296
|
if(product_list.length === 0){
|
|
292
297
|
this.showDialog = true;
|
|
293
298
|
}
|
|
@@ -311,6 +316,11 @@
|
|
|
311
316
|
}
|
|
312
317
|
})
|
|
313
318
|
},
|
|
319
|
+
toAfterSaleDetail(){
|
|
320
|
+
this.$xdUniHelper.navigateTo({
|
|
321
|
+
url: `${this.refundStepPath}?service_order_id=${this.last_service_order_id}`,
|
|
322
|
+
});
|
|
323
|
+
},
|
|
314
324
|
handleApplyRefund(){
|
|
315
325
|
let { order_id, after_sale_method, after_sale_type, customer_feedback } = this;
|
|
316
326
|
if(!after_sale_type) {
|
|
@@ -569,7 +579,7 @@
|
|
|
569
579
|
}
|
|
570
580
|
|
|
571
581
|
.no_after_prod{
|
|
572
|
-
padding: 100rpx 0;
|
|
582
|
+
padding: 100rpx 0 20rpx;
|
|
573
583
|
font-size: 28rpx;
|
|
574
584
|
._icon{
|
|
575
585
|
margin-bottom: 20rpx;
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
<view class="sec_tag _new">新商品</view>
|
|
85
85
|
</view>
|
|
86
86
|
<view class="sec_body">
|
|
87
|
-
<SecProd v-for="(item,i) in newProductList" :key="i" :item="item"></SecProd>
|
|
87
|
+
<SecProd class="sec_prod" v-for="(item,i) in newProductList" :key="i" :item="item"></SecProd>
|
|
88
88
|
</view>
|
|
89
89
|
</view>
|
|
90
90
|
|
|
@@ -282,7 +282,7 @@
|
|
|
282
282
|
styles: this.styles,
|
|
283
283
|
title: "提示",
|
|
284
284
|
width: '90%',
|
|
285
|
-
content: '
|
|
285
|
+
content: '确定取消当前工单吗?',
|
|
286
286
|
confirmText: '确认',
|
|
287
287
|
isHtml: true,
|
|
288
288
|
cancelText: '取消',
|
|
@@ -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,12 +506,14 @@
|
|
|
503
506
|
}
|
|
504
507
|
}
|
|
505
508
|
.sec_r{
|
|
506
|
-
|
|
509
|
+
|
|
507
510
|
._copy{
|
|
511
|
+
width: 80rpx;
|
|
508
512
|
padding: 4rpx 20rpx;
|
|
509
513
|
border-radius: 24rpx;
|
|
510
514
|
color: #CCCCCC;
|
|
511
515
|
border: 1px solid #CCCCCC;
|
|
516
|
+
text-align: center;
|
|
512
517
|
}
|
|
513
518
|
}
|
|
514
519
|
}
|
|
@@ -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="
|
|
62
|
-
<xd-font-icon :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
|
-
|
|
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) {
|
|
@@ -380,11 +382,11 @@
|
|
|
380
382
|
border-bottom: 1px solid #DDD;
|
|
381
383
|
|
|
382
384
|
.filter_item{
|
|
383
|
-
margin: 0
|
|
385
|
+
margin: 0 110rpx;
|
|
384
386
|
font-size: 28rpx;
|
|
385
387
|
color: var(--tab-color);
|
|
386
388
|
&.active{
|
|
387
|
-
border-bottom:
|
|
389
|
+
border-bottom: 2px solid var(--active-tab-color);
|
|
388
390
|
color: var(--active-tab-color);
|
|
389
391
|
}
|
|
390
392
|
}
|