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
Plain Diff
Browse Files
Authored by
梁志锋
9 years ago
Commit
7caa7633e7a03db02a7236dd6b831644be5da8f3
2 parents
8ba4b0fe
93cf2159
Merge branch 'develop' of
http://git.dev.yoho.cn/web/yohobuy
into develop
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
25 additions
and
18 deletions
library/LibModels/Wap/Home/UserData.php
static/js/product/detail/detail.js
static/sass/product/_detail.scss
template/m.yohobuy.com/actions/product/detail/index.phtml
library/LibModels/Wap/Home/UserData.php
View file @
7caa763
...
...
@@ -364,7 +364,7 @@ class UserData
public
static
function
suggestData
(
$udid
,
$page
=
1
,
$limit
=
30
)
{
$param
=
Yohobuy
::
param
();
$param
[
'udid'
]
=
$udid
;
$param
[
'udid'
]
=
$udid
.
'13686403'
;
// 为了兼容udid长度
$param
[
'page'
]
=
$page
;
$param
[
'limit'
]
=
$limit
;
$param
[
'client_secret'
]
=
Sign
::
getSign
(
$param
);
...
...
@@ -385,7 +385,7 @@ class UserData
{
$param
=
Yohobuy
::
param
();
$param
[
'uid'
]
=
$uid
;
$param
[
'udid'
]
=
$udid
;
$param
[
'udid'
]
=
$udid
.
'13686403'
;
// 为了兼容udid长度
$param
[
'is_reliable'
]
=
$reliable
;
$param
[
'suggest_id'
]
=
$suggest_id
;
$param
[
'client_secret'
]
=
Sign
::
getSign
(
$param
);
...
...
static/js/product/detail/detail.js
View file @
7caa763
...
...
@@ -13,7 +13,8 @@ var goodsSwiper,
$discountArrow
=
$
(
'.goodsDiscount .first-item span'
);
var
goodsDiscountEl
=
document
.
getElementById
(
'goodsDiscount'
),
goodsDiscountHammer
=
goodsDiscountEl
&&
new
Hammer
(
goodsDiscountEl
);
goodsDiscountHammer
=
goodsDiscountEl
&&
new
Hammer
(
goodsDiscountEl
),
$discountFirstItem
=
$
(
goodsDiscountEl
).
find
(
'.first-item'
);
var
$cart
=
$
(
'.cart-bar'
);
...
...
@@ -62,9 +63,11 @@ if (0 === $discountFolder.children().length) {
if
(
goodsDiscountHammer
&&
$discountFolder
.
children
().
length
>
0
)
{
goodsDiscountHammer
.
on
(
'tap'
,
function
(
e
)
{
if
(
$discountFolder
.
is
(
':hidden'
))
{
$discountFirstItem
.
removeClass
(
'short-text'
);
$discountArrow
.
removeClass
(
'icon-down'
).
addClass
(
'icon-up'
).
html
(
''
);
$discountFolder
.
slideDown
();
}
else
{
$discountFirstItem
.
addClass
(
'short-text'
);
$discountArrow
.
removeClass
(
'icon-up'
).
addClass
(
'icon-down'
).
html
(
''
);
$discountFolder
.
slideUp
();
}
...
...
static/sass/product/_detail.scss
View file @
7caa763
...
...
@@ -359,11 +359,15 @@ $basicBtnC:#eb0313;
position
:
relative
;
padding
:
pxToRem
(
30px
)
pxToRem
(
60px
)
pxToRem
(
30px
)
pxToRem
(
28px
);
line-height
:
pxToRem
(
36px
);
// line-height: pxToRem(88px);
}
.short-text
{
white-space
:
nowrap
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
// line-height: pxToRem(88px);
}
.iconfont
{
position
:
absolute
;
top
:
pxToRem
(
30px
);
...
...
template/m.yohobuy.com/actions/product/detail/index.phtml
View file @
7caa763
...
...
@@ -30,7 +30,7 @@
{
{#
goodsName
}
}
<h
2
class=
"goodsName"
><span>
{
{.
}
}</span></h
2
>
{
{/
goodsName
}
}
{
{#
goodsSubtitle
}
}
<h
1
class=
"goodsSubtitle"
><span>
{
{.
}
}</span></h
1
>
{
{/
goodsSubtitle
}
}
...
...
@@ -59,7 +59,7 @@
</span>
<span
class=
"vip-price "
>
{
{text
}
}</span>
</li>
{
{/
list
}
}
{
{/
list
}
}
</ul>
{
{/vipLevel
}
}
...
...
@@ -68,10 +68,10 @@
{
{#
list
}
}
{
{#if
@first
}
}
{
{#if
text
}
}
<h
1
class=
"first-item"
>
{
{text
}
}<span
class=
"icon-down iconfont dropdown"
>
609
;</span></h
1
>
{
{/if
}
}
<h
1
class=
"first-item short-text"
>
{
{text
}
}<span
class=
"icon-down iconfont dropdown"
>
609
;</span></h
1
>
{
{/if
}
}
{
{/if
}
}
{
{/
list
}
}
{
{/
list
}
}
<div
class=
"discount-folder"
>
{
{#
list
}
}
{
{#if
@first
}
}
...
...
@@ -81,12 +81,12 @@
{
{/if
}
}
{
{/if
}
}
{
{/list
}
}
</div>
</div>
</div>
{
{/
goodsDiscount
}
}
{
{#
feedbacks
}
}
<div
class=
"feedback-list "
>
<div
class=
"feedback-list "
>
{
{#if
commentsNum
}
}
{
{>
product/feedback-tab
}
}
{
{else
}
}
...
...
@@ -101,15 +101,15 @@
{
{/if
}
}
</div>
{
{/
feedbacks
}
}
{
{#
enterStore
}
}
{
{#
enterStore
}
}
<div
id=
"enter-store"
class=
"enter-store page-block"
>
<a
class=
"store-logo"
href=
"{{url}}"
style=
""
>
<img
class=
"lazy"
data-original=
"{{img}}"
alt=
"{{storeName}}"
>
</a>
<a
class=
"store-name"
href=
"{{url}}"
>
{
{storeName
}
}</a>
<a
class=
"store-link"
href=
"{{url}}"
>进入店铺<span
class=
"iconfont"
>
604
;</span></a>
</div>
</div>
{
{/
enterStore
}
}
<div
id=
"productDesc"
>
</div>
...
...
@@ -117,10 +117,10 @@
{
{>
product/recommend-for-you
}
}
{
{#cartInfo
}
}
<div
class=
"cart-bar"
>
<div
class=
"cart-bar"
>
<span
class=
"num-tag hide"
></span>
<a
href=
"{{cartUrl}}"
class=
"num-incart iconfont"
>
62
c;</a>
{
{#if
addToCartUrl
}
}
<a
id=
"addtoCart"
href=
"{{addToCartUrl}}"
class=
"addto-cart"
>加入购物车</a>
{
{/if
}
}
...
...
@@ -133,7 +133,7 @@
<a
href=
"javascript:;"
class=
"sold-out"
>非卖品</a>
{
{/if
}
}
<a
href=
"javascript:;"
id=
"likeBtn"
class=
"favorite iconfont {{#isCollect}}liked{{/isCollect}}"
>
605
;</a>
<a
href=
"javascript:;"
id=
"likeBtn"
class=
"favorite iconfont {{#isCollect}}liked{{/isCollect}}"
>
605
;</a>
</div>
{
{/cartInfo
}
}
{
{#if
introUrl
}
}
...
...
@@ -147,4 +147,4 @@
{
{/if
}
}
</div>
{
{>
layout/footer
}
}
\ No newline at end of file
{
{>
layout/footer
}
}
...
...
Please
register
or
login
to post a comment