Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHO-ACTIVITY-PHP
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
梁志锋
9 years ago
Commit
a1a459114aa0e2f67919b05a0846736d8b2f982b
1 parent
afb7be40
购物车修改
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
static/js/cart/chose-panel.js
static/js/cart/gift-advance.js
static/js/cart/chose-panel.js
View file @
a1a4591
...
...
@@ -30,6 +30,7 @@ var $chosePanel = $('#chose-panel'),
cbFn
,
cartType
,
$allChoseItems
,
queryString
,
$yohoPage
=
$
(
'.yoho-page'
);
//初始化购物车面板显示
...
...
@@ -39,6 +40,7 @@ function init() {
hasChooseColor
=
false
;
hasChooseSize
=
false
;
$curSizeBlock
=
null
;
queryString
=
$
.
queryString
();
$imgsThumb
=
$
(
'.chose-panel'
).
find
(
'.thumb'
);
$allChoseItems
=
$
(
'.chose-items'
);
$sizeRowList
=
$
(
'.size-list ul'
);
...
...
@@ -167,7 +169,7 @@ $yohoPage.on('touchstart', '.color-list .block', function(e) {
$preSiblingBlock
.
removeClass
(
'chosed'
);
curSizeBlock
=
$curSizeRow
.
children
().
get
(
scindex
);
}
// 当前选中颜色对应的尺码行,其对应的尺码加上勾选样式 (前提是要判断下这个尺码是否存在)
if
(
curSizeBlock
)
{
curGoodNum
=
$
(
curSizeBlock
).
data
(
'num'
);
...
...
@@ -324,7 +326,7 @@ $yohoPage.on('touchstart', '.btn-minus', function() {
buyNumber
:
buyNumber
,
promotionId
:
promotionId
,
isEdit
:
isEdit
,
cartType
:
cartType
cartType
:
queryString
.
cartType
}
}).
done
(
function
(
res
)
{
loading
.
hideLoadingMask
();
...
...
static/js/cart/gift-advance.js
View file @
a1a4591
...
...
@@ -26,7 +26,7 @@ function getProductInfo(skn, promotionId) {
return
;
}
chosePanel
.
show
(
html
,
function
()
{
window
.
location
.
href
=
'/cart/index/
orderEnsure
?cartType='
+
queryString
.
cartType
;
window
.
location
.
href
=
'/cart/index/
index
?cartType='
+
queryString
.
cartType
;
});
},
function
()
{
tip
.
show
(
'网络错误'
);
...
...
Please
register
or
login
to post a comment