Authored by xuqi

zepto -> jquery 2.1.4

... ... @@ -4,9 +4,9 @@
* @date: 2015/10/23
*/
var $ = require('yoho.zepto'),
var $ = require('jquery'),
Swiper = require('yoho.iswiper'),
lazyLoad = require('yoho.zeptolazyload');
lazyLoad = require('yoho.lazyload');
var swiper,
$brandList = $('.brand-list');
... ...
... ... @@ -4,7 +4,7 @@
* @date: 2015/10/14
*/
var $ = require('yoho.zepto');
var $ = require('jquery');
var $nav = $('.category-nav'),
$contents = $('.category-container > .content');
... ...
... ... @@ -3,7 +3,7 @@
* @author: xuqi<qi.xu@yoho.cn>
* @date: 2015/10/21
*/
var $ = require('yoho.zepto');
var $ = require('jquery');
function cookie(name) {
var cookies = document.cookie,
... ...
... ... @@ -4,9 +4,9 @@
* @date: 2015/10/13
*/
var $ = require('yoho.zepto'),
var $ = require('jquery'),
ellipsis = require('mlellipsis'),
lazyLoad = require('yoho.zeptolazyload'),
lazyLoad = require('yoho.lazyload'),
IScroll = require('iscroll/iscroll-probe');
var $authorIntro = $('.author .intro');
... ...
... ... @@ -4,7 +4,7 @@
* @date: 2015/10/10
*/
var $ = require('yoho.zepto'),
var $ = require('jquery'),
Swiper = require('yoho.iswiper');
var info = require('./info'),
... ...
... ... @@ -4,9 +4,9 @@
* @date: 2015/10/10
*/
var $ = require('yoho.zepto'),
var $ = require('jquery'),
ellipsis = require('mlellipsis'),
lazyLoad = require('yoho.zeptolazyload');
lazyLoad = require('yoho.lazyload');
var tip = require('../plugin/tip');
var loading = require('../plugin/loading');
... ...
... ... @@ -4,7 +4,7 @@
* @date: 2015/10/10
*/
var $ = require('yoho.zepto');
var $ = require('jquery');
var info = require('./info'),
loadMore = info.loadMore;
... ...
... ... @@ -4,9 +4,9 @@
* @date: 2015/10/10
*/
var $ = require('yoho.zepto'),
var $ = require('jquery'),
ellipsis = require('mlellipsis'),
lazyLoad = require('yoho.zeptolazyload');
lazyLoad = require('yoho.lazyload');
var $intro = $('#intro'),
$imt = $('#intro-more-txt'),
... ...
... ... @@ -4,8 +4,8 @@
* @date: 2015/10/10
*/
var $ = require('yoho.zepto'),
lazyLoad = require('yoho.zeptolazyload'),
var $ = require('jquery'),
lazyLoad = require('yoho.lazyload'),
Swiper = require('yoho.iswiper');
var $navs = $('#nav-tab > li'),
... ...
... ... @@ -3,9 +3,9 @@
* @author: liangzhifeng<zhifeng.liang@yoho.cn>
* @date: 2015/10/12
*/
var $ = require('yoho.zepto'),
var $ = require('jquery'),
Swiper = require('yoho.iswiper'),
lazyLoad = require('yoho.zeptolazyload'),
lazyLoad = require('yoho.lazyload'),
bannerSwiper,
recommendSwiper,
hotBrandsSwiper,
... ...
... ... @@ -4,9 +4,9 @@
* @date: 2015/10/12
*/
var $ = require('yoho.zepto'),
var $ = require('jquery'),
tip = require('../plugin/tip'),
lazyLoad = require('yoho.zeptolazyload');
lazyLoad = require('yoho.lazyload');
var winH = $(window).height(),
loadMoreH = $('#load-more').height(),
... ...
... ... @@ -4,7 +4,7 @@
* @date: 2015/10/26
*/
var $ = require('yoho.zepto');
var $ = require('jquery');
var $searchBox = $('.search-box'),
$indexSearch = $('.index-search'),
... ...
... ... @@ -4,7 +4,7 @@
* @date: 2015/10/19
*/
var $ = require('yoho.zepto');
var $ = require('jquery');
var $input = $('#search-input input');
... ...
... ... @@ -3,7 +3,7 @@
* @author: xuqi<qi.xu@yoho.cn>
* @date: 2015/10/8
*/
var $ = require('yoho.zepto');
var $ = require('jquery');
var trim = $.trim;
... ...
... ... @@ -4,7 +4,7 @@
* @date: 2015/10/8
*/
var $ = require('yoho.zepto');
var $ = require('jquery');
var $resend = $('#resend');
... ...
... ... @@ -3,7 +3,7 @@
* @author: xuqi<qi.xu@yoho.cn>
* @date: 2015/10/8
*/
var $ = require('yoho.zepto');
var $ = require('jquery');
var $email = $('#email'),
$btnSure = $('#btn-sure');
... ...
... ... @@ -3,7 +3,7 @@
* @author: xuqi<qi.xu@yoho.cn>
* @date: 2015/10/8
*/
var $ = require('yoho.zepto');
var $ = require('jquery');
var $phoneNum = $('#phone-num'),
$countrySelect = $('#country-select'),
... ...
... ... @@ -3,7 +3,7 @@
* @author: xuqi<qi.xu@yoho.cn>
* @date: 2015/10/8
*/
var $ = require('yoho.zepto');
var $ = require('jquery');
var $pwd = $('#pwd'),
$btnOk = $('#btn-ok');
... ...
... ... @@ -3,7 +3,7 @@
* @author: xuqi<qi.xu@yoho.cn>
* @date: 2015/10/8
*/
var $ = require('yoho.zepto');
var $ = require('jquery');
module.exports = function(useInRegister) {
var $captcha = $('#captcha'),
... ...
... ... @@ -3,7 +3,7 @@
* @author: xuqi<qi.xu@yoho.cn>
* @date: 2015/10/8
*/
var $ = require('yoho.zepto');
var $ = require('jquery');
var $phoneNum = $('#phone-num'),
$countrySelect = $('#country-select'),
... ...
... ... @@ -3,7 +3,7 @@
* @author: xuqi<qi.xu@yoho.cn>
* @date: 2015/9/30
*/
var $ = require('yoho.zepto');
var $ = require('jquery');
var $account = $('#account'),
$pwd = $('#pwd'),
... ...
... ... @@ -3,7 +3,7 @@
* @author: xuqi<qi.xu@yoho.cn>
* @date: 2015/10/8
*/
var $ = require('yoho.zepto');
var $ = require('jquery');
var $pwd = $('#pwd'),
$btnSure = $('#btn-sure');
... ...
... ... @@ -3,7 +3,7 @@
* @author: xuqi<qi.xu@yoho.cn>
* @date: 2015/10/8
*/
var $ = require('yoho.zepto');
var $ = require('jquery');
var $phoneNum = $('#phone-num'),
$countrySelect = $('#country-select'),
... ...
... ... @@ -5,7 +5,7 @@
* @date: 2015/10/19
*/
var $ = require('yoho.zepto');
var $ = require('jquery');
var $filter = $('.filter-mask');
... ... @@ -33,7 +33,7 @@ function registerCbFn(cb) {
$classify.children(':first-child').addClass('active'); //T:不在HTML中使用{{#if @first}}active{{/if}}来初始化active为避免sub设置高度时的闪烁
//classify switch
$classify.delegate('.classify-item', 'tap', function(e) {
$classify.delegate('.classify-item', 'click', function(e) {
var $this = $(this);
e.stopPropagation();
... ... @@ -48,11 +48,11 @@ $classify.delegate('.classify-item', 'tap', function(e) {
});
//点击Mask隐藏筛选界面
$filter.tap(function() {
$filter.click(function() {
hideFilter();
});
$subClassify.delegate('li', 'tap', function(e) {
$subClassify.delegate('li', 'click', function(e) {
var $this = $(this),
id = $this.data('id');
... ...
... ... @@ -4,7 +4,7 @@
* @date: 2015/10/29
*/
var $ = require('yoho.zepto');
var $ = require('jquery');
var $page = $('.yoho-page');
... ...
... ... @@ -3,7 +3,7 @@
* @author: xuqi<qi.xu@yoho.cn>
* @date: 2015/10/10
*/
var $ = require('yoho.zepto');
var $ = require('jquery');
var $tip, tipItime;
... ...
... ... @@ -3,9 +3,9 @@
* @author: liangzhifeng<zhifeng.liang@yoho.cn>
* @date: 2015/10/20
*/
var $ = require('yoho.zepto'),
var $ = require('jquery'),
Swiper = require('yoho.iswiper'),
lazyLoad = require('yoho.zeptolazyload'),
lazyLoad = require('yoho.lazyload'),
goodsSwiper;
lazyLoad($('img.lazy'));
... ...
... ... @@ -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'),
... ...
... ... @@ -4,9 +4,9 @@
* @date: 2015/10/20
*/
var $ = require('yoho.zepto'),
var $ = require('jquery'),
Swiper = require('yoho.iswiper'),
lazyLoad = require('yoho.zeptolazyload');
lazyLoad = require('yoho.lazyload');
var swiper;
... ... @@ -217,7 +217,6 @@ function search(opt) {
lazyLoad($('.lazy'));
filter.registerCbFn(search);
// loading.initLoadingMask();
//导航栏点击逻辑说明:
//1.点击非active项时切换active状态
... ...
... ... @@ -4,9 +4,9 @@
* @date: 2015/10/24
*/
var $ = require('yoho.zepto'),
var $ = require('jquery'),
Swiper = require('yoho.iswiper'),
lazyLoad = require('yoho.zeptolazyload');
lazyLoad = require('yoho.lazyload');
var swiper;
... ... @@ -244,7 +244,6 @@ function search(opt) {
lazyLoad($('.lazy'));
filter.registerCbFn(search);
// loading.initLoadingMask();
//导航栏点击逻辑说明:
//1.点击非active项时切换active状态
... ...
... ... @@ -4,7 +4,7 @@
* @date: 2015/10/20
*/
var $ = require('yoho.zepto');
var $ = require('jquery');
var $cartContent = $('.cart-content');
... ...
... ... @@ -5,7 +5,7 @@
* @date: 2015/10/21
*/
var $ = require('yoho.zepto');
var $ = require('jquery');
var Handlebars = require('yoho.handlebars');
var $page = $('.yoho-page');
... ...
... ... @@ -4,8 +4,8 @@
* @date: 2015/10/23
*/
var $ = require('yoho.zepto'),
lazyLoad = require('yoho.zeptolazyload');
var $ = require('jquery'),
lazyLoad = require('yoho.lazyload');
var chosePanel = require('./chose-panel');
... ...
... ... @@ -4,9 +4,9 @@
* @date: 2015/10/20
*/
var $ = require('yoho.zepto'),
var $ = require('jquery'),
ellipsis = require('mlellipsis'),
lazyLoad = require('yoho.zeptolazyload');
lazyLoad = require('yoho.lazyload');
var chosePanel = require('./chose-panel');
... ...
... ... @@ -16,13 +16,12 @@
"spm": {
"main": "index.js",
"dependencies": {
"yoho.zepto": "1.1.61",
"yoho.jquery": "1.8.3",
"jquery": "2.1.4",
"mlellipsis": "0.0.6",
"yoho.iswiper": "3.0.1",
"iscroll": "5.1.2",
"import-style": "1.0.0",
"yoho.zeptolazyload": "0.0.2",
"yoho.lazyload": "1.1.0",
"yoho.handlebars": "3.0.3"
},
"devDependencies": {
... ...