Authored by uedxwg

添加支付成功页面

... ... @@ -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;
}
... ...
@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"; }
... ...
.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
... ...
{{> layout/header}}
<div class="yoho-page pay-success-page">
<div class="success">
<span class="iconfont">&#xe648;</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}}
... ...
... ... @@ -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);
}
}
... ...