Authored by uedxwg

订单bug修改

... ... @@ -132,7 +132,7 @@ function orderCompute() {
if ($.type(res) !== 'object') {
window.location.reload();
} else {
if (res.last_order_amount) {
if (typeof res.last_order_amount !== undefined) {
res.last_order_amount = (+res.last_order_amount).toFixed(2);
}
if (res.use_yoho_coin) {
... ... @@ -320,6 +320,8 @@ $subBlock.on('touchstart', 'li', function() {
$(this).parents('ul').find('i').removeClass('icon-cb-radio').addClass('icon-radio');
});
$(this).parents('ul').hide();
$('.down').removeClass('hide');
$('.up').addClass('hide');
$('.dispatch h3').removeClass('border-none');
dispatchInfo = $(this).find('span').html();
$(this).parents('.sub-block').find('h3 span').html(dispatchInfo);
... ...
... ... @@ -10,8 +10,8 @@
}
.title {
font-size: 26rem / $pxConvertRem;
font-weight: bold;
font-size: 32rem / $pxConvertRem;
color: #444;
}
/*xwg 2016-3-19 10:53*/
.price-cost{
... ... @@ -38,16 +38,20 @@
position: relative;
i{
position: absolute;
left: 20rem / $pxConvertRem;
top: 28rem / $pxConvertRem;
font-size: 32rem / $pxConvertRem;
left: 16rem / $pxConvertRem;
top: 50%;
transform:translatey(-50%);
font-size: 44rem / $pxConvertRem;
}
.choose{
display: block;
color: #000;
height: 64rem / $pxConvertRem;
overflow: hidden;
position: static;
padding-left:40rem / $pxConvertRem;
font-size: 32rem / $pxConvertRem;
line-height: 82rem / $pxConvertRem;
span{
position: absolute;
right: 20rem / $pxConvertRem;
... ... @@ -75,7 +79,8 @@
i{
position: absolute;
left: 0;
top: 16rem / $pxConvertRem;
top: 50%;
transform:translatey(-50%);
font-size: 48rem / $pxConvertRem;
}
}
... ...
... ... @@ -21,7 +21,7 @@
<div class="sub-block payment-type">
<h3>
<p>支付方式</p>
<span>在线支付 (推荐)</span>
<span>在线支付(推荐)</span>
<i class="iconfont down">&#xe616;</i>
<i class="iconfont hide up">&#xe615;</i>
</h3>
... ... @@ -38,7 +38,7 @@
<h3>
<p>配送方式</p>
{{#each dispatchMode}}
{{#if isSelected}}<span>{{name}{{cost}}</span>{{/if}}
{{#if isSelected}}<span>{{name}}&nbsp;&nbsp;¥{{cost}}</span>{{/if}}
{{/each}}
<i class="iconfont down">&#xe616;</i>
<i class="iconfont hide up">&#xe615;</i>
... ... @@ -46,7 +46,7 @@
<ul class="dispatch-mode">
{{#each dispatchMode}}
<li {{#if isSelected}}class="chosed"{{/if}} data-id="{{id}}">
<span>{{name}{{cost}}</span>
<span>{{name}}&nbsp;&nbsp;¥{{cost}}</span>
<i class="right iconfont {{#if isSelected}}icon-cb-radio{{else}}icon-radio{{/if}}"></i>
</li>
{{/each}}
... ...