...
|
...
|
@@ -4,8 +4,8 @@ |
|
|
* @date: 2015/10/20
|
|
|
*/
|
|
|
|
|
|
var $ = require('yoho.zepto'),
|
|
|
lazyLoad = require('yoho.zeptolazyload');
|
|
|
var $ = require('jquery'),
|
|
|
lazyLoad = require('yoho.lazyload');
|
|
|
|
|
|
//品牌页参数
|
|
|
var $brandHeader = $('#brand-header'),
|
...
|
...
|
@@ -220,7 +220,7 @@ writeSearch.bindWirteLocal($('#search-form')); |
|
|
//3.筛选无active时点击展开筛选面板
|
|
|
//4.筛选有active时点击隐藏筛选面板并恢复点击筛选前active项的active状态
|
|
|
//5.当前active为筛选并且点击其他项时,隐藏筛选面板
|
|
|
$listNav.delegate('li', 'tap', function() {
|
|
|
$listNav.delegate('li', 'click', function() {
|
|
|
var $this = $(this),
|
|
|
nav,
|
|
|
navType,
|
...
|
...
|
@@ -319,20 +319,20 @@ $(window).scroll(function() { |
|
|
});
|
|
|
|
|
|
//品牌介绍
|
|
|
$brandHeader.children('.btn-intro').bind('tap', function() {
|
|
|
$brandHeader.children('.btn-intro').bind('click', function() {
|
|
|
$introBox.removeClass('hide');
|
|
|
});
|
|
|
|
|
|
$('.close-intro, .brand-intro-box').tap(function() {
|
|
|
$('.close-intro, .brand-intro-box').click(function() {
|
|
|
$introBox.addClass('hide');
|
|
|
});
|
|
|
|
|
|
$('#brand-intro').tap(function(e) {
|
|
|
$('#brand-intro').click(function(e) {
|
|
|
e.stopPropagation();
|
|
|
});
|
|
|
|
|
|
//品牌收藏
|
|
|
$brandHeader.children('.btn-col').bind('tap', function() {
|
|
|
$brandHeader.children('.btn-col').bind('click', function() {
|
|
|
var $this = $(this);
|
|
|
|
|
|
var id = $brandHeader.data('id'),
|
...
|
...
|
|