Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHO-ACTIVITY-PHP
·
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
Lynnic
9 years ago
Commit
7229af7cecf40861c6fb3987c1f38ac3da2faef9
1 parent
2c21a46b
update
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
129 additions
and
95 deletions
static/img/product/product.png
static/sass/product/_detail.scss
template/m.yohobuy.com/actions/product/detail/index.phtml
yohobuy/m.yohobuy.com/application/modules/Product/controllers/Detail.php
static/img/product/product.png
0 → 100644
View file @
7229af7
323 KB
static/sass/product/_detail.scss
View file @
7229af7
$mainFontC
:
#444444
;
$subFontC
:
#b0b0b0
;
$borderC
:
#
e0e0e
0
;
$borderC
:
#
b0b0b
0
;
$tableCellC
:
#eee
;
@function
px
ToR
em
(
$px
){
@function
px
2r
em
(
$px
){
@return
$px
*
1rem
/
$pxConvertRem
;
}
...
...
@@ -13,35 +13,37 @@ $tableCellC:#eee;
.page-block
{
box-sizing
:border-box
;
width
:
100%
;
border-bottom
:
1px
solid
$borderC
;
border-top
:
1px
solid
$borderC
;
padding
:
0
pxToRem
(
28
);
border-bottom
:
2px
solid
$borderC
;
border-top
:
2px
solid
$borderC
;
padding
:
0
px2rem
(
28
);
.title
{
min-height
:
pxToRem
(
88
);
line-height
:
pxToRem
(
88
);
min-height
:
px2rem
(
88
);
line-height
:
px2rem
(
88
);
color
:
$mainFontC
;
font
:{
size
:
px
ToR
em
(
28
);
size
:
px
2r
em
(
28
);
}
border-bottom
:
1
px
solid
$borderC
;
border-bottom
:
2
px
solid
$borderC
;
span
{
color
:
#a0a0a0
;
font
:{
size
:px
ToR
em
(
18
)
;
size
:px
2r
em
(
18
)
;
}
// vertical-align: baseline;
}
}
.detail
{
margin-top
:
pxToRem
(
20
);
margin-bottom
:
pxToRem
(
20
);
margin-top
:
px2rem
(
20
);
margin-bottom
:
px2rem
(
20
);
font-size
:
px2rem
(
24
);
line-height
:
px2rem
(
36
);
table
{
width
:
100%
;
tbody
td
{
padding
:
0
.4em
0
.8em
;
border
:
3px
solid
white
;
font-size
:
px
ToR
em
(
24
);
font-size
:
px
2r
em
(
24
);
background-color
:
$tableCellC
;
}
}
...
...
@@ -57,15 +59,15 @@ $tableCellC:#eee;
// overflow: hidden;
.is-new-lable
{
position
:
absolute
;
left
:
pxToRem
(
108
);
top
:pxToRem
(
40
)
;
height
:
pxToRem
(
35
);
width
:pxToRem
(
70
)
;
left
:
px2rem
(
108
);
top
:px2rem
(
40
)
;
height
:
px2rem
(
35
);
width
:px2rem
(
70
)
;
color
:
#fff
;
text-align
:
center
;
font-size
:
pxToRem
(
20
);
line-height
:
pxToRem
(
35
);
font-size
:
px2rem
(
20
);
line-height
:
px2rem
(
35
);
background-color
:
#7cd881
;
z-index
:
16
;
}
...
...
@@ -78,7 +80,7 @@ $tableCellC:#eee;
.swiper-pagination
{
position
:absolute
;
bottom
:
px
ToR
em
(
40
);
bottom
:
px
2r
em
(
40
);
.swiper-pagination-bullet
{
margin-right
:
2px
;
}
...
...
@@ -90,9 +92,9 @@ $tableCellC:#eee;
}
.banner-swiper
{
min-height
:
pxToRem
(
600
);
min-width
:
pxToRem
(
448
);
margin
:
pxToRem
(
30
)
pxToRem
(
96
);
min-height
:
px2rem
(
600
);
min-width
:
px2rem
(
448
);
margin
:
px2rem
(
30
)
px2rem
(
96
);
// position: relative;
overflow
:
hidden
;
ul
{
...
...
@@ -107,55 +109,55 @@ $tableCellC:#eee;
.goodsName
{
min-height
:
pxToRem
(
83
);
font-size
:
pxToRem
(
28
);
min-height
:
px2rem
(
83
);
font-size
:
px2rem
(
28
);
color
:
#fff
;
padding-left
:
pxToRem
(
25
);
padding-right
:
pxToRem
(
25
);
line-height
:
pxToRem
(
36
);
padding-left
:
px2rem
(
25
);
padding-right
:
px2rem
(
25
);
line-height
:
px2rem
(
36
);
background-color
:
#515150
;
}
.goodsSubtitle
{
min-height
:
pxToRem
(
87
);
font-size
:
pxToRem
(
24
);
line-height
:
pxToRem
(
36
);
min-height
:
px2rem
(
87
);
font-size
:
px2rem
(
24
);
line-height
:
px2rem
(
36
);
color
:
$subFontC
;
padding-left
:pxToRem
(
28
)
;
padding-right
:pxToRem
(
28
)
;
border-bottom
:
1px
solid
$borderC
;
padding-left
:px2rem
(
28
)
;
padding-right
:px2rem
(
28
)
;
border-bottom
:
2px
solid
$borderC
;
background-color
:
#f4f4f4
;
}
.price-date
{
// width: 100%;
color
:
$subFontC
;
min-height
:
pxToRem
(
88
);
padding-left
:pxToRem
(
28
)
;
padding-right
:pxToRem
(
28
)
;
border-bottom
:
1px
solid
$borderC
;
min-height
:
px2rem
(
88
);
padding-left
:px2rem
(
28
)
;
padding-right
:px2rem
(
28
)
;
border-bottom
:
2px
solid
$borderC
;
}
.goodsPrice
{
float
:
left
;
font-size
:
px
ToR
em
(
34
.59
);
font-size
:
px
2r
em
(
34
.59
);
h1
{
display
:
inline-block
;
line-height
:
px
ToR
em
(
88
);
line-height
:
px
2r
em
(
88
);
}
.currentPrice
{
color
:red
;
margin-right
:
px
ToR
em
(
10
);
margin-right
:
px
2r
em
(
10
);
}
.previousPrice
{
text-decoration
:line-through
;
}
}
.periodOfMarket
{
font-size
:
px
ToR
em
(
24
);
font-size
:
px
2r
em
(
24
);
float
:
right
;
h1
{
display
:
inline-block
;
line-height
:
px
ToR
em
(
88
);
line-height
:
px
2r
em
(
88
);
}
}
.goodsName
,
...
...
@@ -169,39 +171,39 @@ $tableCellC:#eee;
}
.vipLevel
{
display
:
table
;
min-height
:
pxToRem
(
88
);
padding-left
:pxToRem
(
28
)
;
padding-right
:pxToRem
(
28
)
;
font-size
:
pxToRem
(
22
);
min-height
:
px2rem
(
88
);
padding-left
:px2rem
(
28
)
;
padding-right
:px2rem
(
28
)
;
font-size
:
px2rem
(
22
);
color
:
#999999
;
border-bottom
:
1
px
solid
$borderC
;
border-bottom
:
2
px
solid
$borderC
;
span
{
display
:
table-cell
;
vertical-align
:
middle
;
}
.vip-img
{
padding-right
:
px
ToR
em
(
22
);
padding-right
:
px
2r
em
(
22
);
img
{
width
:
pxToRem
(
52
);
height
:
pxToRem
(
32
);
width
:
px2rem
(
52
);
height
:
px2rem
(
32
);
}
}
.vip-price
{
padding-right
:
px
ToR
em
(
55
);
padding-right
:
px
2r
em
(
55
);
}
.vip-price
:last-child
{
padding-right
:
0
;
}
}
.goodsDiscount
{
min-height
:
pxToRem
(
88
);
padding-left
:pxToRem
(
28
)
;
padding-right
:pxToRem
(
28
)
;
font-size
:
pxToRem
(
28
);
min-height
:
px2rem
(
88
);
padding-left
:px2rem
(
28
)
;
padding-right
:px2rem
(
28
)
;
font-size
:
px2rem
(
28
);
color
:
$mainFontC
;
line-height
:
pxToRem
(
88
);
border-bottom
:
1px
solid
$borderC
;
line-height
:
px2rem
(
88
);
border-bottom
:
2px
solid
$borderC
;
.iconfont
{
// padding-right:28rem/$pxConvertRem;
font-size
:
inherit
;
...
...
@@ -212,7 +214,7 @@ $tableCellC:#eee;
}
.feedback-list-page
{
padding-top
:
px
ToR
em
(
30
);
padding-top
:
px
2r
em
(
30
);
background-color
:
#f0f0f0
;
.nav-tab
{
...
...
@@ -220,20 +222,20 @@ $tableCellC:#eee;
}
.nav-tab
{
height
:
pxToRem
(
60
);
padding
:
pxToRem
(
10
)
0
;
height
:
px2rem
(
60
);
padding
:
px2rem
(
10
)
0
;
background-color
:
#fff
;
border-top
:
1px
solid
$borderC
;
border-bottom
:
1px
solid
$borderC
;
border-top
:
2px
solid
$borderC
;
border-bottom
:
2px
solid
$borderC
;
}
.comment-nav
,
.consult-nav
{
box-sizing
:
border-box
;
float
:
left
;
width
:
50%
;
height
:
pxToRem
(
60
);
line-height
:
pxToRem
(
60
);
font-size
:
pxToRem
(
28
);
height
:
px2rem
(
60
);
line-height
:
px2rem
(
60
);
font-size
:
px2rem
(
28
);
text-align
:
center
;
color
:
#ccc
;
...
...
@@ -243,28 +245,28 @@ $tableCellC:#eee;
}
.comment-nav
{
border-right
:
1
px
solid
#ccc
;
border-right
:
2
px
solid
#ccc
;
}
.comment-content
{
.comment-content-main
{
background-color
:
#fff
;
border-bottom
:
1
px
solid
$borderC
;
border-bottom
:
2
px
solid
$borderC
;
.user-name
{
font-size
:
pxToRem
(
24
);
line-height
:
pxToRem
(
62
);
font-size
:
px2rem
(
24
);
line-height
:
px2rem
(
62
);
color
:
$mainFontC
;
padding-left
:
pxToRem
(
28
);
padding-right
:
pxToRem
(
18
);
padding-left
:
px2rem
(
28
);
padding-right
:
px2rem
(
18
);
}
.goods-spec
,
.comment-time
{
font-size
:
pxToRem
(
24
);
line-height
:
pxToRem
(
62
);
font-size
:
px2rem
(
24
);
line-height
:
px2rem
(
62
);
}
.detail-content
{
font-size
:
pxToRem
(
28
);
line-height
:
pxToRem
(
36
);
font-size
:
px2rem
(
28
);
line-height
:
px2rem
(
36
);
}
.goods-spec
,
.detail-content
{
...
...
@@ -272,11 +274,11 @@ $tableCellC:#eee;
}
.detail-content
,
.comment-time
{
padding-left
:
px
ToR
em
(
28
);
padding-left
:
px
2r
em
(
28
);
}
.detail-content
{
padding-right
:
px
ToR
em
(
28
);
padding-right
:
px
2r
em
(
28
);
}
.comment-time
{
...
...
@@ -285,13 +287,13 @@ $tableCellC:#eee;
}
.comment-content-footer
{
min-height
:
px
ToR
em
(
88
);
min-height
:
px
2r
em
(
88
);
text-align
:
center
;
background-color
:
#fff
;
border-bottom
:
1px
solid
$borderC
;
line-height
:
pxToRem
(
88
);
font-size
:
pxToRem
(
28
);
border-bottom
:
2px
solid
$borderC
;
line-height
:
px2rem
(
88
);
font-size
:
px2rem
(
28
);
a
{
color
:
#e0e0e0
;
.iconfont
{
...
...
@@ -308,7 +310,7 @@ $tableCellC:#eee;
}
.enter-store
{
min-height
:
px
ToR
em
(
100
);
min-height
:
px
2r
em
(
100
);
display
:
table
;
a
{
display
:
table-cell
;
...
...
@@ -319,19 +321,19 @@ $tableCellC:#eee;
// padding-right: 35rem/$pxConvertRem;
img
{
width
:
pxToRem
(
109
);
height
:
pxToRem
(
68
);
width
:
px2rem
(
109
);
height
:
px2rem
(
68
);
margin-left
:
0
;
margin-right
:
px
ToR
em
(
-25
);
margin-right
:
px
2r
em
(
-25
);
}
}
.store-name
{
font-size
:
px
ToR
em
(
34
);
font-size
:
px
2r
em
(
34
);
color
:
$mainFontC
;
}
.store-link
{
font-size
:px
ToR
em
(
28
)
;
font-size
:px
2r
em
(
28
)
;
color
:
$subFontC
;
text-align
:
right
;
span
{
...
...
@@ -339,9 +341,35 @@ $tableCellC:#eee;
}
}
}
.goods-desc
{
table
{
// .goods-desc{
// table{
// }
// }
.materials
{
.detail
{
img
{
display
:
block
;
overflow
:
hidden
;
width
:
px2rem
(
90
);
height
:
px2rem
(
120
);
padding-right
:
px2rem
(
20
);
float
:
left
;
}
.material-desc
{
// float: left;
font-size
:
px2rem
(
24
);
}
}
}
.product-detail
{
.detail
{
img
{
margin-top
:
px2rem
(
20
);
width
:
px2rem
(
581
);
height
:
px2rem
(
772
);
}
}
}
}
...
...
template/m.yohobuy.com/actions/product/detail/index.phtml
View file @
7229af7
...
...
@@ -186,6 +186,7 @@
<div
class=
"detail"
>
<img
src=
"{{img}}"
alt=
""
>
<p
class=
"material-desc"
>
{
{desc
}
}
</p>
</div>
...
...
@@ -194,15 +195,18 @@
<div
class=
"gap-block"
></div>
<div
class=
"size-info page-block"
>
{
{#productDetail
}
}
<div
class=
"product-detail page-block"
>
<h
1
class=
"title"
>
商品详情
<span
class=
"en-title"
>SIZE
INFO</span>
{
{title
}
}
<span
class=
"en-title"
>
{
{enTitle
}
}</span>
</h
1
>
<div
class=
"detail"
>
<p>
{
{desc
}
}</p>
<img
src=
"{{img}}"
alt=
""
>
</div>
</div>
{
{/productDetail
}
}
</div>
{
{>
layout/footer
}
}
\ No newline at end of file
...
...
yohobuy/m.yohobuy.com/application/modules/Product/controllers/Detail.php
View file @
7229af7
...
...
@@ -173,8 +173,10 @@ SHOE BQT KEN BLOCK',
),
'productDetail'
=>
array
(
'title'
=>
'商品详情'
,
'enTitle'
=>
'DETAILS'
,
'desc'
=>
'Married to the MOB是由Leah McSweeney创立的女装品牌,一向标榜不羁、大胆的女性streetwear设计。喜欢恶搞的女生们,赶紧入手吧。'
,
'img'
=>
''
'img'
=>
'
http://static.dev.yohobuy.com/img/product/product.png
'
)
);
...
...
Please
register
or
login
to post a comment