Showing
5 changed files
with
87 additions
and
3 deletions
@@ -71,7 +71,7 @@ isLimitGood() && (function() { | @@ -71,7 +71,7 @@ isLimitGood() && (function() { | ||
71 | 71 | ||
72 | var data = getQueryParam(); | 72 | var data = getQueryParam(); |
73 | 73 | ||
74 | - data['type'] = 'limitcode'; | 74 | + data.type = 'limitcode'; |
75 | 75 | ||
76 | a.push(data); | 76 | a.push(data); |
77 | orderInfo('skuList', JSON.stringify(a)); | 77 | orderInfo('skuList', JSON.stringify(a)); |
@@ -225,7 +225,8 @@ function submitOrder() { | @@ -225,7 +225,8 @@ function submitOrder() { | ||
225 | if (payType === 2) { | 225 | if (payType === 2) { |
226 | 226 | ||
227 | // 货到付款的进入订单页面 | 227 | // 货到付款的进入订单页面 |
228 | - url = '/home/orderDetail?order_code=' + res.data.order_code; | 228 | + // url = '/home/orderDetail?order_code=' + res.data.order_code; |
229 | + url = '/cart/index/paySuccess?order_code=' + res.data.order_code; | ||
229 | } else { | 230 | } else { |
230 | url = '/home/orders/pay?order_code=' + res.data.order_code; | 231 | url = '/home/orders/pay?order_code=' + res.data.order_code; |
231 | } | 232 | } |
1 | -@import "good", "chose-panel", "gift-advance-good", "order-ensure", "select-coupon", "select-address"; | 1 | +@import "good", "chose-panel", "gift-advance-good", "order-ensure", "select-coupon", "select-address", "pay-success"; |
2 | 2 | ||
3 | 3 | ||
4 | .icon-checkbox:before { content: "\e61c"; } | 4 | .icon-checkbox:before { content: "\e61c"; } |
static/sass/cart/_pay-success.scss
0 → 100644
1 | +.pay-success-page { | ||
2 | + .success{ | ||
3 | + width: 100%; | ||
4 | + height: 320rem / $pxConvertRem; | ||
5 | + overflow: hidden; | ||
6 | + padding-top:40rem / $pxConvertRem; | ||
7 | + text-align: center; | ||
8 | + span{ | ||
9 | + font-size: 220rem / $pxConvertRem; | ||
10 | + display: inline-block; | ||
11 | + color: #b0b0b0; | ||
12 | + } | ||
13 | + } | ||
14 | + .pay-success{ | ||
15 | + text-align: center; | ||
16 | + p{ | ||
17 | + color: #444; | ||
18 | + line-height: 48rem / $pxConvertRem; | ||
19 | + font-size: 28rem / $pxConvertRem; | ||
20 | + } | ||
21 | + span{ | ||
22 | + color: #f00; | ||
23 | + } | ||
24 | + } | ||
25 | + .message{ | ||
26 | + width: 66%; | ||
27 | + line-height: 32rem / $pxConvertRem; | ||
28 | + font-size: 20rem / $pxConvertRem; | ||
29 | + margin:0 auto; | ||
30 | + color: #b0b0b0; | ||
31 | + padding-top:8rem / $pxConvertRem; | ||
32 | + text-align: center; | ||
33 | + } | ||
34 | + .btn-list{ | ||
35 | + text-align: center; | ||
36 | + padding-top: 16rem / $pxConvertRem; | ||
37 | + a{ | ||
38 | + display: inline-block; | ||
39 | + width: 35%; | ||
40 | + height: 80rem / $pxConvertRem; | ||
41 | + line-height: 80rem / $pxConvertRem; | ||
42 | + background: #444; | ||
43 | + color: #fff; | ||
44 | + border-radius: 8rem / $pxConvertRem; | ||
45 | + margin:0 8rem / $pxConvertRem; | ||
46 | + font-size: 32rem / $pxConvertRem; | ||
47 | + } | ||
48 | + } | ||
49 | +} |
1 | +{{> layout/header}} | ||
2 | +<div class="yoho-page pay-success-page"> | ||
3 | + <div class="success"> | ||
4 | + <span class="iconfont"></span> | ||
5 | + </div> | ||
6 | + <div class="pay-success"> | ||
7 | + <p>恭喜您,订单提交成功!</p> | ||
8 | + {{#Price}} | ||
9 | + <p>您需要在收货时向送货员支付<span>¥{{Price}}</span></p> | ||
10 | + {{/Price}} | ||
11 | + </div> | ||
12 | + <div class="message">预计发货时间:每日16:00之前提交订单当天发货,16:00点之后提交订单次日发货</div> | ||
13 | + <div class="btn-list"> | ||
14 | + <a href="{{guang}}">随便逛逛</a> | ||
15 | + <a href="{{orderDetail}}">查看订单</a> | ||
16 | + </div> | ||
17 | +</div> | ||
18 | +{{> layout/footer}} |
@@ -523,4 +523,20 @@ class IndexController extends AbstractAction | @@ -523,4 +523,20 @@ class IndexController extends AbstractAction | ||
523 | $this->echoJson($result); | 523 | $this->echoJson($result); |
524 | } | 524 | } |
525 | 525 | ||
526 | + /** | ||
527 | + * 货到付款页面 | ||
528 | + */ | ||
529 | + public function paySuccessAction() | ||
530 | + { | ||
531 | + // 设置网站标题 | ||
532 | + $this->setTitle('支付完成'); | ||
533 | + $this->setNavHeader('支付完成', false, false); | ||
534 | + $data = array( | ||
535 | + 'Price' => '300', | ||
536 | + 'guang' => '1', | ||
537 | + 'orderDetail' => '2' | ||
538 | + ); | ||
539 | + $this->_view->display('pay-success', $data); | ||
540 | + } | ||
541 | + | ||
526 | } | 542 | } |
-
Please register or login to post a comment