Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYPC
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
2
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
xuqi
9 years ago
Commit
8ddaea5fb5c5b9f462aaaf89852f1fc3bd2ed321
1 parent
7f0c268f
zepto -> jquery 2.1.4
Hide whitespace changes
Inline
Side-by-side
Showing
35 changed files
with
57 additions
and
60 deletions
static/js/category/brand.js
static/js/category/index.js
static/js/common.js
static/js/guang/detail.js
static/js/guang/home.js
static/js/guang/info.js
static/js/guang/list.js
static/js/guang/plus-star/detail.js
static/js/guang/plus-star/list.js
static/js/home/home.js
static/js/home/maybe-like.js
static/js/index/footer.js
static/js/index/search.js
static/js/passport/api.js
static/js/passport/back/email-success.js
static/js/passport/back/email.js
static/js/passport/back/mobile.js
static/js/passport/back/new-password.js
static/js/passport/code.js
static/js/passport/login/international.js
static/js/passport/login/login.js
static/js/passport/register/password.js
static/js/passport/register/register.js
static/js/plugin/filter.js
static/js/plugin/loading.js
static/js/plugin/tip.js
static/js/product/detail/detail.js
static/js/product/list.js
static/js/product/newsale/discount.js
static/js/product/newsale/newarrival.js
static/js/shopping-cart/cart.js
static/js/shopping-cart/chose-panel.js
static/js/shopping-cart/gift-advance.js
static/js/shopping-cart/good.js
static/package.json
static/js/category/brand.js
View file @
8ddaea5
...
...
@@ -4,9 +4,9 @@
* @date: 2015/10/23
*/
var
$
=
require
(
'
yoho.zepto
'
),
var
$
=
require
(
'
jquery
'
),
Swiper
=
require
(
'yoho.iswiper'
),
lazyLoad
=
require
(
'yoho.
zepto
lazyload'
);
lazyLoad
=
require
(
'yoho.lazyload'
);
var
swiper
,
$brandList
=
$
(
'.brand-list'
);
...
...
static/js/category/index.js
View file @
8ddaea5
...
...
@@ -4,7 +4,7 @@
* @date: 2015/10/14
*/
var
$
=
require
(
'
yoho.zepto
'
);
var
$
=
require
(
'
jquery
'
);
var
$nav
=
$
(
'.category-nav'
),
$contents
=
$
(
'.category-container > .content'
);
...
...
static/js/common.js
View file @
8ddaea5
...
...
@@ -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
,
...
...
static/js/guang/detail.js
View file @
8ddaea5
...
...
@@ -4,9 +4,9 @@
* @date: 2015/10/13
*/
var
$
=
require
(
'
yoho.zepto
'
),
var
$
=
require
(
'
jquery
'
),
ellipsis
=
require
(
'mlellipsis'
),
lazyLoad
=
require
(
'yoho.
zepto
lazyload'
),
lazyLoad
=
require
(
'yoho.lazyload'
),
IScroll
=
require
(
'iscroll/iscroll-probe'
);
var
$authorIntro
=
$
(
'.author .intro'
);
...
...
static/js/guang/home.js
View file @
8ddaea5
...
...
@@ -4,7 +4,7 @@
* @date: 2015/10/10
*/
var
$
=
require
(
'
yoho.zepto
'
),
var
$
=
require
(
'
jquery
'
),
Swiper
=
require
(
'yoho.iswiper'
);
var
info
=
require
(
'./info'
),
...
...
static/js/guang/info.js
View file @
8ddaea5
...
...
@@ -4,9 +4,9 @@
* @date: 2015/10/10
*/
var
$
=
require
(
'
yoho.zepto
'
),
var
$
=
require
(
'
jquery
'
),
ellipsis
=
require
(
'mlellipsis'
),
lazyLoad
=
require
(
'yoho.
zepto
lazyload'
);
lazyLoad
=
require
(
'yoho.lazyload'
);
var
tip
=
require
(
'../plugin/tip'
);
var
loading
=
require
(
'../plugin/loading'
);
...
...
static/js/guang/list.js
View file @
8ddaea5
...
...
@@ -4,7 +4,7 @@
* @date: 2015/10/10
*/
var
$
=
require
(
'
yoho.zepto
'
);
var
$
=
require
(
'
jquery
'
);
var
info
=
require
(
'./info'
),
loadMore
=
info
.
loadMore
;
...
...
static/js/guang/plus-star/detail.js
View file @
8ddaea5
...
...
@@ -4,9 +4,9 @@
* @date: 2015/10/10
*/
var
$
=
require
(
'
yoho.zepto
'
),
var
$
=
require
(
'
jquery
'
),
ellipsis
=
require
(
'mlellipsis'
),
lazyLoad
=
require
(
'yoho.
zepto
lazyload'
);
lazyLoad
=
require
(
'yoho.lazyload'
);
var
$intro
=
$
(
'#intro'
),
$imt
=
$
(
'#intro-more-txt'
),
...
...
static/js/guang/plus-star/list.js
View file @
8ddaea5
...
...
@@ -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'
),
...
...
static/js/home/home.js
View file @
8ddaea5
...
...
@@ -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.
zepto
lazyload'
),
lazyLoad
=
require
(
'yoho.lazyload'
),
bannerSwiper
,
recommendSwiper
,
hotBrandsSwiper
,
...
...
static/js/home/maybe-like.js
View file @
8ddaea5
...
...
@@ -4,9 +4,9 @@
* @date: 2015/10/12
*/
var
$
=
require
(
'
yoho.zepto
'
),
var
$
=
require
(
'
jquery
'
),
tip
=
require
(
'../plugin/tip'
),
lazyLoad
=
require
(
'yoho.
zepto
lazyload'
);
lazyLoad
=
require
(
'yoho.lazyload'
);
var
winH
=
$
(
window
).
height
(),
loadMoreH
=
$
(
'#load-more'
).
height
(),
...
...
static/js/index/footer.js
View file @
8ddaea5
...
...
@@ -4,7 +4,7 @@
* @date: 2015/10/26
*/
var
$
=
require
(
'
yoho.zepto
'
);
var
$
=
require
(
'
jquery
'
);
var
$searchBox
=
$
(
'.search-box'
),
$indexSearch
=
$
(
'.index-search'
),
...
...
static/js/index/search.js
View file @
8ddaea5
...
...
@@ -4,7 +4,7 @@
* @date: 2015/10/19
*/
var
$
=
require
(
'
yoho.zepto
'
);
var
$
=
require
(
'
jquery
'
);
var
$input
=
$
(
'#search-input input'
);
...
...
static/js/passport/api.js
View file @
8ddaea5
...
...
@@ -3,7 +3,7 @@
* @author: xuqi<qi.xu@yoho.cn>
* @date: 2015/10/8
*/
var
$
=
require
(
'
yoho.zepto
'
);
var
$
=
require
(
'
jquery
'
);
var
trim
=
$
.
trim
;
...
...
static/js/passport/back/email-success.js
View file @
8ddaea5
...
...
@@ -4,7 +4,7 @@
* @date: 2015/10/8
*/
var
$
=
require
(
'
yoho.zepto
'
);
var
$
=
require
(
'
jquery
'
);
var
$resend
=
$
(
'#resend'
);
...
...
static/js/passport/back/email.js
View file @
8ddaea5
...
...
@@ -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'
);
...
...
static/js/passport/back/mobile.js
View file @
8ddaea5
...
...
@@ -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'
),
...
...
static/js/passport/back/new-password.js
View file @
8ddaea5
...
...
@@ -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'
);
...
...
static/js/passport/code.js
View file @
8ddaea5
...
...
@@ -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'
),
...
...
static/js/passport/login/international.js
View file @
8ddaea5
...
...
@@ -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'
),
...
...
static/js/passport/login/login.js
View file @
8ddaea5
...
...
@@ -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'
),
...
...
static/js/passport/register/password.js
View file @
8ddaea5
...
...
@@ -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'
);
...
...
static/js/passport/register/register.js
View file @
8ddaea5
...
...
@@ -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'
),
...
...
static/js/plugin/filter.js
View file @
8ddaea5
...
...
@@ -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'
);
...
...
static/js/plugin/loading.js
View file @
8ddaea5
...
...
@@ -4,7 +4,7 @@
* @date: 2015/10/29
*/
var
$
=
require
(
'
yoho.zepto
'
);
var
$
=
require
(
'
jquery
'
);
var
$page
=
$
(
'.yoho-page'
);
...
...
static/js/plugin/tip.js
View file @
8ddaea5
...
...
@@ -3,7 +3,7 @@
* @author: xuqi<qi.xu@yoho.cn>
* @date: 2015/10/10
*/
var
$
=
require
(
'
yoho.zepto
'
);
var
$
=
require
(
'
jquery
'
);
var
$tip
,
tipItime
;
...
...
static/js/product/detail/detail.js
View file @
8ddaea5
...
...
@@ -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.
zepto
lazyload'
),
lazyLoad
=
require
(
'yoho.lazyload'
),
goodsSwiper
;
lazyLoad
(
$
(
'img.lazy'
));
...
...
static/js/product/list.js
View file @
8ddaea5
...
...
@@ -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'
),
...
...
static/js/product/newsale/discount.js
View file @
8ddaea5
...
...
@@ -4,9 +4,9 @@
* @date: 2015/10/20
*/
var
$
=
require
(
'
yoho.zepto
'
),
var
$
=
require
(
'
jquery
'
),
Swiper
=
require
(
'yoho.iswiper'
),
lazyLoad
=
require
(
'yoho.
zepto
lazyload'
);
lazyLoad
=
require
(
'yoho.lazyload'
);
var
swiper
;
...
...
@@ -217,7 +217,6 @@ function search(opt) {
lazyLoad
(
$
(
'.lazy'
));
filter
.
registerCbFn
(
search
);
// loading.initLoadingMask();
//导航栏点击逻辑说明:
//1.点击非active项时切换active状态
...
...
static/js/product/newsale/newarrival.js
View file @
8ddaea5
...
...
@@ -4,9 +4,9 @@
* @date: 2015/10/24
*/
var
$
=
require
(
'
yoho.zepto
'
),
var
$
=
require
(
'
jquery
'
),
Swiper
=
require
(
'yoho.iswiper'
),
lazyLoad
=
require
(
'yoho.
zepto
lazyload'
);
lazyLoad
=
require
(
'yoho.lazyload'
);
var
swiper
;
...
...
@@ -244,7 +244,6 @@ function search(opt) {
lazyLoad
(
$
(
'.lazy'
));
filter
.
registerCbFn
(
search
);
// loading.initLoadingMask();
//导航栏点击逻辑说明:
//1.点击非active项时切换active状态
...
...
static/js/shopping-cart/cart.js
View file @
8ddaea5
...
...
@@ -4,7 +4,7 @@
* @date: 2015/10/20
*/
var
$
=
require
(
'
yoho.zepto
'
);
var
$
=
require
(
'
jquery
'
);
var
$cartContent
=
$
(
'.cart-content'
);
...
...
static/js/shopping-cart/chose-panel.js
View file @
8ddaea5
...
...
@@ -5,7 +5,7 @@
* @date: 2015/10/21
*/
var
$
=
require
(
'
yoho.zepto
'
);
var
$
=
require
(
'
jquery
'
);
var
Handlebars
=
require
(
'yoho.handlebars'
);
var
$page
=
$
(
'.yoho-page'
);
...
...
static/js/shopping-cart/gift-advance.js
View file @
8ddaea5
...
...
@@ -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'
);
...
...
static/js/shopping-cart/good.js
View file @
8ddaea5
...
...
@@ -4,9 +4,9 @@
* @date: 2015/10/20
*/
var
$
=
require
(
'
yoho.zepto
'
),
var
$
=
require
(
'
jquery
'
),
ellipsis
=
require
(
'mlellipsis'
),
lazyLoad
=
require
(
'yoho.
zepto
lazyload'
);
lazyLoad
=
require
(
'yoho.lazyload'
);
var
chosePanel
=
require
(
'./chose-panel'
);
...
...
static/package.json
View file @
8ddaea5
...
...
@@ -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"
:
{
...
...
Please
register
or
login
to post a comment