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
wangqing
9 years ago
Commit
3c811c0b34ed59ef4b5d8606469402b127bf7bd5
1 parent
359e9dca
代码样式修正
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
web-static/js/header.js
web-static/js/header.js
View file @
3c811c0
...
...
@@ -16,12 +16,11 @@ var noticeSuccess = false;
* @param {[type]} options) { if (v1 [description]
* @return {[type]} [description]
*/
handlebars
.
registerHelper
(
"equalone"
,
function
(
v1
,
options
)
{
handlebars
.
registerHelper
(
'equalone'
,
function
(
v1
,
options
)
{
if
(
v1
===
'1'
)
{
//满足添加继续执行
return
options
.
fn
(
this
);
}
else
{
//不满足条件执行{{else}}部分
return
options
.
inverse
(
this
);
}
});
...
...
@@ -632,7 +631,7 @@ function actionListenDelCarGoods() {
goodsid
=
$delcargoods
.
attr
(
'goodsid'
);
cheapest
=
$delcargoods
.
attr
(
'cheapest'
);
delCartGoods
(
goodsid
,
cheapest
);
})
})
;
}
/**
* 监听点击更多打折商品
...
...
@@ -643,9 +642,9 @@ function actionListenCartMore() {
$
(
document
).
on
(
'click'
,
'.mycart_i_down'
,
function
(
e
)
{
$morecart
=
$
(
this
);
$morecart
.
toggleClass
(
"mycart_i_up"
);
$morecart
.
toggleClass
(
'mycart_i_up'
);
$
(
'#mycartmore'
).
slideToggle
(
300
);
})
})
;
}
/**
* 点击购物车
...
...
@@ -816,6 +815,7 @@ function actionLoopUpdCartNum() {
*/
function
actionExeTemplate
()
{
var
resulthtml
=
$
(
'#goodcartempwarpper'
).
html
().
replace
(
/
\\
/g
,
''
);
$
(
'#goodcartempwarpper'
).
html
(
resulthtml
);
}
/**
...
...
@@ -849,5 +849,6 @@ function init() {
actionClickMiniCartBox
();
//点击购物车跳转
actionListenDelCarGoods
();
//监听购物车删除
actionListenCartMore
();
//
};
}
init
();
\ No newline at end of file
...
...
Please
register
or
login
to post a comment