...
|
...
|
@@ -7,8 +7,7 @@ |
|
|
var $ = require('yoho-jquery'),
|
|
|
lazyLoad = require('yoho-jquery-lazyload');
|
|
|
|
|
|
var Handlebars = require('yoho-handlebars'),
|
|
|
dot = require('yoho-jquery-dotdotdot');
|
|
|
var Handlebars = require('yoho-handlebars');
|
|
|
|
|
|
var $tabs = $('.brands-tabs');
|
|
|
var $list = $('.brands-list');
|
...
|
...
|
@@ -34,6 +33,7 @@ var tempdata = {}; |
|
|
var templete = '<div class="brands-dialog">';
|
|
|
|
|
|
require('../common');
|
|
|
require('yoho-jquery-dotdotdot')
|
|
|
|
|
|
templete += ' <div class="brands-layer">';
|
|
|
templete += ' <div class="layer-content">';
|
...
|
...
|
@@ -133,7 +133,7 @@ $(window).scroll(function() { |
|
|
// 点击字母,页面滚动到相关区域
|
|
|
$category.click(function() {
|
|
|
var name = $(this).attr('href').split('#')[1];
|
|
|
var targetTop = $list.find('[name=' + name + ']').offset().top - categoryHeight;
|
|
|
var targetTop = $list.find('[name="' + name + '"]').offset().top - categoryHeight;
|
|
|
|
|
|
if (!$gory.hasClass('category-fix')) {
|
|
|
targetTop -= categoryHeight;
|
...
|
...
|
@@ -161,7 +161,7 @@ function bindTemplete($select, data, tmp) { |
|
|
$list.find('.brands-dialog').remove();
|
|
|
myTemplate = Handlebars.compile(tmp);
|
|
|
$parent.append(myTemplate(data));
|
|
|
dot($parent.find('.right'));
|
|
|
$parent.find('.right').dotdotdot();
|
|
|
|
|
|
if (offset.right - 350 < 0) {
|
|
|
$parent.find('.brands-layer')
|
...
|
...
|
|