Showing
6 changed files
with
62 additions
and
11 deletions
@@ -226,7 +226,7 @@ function submitOrder() { | @@ -226,7 +226,7 @@ function submitOrder() { | ||
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' + res.data.order_code; | 229 | + url = '/cart/index/paySuccess?order_code=' + res.data.order_code; |
230 | } else { | 230 | } else { |
231 | url = '/home/orders/pay?order_code=' + res.data.order_code; | 231 | url = '/home/orders/pay?order_code=' + res.data.order_code; |
232 | } | 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 | +} |
static/sass/cart/pay-success.sass
deleted
100644 → 0
@@ -5,12 +5,14 @@ | @@ -5,12 +5,14 @@ | ||
5 | </div> | 5 | </div> |
6 | <div class="pay-success"> | 6 | <div class="pay-success"> |
7 | <p>恭喜您,订单提交成功!</p> | 7 | <p>恭喜您,订单提交成功!</p> |
8 | - <p>您需要在收货时向送货员支付¥189.00</p> | 8 | + {{#Price}} |
9 | + <p>您需要在收货时向送货员支付<span>¥{{Price}}</span></p> | ||
10 | + {{/Price}} | ||
9 | </div> | 11 | </div> |
10 | <div class="message">预计发货时间:每日16:00之前提交订单当天发货,16:00点之后提交订单次日发货</div> | 12 | <div class="message">预计发货时间:每日16:00之前提交订单当天发货,16:00点之后提交订单次日发货</div> |
11 | <div class="btn-list"> | 13 | <div class="btn-list"> |
12 | - <span>随便逛逛</span> | ||
13 | - <span>查看订单</span> | 14 | + <a href="{{guang}}">随便逛逛</a> |
15 | + <a href="{{orderDetail}}">查看订单</a> | ||
14 | </div> | 16 | </div> |
15 | </div> | 17 | </div> |
16 | {{> layout/footer}} | 18 | {{> layout/footer}} |
@@ -517,9 +517,12 @@ class IndexController extends AbstractAction | @@ -517,9 +517,12 @@ class IndexController extends AbstractAction | ||
517 | // 设置网站标题 | 517 | // 设置网站标题 |
518 | $this->setTitle('支付完成'); | 518 | $this->setTitle('支付完成'); |
519 | $this->setNavHeader('支付完成', false, false); | 519 | $this->setNavHeader('支付完成', false, false); |
520 | - | ||
521 | - | ||
522 | - $this->_view->display('pay-success', array()); | 520 | + $data = array( |
521 | + 'Price' => '300', | ||
522 | + 'guang' => '1', | ||
523 | + 'orderDetail' => '2' | ||
524 | + ); | ||
525 | + $this->_view->display('pay-success', $data); | ||
523 | } | 526 | } |
524 | 527 | ||
525 | } | 528 | } |
-
Please register or login to post a comment