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
biao
9 years ago
Commit
48fe6454b5e60624580dc2baf430bddf93785fe9
1 parent
c072d6ac
修复问题:1.限购商品购买数量不可选。2.“即将开售”改为“即将发售”。3.限购码获取按钮灰色时点击背景不变色
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
12 deletions
static/js/cart/chose-panel.js
static/sass/product/_detail.scss
template/m.yohobuy.com/actions/product/detail/index.phtml
static/js/cart/chose-panel.js
View file @
48fe645
...
...
@@ -49,6 +49,16 @@ var limitProductCode,
// 限购商品的skn。只有限购商品时才会设置。
skn
;
//禁用数字编辑
function
disableNumEdit
()
{
var
$numBtn
=
$
(
'.chose-panel'
).
find
(
'.num .btn>.iconfont'
);
//添加disabled样式
$numBtn
.
hasClass
(
'disabled'
)
?
null
:
$numBtn
.
addClass
(
'disabled'
);
$yohoPage
.
off
(
'touchstart'
,
'.btn-minus'
);
$yohoPage
.
off
(
'touchstart'
,
'.btn-plus'
);
}
// 初始化购物车面板显示
function
init
()
{
...
...
@@ -94,6 +104,7 @@ function setEditModeWithSknId(sknId, isThisGoodSelected) {
* @return {undefined}
*/
function
setLimitGoodModeWithSknId
(
code
,
sknId
)
{
disableNumEdit
();
$
(
'#chose-btn-sure'
).
html
(
'立即购买'
);
limitProductCode
=
code
;
skn
=
sknId
;
...
...
@@ -127,16 +138,6 @@ function checkColorSizeNum() {
return
true
;
}
//禁用数字编辑
function
disableNumEdit
()
{
var
$numBtn
=
$
(
'.chose-panel'
).
find
(
'.num .btn>.iconfont'
);
//添加disabled样式
$numBtn
.
hasClass
(
'disabled'
)
?
null
:
$numBtn
.
addClass
(
'disabled'
);
$yohoPage
.
off
(
'touchstart'
,
'.btn-minus'
);
$yohoPage
.
off
(
'touchstart'
,
'.btn-plus'
);
}
function
show
(
html
,
cb
)
{
...
...
static/sass/product/_detail.scss
View file @
48fe645
...
...
@@ -299,7 +299,7 @@ $basicBtnC:#eb0313;
font-weight
:
bold
;
}
.limit-sale
:active
{
.limit-sale
:
not
(
.got-limit-sale
)
:
active
{
background-color
:
#f0f0f0
;
}
...
...
template/m.yohobuy.com/actions/product/detail/index.phtml
View file @
48fe645
...
...
@@ -148,7 +148,7 @@
{
{/if
}
}
{
{#if
limitNotForSale
}
}
<a
href=
"javascript:;"
class=
"sold-out limit"
>即将
开
售</a>
<a
href=
"javascript:;"
class=
"sold-out limit"
>即将
发
售</a>
{
{/if
}
}
{
{#if
canBuyLimit
}
}
...
...
Please
register
or
login
to post a comment