Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOOD
·
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
whb
9 years ago
Commit
90226798b9fcf305f22ba52edd02587ce37041f3
2 parents
7f5a002d
a21c54d5
Merge branch 'develop' of
http://git.dev.yoho.cn/web/yohood.git
into develop
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
62 additions
and
171 deletions
demo/yohood3.0/detail.html
demo/yohood3.0/index.html
res/js/channel.js
res/sass/style/_common.scss
website/view/layout/admin_layout.php
demo/yohood3.0/detail.html
View file @
9022679
...
...
@@ -362,125 +362,7 @@
</div>
</div>
<div
class=
"ft"
>
<div
class=
"limited-goods"
>
<h2>
限量商品
</h2>
<div
class=
"limited-slide-box"
>
<div
class=
"slide-wrap clearfix"
>
<div
class=
"box"
>
<ul
class=
"goods-list clearfix"
>
<li>
<a
href=
"javascript:;"
>
<div
class=
"img-box"
>
<img
src=
"http://img11.static.yhbimg.com/goodsimg/2014/01/22/05/0159a2768841aff6715fb6df15353de841.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90"
alt=
""
>
<span
class=
"red"
>
TOP 1
</span>
</div>
<p
class=
"goods-name"
>
MACROPUS 暗夜系列双肩背包
</p>
<p
class=
"price"
>
¥339.00
</p>
</a>
</li>
<li>
<a
href=
"javascript:;"
>
<div
class=
"img-box"
>
<img
src=
"http://img11.static.yhbimg.com/goodsimg/2014/01/22/05/0159a2768841aff6715fb6df15353de841.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90"
alt=
""
>
<span
class=
"red"
>
TOP 2
</span>
</div>
<p
class=
"goods-name"
>
MACROPUS 暗夜系列双肩背包
</p>
<p
class=
"price"
>
¥339.00
</p>
</a>
</li>
<li>
<a
href=
"javascript:;"
>
<div
class=
"img-box"
>
<img
src=
"http://img11.static.yhbimg.com/goodsimg/2014/01/22/05/0159a2768841aff6715fb6df15353de841.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90"
alt=
""
>
<span
class=
"red"
>
TOP 3
</span>
</div>
<p
class=
"goods-name"
>
MACROPUS 暗夜系列双肩背包
</p>
<p
class=
"price"
>
¥339.00
</p>
</a>
</li>
<li>
<a
href=
"javascript:;"
>
<div
class=
"img-box"
>
<img
src=
"http://img11.static.yhbimg.com/goodsimg/2014/01/22/05/0159a2768841aff6715fb6df15353de841.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90"
alt=
""
>
<span>
TOP 4
</span>
</div>
<p
class=
"goods-name"
>
MACROPUS 暗夜系列双肩背包
</p>
<p
class=
"price"
>
¥339.00
</p>
</a>
</li>
<li>
<a
href=
"javascript:;"
>
<div
class=
"img-box"
>
<img
src=
"http://img11.static.yhbimg.com/goodsimg/2014/01/22/05/0159a2768841aff6715fb6df15353de841.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90"
alt=
""
>
<span>
TOP 5
</span>
</div>
<p
class=
"goods-name"
>
MACROPUS 暗夜系列双肩背包
</p>
<p
class=
"price"
>
¥339.00
</p>
</a>
</li>
</ul>
</div>
<div
class=
"box"
>
<ul
class=
"goods-list clearfix"
>
<li>
<a
href=
"javascript:;"
>
<div
class=
"img-box"
>
<img
src=
"http://img11.static.yhbimg.com/goodsimg/2014/01/22/05/0159a2768841aff6715fb6df15353de841.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90"
alt=
""
>
<span
class=
"red"
>
TOP 1
</span>
</div>
<p
class=
"goods-name"
>
MACROPUS 暗夜系列双肩背包
</p>
<p
class=
"price"
>
¥339.00
</p>
</a>
</li>
<li>
<a
href=
"javascript:;"
>
<div
class=
"img-box"
>
<img
src=
"http://img11.static.yhbimg.com/goodsimg/2014/01/22/05/0159a2768841aff6715fb6df15353de841.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90"
alt=
""
>
<span
class=
"red"
>
TOP 2
</span>
</div>
<p
class=
"goods-name"
>
MACROPUS 暗夜系列双肩背包
</p>
<p
class=
"price"
>
¥339.00
</p>
</a>
</li>
<li>
<a
href=
"javascript:;"
>
<div
class=
"img-box"
>
<img
src=
"http://img11.static.yhbimg.com/goodsimg/2014/01/22/05/0159a2768841aff6715fb6df15353de841.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90"
alt=
""
>
<span
class=
"red"
>
TOP 3
</span>
</div>
<p
class=
"goods-name"
>
MACROPUS 暗夜系列双肩背包
</p>
<p
class=
"price"
>
¥339.00
</p>
</a>
</li>
<li>
<a
href=
"javascript:;"
>
<div
class=
"img-box"
>
<img
src=
"http://img11.static.yhbimg.com/goodsimg/2014/01/22/05/0159a2768841aff6715fb6df15353de841.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90"
alt=
""
>
<span>
TOP 4
</span>
</div>
<p
class=
"goods-name"
>
MACROPUS 暗夜系列双肩背包
</p>
<p
class=
"price"
>
¥339.00
</p>
</a>
</li>
<li>
<a
href=
"javascript:;"
>
<div
class=
"img-box"
>
<img
src=
"http://img11.static.yhbimg.com/goodsimg/2014/01/22/05/0159a2768841aff6715fb6df15353de841.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90"
alt=
""
>
<span>
TOP 5
</span>
</div>
<p
class=
"goods-name"
>
MACROPUS 暗夜系列双肩背包
</p>
<p
class=
"price"
>
¥339.00
</p>
</a>
</li>
</ul>
</div>
</div>
</div>
<div
class=
"limited-slide-control"
>
<a
class=
"limited-slide-prev iconfont"
href=
"javascript:void(0);"
>

</a>
<a
class=
"limited-slide-next iconfont"
href=
"javascript:void(0);"
>

</a>
</div>
</div>
</div>
<div
style=
"display: none"
class=
"share"
data-link=
"http://newgirls.test.yoho.cn/channel/detail/index/id/2315"
cover-url=
"http://cmsimg01.qiniudn.com/contentimg/2015/05/12/13/0147a071d80901d152ce04dc4341905d26.jpg"
>
<h4>
share
</h4>
...
...
demo/yohood3.0/index.html
View file @
9022679
...
...
@@ -38,7 +38,7 @@
</ul>
<a
class=
"contact-btn"
href=
"javascript:;"
>
contact
</a>
</div>
<!-- 主站导航 end -->
<!-- 主站导航 end -->
c
<!-- 页眉 start -->
<div
class=
"header"
>
<!-- 页首 logo start -->
...
...
@@ -206,7 +206,7 @@
</div>
<div
class=
"content"
>
<h2
class=
"volupia"
>
<a
href=
"/news/detail/id/169"
>
test test test test test test test test
</a>
<a
href=
"/news/detail/id/169"
>
test test test test test test test test
test test test test test
</a>
</h2>
<p
class=
"text-content"
>
content content content content content content content content content content content content content content content content content content content content content content content content content content content content content content content
</p>
</div>
...
...
@@ -245,7 +245,7 @@
</div>
<div
class=
"content"
>
<h2
class=
"volupia"
>
<a
href=
"/news/detail/id/169"
>
test test test test test test test test
</a>
<a
href=
"/news/detail/id/169"
>
test test test test test test test test
test test test test
</a>
</h2>
<p
class=
"text-content"
>
content content content content content content content content content content content content content content content content content content content content content content content content content content content content content content content
</p>
</div>
...
...
@@ -526,7 +526,7 @@
</div>
<div
class=
"return-top"
>
<a
href=
"javascript:void(0);"
id=
"toTop"
class=
"ifont"
style=
"display: inline;"
>
<span
class=
"iconfont"
>

</span>
TOP
<span
class=
"iconfont"
>

</span>
</a>
</div>
</body>
...
...
res/js/channel.js
View file @
9022679
...
...
@@ -228,34 +228,63 @@ define('channel', function(require, exports) {
swiperLen
,
changeCooperationClass
;
var
pageRightBanner
=
null
;
pageRightBanner
=
function
()
{
var
rightBanner
=
$
(
"#right_banner_warp .right-banner"
)[
0
],
$banners
=
$
(
rightBanner
).
find
(
".image-box"
),
len
=
$banners
.
length
,
$pageContent
=
$
(
"#content"
),
$layoutItems
=
$pageContent
.
find
(
".layout-item"
),
placeholderItems
=
""
;
if
(
len
<=
0
)
{
return
;
}
/**
* 将固定banner位插入资讯右侧
*/
({
init
:
function
()
{
var
rightBanner
=
$
(
"#right_banner_warp .right-banner"
)[
0
],
$banners
=
$
(
rightBanner
).
find
(
".image-box"
),
len
=
$banners
.
length
,
$pageContent
=
$
(
"#content"
),
$layoutItems
=
$pageContent
.
find
(
".layout-item"
),
placeholderItems
=
""
;
if
(
len
<=
0
)
{
return
;
}
if
(
$layoutItems
.
length
<
2
)
{
placeholderItems
=
"<div class='fluid-item layout-item tiled'></div>"
;
placeholderItems
+=
placeholderItems
;
$pageContent
.
prepend
(
$
(
placeholderItems
));
$layoutItems
=
$pageContent
.
find
(
".layout-item"
);
}
if
(
$layoutItems
.
length
<
2
)
{
placeholderItems
=
"<div class='fluid-item layout-item tiled'></div>"
;
placeholderItems
+=
placeholderItems
;
$pageContent
.
prepend
(
$
(
placeholderItems
));
$layoutItems
=
$pageContent
.
find
(
".layout-item"
);
}
$
(
rightBanner
).
insertAfter
(
$layoutItems
[
1
]);
$
(
rightBanner
).
insertAfter
(
$layoutItems
[
1
]);
//插入新元素、重新瀑布流布局
setLayout
();
}
//插入新元素、重新瀑布流布局
setLayout
();
}
}).
init
();
pageRightBanner
();
/**
* 页面所有标题为两行的资讯、调整内容margin 使得所有资讯内容对齐
*/
({
getComputedStyle
:
function
(
element
)
{
if
(
typeof
window
.
getComputedStyle
===
"function"
)
{
return
window
.
getComputedStyle
(
element
,
null
);
}
else
{
return
element
.
currentStyle
;
}
},
init
:
function
()
{
var
content
=
$
(
"#content"
),
volupia
=
content
.
find
(
".volupia"
),
style
=
null
;
i
=
0
,
len
=
0
;
for
(
i
=
0
,
len
=
volupia
.
length
;
i
<
len
;
i
++
)
{
style
=
this
.
getComputedStyle
(
volupia
[
i
]);
if
(
parseInt
(
style
.
height
)
>
30
)
{
$
(
volupia
[
i
]).
next
(
".text-content"
).
css
(
"margin"
,
"20px 0 0 0"
);
}
}
}
}).
init
();
if
(
$
(
".show-goods"
).
size
()
>
0
)
{
productGenders
=
$
(
".show-goods"
).
attr
(
"product_genders"
).
split
(
','
);
...
...
@@ -270,28 +299,9 @@ define('channel', function(require, exports) {
loop
:
true
,
slideClass
:
'box'
,
slidesPerView
:
'auto'
,
loopedSlides
:
4
,
onSlideChangeStart
:
function
()
{
var
swiperLen
=
$
(
'.cooperation-slide-box'
).
find
(
'.box'
).
size
();
// $('.cooperation-slide-prev,.cooperation-slide-next').removeClass('disable');
// if (cooperateSwiper.activeIndex === swiperLen - 1) {
// $('.cooperation-slide-next').addClass('disable');
// } else if (cooperateSwiper.activeIndex === 0) {
// $('.cooperation-slide-prev').addClass('disable');
// }
}
loopedSlides
:
4
});
/**
* 若下一个滑动块的下一个有"big-size" 类名 则滑动后只显示下一个滑动块
* @param {Swiper} swiper 滑动块对象
*/
({
init
:
function
(
swiper
)
{
}
}).
init
(
cooperateSwiper
);
function
nextChagneSileSize
(
swiper
)
{
var
activeIndex
=
swiper
.
activeIndex
,
...
...
@@ -308,7 +318,7 @@ define('channel', function(require, exports) {
}
function
prevChangeSlideSize
(
swiper
)
{
var
activeIndex
=
swiper
.
activeIndex
,
var
activeIndex
=
swiper
.
activeIndex
,
slides
=
swiper
.
slides
,
activeSlide
=
slides
[
activeIndex
],
prevSlide
=
slides
[
activeIndex
-
1
];
...
...
res/sass/style/_common.scss
View file @
9022679
...
...
@@ -622,6 +622,8 @@ $pageMainWidth: 1180px;
}
span
{
display
:
block
;
border
:
1px
solid
#000
;
padding
:
.5em
;
}
}
...
...
website/view/layout/admin_layout.php
View file @
9022679
...
...
@@ -23,11 +23,8 @@
<ul
class=
"nav"
>
<li
<?php
if
(
$_ctx
->
controller_name
==
'mobile'
)
:?>
class
="
active
"<?php endif;?>><a href="
<?
php
echo
url
(
'mobile/index'
)
?>
"
>
客户端模块
</a></li>
<li
<?php
if
(
$_ctx
->
controller_name
==
'index'
)
:?>
class
="
active
"<?php endif;?>><a href="
<?
php
echo
url
(
'index/index'
)
?>
"
>
首页
</a></li>
<li
<?php
if
(
$_ctx
->
controller_name
==
'activity'
&&
in_array
(
$_ctx
->
action_name
,
array
(
'index'
,
'create'
))
)
:?>
class
="
active
"<?php endif;?>><a href="
<?
php
echo
url
(
'activity/index'
)
?>
"
>
活动介绍
</a></li>
<li
<?php
if
(
$_ctx
->
controller_name
==
'news'
)
:?>
class
="
active
"<?php endif;?>><a href="
<?
php
echo
url
(
'news/index'
)
?>
"
>
资讯
</a></li>
<li
<?php
if
(
$_ctx
->
controller_name
==
'brand'
&&
$_ctx
->
action_name
!=
'booth'
||
(
$_ctx
->
controller_name
==
'prod'
&&
!
isset
(
$_REQUEST
[
'status'
]))
)
:?>
class
="
active
" <?php endif;?>><a href="
<?
php
echo
url
(
'brand/index'
)
?>
"
>
品牌
</a></li>
<li
<?php
if
(
$_ctx
->
controller_name
==
'prod'
&&
isset
(
$_REQUEST
[
'status'
])
)
:?>
<?
php
echo
$_REQUEST
[
'status'
]
==
1
?
'class="active"'
:
''
;
endif
;
?>
><a
href=
"
<?php
echo
url
(
'prod/index'
,
array
(
'status'
=>
1
))
?>
"
>
限量商品
</a></li>
<li
<?php
if
(
$_ctx
->
controller_name
==
'activity'
&&
in_array
(
$_ctx
->
action_name
,
array
(
'plantopic'
,
'plan'
)))
:?>
class
="
active
"<?php endif;?>><a href="
<?
php
echo
url
(
'activity/plantopic'
)
?>
"
>
现场活动
</a></li>
<li
<?php
if
(
$_ctx
->
controller_name
==
'partner'
&&
$_ctx
->
action_name
==
'index'
)
:?>
class
="
active
"<?php endif;?>><a href="
/
admin
/
partner
/
index
">合作伙伴</a></li>
<li <?php if (
$_ctx->controller_name
== 'brand' &&
$_ctx->action_name
== 'booth'):?>class="
active
"<?php endif;?>><a href="
/
admin
/
brand
/
booth
">booth坐标</a></li>
<li <?php if (
$_ctx->controller_name
== 'invitation' &&
$_ctx->action_name
== 'index'):?>class="
active
"<?php endif;?>><a href="
/
admin
/
invitation
/
index
">邀请函</a></li>
...
...
Please
register
or
login
to post a comment