Authored by 郝肖肖

送货时间提示,秒杀

... ... @@ -66,6 +66,7 @@
<i class="iconfont hide up">&#xe615;</i>
</h3>
<ul>
<li class="dispatch-time-info">快递公司会尽力按您选择的送货时间配送,如遇特殊情况(天气、环境等)无法按您要求时间配送,还请您谅解。</li>
{{#each dispatchTime}}
<li {{#if isSelected}}class="chosed"{{/if}} data-id="{{id}}">
<span>{{name}}</span>
... ...
... ... @@ -103,7 +103,7 @@ isLimitGood() && (function() {
a.push(data);
orderInfo('skuList', JSON.stringify(a));
orderInfo('limitUrlSufix', location.search);
})();
}());
if (queryString.cartType || queryString.carttype || !orderInfo('cartType')) {
orderInfo('cartType', queryString.cartType || queryString.carttype || 'ordinary');
... ... @@ -382,6 +382,11 @@ $('.dispatch').on('touchend', 'h3', function() {
});
$subBlock.on('touchstart', 'li', function() {
// 送货时间提示语li,不响应事件
if ($(this).hasClass('dispatch-time-info')) {
return true;
}
$.each($(this).parents('ul').find('i'), function() {
$(this).parents('ul').find('i').removeClass('icon-cb-radio').addClass('icon-radio');
});
... ... @@ -420,7 +425,7 @@ if (orderInfo('address') && orderInfo('address').is_support === 'N') {
}
// 校验手机号
$ticketsMobile.blur(function function_name(e) {
$ticketsMobile.blur(function function_name() {
var reg = /^[0123456789]{1,30}$/;
var mobile = $ticketsMobile.val();
... ...
... ... @@ -164,23 +164,31 @@
}
}
ul{
width: 100%;
height:auto;
overflow: hidden;
line-height: 80px;
font-size: 28px;
background: #e0e0e0;
padding-left:10%;
display: none;
padding-bottom: 8px;
.right{
float: right;
margin-right: 40px;
}
li{
border-bottom:1px solid #fff;
padding: 0 40px;
&:last-child{
border-bottom:none;
}
i {
float: right;
}
}
li.dispatch-time-info {
line-height: 30px;
padding: 20px 30px 20px 40px;
font-size: 25px;
}
}
}
... ...