Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
Y
yudao-cloud
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
hblj
yudao-cloud
Commits
01e5404e
提交
01e5404e
authored
4月 25, 2019
作者:
sin
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
添加申请退货
上级
1c5f413c
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
36 行增加
和
12 行删除
+36
-12
package.json
mobile-web/package.json
+3
-3
order.js
mobile-web/src/api/order.js
+23
-0
router.js
mobile-web/src/config/router.js
+1
-1
apply.vue
mobile-web/src/page/user/aftersale/apply.vue
+0
-0
info.vue
mobile-web/src/page/user/order/info.vue
+9
-8
没有找到文件。
mobile-web/package.json
浏览文件 @
01e5404e
...
...
@@ -11,16 +11,16 @@
"dependencies"
:
{
"axios"
:
"^0.18.0"
,
"moment"
:
"^2.24.0"
,
"pingpp-js"
:
"^2.2.13"
,
"vant"
:
"^1.3.1"
,
"vue"
:
"^2.5.17"
,
"vue-router"
:
"^3.0.1"
,
"vuex"
:
"^3.1.0"
,
"pingpp-js"
:
"^2.2.13"
"vuex"
:
"^3.1.0"
},
"devDependencies"
:
{
"@vue/cli-plugin-babel"
:
"^3.4.1"
,
"@vue/cli-plugin-eslint"
:
"^3.4.1"
,
"@vue/cli-service"
:
"^3.
4.1
"
,
"@vue/cli-service"
:
"^3.
6.0
"
,
"babel-plugin-import"
:
"^1.8.0"
,
"less"
:
"^3.8.1"
,
"less-loader"
:
"^4.1.0"
,
...
...
mobile-web/src/api/order.js
浏览文件 @
01e5404e
...
...
@@ -142,3 +142,26 @@ export function getLogisticsInfo(params) {
}
});
}
// 退货信息
export
function
getOrderReturnReason
()
{
return
request
({
url
:
'/order-api/users/order_return/reason'
,
method
:
'get'
,
});
}
export
function
orderReturnApply
(
params
)
{
return
request
({
headers
:
{
'Content-Type'
:
'application/json'
,
},
url
:
'/order-api/users/order_return/apply'
,
method
:
'POST'
,
data
:
{
...
params
,
},
});
}
mobile-web/src/config/router.js
浏览文件 @
01e5404e
...
...
@@ -133,7 +133,7 @@ const routes = [
}
},
{
path
:
'/user/aftersale/apply'
,
path
:
'/user/aftersale/apply
/:orderId
'
,
component
:
()
=>
import
(
'../page/user/aftersale/apply'
),
meta
:
{
title
:
'申请售后'
...
...
mobile-web/src/page/user/aftersale/apply.vue
浏览文件 @
01e5404e
差异被折叠。
点击展开。
mobile-web/src/page/user/order/info.vue
浏览文件 @
01e5404e
...
...
@@ -46,7 +46,7 @@
</van-cell-group>
<div
class=
"footer"
>
<div
class=
"munu"
>
<van-button
v-if=
"orderInfo.status === 3 "
size=
"small"
>
退货
</van-button>
<van-button
size=
"small"
>
申请售后
</van-button>
<van-button
v-if=
"orderInfo.status === 3 "
size=
"small"
v-on:click=
"clickConfirmReceiving(orderId)"
>
确认收货
</van-button>
<van-button
v-if=
"orderInfo.status === 1 "
size=
"small"
type=
"danger"
@
click=
"goPay(orderInfo.id)"
>
支付
</van-button>
</div>
...
...
@@ -74,12 +74,6 @@
price
:
'499'
,
quantity
:
2
},
{
imageURL
:
'https://pop.nosdn.127.net/19e33c9b-6c22-4a4b-96da-1cb7afb32712'
,
title
:
'BEYOND博洋家纺 床上套件 秋冬保暖纯棉床单被套 双人被罩 磨毛全棉印花床品四件套'
,
price
:
'499'
,
quantity
:
2
},
]
}
},
...
...
@@ -97,7 +91,7 @@
const
{
id
}
=
this
.
$route
.
params
;
this
.
orderId
=
id
;
getOrderInfo
(
id
).
then
(
res
=>
{
const
{
status
,
recipient
,
latestLogisticsDetail
}
=
res
;
const
{
status
,
recipient
,
latestLogisticsDetail
,
orderItems
}
=
res
;
// 提交订单、配送中、交易成功
if
([
1
,
2
].
indexOf
(
status
)
!==
-
1
)
{
this
.
active
=
0
...
...
@@ -126,6 +120,13 @@
...
latestLogisticsDetail
,
logisticsTimeText
:
logisticsTimeText
,
}
this
.
products
=
orderItems
.
map
(
item
=>
{
return
{
...
item
,
picUrls
:
[
item
.
skuImage
],
}
})
})
}
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论