Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuy-node
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
1
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
htoooth
8 years ago
Commit
34876ac21e8be4b08693ea0e6fc95ae4addfd02a
1 parent
478e88cf
fix css
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
apps/product/views/partial/product/detail-header.hbs
public/js/product/detail.page.js
apps/product/views/partial/product/detail-header.hbs
View file @
34876ac
...
...
@@ -149,7 +149,7 @@
{{/if}}
<span
id=
"sold-out"
class=
"buy-btn dis
{{#
unless
soldOut
}}
hide
{{/
unless
}}
"
>
<i
class=
"iconfont"
>
æ
43
;
</i>
已售罄
<i
class=
"iconfont"
>
æ
1c
;
</i>
已售罄
</span>
<span
id=
"enable-notify"
class=
"buy-btn hide"
>
<i
class=
"iconfont"
>
...
...
public/js/product/detail.page.js
View file @
34876ac
...
...
@@ -34,7 +34,8 @@ var $main = $('.main'),
deposit
=
$main
.
data
(
'deposit'
)
===
'Y'
,
secKill
=
$main
.
data
(
'seckill'
)
===
'Y'
,
limitCode
=
$main
.
data
(
'limitcode'
),
isBundleProduct
=
$main
.
data
(
'type'
)
===
2
,
// 量贩商品
isBundleProduct
=
$main
.
data
(
'type'
)
===
2
,
// 量贩商品,
isPackageProduct
=
$main
.
data
(
'type'
)
===
1
,
// 套餐商品
goodsBaseNum
=
isBundleProduct
?
$main
.
data
(
'count'
)
:
1
;
// 每次购买最低件数
var
maxStock
=
-
1
;
// 记录当前选中的颜色-尺码的库存量,若为-1,代表未选择尺码
...
...
@@ -1481,6 +1482,10 @@ window.fetchRecommend = window.once(loadRecommend);
// 加载套餐默认信息
$
(
function
()
{
if
(
!
isPackageProduct
)
{
return
;
}
return
$
.
ajax
({
type
:
'GET'
,
url
:
'/product/detail/getPacakge'
,
...
...
@@ -1488,7 +1493,6 @@ $(function() {
skn
:
skn
}
}).
then
(
function
(
result
)
{
console
.
log
(
result
);
if
(
result
.
code
===
200
&&
result
.
data
.
packageData
.
length
>
0
)
{
var
packageTpl
=
require
(
'hbs/product/package.hbs'
);
// eslint-disable-line
...
...
Please
register
or
login
to post a comment