Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
Y
yudao-cloud
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
hblj
yudao-cloud
Commits
6e92e716
提交
6e92e716
authored
4月 27, 2019
作者:
sin
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
- 申请退货
- 和物流
上级
983f00ab
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
99 行增加
和
42 行删除
+99
-42
order.js
mobile-web/src/api/order.js
+12
-2
router.js
mobile-web/src/config/router.js
+1
-1
detail.vue
mobile-web/src/page/user/aftersale/detail.vue
+43
-12
track.vue
mobile-web/src/page/user/aftersale/track.vue
+40
-24
info.vue
mobile-web/src/page/user/order/info.vue
+1
-1
logistics.vue
mobile-web/src/page/user/order/logistics.vue
+2
-2
没有找到文件。
mobile-web/src/api/order.js
浏览文件 @
6e92e716
...
@@ -133,9 +133,9 @@ export function getCartCalcSkuPrice(skuId) {
...
@@ -133,9 +133,9 @@ export function getCartCalcSkuPrice(skuId) {
// 物流信息
// 物流信息
export
function
getLogisticsInfo
(
params
)
{
export
function
get
Order
LogisticsInfo
(
params
)
{
return
request
({
return
request
({
url
:
'/order-api/users/order_logistics/
logistics_info
'
,
url
:
'/order-api/users/order_logistics/
info_order
'
,
method
:
'get'
,
method
:
'get'
,
params
:
{
params
:
{
...
params
,
...
params
,
...
@@ -143,6 +143,16 @@ export function getLogisticsInfo(params) {
...
@@ -143,6 +143,16 @@ export function getLogisticsInfo(params) {
});
});
}
}
export
function
getLogisticsInfo
(
logisticsId
)
{
return
request
({
url
:
'/order-api/users/order_logistics/info'
,
method
:
'GET'
,
params
:
{
logisticsId
,
},
});
}
// 退货信息
// 退货信息
...
...
mobile-web/src/config/router.js
浏览文件 @
6e92e716
...
@@ -147,7 +147,7 @@ const routes = [
...
@@ -147,7 +147,7 @@ const routes = [
}
}
},
},
{
{
path
:
'/user/aftersale/track/:id'
,
path
:
'/user/aftersale/track/:id
/:serviceNumber
'
,
component
:
()
=>
import
(
'../page/user/aftersale/track'
),
component
:
()
=>
import
(
'../page/user/aftersale/track'
),
meta
:
{
meta
:
{
title
:
'进度详情'
title
:
'进度详情'
...
...
mobile-web/src/page/user/aftersale/detail.vue
浏览文件 @
6e92e716
<
template
>
<
template
>
<div>
<div>
<headerNav
title=
"服务单详情"
/>
<headerNav
title=
"服务单详情"
/>
<van-steps
:active=
"active"
>
<van-step>
提交申请
</van-step>
<van-step>
客服审核
</van-step>
<van-step>
客户确认
</van-step>
<van-step>
仓库收货
</van-step>
<van-step>
完成
</van-step>
</van-steps>
<van-cell
class=
"logistics"
to=
"/user/aftersale/track/1"
title=
"您的服务单435703816的商品已收到"
<div
v-if=
"serviceType === 1"
>
label=
"2018-08-31 21:04:03"
is-link
/>
<van-steps
:active=
"active"
>
<van-step>
提交申请
</van-step>
<van-step>
客服审核
</van-step>
<van-step>
客户确认
</van-step>
<van-step>
仓库收货
</van-step>
<van-step>
完成
</van-step>
</van-steps>
<van-cell
class=
"logistics"
:to=
"`/user/aftersale/track/$
{lastLogisticsInfo.id}/${serviceNumber}`"
:title="lastLogisticsDetail.logisticsInformation"
:label="lastLogisticsDetail.logisticsTimeText" is-link/>
</div>
<div
v-if=
"serviceType === 2"
>
<van-steps
v-if=
"serviceType === 2"
:active=
"active"
>
<van-step>
提交申请
</van-step>
<van-step>
客服审核
</van-step>
<van-step>
客户确认
</van-step>
<van-step>
仓库收货
</van-step>
<van-step>
完成
</van-step>
</van-steps>
</div>
<div
style=
"height:15px;"
></div>
<div
style=
"height:15px;"
></div>
<div
v-for=
"(product,i) in products"
:key=
"i"
>
<div
v-for=
"(product,i) in products"
:key=
"i"
>
...
@@ -21,7 +37,8 @@
...
@@ -21,7 +37,8 @@
<van-cell-group>
<van-cell-group>
<van-cell
title=
"服务单号"
:value=
"serviceNumber"
/>
<van-cell
title=
"服务单号"
:value=
"serviceNumber"
/>
<van-cell
title=
"申请时间"
:value=
"applyTime"
/>
<van-cell
title=
"申请时间"
:value=
"applyTime"
/>
<van-cell
title=
"服务类型"
:value=
"serviceType"
/>
<van-cell
title=
"服务类型"
:value=
"serviceTypeText"
/>
<van-cell
title=
"退款金额"
:value=
"refundPrice / 100"
/>
</van-cell-group>
</van-cell-group>
<div
style=
"height:15px;"
></div>
<div
style=
"height:15px;"
></div>
...
@@ -45,6 +62,10 @@
...
@@ -45,6 +62,10 @@
serviceNumber
:
-
1
,
serviceNumber
:
-
1
,
applyTime
:
'-1'
,
applyTime
:
'-1'
,
serviceType
:
''
,
serviceType
:
''
,
serviceTypeText
:
''
,
refundPrice
:
0
,
lastLogisticsInfo
:
{},
lastLogisticsDetail
:
{},
products
:
[
products
:
[
{
{
imageURL
:
'https://pop.nosdn.127.net/19e33c9b-6c22-4a4b-96da-1cb7afb32712'
,
imageURL
:
'https://pop.nosdn.127.net/19e33c9b-6c22-4a4b-96da-1cb7afb32712'
,
...
@@ -59,10 +80,20 @@
...
@@ -59,10 +80,20 @@
const
{
orderId
}
=
this
.
$route
.
params
;
const
{
orderId
}
=
this
.
$route
.
params
;
getOrderReturnInfo
(
orderId
).
then
(
res
=>
{
getOrderReturnInfo
(
orderId
).
then
(
res
=>
{
console
.
log
(
'getOrderReturnInfo success'
,
res
)
console
.
log
(
'getOrderReturnInfo success'
,
res
)
const
{
returnInfo
,
orderItems
}
=
res
;
const
{
returnInfo
,
orderItems
,
lastLogisticsInfo
}
=
res
;
this
.
serviceType
=
returnInfo
.
serviceTypeText
this
.
lastLogisticsInfo
=
lastLogisticsInfo
if
(
lastLogisticsInfo
&&
lastLogisticsInfo
.
lastLogisticsDetail
)
{
const
lastLogisticsDetail
=
lastLogisticsInfo
.
lastLogisticsDetail
;
this
.
lastLogisticsDetail
=
{
...
lastLogisticsDetail
,
logisticsTimeText
:
moment
(
lastLogisticsDetail
.
logisticsTime
).
format
(
"YYYY-MM-DD HH:mm"
),
}
}
this
.
serviceType
=
returnInfo
.
serviceType
this
.
serviceTypeText
=
returnInfo
.
serviceTypeText
this
.
serviceNumber
=
returnInfo
.
serviceNumber
this
.
serviceNumber
=
returnInfo
.
serviceNumber
this
.
applyTime
=
moment
(
returnInfo
.
createTime
).
format
(
"YYYY-MM-DD HH:mm"
)
this
.
applyTime
=
moment
(
returnInfo
.
createTime
).
format
(
"YYYY-MM-DD HH:mm"
)
this
.
refundPrice
=
returnInfo
.
refundPrice
this
.
products
=
orderItems
.
map
(
item
=>
{
this
.
products
=
orderItems
.
map
(
item
=>
{
return
{
return
{
...
item
,
...
item
,
...
...
mobile-web/src/page/user/aftersale/track.vue
浏览文件 @
6e92e716
<
template
>
<
template
>
<div
style=
"background: #f7f7f7;"
>
<div
style=
"background: #f7f7f7;"
>
<headerNav
title=
"进度详情"
/>
<headerNav
title=
"进度详情"
/>
<van-cell-group>
<van-cell-group>
<van-cell
title=
"服务单号"
value=
"18081609422771742"
/>
<van-cell
title=
"服务单号"
:value=
"serviceNumber"
/>
</van-cell-group>
</van-cell-group>
<van-steps
direction=
"vertical"
:active=
"0"
active-color=
"#f60"
style=
"margin-top: 15px;"
>
<van-steps
direction=
"vertical"
:active=
"0"
active-color=
"#f60"
style=
"margin-top: 15px;"
>
<van-step>
<van-step
v-for=
"(item, itemIndex) in details"
:key=
"detailIndex"
>
<h3>
您的服务单435703816的商品已收到
</h3>
<h3>
{{
item
.
logisticsInformation
}}
</h3>
<p>
2016-07-12 12:40
</p>
<p>
{{
item
.
logisticsTimeText
}}
</p>
</van-step>
</van-step>
<van-step>
</van-steps>
<h3>
【城市】物流状态2
</h3>
<p>
2016-07-11 10:00
</p>
</div>
</van-step>
<van-step>
<h3>
快件已发货
</h3>
<p>
2016-07-10 09:30
</p>
</van-step>
</van-steps>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
export
default
{
}
import
moment
from
'moment'
;
import
{
getLogisticsInfo
}
from
'../../../api/order'
;
export
default
{
data
()
{
return
{
serviceNumber
:
''
,
details
:
[],
}
},
mounted
()
{
console
.
log
(
this
.
$route
.
params
)
const
{
id
,
serviceNumber
}
=
this
.
$route
.
params
;
this
.
serviceNumber
=
serviceNumber
getLogisticsInfo
(
id
).
then
(
res
=>
{
const
{
details
}
=
res
;
this
.
details
=
details
.
map
(
item
=>
{
return
{
...
item
,
logisticsTimeText
:
moment
(
item
.
logisticsTime
).
format
(
"YYYY-MM-DD HH:mm"
)
}
})
})
},
}
</
script
>
</
script
>
<
style
>
<
style
>
...
...
mobile-web/src/page/user/order/info.vue
浏览文件 @
6e92e716
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
</van-steps>
</van-steps>
<van-cell
v-if=
"orderInfo.status >= 2 "
<van-cell
v-if=
"orderInfo.status >= 2 "
class=
"logistics"
class=
"logistics"
to=
"/user/order/logistics/1
"
:to=
"`/user/order/logistics/$
{orderInfo.id}`
"
:title="latestLogisticsDetail.logisticsInformation"
:title="latestLogisticsDetail.logisticsInformation"
:label="latestLogisticsDetail.logisticsTimeText"
:label="latestLogisticsDetail.logisticsTimeText"
icon="logistics"
icon="logistics"
...
...
mobile-web/src/page/user/order/logistics.vue
浏览文件 @
6e92e716
...
@@ -24,7 +24,7 @@
...
@@ -24,7 +24,7 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
{
getLogisticsInfo
}
from
'../../../api/order'
;
import
{
get
Order
LogisticsInfo
}
from
'../../../api/order'
;
export
default
{
export
default
{
data
()
{
data
()
{
...
@@ -36,7 +36,7 @@
...
@@ -36,7 +36,7 @@
},
},
mounted
()
{
mounted
()
{
const
{
id
}
=
this
.
$route
.
params
;
const
{
id
}
=
this
.
$route
.
params
;
getLogisticsInfo
({
get
Order
LogisticsInfo
({
orderId
:
id
,
orderId
:
id
,
}).
then
(
res
=>
{
}).
then
(
res
=>
{
const
{
orderId
,
orderNo
,
logistics
}
=
res
;
const
{
orderId
,
orderNo
,
logistics
}
=
res
;
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论