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
Plain Diff
Browse Files
Authored by
whb
9 years ago
Commit
413db4fa1a088f4e8033055c4e78d73a285140ef
2 parents
48eafe76
e8da80c7
Merge branch 'develop' of
http://git.dev.yoho.cn/web/yohobuy
into develop
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
3 deletions
static/js/cart/chose-panel.js
static/js/home/maybe-like.js
static/js/me/currency-new.js
static/js/cart/chose-panel.js
View file @
413db4f
...
...
@@ -150,8 +150,22 @@ function changeSizeChosed(newSizeIndex) {
return
$curSizeBlock
.
data
(
'num'
);
}
}
//老的选中尺码在新选中的颜色对应尺码中不存在,需要下述1,2,3,4
// 1.重置尺码选择的标志变量.
$curSizeBlock
=
null
;
return
0
;
hasChooseSize
=
false
;
// 2.当前颜色行隐藏
$colorRowList
.
eq
(
curColorIndex
).
addClass
(
'hide'
);
// 3.目标颜色行第一行显示
$colorRowList
.
eq
(
0
).
removeClass
(
'hide'
);
// 4.老的选中颜色去掉勾选,新的选中颜色加上勾选
//changeColorChosed(0);
return
-
1
;
}
return
0
;
}
...
...
@@ -221,6 +235,14 @@ $yohoPage.on('touchstart', '.color-list .block', function() {
$sizeRowList
.
eq
(
index
+
1
).
removeClass
(
'hide'
);
curSizeIndex
=
index
+
1
;
// 特殊处理
//if (-1 === curGoodNum) {
//
// //index = $this.data('index') - 1;
//
//}
$curColorBlock
=
$this
;
// 修改颜色时修改商品图片
...
...
static/js/home/maybe-like.js
View file @
413db4f
...
...
@@ -35,13 +35,18 @@ module.exports = function(specificGender) {
}
else
if
(
lifestyleType
)
{
//有货币页面加载男生首页的数据
url
=
specificGender
?
'/product/recom/maylike?gender=1,3'
:
'/product/recom/maylikelife'
;
url
=
specificGender
===
'lifestyle'
?
'/product/recom/maylike?gender=1,3'
:
'/product/recom/maylikelife'
;
}
else
{
gender
=
(
specificGender
===
'boys'
||
$
(
'.mobile-wrap'
).
hasClass
(
'boys-wrap'
))
?
'1,3'
:
'2,3'
,
url
=
'/product/recom/maylike?gender='
+
gender
;
}
//以防cookie异常,强制加载男首
if
(
specificGender
===
'boys'
)
{
url
=
'/product/recom/maylike?gender=1,3'
;
}
$curNav
=
$navList
.
children
(
'.focus'
);
if
(
lifestyleType
)
{
...
...
static/js/me/currency-new.js
View file @
413db4f
...
...
@@ -5,7 +5,7 @@
*/
function
getGender
()
{
return
window
.
cookie
(
'_Channel'
);
return
window
.
cookie
(
'_Channel'
)
||
'boys'
;
}
require
(
'../home/maybe-like'
)(
getGender
());
...
...
Please
register
or
login
to post a comment