Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYWAP
·
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
uedxwg
9 years ago
Commit
38fe669def2bb0561bf9b7101d10e84bc56686cc
1 parent
87e995c3
'修复购物车数据不能呢点击'
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
static/js/cart/chose-panel.js
template/m.yohobuy.com/actions/product/detail/index.phtml
static/js/cart/chose-panel.js
View file @
38fe669
...
...
@@ -316,6 +316,7 @@ $yohoPage.on('touchstart', '.btn-minus', function() {
return
;
}
//TODO status change
if
(
$
(
'#chose-btn-sure'
).
html
()
===
'已售罄'
)
{
return
;
...
...
@@ -327,7 +328,10 @@ $yohoPage.on('touchstart', '.btn-minus', function() {
tip
.
show
(
'您选择的数量超过了最大库存量~'
);
return
;
}
if
(
num
<
0
)
{
tip
.
show
(
'您选择的数量小于一件~'
);
return
;
}
$chosed
=
$
(
'.block-list>ul>li.chosed'
);
if
(
2
===
$chosed
.
length
&&
0
===
$chosed
.
closest
(
'.zero-stock'
).
length
)
{
...
...
template/m.yohobuy.com/actions/product/detail/index.phtml
View file @
38fe669
...
...
@@ -118,8 +118,7 @@
{
{#cartInfo
}
}
<div
class=
"cart-bar"
>
<span
class=
"num-tag hide"
></span>
<a
href=
"{{cartUrl}}"
class=
"num-incart iconfont"
>
62
c;</a>
<a
href=
"{{cartUrl}}"
class=
"num-incart iconfont"
><span
class=
"num-tag hide"
></span>
62
c;</a>
{
{#if
addToCartUrl
}
}
<!--
<a
id=
"addtoCart"
href=
"{{addToCartUrl}}"
class=
"addto-cart"
>加入购物车</a>
-->
...
...
Please
register
or
login
to post a comment