...
|
...
|
@@ -5,7 +5,8 @@ |
|
|
*/
|
|
|
|
|
|
var $ = require('yoho-jquery'),
|
|
|
Swiper = require('yoho-swiper');
|
|
|
Swiper = require('yoho-swiper'),
|
|
|
lazyload = require('yoho-jquery-lazyload');
|
|
|
|
|
|
var search = require('./sale/search');
|
|
|
|
...
|
...
|
@@ -29,8 +30,27 @@ $('.swiper-container').each(function() { |
|
|
|
|
|
$(function() {
|
|
|
var $saleNavSelect = $('.sale-nav-select');
|
|
|
var $vipFloor = $('.vip-floor');
|
|
|
|
|
|
$('.sale-nav').on('click', function() {
|
|
|
$saleNavSelect.toggleClass('show');
|
|
|
});
|
|
|
|
|
|
// 读取会员专享商品
|
|
|
$.ajax({
|
|
|
url: '/product/sale/search',
|
|
|
data: {
|
|
|
channel: window.queryString.channel || 'boys',
|
|
|
yh_channel: window.queryString.channel || 'boys',
|
|
|
saleType: '2',
|
|
|
type: 'all',
|
|
|
order: '0',
|
|
|
limit: '4'
|
|
|
}
|
|
|
}).then(function(res) {
|
|
|
if (/good-info/.test(res)) {
|
|
|
$vipFloor.html(res).addClass('goods-container');
|
|
|
lazyload($vipFloor.find('img.lazy'));
|
|
|
}
|
|
|
});
|
|
|
}); |
...
|
...
|
|