Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYPC
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
2
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Plain Diff
Browse Files
Authored by
Rock Zhang
9 years ago
Commit
2eb310451f3f2fb7feb0d00c3aeaf8fd2b193158
2 parents
0792ade0
c255059b
Merge branch 'develop' of git.dev.yoho.cn:web/yohobuy into develop
Hide whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
60 additions
and
37 deletions
docs/data-structure.md
framework
static/js/guang/home.js
static/js/guang/info.js
static/sass/_good.scss
static/sass/_loading.scss
static/sass/product/_discount.scss
static/sass/product/_list.scss
static/sass/product/_new-arrival.scss
template/m.yohobuy.com/actions/category/brand/index.phtml
template/m.yohobuy.com/actions/category/brand/search.phtml
template/m.yohobuy.com/actions/category/class/index.phtml
template/m.yohobuy.com/actions/guang/index/index.phtml
template/m.yohobuy.com/actions/index/index/index.phtml
template/m.yohobuy.com/actions/product/index/index.phtml
template/m.yohobuy.com/actions/product/newsale/new.phtml
template/m.yohobuy.com/actions/product/newsale/sale.phtml
template/m.yohobuy.com/partials/product/list.phtml
docs/data-structure.md
View file @
2eb3104
...
...
@@ -323,7 +323,7 @@
### 编辑页
{
author: {
author
Info
: {
avatar: '',
name: '',
info: ''
...
...
@@ -747,7 +747,8 @@
brandHome: {
id: 0,
banner: ''
intro: '...'
intro: '...',
collected: true //是否已收藏
},
new:
[
{
...
...
framework
@
119c247f
Subproject commit
75bbc3b075de19f239532f60c5995d06c5f814e2
Subproject commit
119c247f5cf929aa1e059e40609bb16dd6b58f05
...
...
static/js/guang/home.js
View file @
2eb3104
...
...
@@ -73,26 +73,36 @@ navHammer.on('tap', function(e) {
$this
.
addClass
(
'focus'
);
$curNav
.
removeClass
(
'focus'
);
$infos
.
not
(
'.hide'
).
addClass
(
'hide'
);
$content
=
$infos
.
eq
(
index
);
$content
.
removeClass
(
'hide'
);
$curNav
=
$this
;
curType
=
$this
.
data
(
'type'
);
//当未加载数据时去请求数据
if
(
state
[
curType
].
page
===
1
)
{
loadMore
(
$content
,
state
[
curType
]);
}
//重置当前Tab的load-more
if
(
state
[
curType
].
end
)
{
//无数据时隐藏正在加载和没有更多字样
$loading
.
addClass
(
'hide'
);
$noMore
.
removeClass
(
'hide'
);
}
else
{
$loading
.
removeClass
(
'hide'
);
$noMore
.
addClass
(
'hide'
);
loadMore
(
$content
,
state
[
curType
]);
}
else
{
//重置当前Tab的load-more
if
(
state
[
curType
].
end
)
{
$loading
.
addClass
(
'hide'
);
$noMore
.
removeClass
(
'hide'
);
}
else
{
$loading
.
removeClass
(
'hide'
);
$noMore
.
addClass
(
'hide'
);
}
}
$infos
.
not
(
'.hide'
).
addClass
(
'hide'
);
$content
.
removeClass
(
'hide'
);
if
(
state
[
curType
].
page
===
1
)
{
window
.
rePosFooter
();
//进入空内容时重新定位footer位置
}
});
...
...
static/js/guang/info.js
View file @
2eb3104
...
...
@@ -128,6 +128,7 @@ function loadMore($container, opt) {
return
;
}
$container
.
append
(
data
);
if
(
num
>
0
)
{
...
...
@@ -140,6 +141,10 @@ function loadMore($container, opt) {
if
(
opt
.
page
===
1
)
{
loading
.
hideLoadingMask
();
$loading
.
removeClass
(
'hide'
);
//显示空屏加载时hide的隐藏
window
.
rePosFooter
();
//插入内容后重新计算底部位置
}
opt
.
page
++
;
...
...
static/sass/_good.scss
View file @
2eb3104
...
...
@@ -2,7 +2,7 @@
float
:
left
;
width
:
276rem
/
$pxConvertRem
;
height
:
486rem
/
$pxConvertRem
;
margin
:
0
(
15rem
/
$pxConvertRem
)
(
28
rem
/
$pxConvertRem
);
margin
:
0
(
15rem
/
$pxConvertRem
)
(
15
rem
/
$pxConvertRem
);
.tag-container
{
height
:
28rem
/
$pxConvertRem
;
...
...
static/sass/_loading.scss
View file @
2eb3104
.loading-mask
{
position
:
absolute
;
position
:
fixed
;
background
:
rgba
(
0
,
0
,
0
,.
1
);
top
:
0
;
bottom
:
0
;
...
...
static/sass/product/_discount.scss
View file @
2eb3104
...
...
@@ -112,11 +112,8 @@
.goods-container
{
position
:
relative
;
min-height
:
440px
;
.container
{
padding-left
:
10px
;
margin-top
:
9px
;
}
padding-left
:
0
.375rem
;
padding-top
:
0
.2rem
;
}
}
...
...
static/sass/product/_list.scss
View file @
2eb3104
...
...
@@ -73,6 +73,7 @@
>
img
{
display
:
block
;
height
:
100%
;
width
:
100%
;
}
}
...
...
@@ -100,6 +101,18 @@
.iconfont
{
font-size
:
12px
;
}
&
.coled
{
opacity
:
0
.5
;
}
.txt
:after
{
content
:
'收藏'
}
&
.coled
.txt
:after
{
content
:
'已收藏'
}
}
.brand-intro-box
{
...
...
@@ -228,5 +241,7 @@
.goods-container
{
position
:
relative
;
min-height
:
440px
;
padding-left
:
0
.375rem
;
padding-top
:
0
.2rem
;
}
}
\ No newline at end of file
...
...
static/sass/product/_new-arrival.scss
View file @
2eb3104
...
...
@@ -84,6 +84,8 @@
.goods-container
{
position
:
relative
;
min-height
:
440px
;
padding-left
:
0
.375rem
;
padding-top
:
0
.2rem
;
}
}
...
...
template/m.yohobuy.com/actions/category/brand/index.phtml
View file @
2eb3104
...
...
@@ -83,4 +83,3 @@
</div>
</div>
{
{>
layout/footer
}
}
{
{>
layout/download_app
}
}
...
...
template/m.yohobuy.com/actions/category/brand/search.phtml
View file @
2eb3104
...
...
@@ -19,4 +19,3 @@
{
{{brandList
}
}}
</script>
{
{>
layout/footer
}
}
{
{>
layout/download_app
}
}
...
...
template/m.yohobuy.com/actions/category/class/index.phtml
View file @
2eb3104
...
...
@@ -40,5 +40,4 @@
</div>
{
{/
category
}
}
</div>
{
{>
layout/footer
}
}
{
{>
layout/download_app
}
}
\ No newline at end of file
{
{>
layout/footer
}
}
\ No newline at end of file
...
...
template/m.yohobuy.com/actions/guang/index/index.phtml
View file @
2eb3104
...
...
@@ -15,7 +15,7 @@
<div
class=
"swiper-pagination"
></div>
</div>
{
{#
author
}
}
{
{#
author
Info
}
}
<div
id=
"author-infos"
class=
"editor-header clearfix"
data-id=
{
{id
}
}>
<div
class=
"avatar"
>
<img
src=
"{{avatar}}"
>
...
...
@@ -25,7 +25,7 @@
<p
class=
"info"
>
{
{info
}
}</p>
</div>
</div>
{
{/
author
}
}
{
{/
author
Info
}
}
<ul
id=
"guang-nav"
class=
"guang-nav clearfix"
>
{
{#
navs
}
}
...
...
@@ -37,7 +37,7 @@
<div
id=
"info-list"
class=
"info-list-container"
>
{
{#
infos
}
}
<div
class=
"info-list
{{^show}}
hide{{/show}}"
>
<div
class=
"info-list
{{^show}}
hide{{/show}}"
>
{
{#
info
}
}
{
{>
guang/info
}
}
{
{/
info
}
}
...
...
template/m.yohobuy.com/actions/index/index/index.phtml
View file @
2eb3104
...
...
@@ -24,5 +24,4 @@
</div>
</div>
</div>
{
{>
layout/footer
}
}
{
{>
layout/download_app
}
}
\ No newline at end of file
{
{>
layout/footer
}
}
\ No newline at end of file
...
...
template/m.yohobuy.com/actions/product/index/index.phtml
View file @
2eb3104
...
...
@@ -2,5 +2,4 @@
<div
class=
"good-list-page yoho-page"
>
{
{>
product/list
}
}
</div>
{
{>
layout/footer
}
}
{
{>
layout/download_app
}
}
\ No newline at end of file
{
{>
layout/footer
}
}
\ No newline at end of file
...
...
template/m.yohobuy.com/actions/product/newsale/new.phtml
View file @
2eb3104
...
...
@@ -84,5 +84,4 @@
{
{>
product/suspend-cart
}
}
</div>
{
{>
layout/footer
}
}
{
{>
layout/download_app
}
}
\ No newline at end of file
{
{>
layout/footer
}
}
\ No newline at end of file
...
...
template/m.yohobuy.com/actions/product/newsale/sale.phtml
View file @
2eb3104
...
...
@@ -95,5 +95,4 @@
{
{>
product/suspend-cart
}
}
</div>
{
{>
layout/footer
}
}
{
{>
layout/download_app
}
}
\ No newline at end of file
{
{>
layout/footer
}
}
\ No newline at end of file
...
...
template/m.yohobuy.com/partials/product/list.phtml
View file @
2eb3104
...
...
@@ -29,9 +29,9 @@
<a
class=
"btn-intro"
href=
"javascript:void(0);"
>
品牌介绍
</a>
<a
class=
"btn-col"
href=
"javascript:void(0);"
>
<a
class=
"btn-col
{{#if collected}} coled{{/if}}
"
href=
"javascript:void(0);"
>
<span
class=
"iconfont"
>
622
;</span>
收藏
<span
class=
"txt"
></span>
</a>
</div>
<div
id=
"intro-box"
class=
"brand-intro-box hide"
>
...
...
Please
register
or
login
to post a comment