...
|
...
|
@@ -7,6 +7,7 @@ |
|
|
var $ = require('jquery'),
|
|
|
_ = require('underscore'),
|
|
|
Mustache = require('mustache'),
|
|
|
Fastclick = require('fastclick'),
|
|
|
timer = null;
|
|
|
|
|
|
require('lazyload');
|
...
|
...
|
@@ -64,6 +65,9 @@ exports.init = function() { |
|
|
//加载更多
|
|
|
var winH = $(window).height();
|
|
|
|
|
|
//fastclick
|
|
|
Fastclick(document.body);
|
|
|
|
|
|
//read good-info template
|
|
|
$.get('/tpl/readTpl', function(data) {
|
|
|
if (data.success) {
|
...
|
...
|
@@ -270,10 +274,7 @@ exports.init = function() { |
|
|
}
|
|
|
|
|
|
//切换“最新”,“销量”,“价格”以及“筛选”功能
|
|
|
$('#goods-nav').delegate('.nav-item', 'touchstart', function(e) {
|
|
|
e.preventDefault();
|
|
|
navTouchEvt(e);
|
|
|
}).delegate('.nav-item', 'click', function(e) {
|
|
|
$('#goods-nav').delegate('.nav-item', 'click', function(e) {
|
|
|
navTouchEvt(e);
|
|
|
});
|
|
|
|
...
|
...
|
@@ -301,10 +302,7 @@ exports.init = function() { |
|
|
$('#sub-' + curType).removeClass('hide');
|
|
|
}
|
|
|
|
|
|
$('#screen-content').delegate('.c-item', 'touchstart', function(e) {
|
|
|
e.preventDefault();
|
|
|
scTouchEvt(e);
|
|
|
}).delegate('.c-item', 'click', function(e) {
|
|
|
$('#screen-content').delegate('.c-item', 'click', function(e) {
|
|
|
scTouchEvt(e);
|
|
|
});
|
|
|
|
...
|
...
|
|