Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYPC
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
2
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
uedxwg
9 years ago
Commit
58864161b490ca983a633c5aa8139ee802e3b85b
1 parent
36e0da76
添加支付成功页面
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
87 additions
and
3 deletions
static/js/cart/order-ensure.js
static/sass/cart/_index.scss
static/sass/cart/_pay-success.scss
template/m.yohobuy.com/actions/cart/index/pay-success.phtml
yohobuy/m.yohobuy.com/application/modules/Cart/controllers/Index.php
static/js/cart/order-ensure.js
View file @
5886416
...
...
@@ -71,7 +71,7 @@ isLimitGood() && (function() {
var
data
=
getQueryParam
();
data
[
'type'
]
=
'limitcode'
;
data
.
type
=
'limitcode'
;
a
.
push
(
data
);
orderInfo
(
'skuList'
,
JSON
.
stringify
(
a
));
...
...
@@ -225,7 +225,8 @@ function submitOrder() {
if
(
payType
===
2
)
{
// 货到付款的进入订单页面
url
=
'/home/orderDetail?order_code='
+
res
.
data
.
order_code
;
// url = '/home/orderDetail?order_code=' + res.data.order_code;
url
=
'/cart/index/paySuccess?order_code='
+
res
.
data
.
order_code
;
}
else
{
url
=
'/home/orders/pay?order_code='
+
res
.
data
.
order_code
;
}
...
...
static/sass/cart/_index.scss
View file @
5886416
@import
"good"
,
"chose-panel"
,
"gift-advance-good"
,
"order-ensure"
,
"select-coupon"
,
"select-address"
;
@import
"good"
,
"chose-panel"
,
"gift-advance-good"
,
"order-ensure"
,
"select-coupon"
,
"select-address"
,
"pay-success"
;
.icon-checkbox
:before
{
content
:
"\e61c"
;
}
...
...
static/sass/cart/_pay-success.scss
0 → 100644
View file @
5886416
.pay-success-page
{
.success
{
width
:
100%
;
height
:
320rem
/
$pxConvertRem
;
overflow
:
hidden
;
padding-top
:
40rem
/
$pxConvertRem
;
text-align
:
center
;
span
{
font-size
:
220rem
/
$pxConvertRem
;
display
:
inline-block
;
color
:
#b0b0b0
;
}
}
.pay-success
{
text-align
:
center
;
p
{
color
:
#444
;
line-height
:
48rem
/
$pxConvertRem
;
font-size
:
28rem
/
$pxConvertRem
;
}
span
{
color
:
#f00
;
}
}
.message
{
width
:
66%
;
line-height
:
32rem
/
$pxConvertRem
;
font-size
:
20rem
/
$pxConvertRem
;
margin
:
0
auto
;
color
:
#b0b0b0
;
padding-top
:
8rem
/
$pxConvertRem
;
text-align
:
center
;
}
.btn-list
{
text-align
:
center
;
padding-top
:
16rem
/
$pxConvertRem
;
a
{
display
:
inline-block
;
width
:
35%
;
height
:
80rem
/
$pxConvertRem
;
line-height
:
80rem
/
$pxConvertRem
;
background
:
#444
;
color
:
#fff
;
border-radius
:
8rem
/
$pxConvertRem
;
margin
:
0
8rem
/
$pxConvertRem
;
font-size
:
32rem
/
$pxConvertRem
;
}
}
}
\ No newline at end of file
...
...
template/m.yohobuy.com/actions/cart/index/pay-success.phtml
0 → 100644
View file @
5886416
{
{>
layout/header
}
}
<div
class=
"yoho-page pay-success-page"
>
<div
class=
"success"
>
<span
class=
"iconfont"
>
648
;</span>
</div>
<div
class=
"pay-success"
>
<p>恭喜您,订单提交成功!</p>
{
{#Price
}
}
<p>您需要在收货时向送货员支付<span>¥
{
{Price
}
}</span></p>
{
{/Price
}
}
</div>
<div
class=
"message"
>预计发货时间:每日
16
:
00
之前提交订单当天发货,
16
:
00
点之后提交订单次日发货</div>
<div
class=
"btn-list"
>
<a
href=
"{{guang}}"
>随便逛逛</a>
<a
href=
"{{orderDetail}}"
>查看订单</a>
</div>
</div>
{
{>
layout/footer
}
}
...
...
yohobuy/m.yohobuy.com/application/modules/Cart/controllers/Index.php
View file @
5886416
...
...
@@ -523,4 +523,20 @@ class IndexController extends AbstractAction
$this
->
echoJson
(
$result
);
}
/**
* 货到付款页面
*/
public
function
paySuccessAction
()
{
// 设置网站标题
$this
->
setTitle
(
'支付完成'
);
$this
->
setNavHeader
(
'支付完成'
,
false
,
false
);
$data
=
array
(
'Price'
=>
'300'
,
'guang'
=>
'1'
,
'orderDetail'
=>
'2'
);
$this
->
_view
->
display
(
'pay-success'
,
$data
);
}
}
...
...
Please
register
or
login
to post a comment