Authored by uedxwg

Merge branch 'develop' of http://git.dev.yoho.cn/web/yohobuy into develop

... ... @@ -83,6 +83,7 @@ function loadData($parent, url, page) {
}
if (data === ' ') {
$parent.closest('.fav-type').find('.fav-content-loading').addClass('hide');
$parent.closest('.fav-type').find('.fav-null-box').removeClass('hide');
} else if (data === 'end') {
$parent.closest('.fav-type').find('.fav-load-background')
... ...
... ... @@ -20,12 +20,27 @@ var sizeSwiper,
require('../recommend-for-you.js');
//判断是否要显示向左滑动提示
function hiddenTips($ele) {
var offsetContainer = $ele[0].getBoundingClientRect().right;
var offsetLastColumn = $ele.find('.swiper-slide:last-child')[0].getBoundingClientRect().right;
if (offsetLastColumn - offsetContainer < 0) {
$ele.next('.tips').css('display', 'none');
} else {
$ele.next('.tips').css('display', 'block');
}
}
function search() {
if (searching || end) {
return;
}
searching = true;
// alert($('#reference-swiper-container .swiper-wrapper').width());
loading.showLoadingMask();
$.ajax({
... ... @@ -47,6 +62,9 @@ function search() {
slidesPerView: 'auto'
});
hiddenTips($('#size-swiper-container'));
hiddenTips($('#reference-swiper-container'));
searching = false;
end = true;
loading.hideLoadingMask();
... ...
... ... @@ -13,6 +13,7 @@ require('./desc');
require('./comments-consults');
lazyLoad($('img.lazy'));
//顶部swiper
... ...
... ... @@ -19,6 +19,14 @@
font-weight: bold;
}
.name {
display: inline-block;
max-width: pxToRem(380px);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.tel {
float: right;
}
... ...
... ... @@ -3,7 +3,7 @@
<input type="hidden" name="id" value="">
<label class="username">
收件人姓名
<input type="text" name="consignee" value="">
<input type="text" name="consignee" maxlength="20" value="">
</label>
<label class="mobile">
手机号码
... ... @@ -17,7 +17,7 @@
</label>
<label class="address">
详细地址
<textarea name="address"></textarea>
<textarea name="address" maxlength="100"></textarea>
</label>
</form>
... ...