Authored by uedxwg

结算页面修改重新合并

@@ -6,25 +6,22 @@ @@ -6,25 +6,22 @@
6 6
7 var $ = require('jquery'), 7 var $ = require('jquery'),
8 lazyLoad = require('yoho.lazyload'), 8 lazyLoad = require('yoho.lazyload'),
9 - Hammer = require('yoho.hammer'),  
10 - Handlebars = require('yoho.handlebars'),  
11 tip = require('../plugin/tip'), 9 tip = require('../plugin/tip'),
12 loading = require('../plugin/loading'), 10 loading = require('../plugin/loading'),
13 order = require('./order-info'); 11 order = require('./order-info');
14 12
15 -var dispatchModeHammer,  
16 - dispatchTimeHammer,  
17 - $invoice = $('.invoice'),  
18 - $price = $('.price-cal'), 13 +var $invoice = $('.invoice'),
19 $couponUse = $('.coupon-use.used'), 14 $couponUse = $('.coupon-use.used'),
20 $addressWrap = $('.address-wrap'), 15 $addressWrap = $('.address-wrap'),
21 $coinCheck = $('.coin-check'), 16 $coinCheck = $('.coin-check'),
22 $coinUsed = $('.coin .used'), 17 $coinUsed = $('.coin .used'),
  18 + $subBlock = $('.sub-block'),
23 payType, 19 payType,
24 - priceTmpl = Handlebars.compile($('#tmpl-price').html()),  
25 queryString = $.queryString(), 20 queryString = $.queryString(),
26 orderInfo = order.orderInfo, 21 orderInfo = order.orderInfo,
27 - isSubmiting; 22 + isSubmiting,
  23 + dispatchInfo,
  24 + total;
28 25
29 require('../common'); 26 require('../common');
30 27
@@ -71,7 +68,7 @@ isLimitGood() && (function() { @@ -71,7 +68,7 @@ isLimitGood() && (function() {
71 68
72 var data = getQueryParam(); 69 var data = getQueryParam();
73 70
74 - data['type'] = 'limitcode'; 71 + data.type = 'limitcode';
75 72
76 a.push(data); 73 a.push(data);
77 orderInfo('skuList', JSON.stringify(a)); 74 orderInfo('skuList', JSON.stringify(a));
@@ -82,42 +79,36 @@ if (queryString.cartType || queryString.carttype || !orderInfo('cartType')) { @@ -82,42 +79,36 @@ if (queryString.cartType || queryString.carttype || !orderInfo('cartType')) {
82 orderInfo('cartType', queryString.cartType || queryString.carttype || 'ordinary'); 79 orderInfo('cartType', queryString.cartType || queryString.carttype || 'ordinary');
83 } 80 }
84 81
85 -function dispacthTapEvt(e) {  
86 - var $cur = $(e.target).closest('li'); 82 +// function dispacthTapEvt(e) {
  83 +// var $cur = $(e.target).closest('li');
87 84
88 - if ($cur.length === 0 || $cur.hasClass('chosed')) {  
89 - return;  
90 - }  
91 -  
92 - $cur.siblings('li.chosed').removeClass('chosed');  
93 - $cur.addClass('chosed');  
94 -}  
95 -  
96 -dispatchModeHammer = new Hammer(document.getElementsByClassName('dispatch-mode')[0]);  
97 -dispatchModeHammer.on('tap', dispacthTapEvt); 85 +// if ($cur.length === 0 || $cur.hasClass('chosed')) {
  86 +// return;
  87 +// }
98 88
99 -dispatchTimeHammer = new Hammer(document.getElementsByClassName('dispatch-time')[0]);  
100 -dispatchTimeHammer.on('tap', dispacthTapEvt); 89 +// $cur.siblings('li.chosed').removeClass('chosed');
  90 +// $cur.addClass('chosed');
  91 +// }
101 92
102 $('.checkbox').on('touchstart', function() { 93 $('.checkbox').on('touchstart', function() {
103 var $this = $(this); 94 var $this = $(this);
104 95
105 - if ($this.hasClass('icon-cb-checked')) {  
106 - $this.removeClass('icon-cb-checked').addClass('icon-checkbox'); 96 + if ($this.hasClass('icon-cb-radio')) {
  97 + $this.removeClass('icon-cb-radio').addClass('icon-radio');
107 return; 98 return;
108 } 99 }
109 - if ($this.hasClass('icon-checkbox')) {  
110 - $this.removeClass('icon-checkbox').addClass('icon-cb-checked'); 100 + if ($this.hasClass('icon-radio')) {
  101 + $this.removeClass('icon-radio').addClass('icon-cb-radio');
111 } 102 }
112 }); 103 });
113 104
114 $invoice.on('touchend', '.checkbox', function() { 105 $invoice.on('touchend', '.checkbox', function() {
115 var $this = $(this); 106 var $this = $(this);
116 107
117 - if ($this.hasClass('icon-cb-checked')) { 108 + if ($this.hasClass('icon-cb-radio')) {
118 $invoice.addClass('focus'); 109 $invoice.addClass('focus');
119 } 110 }
120 - if ($this.hasClass('icon-checkbox')) { 111 + if ($this.hasClass('icon-radio')) {
121 $invoice.removeClass('focus'); 112 $invoice.removeClass('focus');
122 } 113 }
123 }); 114 });
@@ -138,12 +129,10 @@ function orderCompute() { @@ -138,12 +129,10 @@ function orderCompute() {
138 skuList: isLimitGood() ? orderInfo('skuList') : undefined 129 skuList: isLimitGood() ? orderInfo('skuList') : undefined
139 } 130 }
140 }).then(function(res) { 131 }).then(function(res) {
141 - var priceHtml;  
142 -  
143 if ($.type(res) !== 'object') { 132 if ($.type(res) !== 'object') {
144 window.location.reload(); 133 window.location.reload();
145 } else { 134 } else {
146 - if (res.last_order_amount) { 135 + if (typeof res.last_order_amount !== undefined) {
147 res.last_order_amount = (+res.last_order_amount).toFixed(2); 136 res.last_order_amount = (+res.last_order_amount).toFixed(2);
148 } 137 }
149 if (res.use_yoho_coin) { 138 if (res.use_yoho_coin) {
@@ -152,12 +141,18 @@ function orderCompute() { @@ -152,12 +141,18 @@ function orderCompute() {
152 $coinCheck.find('em').show(); 141 $coinCheck.find('em').show();
153 $coinUsed.show(); 142 $coinUsed.show();
154 } 143 }
155 - priceHtml = priceTmpl({  
156 - cartPayData: res.promotion_formula_list,  
157 - price: res.last_order_amount  
158 - });  
159 -  
160 - $price.html(priceHtml); 144 + total = '';
  145 + if (res.promotion_formula_list) {
  146 + $.each(res.promotion_formula_list, function(index, value) {
  147 + total += '<li>' +
  148 + '<p>' + value.promotion + '</p>' +
  149 + '<span>' + value.promotion_amount + '</span>' +
  150 + '</li>';
  151 + });
  152 + $('.price-cost span').html('¥' + res.last_order_amount);
  153 + $('.bill span').html('¥' + res.last_order_amount);
  154 + $('.total').html(total);
  155 + }
161 } 156 }
162 }).fail(function() { 157 }).fail(function() {
163 window.location.reload(); 158 window.location.reload();
@@ -170,10 +165,6 @@ function submitOrder() { @@ -170,10 +165,6 @@ function submitOrder() {
170 var invoiceText = $invoice.find('[name="invoice-title"]').val() || orderInfo('invoiceText'), 165 var invoiceText = $invoice.find('[name="invoice-title"]').val() || orderInfo('invoiceText'),
171 msg = $('#msg').find('input').val() || orderInfo('msg'); 166 msg = $('#msg').find('input').val() || orderInfo('msg');
172 167
173 - if (orderInfo('deliveryId') === 2 && !$addressWrap.data('support')) {  
174 - tip.show('当前地址不支持顺丰快递');  
175 - return;  
176 - }  
177 if (isSubmiting) { 168 if (isSubmiting) {
178 return false; 169 return false;
179 } 170 }
@@ -248,17 +239,8 @@ if (!orderInfo('addressId')) { @@ -248,17 +239,8 @@ if (!orderInfo('addressId')) {
248 } 239 }
249 240
250 $('.dispatch-mode').on('touchend', 'li', function() { 241 $('.dispatch-mode').on('touchend', 'li', function() {
251 - var $defaultMode = $('.dispatch-mode [data-id="1"]');  
252 -  
253 - if (!$addressWrap.data('support') && $(this).data('id') === 2) {  
254 - dispacthTapEvt({  
255 - target: $defaultMode  
256 - });  
257 - tip.show('当前地址不支持顺丰快递');  
258 - } else {  
259 - orderInfo('deliveryId', $(this).data('id'));  
260 - orderCompute();  
261 - } 242 + orderInfo('deliveryId', $(this).data('id'));
  243 + orderCompute();
262 }); 244 });
263 245
264 $('.dispatch-time').on('touchend', 'li', function() { 246 $('.dispatch-time').on('touchend', 'li', function() {
@@ -268,7 +250,7 @@ $('.dispatch-time').on('touchend', 'li', function() { @@ -268,7 +250,7 @@ $('.dispatch-time').on('touchend', 'li', function() {
268 $('.coin').on('touchend', function() { 250 $('.coin').on('touchend', function() {
269 var $this = $(this); 251 var $this = $(this);
270 252
271 - if ($this.find('.checkbox').hasClass('icon-cb-checked')) { 253 + if ($this.find('.checkbox').hasClass('icon-cb-radio')) {
272 orderInfo('yohoCoin', $this.data('yoho-coin')); 254 orderInfo('yohoCoin', $this.data('yoho-coin'));
273 $this.find('.can-use').hide(); 255 $this.find('.can-use').hide();
274 } else { 256 } else {
@@ -283,7 +265,7 @@ $('.coin').on('touchend', function() { @@ -283,7 +265,7 @@ $('.coin').on('touchend', function() {
283 $invoice.on('touchend', '.checkbox', function(e) { 265 $invoice.on('touchend', '.checkbox', function(e) {
284 var $this = $(this); 266 var $this = $(this);
285 267
286 - orderInfo('invoice', $this.hasClass('icon-cb-checked')); 268 + orderInfo('invoice', $this.hasClass('icon-cb-radio'));
287 e.preventDefault(); 269 e.preventDefault();
288 e.stopPropagation(); 270 e.stopPropagation();
289 }); 271 });
@@ -304,9 +286,61 @@ $('.pay-mode').on('click', 'li', function() { @@ -304,9 +286,61 @@ $('.pay-mode').on('click', 'li', function() {
304 orderInfo('paymentTypeId', $this.data('pay-id')); 286 orderInfo('paymentTypeId', $this.data('pay-id'));
305 orderInfo('paymentType', $this.data('pay-type')); 287 orderInfo('paymentType', $this.data('pay-type'));
306 payType = $this.data('pay-type'); 288 payType = $this.data('pay-type');
307 - submitOrder();  
308 }); 289 });
309 290
310 $('form').on('submit', function() { 291 $('form').on('submit', function() {
311 return false; 292 return false;
312 }); 293 });
  294 +
  295 +// xwg 2016/3/21 13:22
  296 +$('.dispatch').on('touchend', 'h3', function() {
  297 + if ($(this).siblings('ul').is(':hidden')) {
  298 + $('.dispatch h3').removeClass('border-none');
  299 + $(this).addClass('border-none');
  300 + $('.down').removeClass('hide');
  301 + $('.up').addClass('hide');
  302 + $('.up', this).removeClass('hide');
  303 + $('.down', this).addClass('hide');
  304 + $('.dispatch ul').hide();
  305 + $(this).siblings('ul').show();
  306 + } else {
  307 + $(this).removeClass('border-none');
  308 + $('.down', this).removeClass('hide');
  309 + $('.up', this).addClass('hide');
  310 + $(this).siblings('ul').hide();
  311 + }
  312 +});
  313 +
  314 +$subBlock.on('touchstart', 'li', function() {
  315 + $.each($(this).parents('ul').find('i'), function() {
  316 + $(this).parents('ul').find('i').removeClass('icon-cb-radio').addClass('icon-radio');
  317 + });
  318 + $(this).parents('ul').hide();
  319 + $('.down').removeClass('hide');
  320 + $('.up').addClass('hide');
  321 + $('.dispatch h3').removeClass('border-none');
  322 + dispatchInfo = $(this).find('span').html();
  323 + $(this).parents('.sub-block').find('h3 span').html(dispatchInfo);
  324 + if ($(this).find('i').hasClass('icon-cb-radio')) {
  325 + $(this).find('i').addClass('icon-radio');
  326 + } else if ($(this).find('i').hasClass('icon-radio')) {
  327 + $(this).find('i').addClass('icon-cb-radio');
  328 + }
  329 +});
  330 +
  331 +
  332 +$('.bill a').on('touchstart', function() {
  333 + orderInfo('paymentTypeId', $('.delivery-id .icon-cb-radio').data('id'));
  334 + orderInfo('paymentType', $('.payment-type .icon-cb-radio').data('id'));
  335 +
  336 + payType = $('.payment-type .icon-cb-radio').data('id');
  337 + submitOrder();
  338 +});
  339 +
  340 +function phoneHidden(phone) {
  341 + return phone.replace(/(\d{3})\d{4}(\d{4})/, '$1****$2');
  342 +}
  343 +
  344 +$('.info-phone').html(phoneHidden($('.info-phone').html()));
  345 +
  346 +
@@ -10,91 +10,350 @@ @@ -10,91 +10,350 @@
10 } 10 }
11 11
12 .title { 12 .title {
13 - font-size: 26px;  
14 - font-weight: bold; 13 + font-size: 32px;
  14 + color: #444;
15 } 15 }
16 -  
17 - .address-wrap { 16 + /*xwg 2016-3-19 10:53*/
  17 + .price-cost{
  18 + span{
  19 + color: #f00;
  20 + }
  21 + }
  22 + .border-none{
  23 + border-bottom:none !important;
  24 + }
  25 + .boys{
  26 + background:resolve('shopping-cart/boys.png') bottom left repeat-x #fff;
  27 + }
  28 + .girls{
  29 + background:resolve('shopping-cart/girls.png') bottom left repeat-x #fff;
  30 + }
  31 + .kids{
  32 + background:resolve('shopping-cart/kids.png') bottom left repeat-x #fff;
  33 + }
  34 + .life-style{
  35 + background:resolve('shopping-cart/lifeStyle.png') bottom left repeat-x #fff !important;
  36 + }
  37 + .not-address{
  38 + position: relative;
  39 + i{
  40 + position: absolute;
  41 + left: 16px;
  42 + top: 0%;
  43 + font-size: 44px;
  44 + }
  45 + .choose{
  46 + display: block;
  47 + color: #000;
  48 + height: 64px;
  49 + overflow: hidden;
  50 + position: static;
  51 + padding-left:40px;
  52 + font-size: 32px;
  53 + line-height: 82px;
  54 + span{
  55 + position: absolute;
  56 + right: 20px;
  57 + top: 28px;
  58 + font-size: 32px;
  59 + }
  60 + }
  61 + }
  62 + .address{
18 display: block; 63 display: block;
19 position: relative; 64 position: relative;
20 margin-top: 0; 65 margin-top: 0;
21 border-top: none; 66 border-top: none;
  67 + padding-bottom:.8rem;
  68 + .info{
  69 + width: 90%;
  70 + height: auto;
  71 + overflow: hidden;
  72 + padding-left: 10%;
  73 + padding-bottom: 12px;
  74 + position: relative;
  75 + span{
  76 + display: inline-block;
  77 + }
  78 + i{
  79 + position: absolute;
  80 + left: 0;
  81 + top: 0%;
  82 + font-size: 44px;
  83 + }
  84 + }
  85 + .info-name{
  86 + width: 48%;
  87 + height: 40px;
  88 + font-size: 32px;
  89 + overflow: hidden;
  90 + text-overflow:ellipsis;
  91 + white-space:nowrap;
  92 + }
  93 + .info-phone{
  94 + width: 48%;
  95 + font-size: 24px;
  96 + text-align: right;
  97 + }
  98 + .info-address{
  99 + width: 100%;
  100 + font-size: 24px;
  101 + line-height: 38px;
  102 + }
  103 + .rest{
  104 + position: absolute;
  105 + right: 32px;
  106 + bottom:20px;
  107 + color: #f00;
  108 + font-size: 24px;
  109 + span{
  110 + font-size: 24px;
  111 + }
  112 + }
  113 + }
  114 + .dispatch{
  115 + padding:0%;
  116 + margin:0;
  117 + .sub-block{
  118 + color: #444;
  119 + &:last-child h3{
  120 + border-bottom:none;
  121 + }
  122 + h3{
  123 + width: 95%;
  124 + height: 80px;
  125 + overflow: hidden;
  126 + line-height: 80px;
  127 + font-size: 32px;
  128 + margin-left: 5%;
  129 + border-bottom:1px solid #e0e0e0;
  130 + .hide{
  131 + display: none !important;
  132 + }
  133 + p{
  134 + display: inline-block;
  135 + height: 80px;
  136 + overflow: hidden;
  137 + text-overflow:ellipsis;
  138 + white-space:nowrap;
  139 + }
  140 + i{
  141 + font-size: 36px;
  142 + margin-left: 8px;
  143 + height: 80px;
  144 + display: inline-block;
  145 + overflow: hidden;
  146 + text-overflow:ellipsis;
  147 + white-space:nowrap;
  148 + }
  149 + span{
  150 + display: inline-block;
  151 + width: 65%;
  152 + height: 80px;
  153 + text-align: right;
  154 + font-size: 28px;
  155 + overflow: hidden;
  156 + text-overflow:ellipsis;
  157 + white-space:nowrap;
  158 + }
  159 + }
  160 + ul{
  161 + width: 90%;
  162 + height:auto;
  163 + overflow: hidden;
  164 + line-height: 80px;
  165 + font-size: 28px;
  166 + background: #e0e0e0;
  167 + padding-left:10%;
  168 + display: none;
  169 + padding-bottom: 8px;
  170 + .right{
  171 + float: right;
  172 + margin-right: 40px;
  173 + }
  174 + li{
  175 + border-bottom:1px solid #fff;
  176 + &:last-child{
  177 + border-bottom:none;
  178 + }
  179 + }
  180 + }
  181 + }
22 182
23 - > .iconfont { 183 + }
  184 + .goods-num{
  185 + width: 100%;
  186 + height: 52px;
  187 + color: #b0b0b0;
  188 + background:#fff;
  189 + padding:20px 0;
  190 + text-align: right;
  191 + font-size: 28px;
  192 + line-height: 52px;
  193 + span{
  194 + padding-right:20px;
  195 + color: #f00;
  196 + }
  197 + }
  198 + .bill{
  199 + position: fixed;
  200 + background:#fff;
  201 + left: 0;
  202 + bottom: 0;
  203 + width: 96%;
  204 + height: 100px;
  205 + overflow: hidden;
  206 + line-height: 100px;
  207 + font-size: 28px;
  208 + padding-left: 4%;
  209 + span{
  210 + color: #f00;
  211 + }
  212 + a{
24 position: absolute; 213 position: absolute;
25 - color: #bcbcbc;  
26 right: 20px; 214 right: 20px;
27 - top: 50%;  
28 - margin-top: -8px; 215 + top: 10px;
  216 + background:#d0021b;
  217 + display: inline-block;
  218 + color: #fff;
  219 + width: 25%;
  220 + height: 80px;
  221 + overflow: hidden;
  222 + border-radius: 10px;
  223 + line-height: 80px;
  224 + text-align: center;
  225 + font-size: 30px;
29 } 226 }
30 227
31 - .infos {  
32 - font-weight: bold;  
33 - font-size: 24px;  
34 - padding-right: 55px; 228 + }
  229 + .price-cal{
  230 + margin-bottom: 90px;
  231 + font-size: 28px;
  232 + position: relative;
  233 + span{
  234 + position: absolute;
  235 + right: 28px;
  236 + text-align: right;
35 } 237 }
36 -  
37 - .per-info {  
38 - float: right; 238 + li{
  239 + font-size: 28px;
  240 + p{
  241 + display: inline-block;
  242 + }
  243 + span{
  244 + display: inline-block;
  245 + }
39 } 246 }
  247 + }
40 248
41 - .address {  
42 - display: block;  
43 - margin-top: 20px;  
44 - color: #bcbcbc;  
45 - font-weight: normal;  
46 - } 249 +.order-good {
  250 + position: relative;
  251 + padding: 20px 0;
  252 + margin-left: 34px;
  253 + height: 160px;
  254 + border-bottom: 1px solid #e0e0e0;
  255 + font-size: 26px;
  256 +
  257 + &:last-child {
  258 + border-bottom: none;
47 } 259 }
48 260
49 - .dispatch .title {  
50 - margin-bottom: 10px; 261 + .thumb-wrap {
  262 + position: relative;
  263 + float: left;
  264 + width: 120px;
  265 + height: 160px;
51 } 266 }
52 267
53 - .dispatch .sub-block:first-child {  
54 - border-bottom: 1px solid #f7f7f7;  
55 - margin-bottom: 15px; 268 + .thumb {
  269 + width: 100%;
  270 + height: 100%;
56 } 271 }
57 272
58 - .dispatch-mode li,  
59 - .dispatch-time li {  
60 - float: left;  
61 - padding: 10px 20px;  
62 - margin-right: 15px;  
63 - margin-bottom: 15px;  
64 - border: 1px solid #c9c9c9;  
65 - color: #676767;  
66 - font-size: 26px; 273 + .tag {
  274 + position: absolute;
  275 + bottom: 0;
  276 + left: 0;
  277 + right: 0;
  278 + color: #fff;
  279 + text-align: center;
  280 + font-size: 12px;
67 281
68 - &.chosed {  
69 - border-color: #000;  
70 - background: resolve('shopping-cart/black-right.png') no-repeat;  
71 - background-size: 30px;  
72 - background-position: bottom right; 282 + &:before {
  283 + display: block;
  284 + line-height: 1;
  285 + transform:scale(0.833);
73 } 286 }
74 } 287 }
75 288
76 - .goods {  
77 - margin-right: -20px; 289 + .gift-tag {
  290 + height: 25px;
  291 + background: #a1ce4e;
78 292
79 - .price-wrap {  
80 - position: static;  
81 - text-align: left; 293 + &:before {
  294 + content: '赠品';
  295 + }
  296 + }
82 297
83 - .price {  
84 - color: #444;  
85 - } 298 + .advance-buy-tag {
  299 + height: 25px;
  300 + background: #eb76aa;
86 301
87 - .count {  
88 - display: inline;  
89 - margin-left: 20px;  
90 - } 302 + &:before {
  303 + content: '加价购';
91 } 304 }
  305 + }
  306 +
  307 + .deps {
  308 + margin-left: 135px;
  309 + }
  310 +
  311 + .name {
  312 + font-size: 28px;
  313 + max-width: 70%;
  314 + text-overflow: -o-ellipsis-lastline;
  315 + overflow: hidden;
  316 + text-overflow: ellipsis;
  317 + display: -webkit-box;
  318 + -webkit-line-clamp: 2;
  319 + -webkit-box-orient: vertical;
  320 + }
92 321
93 - .name {  
94 - max-width: 400px; 322 + .row:nth-child(2) {
  323 + height: 45px;
  324 + line-height: 45px;
  325 +
  326 + > span {
  327 + margin-right: 15px;
95 } 328 }
96 } 329 }
97 330
  331 + .color, .size {
  332 + color: #b6b6b6;
  333 + }
  334 +
  335 + .price-wrap {
  336 + position: absolute;
  337 + top: 20px;
  338 + right: 30px;
  339 + text-align: right;
  340 + }
  341 +
  342 + .price {
  343 + color: #e01;
  344 + }
  345 +
  346 + .count {
  347 + display: block;
  348 + color: #999;
  349 + text-align: right;
  350 + line-height: 45px;
  351 + }
  352 +
  353 + .appear-date {
  354 + color: #f00;
  355 + }
  356 +}
98 .sale-invoice { 357 .sale-invoice {
99 margin-top: -20px; 358 margin-top: -20px;
100 font-size: 24px; 359 font-size: 24px;
@@ -114,12 +373,12 @@ @@ -114,12 +373,12 @@
114 padding: 5px 15px; 373 padding: 5px 15px;
115 background: #f00; 374 background: #f00;
116 color: #fff; 375 color: #fff;
117 - border-radius: 10PX; 376 + border-radius(10px;
118 margin-left: 20px; 377 margin-left: 20px;
119 } 378 }
120 379
121 .coupon-use { 380 .coupon-use {
122 - box-sizing: border-box; 381 + box-sizing(border-box;
123 position: relative; 382 position: relative;
124 float: right; 383 float: right;
125 padding-right: 30px; 384 padding-right: 30px;
@@ -186,7 +445,7 @@ @@ -186,7 +445,7 @@
186 .block { 445 .block {
187 input, textarea { 446 input, textarea {
188 box-sizing: border-box; 447 box-sizing: border-box;
189 - margin: 20px 0; 448 + margin: 20px) 0;
190 padding: 0 12px; 449 padding: 0 12px;
191 width: 100%; 450 width: 100%;
192 height: 72px; 451 height: 72px;
@@ -196,7 +455,7 @@ @@ -196,7 +455,7 @@
196 line-height: 1; 455 line-height: 1;
197 outline: 0; 456 outline: 0;
198 border: 0; 457 border: 0;
199 - border-radius: 4PX; 458 + border-radius(4px;
200 } 459 }
201 textarea { 460 textarea {
202 padding: 12px; 461 padding: 12px;
@@ -246,7 +505,6 @@ @@ -246,7 +505,6 @@
246 line-height: 100px; 505 line-height: 100px;
247 margin-top: 10px; 506 margin-top: 10px;
248 font-size: 34px; 507 font-size: 34px;
249 -  
250 em { 508 em {
251 color: #f00; 509 color: #f00;
252 } 510 }
@@ -261,7 +519,7 @@ @@ -261,7 +519,7 @@
261 height: 88px; 519 height: 88px;
262 line-height: 88px; 520 line-height: 88px;
263 margin-bottom: 28px; 521 margin-bottom: 28px;
264 - border-radius: 5PX; 522 + border-radius(5px;
265 font-size: 32px; 523 font-size: 32px;
266 color: #fff; 524 color: #fff;
267 text-align: center; 525 text-align: center;
1 {{> layout/header}} 1 {{> layout/header}}
2 <div class="order-ensure-page yoho-page"> 2 <div class="order-ensure-page yoho-page">
3 {{# orderEnsure}} 3 {{# orderEnsure}}
4 - <a class="address-wrap block" data-id="{{addressId}}" data-support="{{isSupport}}" href="/cart/index/selectAddress">  
5 - <p class="infos">  
6 - 收货地址  
7 - <span class="per-info">{{name}} {{phoneNum}}</span>  
8 - <span class="address">{{addressInfo}}</span>  
9 - </p>  
10 - <span class="iconfont">&#xe614;</span>  
11 - </a>  
12 - 4 + {{#if addressInfo}}
  5 + <div class="address block address-wrap {{#if pageHeader.boys}} boys{{/if}}{{#if pageHeader.girls}} girls{{/if}}{{#if pageHeader.kids}} kids{{/if}}{{#if pageHeader.lifeStyle}} life-style{{/if}}" data-id ="{{addressId}}">
  6 + <div class="info">
  7 + <span class="info-name">{{name}}</span>
  8 + <span class="info-phone">{{phoneNum}}</span>
  9 + <a href="/cart/index/selectAddress"><span class="info-address">{{addressInfo}}</span></a>
  10 + <i class="iconfont">&#xe637;</i>
  11 + </div>
  12 + <a class="rest" href="/cart/index/selectAddress">其他地址<span class="iconfont">&#xe614;</span></a>
  13 + </div>
  14 + {{^}}
  15 + <div class="address block address-wrap not-address">
  16 + <i class="iconfont">&#xe637;</i>
  17 + <a class="choose" href="/cart/index/selectAddress">请选择收货地址<span class="iconfont">&#xe614;</span></a>
  18 + </div>
  19 + {{/if}}
13 <section class="dispatch block"> 20 <section class="dispatch block">
14 - <div class="sub-block">  
15 - <h3 class="title">配送方式</h3>  
16 - <ul class="dispatch-mode clearfix"> 21 + <div class="sub-block payment-type">
  22 + <h3>
  23 + <p>支付方式</p>
  24 + <span>在线支付(推荐)</span>
  25 + <i class="iconfont down">&#xe616;</i>
  26 + <i class="iconfont hide up">&#xe615;</i>
  27 + </h3>
  28 + <ul>
  29 + {{#each paymentWay}}
  30 + {{#if isSupport}}
  31 + <li {{#if recommend}}class="chosed"{{/if}}>
  32 + <span>{{name}}</span>
  33 + <i class="right iconfont {{#if recommend}}icon-cb-radio{{else}}icon-radio{{/if}}" data-id="{{paymentType}}"></i>
  34 + </li>
  35 + {{/if}}
  36 + {{/each}}
  37 + </ul>
  38 + </div>
  39 + <div class="sub-block delivery-id">
  40 + <h3>
  41 + <p>配送方式</p>
17 {{#each dispatchMode}} 42 {{#each dispatchMode}}
18 - <li {{#if isSelected}}class="chosed"{{/if}} data-id="{{id}}">{{name}}</li> 43 + {{#if isSelected}}<span>{{name}}:运费¥{{cost}}</span>{{/if}}
  44 + {{/each}}
  45 + <i class="iconfont down">&#xe616;</i>
  46 + <i class="iconfont hide up">&#xe615;</i>
  47 + </h3>
  48 + <ul class="dispatch-mode">
  49 + {{#each dispatchMode}}
  50 + <li {{#if isSelected}}class="chosed"{{/if}} data-id="{{id}}">
  51 + <span>{{name}}:运费¥{{cost}}</span>
  52 + <i class="right iconfont {{#if isSelected}}icon-cb-radio{{else}}icon-radio{{/if}}"></i>
  53 + </li>
19 {{/each}} 54 {{/each}}
20 </ul> 55 </ul>
21 </div> 56 </div>
22 -  
23 - <div class="sub-block">  
24 - <h3 class="title">送货时间</h3>  
25 - <ul class="dispatch-time clearfix"> 57 + <div class="sub-block dispatch-time">
  58 + <h3>
  59 + <p>送货时间</p>
  60 + <span>工作日、双休日和节假日均送货</span>
  61 + <i class="iconfont down">&#xe616;</i>
  62 + <i class="iconfont hide up">&#xe615;</i>
  63 + </h3>
  64 + <ul>
26 {{#each dispatchTime}} 65 {{#each dispatchTime}}
27 - <li {{#if isSelected}}class="chosed"{{/if}} data-id="{{id}}">{{name}}</li> 66 + <li {{#if isSelected}}class="chosed"{{/if}} data-id="{{id}}">
  67 + <span>{{name}}</span>
  68 + <i class="right iconfont radio {{#if isSelected}}icon-cb-radio{{else}}icon-radio{{/if}}" ></i>
  69 + </li>
28 {{/each}} 70 {{/each}}
29 </ul> 71 </ul>
30 </div> 72 </div>
31 </section> 73 </section>
32 -  
33 - <section class="block">  
34 - <h3 class="title">商品</h3>  
35 - <div class="goods"> 74 + <section class="block" style="margin-bottom: 0;">
36 {{#each goods}} 75 {{#each goods}}
37 {{> me/order/good}} 76 {{> me/order/good}}
38 {{/each}} 77 {{/each}}
39 - </div>  
40 </section> 78 </section>
  79 + <div class="goods-num">共{{num}}件商品 合计<span>¥{{goodsPrice}}</span></div>
41 80
42 <section class="block"> 81 <section class="block">
43 <ul class="sale-invoice"> 82 <ul class="sale-invoice">
@@ -46,10 +85,6 @@ @@ -46,10 +85,6 @@
46 <a href="{{#if isLimit}}javascript:void(0);{{else}}/cart/index/selectCoupon{{/if}}"> 85 <a href="{{#if isLimit}}javascript:void(0);{{else}}/cart/index/selectCoupon{{/if}}">
47 <span class="title">优惠券</span> 86 <span class="title">优惠券</span>
48 {{# coupon}} 87 {{# coupon}}
49 - <!--<span class="coupon-count">  
50 - {{count}}张可用  
51 - </span>-->  
52 -  
53 {{#if couponName}} 88 {{#if couponName}}
54 <span class="used coupon-use" data-name="{{couponName}}"> 89 <span class="used coupon-use" data-name="{{couponName}}">
55 {{couponName}} 90 {{couponName}}
@@ -74,13 +109,13 @@ @@ -74,13 +109,13 @@
74 109
75 {{#if useYohoCoin}} 110 {{#if useYohoCoin}}
76 <span class="coin-check"> 111 <span class="coin-check">
77 - <em>- ¥ {{useYohoCoin}}</em>  
78 - <i class="iconfont checkbox icon-cb-checked"></i> 112 + <!-- <em>- ¥ {{useYohoCoin}}</em> -->
  113 + <i class="iconfont checkbox icon-cb-radio"></i>
79 </span> 114 </span>
80 {{else}} 115 {{else}}
81 <span class="coin-check"> 116 <span class="coin-check">
82 - <em style="display: none;">- ¥ {{useYohoCoin}}</em>  
83 - <i class="iconfont checkbox icon-checkbox"></i> 117 + <!-- <em style="display: none;">- ¥ {{useYohoCoin}}</em> -->
  118 + <i class="iconfont checkbox icon-radio"></i>
84 </span> 119 </span>
85 {{/if}} 120 {{/if}}
86 {{^}} 121 {{^}}
@@ -93,7 +128,7 @@ @@ -93,7 +128,7 @@
93 {{#if invoice}} 128 {{#if invoice}}
94 <li class="invoice {{#if needInvoice}}focus{{/if}}"> 129 <li class="invoice {{#if needInvoice}}focus{{/if}}">
95 <span class="title">发票</span> 130 <span class="title">发票</span>
96 - <span class="iconfont checkbox {{#if needInvoice}}icon-cb-checked{{else}}icon-checkbox{{/if}}"></span> 131 + <span class="iconfont checkbox {{#if needInvoice}}icon-cb-radio{{else}}icon-radio{{/if}}"></span>
97 <form id="invoice"> 132 <form id="invoice">
98 <input type="text" name="invoice-title" value="{{invoiceText}}" maxlength="30" placeholder="发票抬头"> 133 <input type="text" name="invoice-title" value="{{invoiceText}}" maxlength="30" placeholder="发票抬头">
99 <label> 134 <label>
@@ -113,50 +148,24 @@ @@ -113,50 +148,24 @@
113 <input type="text" name="msg" value="{{msg}}" maxlength="40" placeholder="留言"> 148 <input type="text" name="msg" value="{{msg}}" maxlength="40" placeholder="留言">
114 </form> 149 </form>
115 </section> 150 </section>
116 -  
117 - <section class="price-cal block"> 151 + <section class="price-cal block">
118 <ul class="total"> 152 <ul class="total">
119 {{#cartPayData}} 153 {{#cartPayData}}
120 <li> 154 <li>
121 - <span>{{promotion}}</span>  
122 - &nbsp;&nbsp;{{promotion_amount}} 155 + <p>{{promotion}}</p>
  156 + <span>{{promotion_amount}}</span>
123 </li> 157 </li>
124 {{/cartPayData}} 158 {{/cartPayData}}
125 - <li class="cost">  
126 - 应付金额: <em>¥{{price}}</em>  
127 - </li>  
128 </ul> 159 </ul>
  160 + <div class="price-cost">
  161 + 实付金额
  162 + <span>¥{{price}}</span>
  163 + </div>
129 </section> 164 </section>
130 -  
131 - <ul class="pay-mode">  
132 - {{# paymentWay}}  
133 - {{#if isSupport}}  
134 - <li class="{{#if recommend}}default{{/if}}" data-pay-type="{{paymentType}}" data-pay-id="{{id}}">  
135 - <span class="iconfont">  
136 - {{#if recommend}}  
137 - &#xe62f;  
138 - {{else}}  
139 - &#xe62e;  
140 - {{/if}}  
141 - </span>  
142 - {{name}}  
143 - </li>  
144 - {{/if}}  
145 - {{/ paymentWay}}  
146 - </ul> 165 + <div class="bill">
  166 + 您需要支付:<span>¥{{price}}</span>
  167 + <a href="#">提交订单</a>
  168 + </div>
147 {{/ orderEnsure}} 169 {{/ orderEnsure}}
148 </div> 170 </div>
149 -<script id="tmpl-price" type="text/tmpl">  
150 - <ul class="total">  
151 - \{{#cartPayData}}  
152 - <li>  
153 - <span>\{{promotion}}</span>  
154 - &nbsp;&nbsp;\{{promotion_amount}}  
155 - </li>  
156 - \{{/cartPayData}}  
157 - <li class="cost">  
158 - 应付金额: <em>¥\{{price}}</em>  
159 - </li>  
160 - </ul>  
161 -</script>  
162 -{{> layout/footer}} 171 +{{> layout/footer}}