Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yoho-blk
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
1
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
yyq
2016-07-21 21:06:58 +0800
Commit
9951b0e8e8f9a7aad7b42466fcc8417881cdfa09
1 parent
baff9d65
退货详情状态控制
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
112 additions
and
62 deletions
apps/me/controllers/returns.js
apps/me/models/returns.js
apps/me/views/partial/refund-detail.hbs
apps/me/controllers/returns.js
View file @
9951b0e
...
...
@@ -67,7 +67,7 @@ const refundApply = (req, res, next) => {
};
const
refundDetail
=
(
req
,
res
,
next
)
=>
{
let
applyId
=
parseInt
(
req
.
params
.
applyId
,
10
)
||
'
1606228980
'
,
let
applyId
=
parseInt
(
req
.
params
.
applyId
,
10
)
||
'
429528
'
,
uid
=
req
.
user
.
uid
||
'8050560'
;
if
(
!
uid
||
!
applyId
)
{
...
...
apps/me/models/returns.js
View file @
9951b0e
...
...
@@ -104,6 +104,32 @@ const _setRefundGoodList = (data) => {
return
resData
;
};
const
_setRefundDetailData
=
(
data
)
=>
{
let
resData
=
{};
switch
(
data
.
status
)
{
case
10
:
resData
.
orderReview
=
{
pass
:
true
};
resData
.
refundExpress
=
true
;
resData
.
refundAddress
=
true
;
break
;
case
20
:
resData
.
refundExpress
=
true
;
break
;
case
30
:
resData
.
backStorage
=
true
;
break
;
case
40
:
resData
.
refundSure
=
true
;
break
;
default
:
resData
.
orderReview
=
true
;
break
;
}
return
resData
;
};
const
getRefundGoodsData
=
(
orderCode
,
uid
)
=>
{
return
returnsAPI
.
getRefundGoodsAsync
(
orderCode
,
uid
).
then
(
result
=>
{
let
resData
=
{};
...
...
@@ -129,16 +155,17 @@ const getRefundDetailData = (applyId, uid) => {
let
resData
=
{};
Object
.
assign
(
resData
,
_setSideMenu
(
'我的退/换货'
));
resData
.
returns
=
{
resData
=
{
title
:
'退货申请'
,
refundDetail
:
{}
};
if
(
result
.
data
)
{
console
.
log
(
result
.
data
);
// console.log(_setRefundDetailData(result.data));
Object
.
assign
(
resData
.
refundDetail
,
_setRefundDetailData
(
result
.
data
));
}
return
resData
;
return
{
returns
:
resData
}
;
});
};
...
...
apps/me/views/partial/refund-detail.hbs
View file @
9951b0e
{{#
refundDetail
}}
<div
class=
"refund-datail-wrap"
>
<div
class=
"review-tip top-tip"
>
<p
class=
"tip-status"
>
<span
class=
"iconfont blue"
>

</span>
<span
class=
"blue"
>
退货申请审核中
</span>
</p>
<p
class=
"tip-text"
>
请将商品连同吊牌、包装、发货单(如无发货单,您可找张白纸上注明订单编号,收货人姓名及手机号码)、发票(如有)、 赠品(如有)一并寄回,如有 遗漏将影响您的退换货进度,敬请谅解
<br>
非我司原因的退换货,寄回运费由您承担。商品客观问题的退换货,请您先行垫付运费,邮费会在退款中补贴给您,
<b>
我们不接受平邮和到付
</b>
,感谢您的理解与支持
</p>
<p>
如果您不想退货了,您可以
<span
class=
"cancel-btn btn"
>
取消申请
</span>
</p>
</div>
<div
class=
"storage-tip top-tip"
>
<p
class=
"tip-status"
>
<span
class=
"iconfont blue"
>

</span>
<span
class=
"blue"
>
您寄回的商品已收到
</span>
</p>
<p>
我们会在入库后的1-3个工作日内处理您的退款,如有疑问,请联系
<span>
在线客服
</span>
</p>
</div>
{{#
orderReview
}}
<div
class=
"top-tip"
>
{{#if
pass
}}
<p
class=
"tip-status"
>
<span
class=
"iconfont blue"
>

</span>
<span
class=
"blue"
>
退货申请已通过
</span>
</p>
{{^}}
<p
class=
"tip-status"
>
<span
class=
"iconfont blue"
>

</span>
<span
class=
"blue"
>
退货申请审核中
</span>
</p>
{{/if}}
<p
class=
"tip-text"
>
请将商品连同吊牌、包装、发货单(如无发货单,您可找张白纸上注明订单编号,收货人姓名及手机号码)、发票(如有)、 赠品(如有)一并寄回,如有 遗漏将影响您的退换货进度,敬请谅解
<br>
非我司原因的退换货,寄回运费由您承担。商品客观问题的退换货,请您先行垫付运费,邮费会在退款中补贴给您,
<b>
我们不接受平邮和到付
</b>
,感谢您的理解与支持
</p>
<p>
如果您不想退货了,您可以
<span
class=
"cancel-btn btn"
>
取消申请
</span>
</p>
</div>
{{/
orderReview
}}
<div
class=
"success-tip top-tip"
>
<p
class=
"tip-status"
>
<span
class=
"iconfont blue"
>

</span>
<span
class=
"blue"
>
退款完成
</span>
</p>
<p>
退款方式:
<em>
由于银行内部处理流程的差异,储蓄卡需要3-7个工作日到账,信用卡需要7-15个工作日到账
</em></p>
<p
class=
"tip-pad-top"
>
退款账户:
</p>
<p
class=
"tip-pad-top"
>
金额:
</p>
<p
class=
"tip-pad-top"
>
有货币:
</p>
</div>
{{#
backStorage
}}
<div
class=
"storage-tip top-tip"
>
<p
class=
"tip-status"
>
<span
class=
"iconfont blue"
>

</span>
<span
class=
"blue"
>
您寄回的商品已收到
</span>
</p>
<p>
我们会在入库后的1-3个工作日内处理您的退款,如有疑问,请联系
<span>
在线客服
</span>
</p>
</div>
{{/
backStorage
}}
{{#
refundSure
}}
<div
class=
"success-tip top-tip"
>
<p
class=
"tip-status"
>
<span
class=
"iconfont blue"
>

</span>
<span
class=
"blue"
>
退款完成
</span>
</p>
<p>
退款方式:
<em>
由于银行内部处理流程的差异,储蓄卡需要3-7个工作日到账,信用卡需要7-15个工作日到账
</em></p>
<p
class=
"tip-pad-top"
>
退款账户:
</p>
<p
class=
"tip-pad-top"
>
金额:
</p>
<p
class=
"tip-pad-top"
>
有货币:
</p>
</div>
{{/
refundSure
}}
{{#
refundExpress
}}
<div
class=
"return-express"
>
<h4
class=
"third-title"
>
填写物流
</h4>
<p>
请您在
<span
class=
"blue"
>
7月30日24:00
</span>
前将商品寄回并填写物流,逾期将自动取消申请
</p>
...
...
@@ -57,35 +73,42 @@
</dd>
</dl>
</div>
<div
class=
"return-address"
>
<h4
class=
"third-title"
>
寄回地址
</h4>
<p>
地址:
</p>
<p>
收件人:
</p>
<p>
邮编:
</p>
<p>
联系电话:
</p>
</div>
{{/
refundExpress
}}
{{#
refundAddress
}}
<div
class=
"return-address"
>
<h4
class=
"third-title"
>
寄回地址
</h4>
<p>
地址:
{{
address
}}
</p>
<p>
收件人:
{{
name
}}
</p>
<p>
邮编:
{{
code
}}
</p>
<p>
联系电话:
{{
phone
}}
</p>
</div>
{{/
refundAddress
}}
<div
class=
"refund-detail-goods"
>
<ul
class=
"goods-header"
>
<li
class=
"info"
>
商品信息
</li>
<li>
退货原因
</li>
<li>
退货数量
</li>
</ul>
<div
class=
"goods-item clearfix"
>
<div
class=
"img"
>
<img
class=
"lazy"
data-original=
"
{{
image
img
70
90
}}
"
>
</div>
<div
class=
"info"
>
<p>
{{
name
}}
</p>
<p>
颜色:
{{
color
}}
尺码:
{{
size
}}
</p>
<p>
×
{{
num
}}
</p>
{{#
goods
}}
<div
class=
"goods-item clearfix"
>
<div
class=
"img"
>
<img
class=
"lazy"
data-original=
"
{{
image
img
70
90
}}
"
>
</div>
<div
class=
"info"
>
<p>
{{
name
}}
</p>
<p>
颜色:
{{
color
}}
尺码:
{{
size
}}
</p>
<p>
×
{{
num
}}
</p>
</div>
<div
class=
"reason"
>
dsa
{{
reason
}}
</div>
<div
class=
"num"
>
dasd
{{
num
}}
</div>
<dl
class=
"special-info hide"
>
<dd>
问题描述:
</dd>
<dd>
照片凭证:
</dd>
</dl>
</div>
<div
class=
"reason"
>
dsa
{{
reason
}}
</div>
<div
class=
"num"
>
dasd
{{
num
}}
</div>
<dl
class=
"special-info"
>
<dd>
问题描述:
</dd>
<dd>
照片凭证:
</dd>
</dl>
</div>
{{/
goods
}}
</div>
</div>
{{/
refundDetail
}}
\ No newline at end of file
...
...
Please
register
or
login
to post a comment