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
695efbcacabd9bd63b0ec89ae51c58ce68eaa2ec
1 parent
022ba4c7
fixed bugs in goods detail page
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
25 additions
and
20 deletions
static/js/product/detail/detail.js
static/sass/product/_detail.scss
static/sass/product/_product-description.scss
template/m.yohobuy.com/actions/product/detail/index.phtml
template/m.yohobuy.com/partials/product/feedback-tab.phtml
template/m.yohobuy.com/partials/product/product-description.phtml
static/js/product/detail/detail.js
View file @
695efbc
...
...
@@ -19,7 +19,6 @@ lazyLoad($('img.lazy'));
goodsSwiper
=
new
Swiper
(
'.banner-swiper'
,
{
lazyLoading
:
true
,
lazyLoadingInPrevNext
:
true
,
loop
:
true
,
paginationClickable
:
true
,
pagination
:
'.banner-top .pagination-inner'
,
nextButton
:
'.my-swiper-button-next'
,
...
...
static/sass/product/_detail.scss
View file @
695efbc
...
...
@@ -111,10 +111,17 @@ $basicBtnC:#eb0313;
display
:
table-cell
;
padding
:
pxToRem
(
16px
)
pxToRem
(
12px
);
width
:
50%
;
border
:
1px
solid
#fff
;
border-bottom
:
1px
solid
#fff
;
border-right
:
1px
solid
#fff
;
font-size
:
pxToRem
(
24px
);
background-color
:
$tableCellC
;
float
:
left
;
&
:last-child
{
border-bottom
:
none
;
}
&
:nth-child
(
even
)
{
border-right
:
none
;
}
}
// }
}
...
...
@@ -185,7 +192,6 @@ $basicBtnC:#eb0313;
padding-left
:
pxToRem
(
28px
);
padding-right
:
pxToRem
(
28px
);
border-bottom
:
1px
solid
$borderC
;
margin-bottom
:
pxToRem
(
30px
);
background-color
:
#f4f4f4
;
}
.price-date
{
...
...
static/sass/product/_product-description.scss
View file @
695efbc
...
...
@@ -13,11 +13,14 @@
&
.table
.inner-container
{
background-color
:
$tableCellC
;
}
margin-bottom
:
1px
;
}
.desc-text
{
font-size
:
pxToRem
(
24px
);
padding
:
pxToRem
(
16px
)
pxToRem
(
12px
);
margin-bottom
:
pxToRem
(
20px
);
color
:
$mainFontC
;
background-color
:
$tableCellC
;
}
}
.tips
{
...
...
@@ -47,6 +50,9 @@
font-size
:
pxToRem
(
24px
);
overflow
:
hidden
;
}
&
:last-child
{
border-bottom
:
none
;
}
}
}
// .material-type {
...
...
template/m.yohobuy.com/actions/product/detail/index.phtml
View file @
695efbc
...
...
@@ -39,8 +39,8 @@
<div
class=
"price-date"
>
{
{#
goodsPrice
}
}
<div
class=
"goodsPrice"
>
<h
1
class=
"currentPrice"
>
{
{currentPrice
}
}</h
1
>
<h
1
class=
"previousPrice"
>
{
{previousPrice
}
}</h
1
>
<h
1
class=
"currentPrice"
>¥
{
{currentPrice
}
}</h
1
>
<h
1
class=
"previousPrice"
>¥
{
{previousPrice
}
}</h
1
>
</div>
{
{/
goodsPrice
}
}
...
...
@@ -57,7 +57,6 @@
{
{#
list
}
}
<li
class=
"icons-item"
>
<span
class=
"vip-img"
style=
"background-size:cover;"
>
<!--
<div
class=
"img"
alt=
""
style=
"background-size:cover;"
></div>
-->
</span>
<span
class=
"vip-price"
>
{
{text
}
}</span>
</li>
...
...
@@ -65,17 +64,6 @@
</ul>
{
{/vipLevel
}
}
<!--
{
{#
vipLevel
}
}
<div
class=
"vipLevel"
>
{
{#
list
}
}
<span
class=
"vip-img"
>
<div
class=
"img"
alt=
""
style=
"background-size:cover;"
></div>
</span>
<span
class=
"vip-price"
>
{
{text
}
}</span>
{
{/
list
}
}
</div>
{
{/
vipLevel
}
}
-->
{
{#
goodsDiscount
}
}
<div
class=
"goodsDiscount"
>
{
{#
list
}
}
...
...
@@ -117,7 +105,8 @@
</div>
{
{/
enterStore
}
}
<div
id=
"productDesc"
></div>
<!--
<div
id=
"productDesc"
></div>
-->
{
{>
product/product-description
}
}
{
{>
product/recommend-for-you
}
}
{
{#cartInfo
}
}
...
...
template/m.yohobuy.com/partials/product/feedback-tab.phtml
View file @
695efbc
...
...
@@ -59,7 +59,7 @@
<span class="iconfont"></span>暂无咨询
</div>
<div class="consult-content-footer">
<a href="/consultform">
<a href="/
product/detail/
consultform">
我要咨询
<span class="iconfont"></span></a>
</div>
...
...
template/m.yohobuy.com/partials/product/product-description.phtml
View file @
695efbc
...
...
@@ -67,7 +67,12 @@
{
{#list
}
}
{
{#if
@first
}
}
<div
class=
"swiper-slide first-group"
>
{
{#params
}
}
{
{#if
@first
}
}
{
{else
}
}
<img
class=
"avatar lazy"
data-original=
"{{param}}"
alt=
""
>
{
{/if
}
}
{
{/params
}
}
</div>
{
{else
}
}
<div
class=
"swiper-slide"
>
...
...
Please
register
or
login
to post a comment