jufubao-base 1.0.221 → 1.0.222-beta2
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 +1 -1
- package/src/components/JfbBaseAfterOrderList/Attr.js +13 -0
- package/src/components/JfbBaseAfterOrderList/JfbBaseAfterOrderList.vue +33 -1
- package/src/components/JfbBaseAfterSales/Api.js +58 -0
- package/src/components/JfbBaseAfterSales/Attr.js +25 -0
- package/src/components/JfbBaseAfterSales/JfbBaseAfterSales.vue +505 -0
- package/src/components/JfbBaseAfterSales/JfbBaseAfterSalesLess.less +79 -0
- package/src/components/JfbBaseAfterSales/JfbBaseAfterSalesMixin.js +30 -0
- package/src/components/JfbBaseAfterSales/Mock.js +13 -0
- package/src/components/JfbBaseAfterSales/refundOrderInfo.vue +96 -0
- package/src/components/JfbBaseAfterSalesDetail/Api.js +41 -0
- package/src/components/JfbBaseAfterSalesDetail/Attr.js +14 -0
- package/src/components/JfbBaseAfterSalesDetail/JfbBaseAfterSalesDetail.vue +518 -0
- package/src/components/JfbBaseAfterSalesDetail/JfbBaseAfterSalesDetailLess.less +79 -0
- package/src/components/JfbBaseAfterSalesDetail/JfbBaseAfterSalesDetailMixin.js +30 -0
- package/src/components/JfbBaseAfterSalesDetail/Mock.js +13 -0
- package/src/components/JfbBaseAfterSalesDetail/secProd.vue +54 -0
- package/src/components/JfbBaseAfterSalesFast/Api.js +30 -0
- package/src/components/JfbBaseAfterSalesFast/Attr.js +32 -0
- package/src/components/JfbBaseAfterSalesFast/JfbBaseAfterSalesFast.vue +273 -0
- package/src/components/JfbBaseAfterSalesFast/JfbBaseAfterSalesFastLess.less +79 -0
- package/src/components/JfbBaseAfterSalesFast/JfbBaseAfterSalesFastMixin.js +30 -0
- package/src/components/JfbBaseAfterSalesFast/Mock.js +13 -0
- package/src/components/JfbBaseAfterSalesList/Api.js +18 -0
- package/src/components/JfbBaseAfterSalesList/Attr.js +48 -0
- package/src/components/JfbBaseAfterSalesList/JfbBaseAfterSalesList.vue +454 -0
- package/src/components/JfbBaseAfterSalesList/JfbBaseAfterSalesListLess.less +79 -0
- package/src/components/JfbBaseAfterSalesList/JfbBaseAfterSalesListMixin.js +30 -0
- package/src/components/JfbBaseAfterSalesList/Mock.js +5 -0
- package/src/components/JfbBaseOrderDetail/Attr.js +12 -0
- package/src/components/JfbBaseOrderDetail/JfbBaseOrderDetail.vue +4 -0
- package/src/components/JfbBaseOrderList/Attr.js +36 -0
- package/src/components/JfbBaseOrderList/JfbBaseOrderList.vue +30 -0
- package/src/components/JfbBaseOrderList/Mock.js +1 -1
- 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 {
|
|
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 {
|
|
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'
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
created() {
|
|
23
|
+
|
|
24
|
+
//@AttrDataCreated
|
|
25
|
+
this.Attr = this.$xdUniHelper.customClone(Attr);
|
|
26
|
+
//@EndAttrDataCreated
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
},
|
|
30
|
+
}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<view class="order_info">
|
|
3
|
+
<view class="order_number">订单号:{{ orderNumber }}</view>
|
|
4
|
+
<view class="prod_list">
|
|
5
|
+
<view class="prod_item" v-for="(item, i) in list" :key="i">
|
|
6
|
+
<view class="prod_img">
|
|
7
|
+
<image :src="item.product_thumb" mode="aspectFit"></image>
|
|
8
|
+
</view>
|
|
9
|
+
<view class="prod_info">
|
|
10
|
+
<view class="prod_title">{{ item.product_name }}</view>
|
|
11
|
+
<view class="prod_number">申请数量:×{{ item.product_num }}</view>
|
|
12
|
+
</view>
|
|
13
|
+
<view v-if="showRadio" style="margin-left: 10rpx;">
|
|
14
|
+
<xd-radio></xd-radio>
|
|
15
|
+
</view>
|
|
16
|
+
</view>
|
|
17
|
+
</view>
|
|
18
|
+
</view>
|
|
19
|
+
</template>
|
|
20
|
+
|
|
21
|
+
<script>
|
|
22
|
+
import XdRadio from "@/components/XdRadio/XdRadio"
|
|
23
|
+
import XdNumber from "@/components/XdNumber/XdNumber";
|
|
24
|
+
export default {
|
|
25
|
+
components: {
|
|
26
|
+
XdRadio,
|
|
27
|
+
XdNumber
|
|
28
|
+
},
|
|
29
|
+
props: {
|
|
30
|
+
list: {
|
|
31
|
+
type: Array,
|
|
32
|
+
default() {
|
|
33
|
+
return []
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
orderNumber: {
|
|
37
|
+
type: String,
|
|
38
|
+
default: ""
|
|
39
|
+
},
|
|
40
|
+
showRadio: {
|
|
41
|
+
type: Boolean,
|
|
42
|
+
default: false
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
</script>
|
|
47
|
+
|
|
48
|
+
<style lang="less" scoped>
|
|
49
|
+
.order_info{
|
|
50
|
+
background-color: #FFFFFF;
|
|
51
|
+
margin-top: 20rpx;
|
|
52
|
+
border-radius: 16rpx;
|
|
53
|
+
font-size: 24rpx;
|
|
54
|
+
padding: 32rpx;
|
|
55
|
+
.order_number{
|
|
56
|
+
padding-bottom: 24rpx;
|
|
57
|
+
border-bottom: 1px solid #F2F2F2;
|
|
58
|
+
margin-bottom: 32rpx;
|
|
59
|
+
}
|
|
60
|
+
.prod_item{
|
|
61
|
+
display: flex;
|
|
62
|
+
align-items: center;
|
|
63
|
+
margin-bottom: 40rpx;
|
|
64
|
+
&:last-child{
|
|
65
|
+
margin-bottom: 0;
|
|
66
|
+
}
|
|
67
|
+
.prod_img{
|
|
68
|
+
width: 140rpx;
|
|
69
|
+
height: 140rpx;
|
|
70
|
+
border-radius: 16rpx;
|
|
71
|
+
background-color: #F0F0F0;
|
|
72
|
+
image{
|
|
73
|
+
width: 100%;
|
|
74
|
+
height: 100%;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
.prod_info{
|
|
78
|
+
margin-left: 20rpx;
|
|
79
|
+
flex: 1;
|
|
80
|
+
align-self: stretch;
|
|
81
|
+
display: flex;
|
|
82
|
+
flex-direction: column;
|
|
83
|
+
justify-content: space-between;
|
|
84
|
+
.prod_title{
|
|
85
|
+
margin-bottom: 10rpx;
|
|
86
|
+
font-size: 28rpx;
|
|
87
|
+
color: #333333;
|
|
88
|
+
}
|
|
89
|
+
.prod_number{
|
|
90
|
+
color: #999999;
|
|
91
|
+
font-size: 24rpx;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
</style>
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
/**
|
|
3
|
+
* @description 接口配置,
|
|
4
|
+
* 在设置方法名字当时候,别忘记加上【模块名字】:After
|
|
5
|
+
* @type {*[]}
|
|
6
|
+
*/
|
|
7
|
+
module.exports = [
|
|
8
|
+
{
|
|
9
|
+
mapFnName: "getAfterServiceOrder",
|
|
10
|
+
path: "/aftersale/v1/service-order/get",
|
|
11
|
+
title: "服务单详情",
|
|
12
|
+
isRule: false,
|
|
13
|
+
params: {
|
|
14
|
+
service_order_id: ['服务单订单号', 'String', true],
|
|
15
|
+
},
|
|
16
|
+
isConsole: true,
|
|
17
|
+
disabled: true,
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
mapFnName: "delAfterServiceOrder",
|
|
21
|
+
path: "/aftersale/v1/service-order/del",
|
|
22
|
+
title: "删除服务单",
|
|
23
|
+
isRule: false,
|
|
24
|
+
params: {
|
|
25
|
+
service_order_id: ['服务单订单号', 'String', true],
|
|
26
|
+
},
|
|
27
|
+
isConsole: true,
|
|
28
|
+
disabled: true,
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
mapFnName: "cancelAfterServiceOrder",
|
|
32
|
+
path: "/aftersale/v1/service-order/cancel",
|
|
33
|
+
title: "服务单取消",
|
|
34
|
+
isRule: false,
|
|
35
|
+
params: {
|
|
36
|
+
service_order_id: ['服务单订单号', 'String', true],
|
|
37
|
+
},
|
|
38
|
+
isConsole: true,
|
|
39
|
+
disabled: true,
|
|
40
|
+
},
|
|
41
|
+
];
|