Authored by hf

Merge branch 'develop' of http://git.dev.yoho.cn/web/yohobuy into develop

Showing 56 changed files with 2008 additions and 57 deletions
... ... @@ -3,4 +3,5 @@ nbproject
.idea
.gitignore
.gitmodules
compile/
\ No newline at end of file
compile/
script/nginx/logs
\ No newline at end of file
... ...
... ... @@ -242,14 +242,18 @@
text: '',
publishTime: '',
pageView: '',
//APP打开显示收藏,WAP打开显示点赞
like: {
isLiked: true,
count: 1
},
collect: {
isCollected: true
},
share: false,
isFashionMan: true, //标签分类:isTip、isCollocation、isFashionMan、isFashionGood、isTopic
author: {
id: '',
url: '',
avatar: '',
name: ''
}
... ...
This diff could not be displayed because it is too large.
... ... @@ -2,5 +2,6 @@ var yohobuy;
require('./js/passport/index');
require('./js/guang/index');
require('./js/homePage/index');
module.exports = yohobuy;
... ...
... ... @@ -18,7 +18,7 @@ var $infoList = $('#info-list'),
$infos = $infoList.children('.info-list'),
$nav = $('#guang-nav'),
$curNav = $nav.children('.focus'),
curIndex = $curNav.index();
curType = $curNav.data('type');
var state = {};
... ... @@ -67,15 +67,11 @@ $nav.delegate('.guang-nav-item', 'touchstart', function() {
setLazyLoadAndMellipsis($content.children('.guang-info'));
$curNav = $this;
curIndex = index;
curType = $this.data('type');
});
$(document).scroll(function() {
if (state[curIndex].end) {
return;
}
if ($(window).scrollTop() + winH >= $(document).height() - loadMoreH) {
loadMore($infos, state[curIndex]);
if ($(window).scrollTop() + winH >= $(document).height() - loadMoreH && !state[curType].end) {
loadMore($infos, state[curType]);
}
});
\ No newline at end of file
... ...
/**
* kids,lifestyle商品模块JS
* @author: liangzhifeng<zhifeng.liang@yoho.cn>
* @date: 2015/10/12
*/
\ No newline at end of file
... ...
... ... @@ -3,8 +3,5 @@
* @author: liangzhifeng<zhifeng.liang@yoho.cn>
* @date: 2015/10/12
*/
var $ = require('yoho.zepto'),
lazyLoad = require('yoho.lazyload');
//Init LazyLoad
lazyLoad($('img.lazy'));
\ No newline at end of file
require('./home');
\ No newline at end of file
... ...
/**
* 首页
* @author: liangzhifeng<zhifeng.liang@yoho.cn>
* @date: 2015/10/12
*/
var $ = require('yoho.zepto'),
Swiper = require('yoho.iswiper'),
lazyLoad = require('yoho.lazyload'),
bannerSwiper,
recommendSwiper,
trendTopicSwiper,
goodsSwiper;
var swiperClass;
var requestFrame,
thisFunc,
start = 0,
i,
supportCss3,
$logotrans = $('.home-header .logo'),
isen = true;
lazyLoad($('img.lazy'));
//$('img:in-viewport').trigger('appear');
//点击首页汉堡menu图标,滑出侧栏导航
$('.nav-btn').on('click', function (event) {
if (!$(this).hasClass('menu-open')) {
$('.mobile-wrap').addClass('menu-open');
$('.overlay').addClass('show');
$('.side-nav').addClass('on');
//设置boy高宽,页面不能上下滑动
$('body').css({
height: $(window).height(),
width: '100%',
overflow: 'hidden'
});
}
event.stopPropagation();
});
//点击页面主体,收起侧栏导航及二级导航
$('.mobile-wrap').on('click', function () {
if ($(this).hasClass('menu-open')) {
$('.mobile-wrap').removeClass('menu-open');
$('.overlay').removeClass('show');
$('.sub-nav').removeClass('show');
$('.side-nav').removeClass('on');
$('body').css({
height: 'auto',
overflow: 'auto'
});
}
});
//点击一级导航,弹出二级导航
$('.side-nav').on('click', 'li', function () {
if ($(this).find('.sub-nav').size() > 0) {
$('.sub-nav').removeClass('show');
$(this).find('.sub-nav').addClass('show');
}
});
//返回一级导航,收起二级导航
$('.sub-nav').each(function () {
$(this).find('li').eq(0).on('click', function (e) {
$('.sub-nav').removeClass('show');
e.stopPropagation();
});
});
//二级导航样式控制
$('.sub-nav').on('mouseenter', 'li', function () {
if ($(this).index() !== 0) {
$(this).addClass('current').siblings().removeClass('current');
}
});
//头部banner轮播
if ($('.banner-swiper').find('li').size() > 1) {
bannerSwiper = new Swiper('.banner-swiper', {
loop: true,
autoplay: 3000,
autoplayDisableOnInteraction: false,
paginationClickable: true,
slideElement: 'li',
pagination: '.banner-top .pagination-inner'
});
}
//热门品牌滑动
// hotBrandsSwiper = new Swiper('.brands-swiper', {
// grabCursor: true,
// slidesPerView: 'auto',
// wrapperClass: 'brands-list',
// slideElement: 'li'
// });
//推荐搭配滑动
recommendSwiper = new Swiper('.recommend-swiper', {
grabCursor: true,
slidesPerView: 'auto',
wrapperClass: 'recommend-list',
slideElement: 'li'
});
//潮品话题轮播
if ($('.trend-topic-swiper').find('li').size() > 1) {
trendTopicSwiper = new Swiper('.trend-topic-swiper', {
loop: true,
autoplay: 3000,
autoplayDisableOnInteraction: false,
paginationClickable: true,
slideElement: 'li',
pagination: '.trend-topic-content .pagination-inner'
});
}
//潮流上装/经典裤装等轮播
$('.category-swiper').each(function (i, index) {
swiperClass = 'category-swiper' + i;
$(this).addClass(swiperClass);
if ($('.' + swiperClass).find('.swiper-slide').size() > 1) {
goodsSwiper = new Swiper('.' + swiperClass, {
loop: true,
autoplay: 3000,
autoplayDisableOnInteraction: false,
paginationClickable: true,
slideElement: 'li',
pagination: '.' + swiperClass + ' .pagination-inner'
});
}
});
//回到顶部
// $('.back-to-top').bind('touchstart', function (e) {
// e.preventDefault();
// $(window).scrollTop(0);
// });
//关闭头部下载浮层
$('.header-download').on('click', '.close-btn', function () {
$(this).parent().remove();
});
//logo动画
requestFrame = (function () {
var tempFunc = null,
prefixList = ['webkit', 'moz', 'ms'];
for (i = 0; i < prefixList.length; i++) {
thisFunc = prefixList[i] + 'RequestAnimationFrame';
if (window[thisFunc]) {
supportCss3 = true;
tempFunc = thisFunc;
}
}
if (supportCss3) {
return function (callback) {
window[tempFunc](callback);
};
}
return function (callback) {
window.setTimeout(callback, 67);
};
})();
function tsAnimate() {
start = start + 10;
$logotrans.css({
transform: 'rotateX(' + start + 'deg)',
'-webkit-transform': 'rotateX(' + start + 'deg)',
'-moz-transform': 'rotateX(' + start + 'deg)'
});
if (start / 90 % 2 === 1) {
if (isen) {
$logotrans.addClass('animate');
isen = false;
} else {
$logotrans.removeClass('animate');
isen = true;
}
}
if (start / 90 % 2 === 0 && start % 360 !== 0) {
window.setTimeout(tsAnimate, 3000);
} else {
if (start % 360 === 0) {
window.setTimeout(tsAnimate, 3 * 60 * 1000);
} else {
requestFrame(function () {
tsAnimate();
});
}
}
}
tsAnimate();
... ...
/**
* 首页入口
* @author: liangzhifeng<zhifeng.liang@yoho.cn>
* @date: 2015/10/12
*/
require('./home');
\ No newline at end of file
... ...
/**
* 儿童
* @author: liangzhifeng<zhifeng.liang@yoho.cn>
* @date: 2015/10/12
*/
require('./home');
\ No newline at end of file
... ...
/**
* 创意生活
* @author: liangzhifeng<zhifeng.liang@yoho.cn>
* @date: 2015/10/12
*/
require('./home');
\ No newline at end of file
... ...
/**
* “你可能喜欢”模块JS
* @author: liangzhifeng<zhifeng.liang@yoho.cn>
* @date: 2015/10/12
*/
\ No newline at end of file
... ...
... ... @@ -5,6 +5,28 @@
border-bottom: 1px solid #e0e0e0;
background: #fff;
.info-author {
display: block;
width: 100%;
.avatar {
float: left;
margin-top: 20rem / $pxConvertRem;
width: 50rem / $pxConvertRem;
height: 50rem / $pxConvertRem;
margin-left: 30rem / $pxConvertRem;
@include border-radius(50%);
}
.name {
float: left;
margin-left: 30rem / $pxConvertRem;
padding: 30rem / $pxConvertRem 0;
font-size: 28rem / $pxConvertRem;
color: #000;
}
}
&:last-child {
margin-bottom: 0;
}
... ...
... ... @@ -18,7 +18,7 @@
float: left;
}
.like-btn, .share-btn {
.iconfont {
position: relative;
height: 60rem / $pxConvertRem;
line-height: 60rem / $pxConvertRem;
... ... @@ -40,5 +40,12 @@
.like-btn.like {
color: #444;
}
.collect-btn {
margin-left: 20rem / $pxConvertRem;
&.collected {
color: #444;
}
}
}
}
\ No newline at end of file
... ...
... ... @@ -71,20 +71,20 @@
.recommend-list {
position: relative;
}
.recommend-item {
float: left;
padding-left: 30rem / $pxConvertRem;
width: 140rem / $pxConvertRem;
height: 140rem / $pxConvertRem;
a {
display: block;
width: 100%;
height: 100%;
img {
.recommend-item {
float: left;
padding-left: 30rem / $pxConvertRem;
width: 140rem / $pxConvertRem;
height: 140rem / $pxConvertRem;
a {
display: block;
width: 100%;
height: 100%;
img {
width: 100%;
height: 100%;
}
}
}
}
\ No newline at end of file
}
... ...
.discount-section {
li {
margin-bottom: 30rem / $pxConvertRem;
font-size: 24rem / $pxConvertRem;
line-height: 76rem / $pxConvertRem;
background: #fff;
a {
color: #000;
}
img {
text-align: center;
width: 640rem / $pxConvertRem;
height: 250rem / $pxConvertRem;
vertical-align: middle;
}
}
.title {
float: left;
padding-left: 20rem / $pxConvertRem;
}
.time {
float: right;
padding-right: 20rem / $pxConvertRem;
&.rush {
color: #d0021b;
}
}
}
\ No newline at end of file
... ...
.floor-header{
margin: 29rem / $pxConvertRem 30rem / $pxConvertRem 0;
background: #fff;
border: 1px solid #e0e0e0;
border-bottom: none;
height: 70rem / $pxConvertRem;
line-height: 70rem / $pxConvertRem;
text-align: center;
font-size: 30rem / $pxConvertRem;
color: #b1b1b1;
}
\ No newline at end of file
... ...
.good-info {
float: left;
width: 276rem / $pxConvertRem;
height: 486rem / $pxConvertRem;
margin: 0 (15rem / $pxConvertRem);
.tag-container {
height: 28rem / $pxConvertRem;
width: 100%;
overflow: hidden;
.good-tag {
display: block;
float: left;
height: 28rem / $pxConvertRem;
font-size: 18rem / $pxConvertRem;
text-align: center;
line-height: 28rem / $pxConvertRem;
box-sizing: border-box;
margin-right: 4rem / $pxConvertRem;
&:last-child {
margin-right: 0;
}
}
.new-tag {
width: 60rem / $pxConvertRem;
background-color: #78dc7e;
color: #fff;
}
.renew-tag {
width: 90rem / $pxConvertRem;
background-color: #78dc7e;
color: #fff;
}
.sale-tag {
width: 60rem / $pxConvertRem;
background-color: #ff575c;
color: #fff;
}
.yohood-tag {
width: 90rem / $pxConvertRem;
background: image-url("yohood.png") no-repeat;
background-size: 100% 100%;
}
.limit-tag {
width: 90rem / $pxConvertRem;
border: 1px solid #000;
color: #000;
}
}
}
.good-detail-img {
position: relative;
.good-islike {
position: absolute;
width: 60rem / $pxConvertRem;
height: 60rem / $pxConvertRem;
top: 0rem / $pxConvertRem;
right: 0rem / $pxConvertRem;
line-height: 60rem / $pxConvertRem;
font-size: 30rem / $pxConvertRem;
text-align: center;
color: #b0b0b0;
text-decoration: none;
}
.good-like {
color: #d72928;
}
img {
display: block;
width: 100%;
height: 366rem / $pxConvertRem;
}
.few-tag {
position: absolute;
bottom: 0;
width: 100%;
height: 28rem / $pxConvertRem;
background: #ffac5b;
font-size: 18rem / $pxConvertRem;
color: #fff;
line-height: 28rem / $pxConvertRem;
text-align: center;
}
}
.good-detail-text {
.name a {
display: block;
line-height: 56rem / $pxConvertRem;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
text-decoration: none;
font-size: 22rem / $pxConvertRem;
color: #444;
}
.price {
line-height: 22rem / $pxConvertRem;
font-size: 22rem / $pxConvertRem;
.sale-price {
color: #d62927;
}
.sale-price.no-price {
color: #000;
}
.market-price {
margin: 0 0 0 (5rem / $pxConvertRem);
color: #b0b0b0;
text-decoration: line-through;
}
}
.vip-tag {
display: none;
margin: (5rem / $pxConvertRem) 0 0;
padding: 0 0 0 (96rem / $pxConvertRem);
height: 32rem / $pxConvertRem;
line-height: 32rem / $pxConvertRem;
background: image-url("sale-icon/vip.png") no-repeat left center;
background-size: auto 100%;
font-size: 18rem / $pxConvertRem;
}
}
\ No newline at end of file
... ...
@import "./goods-nav","./good-info";
.goods-content{
position: relative;
background: #fff;
padding: 0 0 0 15rem / $pxConvertRem;
}
.screen-mask, .screen-content {
position: absolute;
left: 0;
right: 0;
top: 0;
}
.screen-mark {
height: 100%;
background-color: #000;
opacity: 0.1;
filter: Alpha(opacity=10);
}
.screen-content{
.classify{
float: left;
width: 320rem / $pxConvertRem;
background: #f8f8f8;
li{
padding-left: 28rem / $pxConvertRem;
height: 80rem / $pxConvertRem;
line-height: 80rem / $pxConvertRem;
font-size: 28rem / $pxConvertRem;
h1{
display: inline-block;
color: #a0a0a0;
}
}
li.active{
background: #fff;
h1{
color: #000;
}
}
}
.sub-classify-container{
float: left;
width: 320rem / $pxConvertRem;
background: #fff;
height: 100%;
overflow-y:auto;
li{
position: relative;
margin: 0 0 0 20rem / $pxConvertRem;
padding: 0 0 0 14rem / $pxConvertRem;
height: 78rem / $pxConvertRem;
line-height: 78rem / $pxConvertRem;
border-bottom: 2rem / $pxConvertRem solid #e0e0e0;
font-size: 28rem / $pxConvertRem;
color: #000;
.chosed-icon{
display: none;
position: absolute;
top: 0;
right: 28rem / $pxConvertRem;
font-size: 32rem / $pxConvertRem;
}
}
li.chosed{
.chosed-icon{
display: block;
}
}
}
}
... ...
.goods-group {
ul {
padding: (15rem / $pxConvertRem) 0 (15rem / $pxConvertRem) (15rem / $pxConvertRem);
background: #fff;
}
}
\ No newline at end of file
... ...
.goods-item {
float: left;
margin: 15rem/$pxConvertRem;
background: #fff;
color: #444;
a {
font-size: 22rem/$pxConvertRem;
line-height: 36rem/$pxConvertRem;
color: #222;
}
img {
width: 276rem/$pxConvertRem;
height: 368rem/$pxConvertRem;
}
.goods-title {
max-width: 276rem/$pxConvertRem;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.price {
font-size: 22rem/$pxConvertRem;
line-height: 32rem/$pxConvertRem;
}
.sale-price {
color: #d0021b;
}
.sale-price.no-price {
color: #000;
}
.market-price {
margin: 0 0 0 (5rem / $pxConvertRem);
color: #b6b6b6;
text-decoration: line-through;
}
.vip-cheap {
font-size: 18rem/$pxConvertRem;
line-height: 32rem/$pxConvertRem;
}
%vip-icon {
float: left;
margin-right: 12rem/$pxConvertRem;
background-size: 100%;
background-repeat: no-repeat;
}
.vip-icon {
@extend %vip-icon;
width: 88rem/$pxConvertRem;
height: 32rem/$pxConvertRem;
background-image: url(../img/sale-icon/vip.png);
}
.vip-card-gold {
@extend %vip-icon;
width: 52rem/$pxConvertRem;
height: 32rem/$pxConvertRem;
background-image: url(../img/sale-icon/vip-card-gold.png);
}
}
... ...
.goods-nav {
position: relative;
width: 100%;
height: 67rem / $pxConvertRem;
background: #fff;
text-align: center;
overflow: hidden;
&:after {
content: '';
position: absolute;
left: 0;
bottom: 0;
width: 100%;
border-top: 1px solid #e6e6e6;
}
.swiper-wrapper {
white-space: nowrap;
}
li {
display: inline-block;
width: auto;
margin: 0 0 0 (34.4rem / $pxConvertRem);
font-size: 28rem / $pxConvertRem;
padding: 0 (6rem / $pxConvertRem);
height: 67rem / $pxConvertRem;
line-height: 67rem / $pxConvertRem;
color: #999;
// border-bottom: (4rem / $pxConvertRem) solid transparent;
span {
display: inline-block;
}
.sort {
width: 24rem / $pxConvertRem;
vertical-align: middle;
}
.iconfont {
display: block;
font-size: 26rem / $pxConvertRem;
height: 30rem / $pxConvertRem;
line-height: 40rem / $pxConvertRem;
&.down {
line-height: 30rem / $pxConvertRem;
}
&.up + .down {
line-height: 20rem / $pxConvertRem;
}
}
}
li.focus {
color: #000;
&:after {
content: '';
position: absolute;
left: 0;
bottom: 0;
width: 100%;
border-top: (4rem / $pxConvertRem) solid #000;
z-index: 1;
}
.sort {
.iconfont {
color: #c0c0c0;
&.cur {
color: #000;
}
}
}
}
.screen-nav {
.iconfont {
line-height: 30rem / $pxConvertRem;
transition: transform .1s ease-in;
transform: scale(0.83);
}
&.focus {
.iconfont {
transform: scale(0.83) rotate(-180deg);
-webkit-transform: scale(0.83) rotate(-180deg);
color: #000 !important;
}
}
}
}
.s-goods-nav {
li {
float: left;
display: inline;
}
}
.size-nav {
height: 49rem / $pxConvertRem;
line-height: 49rem / $pxConvertRem;
background: #f0f0f0;
border-bottom: (2rem / $pxConvertRem) solid #e6e6e6;
overflow: hidden;
li {
float: left;
width: auto;
padding: 0 (25rem / $pxConvertRem);
font-size: 28rem / $pxConvertRem;
color: #999;
}
li.focus {
color: #000;
}
}
\ No newline at end of file
... ...
.header-banner {
position: relative;
width: 100%;
height: 200rem / $pxConvertRem;
overflow: hidden;
.swiper-wrapper{
position: relative;
width: 100%;
height: 100%;
}
.swiper-slide{
float: left;
width: 100%;
height: 100%;
}
img {
display: block;
width: 100%;
height: 100%;
}
.desc {
box-sizing: border-box;
position:absolute;
left: 0;
bottom: 0;
padding-right: 30rem/$pxConvertRem;
width: 100%;
font-size: 22rem/$pxConvertRem;
line-height: 50rem/$pxConvertRem;
color: #fff;
background: rgba(120,120,120,.5);
text-align: right;
}
}
\ No newline at end of file
... ...
.header{
height: 88rem / $pxConvertRem;
line-height: 88rem / $pxConvertRem;
text-align: center;
background: #222;
color: #fff;
font-size: 34rem / $pxConvertRem;
.icon-back{
float: left;
margin-left: 33rem / $pxConvertRem;
font-size: 32rem / $pxConvertRem;
color: #fff;
}
.icon-home{
float: right;
margin-right: 26px;
font-size: 32rem / $pxConvertRem;
color: #fff;
}
}
\ No newline at end of file
... ...
.rank-main {
padding: (14rem / $pxConvertRem) 0 0 (30rem / $pxConvertRem);
background: #fff;
li {
.item-img {
float: left;
width: 150rem / $pxConvertRem;
height: 200rem / $pxConvertRem;
padding: (12rem / $pxConvertRem) 0;
line-height: 200rem / $pxConvertRem;
text-align: center;
img {
max-width: 100%;
max-height: 100%;
vertical-align: middle;
}
}
.item-content {
float: left;
width: 407rem / $pxConvertRem;
height: 213rem / $pxConvertRem;
margin: 0 0 0 (13rem / $pxConvertRem);
padding: (12rem / $pxConvertRem) 0 0 (30rem / $pxConvertRem);
border-top: 1px solid #e0e0e0;
.rank-icon {
display: block;
height: 50rem / $pxConvertRem;
width: 50rem / $pxConvertRem;
line-height: 58rem / $pxConvertRem;
text-align: center;
font-size: 22rem / $pxConvertRem;
color: #fff;
background: image-url("sale-icon/rank.png") no-repeat;
background-size: 100%;
&.top {
background: image-url("sale-icon/rank-t.png") no-repeat;
background-size: 100%;
}
}
h2 {
width: 9.5rem;
line-height: 1.285;
color: #444;
font-size: 28rem / $pxConvertRem;
}
p {
width: 9.5rem;
line-height: 1.5;
font-size: 24rem / $pxConvertRem;
color: #d0021b;
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
span {
text-decoration: line-through;
color: #b0b0b0;
margin-left: 10rem / $pxConvertRem;
}
}
}
}
li:first-child {
.item-content {
border: none;
}
}
}
\ No newline at end of file
... ...
.goods-nav {
border-bottom: (2rem / $pxConvertRem) solid #e6e6e6;
height: 67rem / $pxConvertRem;
overflow: hidden;
li {
float: left;
width: auto;
height: 67rem / $pxConvertRem;
line-height: 67rem / $pxConvertRem;
width: 145rem / $pxConvertRem;
text-align: center;
font-size: 28rem / $pxConvertRem;
a {
display: inline-block;
padding: 0 (5rem / $pxConvertRem);
font-size: 28rem / $pxConvertRem;
color: #999;
height: 65rem / $pxConvertRem;
}
}
li:first-child {
margin-left: 30rem / $pxConvertRem;
}
li.focus {
a {
border-bottom: (4rem / $pxConvertRem) solid #000;
color: #000;
}
}
}
.s-goods-nav {
overflow: hidden;
li {
margin: 0 0 0 (50rem / $pxConvertRem);
width: auto;
a {
padding: 0;
}
}
li:first-child {
margin: 0 0 0 (39rem / $pxConvertRem);
}
}
\ No newline at end of file
... ...
.vip-no-login .good-info {
height: 523rem / $pxConvertRem;
}
.vip-no-login .vip-tag {
display: block;
}
.vip-card .good-detail-text .price {
padding-left: 66rem / $pxConvertRem;
height: 32rem / $pxConvertRem;
line-height: 32rem / $pxConvertRem;
}
.vip-gold .good-detail-text .price {
background: url(../img/sale-icon/vip-card-gold.png) no-repeat;
background-size: auto 100%;
}
.vip-platinum .good-detail-text .price {
background: url(../img/sale-icon/vip-card-platinum.png) no-repeat;
background-size: auto 100%;
}
.vip-silver .good-detail-text .price {
background: url(../img/sale-icon/vip-card-silver.png) no-repeat;
background-size: auto 100%;
}
\ No newline at end of file
... ...
.sale-section {
background: #fff;
ul {
text-align: center;
padding: (15rem / $pxConvertRem) 0 (15rem / $pxConvertRem) (15rem / $pxConvertRem);
}
li {
float: left;
margin: (15rem / $pxConvertRem) (15rem / $pxConvertRem);
width: 275rem / $pxConvertRem;
height: 130rem / $pxConvertRem;
img {
width: 100%;
height: 100%;
}
}
}
\ No newline at end of file
... ...
{{# data}}
{{> common/header}}
{{> common/header_banner}}
<!-- <div class="goods-container">
{{# ../goodsNav}}
{{> common/goods_nav}}
{{/ ../goodsNav}}
{{# discountSection}}
<div class="goods-group discount-detail">
<ul class="clearfix">
{{# list}}
{{> common/goods_item}}
{{/ list}}
</ul>
</div>
{{/ discountSection}}
</div> -->
{{# goodsNav}}
{{> common/goods_nav}}
{{/ goodsNav}}
{{> common/goods_container}}
{{/ data}}
\ No newline at end of file
... ...
{{> newsale/header}}
{{# discountSection}}
<div class="discount-section">
<ul class="clearfix">
{{# list}}
<li class="clearfix">
<a href="{{url}}">
<img class="lazy" data-original="{{img}}" alt="">
<span class="title">{{title}}</span>
<span class="time {{rush}}">{{time}}</span>
</a>
</li>
{{/ list}}
</ul>
</div>
{{/ discountSection}}
\ No newline at end of file
... ...
{{# data}}
{{> common/header}}
<script type="text/javascript">
// 判断是否是微信浏览器
function isWeixin() {
var ua = navigator.userAgent.toLowerCase();
if (ua.match(/MicroMessenger/i) == "micromessenger") {
return true;
} else {
return false;
}
}
if (isWeixin()) {
document.getElementById('header').style.display = 'none';
}
</script>
{{> common/header_banner}}
{{> common/sgoods_nav}}
{{# rankList}}
<div class="rank-main">
<ul>
{{# list}}
<li>
<a class="clearfix" href="{{url}}">
<div class="item-img">
<img class="lazy" data-original="{{img}}">
</div>
<div class="item-content">
<i class="rank-icon top">{{rank}}</i>
<h2>{{title}}</h2>
<p>{{active}}</p>
<p>{{sPrice}}<span>{{price}}</span></p>
</div>
</a>
</li>
{{/ list}}
</ul>
</div>
{{/ rankList}}
{{/ data}}
\ No newline at end of file
... ...
{{> newsale/header_banner}}
{{> mewsale/list_nav}}
... ...
{{# data}}
{{> common/header}}
{{> common/header_banner}}
<!-- <div class="goods-container">
{{# ../goodsNav}}
{{> common/goods_nav}}
{{/ ../goodsNav}}
{{# onlyForMemberSection}}
<div class="goods-group only-for-member">
<ul class="clearfix">
{{# list}}
{{> common/goods_item}}
{{/ list}}
</ul>
</div>
{{/ onlyForMemberSection}}
</div> -->
{{# goodsNav}}
{{> common/goods_nav}}
{{/ goodsNav}}
{{> common/goods_container}}
{{/ data}}
\ No newline at end of file
... ...
{{# data}}
{{> common/header}}
{{> common/header_banner}}
<!-- <div class="goods-container">
{{# ../goodsNav}}
{{> common/goods_nav}}
{{/ ../goodsNav}}
{{# outletSection}}
<div class="goods-group outlets">
<ul class="clearfix">
{{# list}}
{{> common/goods_item}}
{{/ list}}
</ul>
</div>
{{/ outletSection}}
</div> -->
{{# goodsNav}}
{{> common/goods_nav}}
{{/ goodsNav}}
{{> common/goods_container}}
{{/ data}}
\ No newline at end of file
... ...
{{# data}}
{{> common/header}}
{{> common/header_banner}}
<!-- <div class="goods-container">
{{# ../goodsNav}}
{{> common/goods_nav}}
{{/ ../goodsNav}}
{{# reducedPriceSection}}
<div class="goods-group reduced-price">
<ul class="clearfix">
{{# list}}
{{> common/goods_item}}
{{/ list}}
</ul>
</div>
{{/ reducedPriceSection}}
</div> -->
{{# goodsNav}}
{{> common/goods_nav}}
{{/ goodsNav}}
{{> common/goods_container}}
{{/ data}}
\ No newline at end of file
... ...
{{> newsale/header}}
{{> newsale/header_banner}}
{{# saleSection}}
<div class="sale-section">
<ul class="clearfix">
{{# list}}
<li>
<a href="{{url}}">
<img src="{{img}}" alt="">
</a>
</li>
{{/ list}}
</ul>
</div>
{{/ saleSection}}
{{# latestSale}}
{{> newsale/floor_header}}
{{/ latestSale}}
{{# goodsNav}}
{{> newsale/goods_nav}}
{{/ goodsNav}}
{{> newsale/goods_container}}
... ...
{{# data}}
{{> newsale/header}}
{{> newsale/header_banner}}
<!-- <div class="goods-container">
{{# ../goodsNav}}
{{> common/goods_nav}}
{{/ ../goodsNav}}
{{# shortInSizeSection}}
<div class="goods-group short-in-size">
<ul class="clearfix">
{{# list}}
{{> common/goods_item}}
{{/ list}}
</ul>
</div>
{{/ shortInSizeSection}}
</div> -->
{{# goodsNav}}
{{> newsale/goods_nav}}
{{/ goodsNav}}
{{> newsale/goods_container}}
{{/ data}}
\ No newline at end of file
... ...
{{>layout/header}}
<code>
{{#focus}}
<ul>
{{#each data}}
{{#data}}
<li><img src="{{src}}" alt="{{title}}"></li>
{{/data}}
{{/each}}
</ul>
{{/focus}}
</code>
{{# headerBanner}}
{{> common/banner_top}}
{{/ headerBanner}}
{{> mewsale/sgoods_nav}}
{{>layout/footer}}
{{>layout/footer}}
\ No newline at end of file
... ...
... ... @@ -17,4 +17,6 @@
</ul>
</div>
</div>
</div>
\ No newline at end of file
</div>
... ...
<div class="guang-info" data-id="{{id}}">
{{# author}}
<a class="info-author clearfix" href={{url}}>
<img class="lazy avatar" data-original={{avatar}}>
<span class="name">{{name}}</span>
</a>
{{/ author}}
<div class="info-img">
{{#if showTags}}
<a href="javascript:;" class="info-match">
... ...
... ... @@ -5,9 +5,12 @@
<span class="page-view">{{pageView}}</span>
<div class="like-share-container">
{{# like}}
<a href="javascript:;" class="iconfont like-btn{{#isLiked}} like{{/isLiked}}">&#xe601;</a>
<i class="iconfont like-btn{{#isLiked}} like{{/isLiked}}">&#xe601;</i>
<span class="like-count">{{count}}</span>
{{/ like}}
{{# collect}}
<i class="iconfont collect-btn{{#isCollected}} collected{{/isCollected}}">&#xe605;</i>
{{/ collect}}
{{# share}}
<a href="{{.}}" class="iconfont share-btn">&#xe600;</a>
{{/ share}}
... ...
... ... @@ -10,6 +10,21 @@
seajs.use('js/guang/plus-star/detail');
</script>
{{/if}}
{{#if guangHome}}
<script>
seajs.use('js/guang/home');
</script>
{{/if}}
{{#if guangList}}
<script>
seajs.use('js/guang/list');
</script>
{{/if}}
{{#if guangDetail}}
<script>
seajs.use('js/guang/detail');
</script>
{{/if}}
{{!-- 注册 --}}
{{#if regIndex}}
... ...
<div class="floor-header">
<h2>{{name}}</h2>
</div>
\ No newline at end of file
... ...
<div class="good-info" data-id="{{id}}">
<div class="tag-container clearfix">
{{# tags}}
{{# isNew}}
<p class="good-tag new-tag">NEW</p>
{{/ isNew}}
{{# isReNew}}
<p class="good-tag renew-tag">再到着</p>
{{/ isReNew}}
{{# isSale}}
<p class="good-tag sale-tag">SALE</p>
{{/ isSale}}
{{# isYohood}}
<div class="good-tag yohood-tag"></div>
{{/ isYohood}}
{{# isLimit}}
<p class="good-tag limit-tag">限量商品</p>
{{/ isLimit}}
{{/ tags}}
</div>
<div class="good-detail-img">
<!-- <a class="good-islike {{# isLike}}good-like{{/ isLike}} iconfont" href="{{likeUrl}}">&#xe605;</a> -->
<a class="good-thumb" href="{{url}}">
<img class="lazy" data-original="{{thumb}}">
</a>
{{# isFew}}
<p class="few-tag">即将售罄</p>
{{/ isFew}}
</div>
<div class="good-detail-text">
<div class="name">
<a href="{{url}}">{{name}}</a>
</div>
<div class="price">
<span class="sale-price {{^price}}no-price{{/price}}">¥{{salePrice}}</span>
{{#price}}
<span class="market-price">¥{{.}}</span>
{{/price}}
</div>
<div class="vip-tag">更优惠</div>
</div>
</div>
... ...
{{# goodsContainer}}
<div id="goods-content" class="goods-content {{# vipNoLogin}}vip-no-login{{/ vipNoLogin}} {{# vipLogin}}vip-card vip-{{.}}{{/ vipLogin}} clearfix">
{{> common/script_good_info}}
<div class="new-patterns-container hide">
{{# goods}}
{{> common/good_info}}
{{/ goods}}
</div>
<div class="sales-volume-container hide"></div>
<div class="price-container hide"></div>
<div class="cloth-container hide"></div>
<div class="pants-container hide"></div>
<div class="shose-container hide"></div>
<div class="other-container hide"></div>
<div id="screen-mask" class="screen-mask hide"></div>
<div id="screen-content" class="screen-content hide clearfix">
<ul class="classify">
<li class="gender c-item active">
性别:
<h1 id="show-gender" class="chosed default">BOYS</h1>
</li>
<li class="brand c-item">
品牌:
<h1 id="show-brand" class="chosed default">全部品牌</h1>
</li>
<li class="msort c-item">
品类:
<h1 id="show-msort" class="chosed default">全部品类</h1>
</li>
<li class="color c-item">
颜色:
<h1 id="show-color" class="chosed default">全部颜色</h1>
</li>
<li class="size c-item">
尺码:
<h1 id="show-size" class="chosed default">全部尺码</h1>
</li>
<li class="price c-item">
价格:
<h1 id="show-price" class="chosed default">全部价格</h1>
</li>
<li class="discount c-item">
折扣:
<h1 id="show-discount" class="chosed default">全部折扣</h1>
</li>
</ul>
<div class="sub-classify-container">
<ul id="sub-gender" class="sub-classify" data-type="gender"></ul>
<ul id="sub-brand" class="sub-classify hide" data-type="brand"></ul>
<ul id="sub-msort" class="sub-classify hide" data-type="msort"></ul>
<ul id="sub-color" class="sub-classify hide" data-type="color"></ul>
<ul id="sub-size" class="sub-classify hide" data-type="size"></ul>
<ul id="sub-price" class="sub-classify hide" data-type="price"></ul>
<ul id="sub-discount" class="sub-classify hide" data-type="discount"></ul>
</div>
</div>
</div>
{{/ goodsContainer}}
\ No newline at end of file
... ...
<div id="goods-content" class="goods-content clearfix" style="padding-left:10px;margin-top: 9px;">
<div class="new-patterns-container"></div>
<div class="sales-volume-container hide"></div>
<div class="price-container hide"></div>
<div id="screen-mask" class="screen-mask hide"></div>
<div id="screen-content" class="screen-content hide">
<ul class="classify">
<li class="gender c-item active">
性别:
<h1 id="show-gender" class="chosed">BOYS</h1>
</li>
<li class="brand c-item">
品牌:
<h1 id="show-brand" class="chosed default">全部品牌</h1>
</li>
<li class="msort c-item">
品类:
<h1 id="show-msort" class="chosed default">全部品类</h1>
</li>
<li class="color c-item">
颜色:
<h1 id="show-color" class="chosed default">全部颜色</h1>
</li>
<li class="size c-item">
尺码:
<h1 id="show-size" class="chosed default">全部尺码</h1>
</li>
<li class="price c-item">
价格:
<h1 id="show-price" class="chosed default">全部价格</h1>
</li>
<li class="discount c-item">
折扣:
<h1 id="show-discount" class="chosed default">全部折扣</h1>
</li>
</ul>
<div class="sub-classify-container">
<ul id="sub-gender" class="sub-classify" data-type="gender"></ul>
<ul id="sub-brand" class="sub-classify hide" data-type="brand"></ul>
<ul id="sub-msort" class="sub-classify hide" data-type="msort"></ul>
<ul id="sub-color" class="sub-classify hide" data-type="color"></ul>
<ul id="sub-size" class="sub-classify hide" data-type="size"></ul>
<ul id="sub-price" class="sub-classify hide" data-type="price"></ul>
<ul id="sub-discount" class="sub-classify hide" data-type="discount"></ul>
</div>
</div>
</div>
\ No newline at end of file
... ...
<li class="goods-item">
<a href="{{url}}">
<img class="lazy" data-original="{{img}}" alt="">
<div class="goods-title">{{title}}</div>
<div class="price">
<i class="vip-card hide"></i>
<span class="sale-price {{^price}}no-price{{/price}}">{{# salePrice}}¥{{/ salePrice}}{{salePrice}}</span>
{{#price}}
<span class="market-price">¥{{.}}</span>
{{/price}}
</div>
<div class="vip-cheap hide">
<i class="icon vip-icon"></i> 更优惠
</div>
</a>
</li>
\ No newline at end of file
... ...
<ul id="goods-nav" class="goods-nav">
{{# all}}
<li class="nav-item all-nav focus">
<span>全部</span>
</li>
{{/ all}}
{{# newPatterns}}
<li class="nav-item new-patterns-nav focus">
<span>最新</span>
</li>
{{/ newPatterns}}
{{# price}}
<li class="nav-item price-nav">
<span>价格</span>
<span class="sort">
<i class="up iconfont">&#xe615;</i>
<i class="down iconfont cur">&#xe616;</i>
</span>
</li>
{{/ price}}
{{# salesCount}}
<li class="nav-item sales-count-nav">
<span>销量</span>
</li>
{{/ salesCount}}
{{# salesVolume}}
<li class="nav-item sales-volume-nav">
<span>折扣</span>
<span class="sort">
<i class="up iconfont">&#xe615;</i>
<i class="down iconfont cur">&#xe616;</i>
</span>
</li>
{{/ salesVolume}}
{{# cloth}}
<li class="nav-item cloth-nav">
<span>上装</span>
</li>
{{/ cloth}}
{{# pants}}
<li class="nav-item pants-nav">
<span>下装</span>
</li>
{{/ pants}}
{{# shoes}}
<li class="nav-item shose-nav">
<span>鞋</span>
</li>
{{/ shoes}}
{{# other}}
<li class="nav-item other-nav">
<span>其他</span>
</li>
{{/ other}}
{{# screen}}
<li class="nav-item screen-nav">
<span>筛选</span>
<span class="sort">
<i class="iconfont">&#xe613;</i>
</span>
</li>
{{/ screen}}
</ul>
{{# sizeNav}}
<div id="size-nav" class="size-nav swiper-container">
<ul class="swiper-wrapper">
{{# list}}
<li class="size-nav-item swiper-slide" data-size="{{size}}">{{textCn}}</li>
{{/ list}}
</ul>
</div>
{{/ sizeNav}}
\ No newline at end of file
... ...
{{# header}}
<div id="header" class="header clearfix" {{# bgColor}}style="background:{{.}}"{{/ bgColor}}>
<a class="icon-back iconfont" href="javascript:history.go(-1)"></a>
{{title}}
<a class="icon-home iconfont" href="{{homeUrl}}"></a>
</div>
{{/ header}}
... ...
<script id="goods-tpl" type="x-tmpl-mustache">
<div class="good-info" data-id="\{{id}}">
<div class="tag-container clearfix">
\{{# tags}}
\{{# isNew}}
<p class="good-tag new-tag">NEW</p>
\{{/ isNew}}
\{{# isReNew}}
<p class="good-tag renew-tag">再到着</p>
\{{/ isReNew}}
\{{# isSale}}
<p class="good-tag sale-tag">SALE</p>
\{{/ isSale}}
\{{# isYohood}}
<div class="good-tag yohood-tag"></div>
\{{/ isYohood}}
\{{# isLimit}}
<p class="good-tag limit-tag">限量商品</p>
\{{/ isLimit}}
\{{/ tags}}
</div>
<div class="good-detail-img">
<a class="good-thumb" href="\{{url}}">
<img class="lazy" data-original="\{{thumb}}">
</a>
\{{# isFew}}
<p class="few-tag">即将售罄</p>
\{{/ isFew}}
</div>
<div class="good-detail-text">
<div class="name">
<a href="\{{url}}">\{{name}}</a>
</div>
<div class="price">
<span class="sale-price \{{^price}}no-price\{{/price}}">¥\{{salePrice}}</span>
\{{#price}}
<span class="market-price">¥\{{.}}</span>
\{{/price}}
</div>
</div>
</div>
</script>
\ No newline at end of file
... ...
{{# listNav}}
<div class="s-goods-nav goods-nav">
<ul class="swiper-wrapper clearfix">
{{# list}}
<li class="swiper-slide nav-item" data-sort="{{sort}}">
<span>{{textCn}}</span>
</li>
{{/ list}}
</ul>
</div>
{{/ listNav}}
... ...
... ... @@ -40,6 +40,7 @@ class GirlsController extends AbstractAction
}*/
$data = array(
'grilsHomePage' => true,
'headerDownload' => array(
'img' => 'http://img11.static.yhbimg.com/adpic/2015/02/28/18/01d83bfad41c8fca8fd1ad334216d7d733.jpg?imageView/2/w/640/h/480',
'url' => 'http://www.baidu.com'
... ...
... ... @@ -12,7 +12,6 @@ class LifestyleController extends AbstractAction
public function indexAction()
{
// 显示侧边栏
$this->setNavSide();
... ... @@ -24,16 +23,456 @@ class LifestyleController extends AbstractAction
$data = array();
// 频道数据
$channelData = IndexData::getUserChannelData(0, '1,3', '9aa25f5133f011ec96c2045eb15ae425');
$channelData = IndexData::getUserChannelData(0, '2,3', '201504091403002');
$channels = array();
if($channelData['code'] == 200)
{
$data['content'] = FloorProcess::getContent($channelData['data'], 4);
$data['content'] = FloorProcess::getContent($channelData['data'], 2);
}
/*// 也许喜欢
$maybeLikeData = RecomData::mayLike('2,3', 2, false);
$maybeLike = array();
if($maybeLikeData['code'] == 200)
{
$maybeLike = FloorProcess::maybeLike($maybeLikeData['data']['product_list']);
$num = count($data['content']);
$data['content'][] = array('maybeLike' =>$maybeLike);
}*/
$data = array(
'headerDownload' => array(
'img' => 'http://img11.static.yhbimg.com/adpic/2015/02/28/18/01d83bfad41c8fca8fd1ad334216d7d733.jpg?imageView/2/w/640/h/480',
'url' => 'http://www.baidu.com'
),
'homeHeader' => array(
'bgColor' => '#FF88AE',
'searchUrl' => ''
),
'sideNav' => array(
array(
'textCn' => '男生',
'textEn' => 'Boys',
'styleClass' => 'boys',
'url' => ''
),
array(
'textCn' => '女生',
'textEn' => 'GIRLS',
'styleClass' => 'girls',
'url' => ''
),
array(
'textCn' => '潮童',
'textEn' => 'KIDS',
'styleClass' => 'kids',
'url' => ''
),
array(
'textCn' => '创意生活',
'textEn' => 'LIFE STYLE',
'styleClass' => 'life',
'url' => ''
),
array(
'textCn' => '逛',
'textEn' => 'TRENDFINDER',
'styleClass' => 'guang',
'subNav' => array(
'list' => array(
array(
'textCn' => '逛',
'textEn' => 'TrendFinder',
'back' => true,
'bgColor' => '#fd307f'
),
array(
'textCn' => '查看全部',
'url' => ''
),
array(
'textCn' => '只看男生',
'textEn' => 'Boys',
'url' => ''
),
array(
'textCn' => '只看女生',
'textEn' => 'Girls',
'url' => '',
'isSelect' => true
)
)
)
)
),
'content' => array(
'bannerTop' => array(
'list' => array(
array(
'url' => '',
'img' => 'http://img02.yohoboys.com/staticimg/2015/06/30/21/02912cd7f0b2c67939404c71ef00e3f513.jpg'
),
array(
'url' => '',
'img' => 'http://img02.yohoboys.com/staticimg/2015/06/30/21/02912cd7f0b2c67939404c71ef00e3f513.jpg'
),
array(
'url' => '',
'img' => 'http://img02.yohoboys.com/staticimg/2015/06/30/21/02912cd7f0b2c67939404c71ef00e3f513.jpg'
)
)
),
'iconsEnter' => array(
'list' => array(
array(
'url' => '',
'img' => 'http://img02.yohoboys.com/staticimg/2015/06/30/21/02912cd7f0b2c67939404c71ef00e3f513.jpg',
'text' => '新品到着'
),
array(
'url' => '',
'img' => 'http://img02.yohoboys.com/staticimg/2015/06/30/21/02912cd7f0b2c67939404c71ef00e3f513.jpg',
'text' => '全球优选'
),
array(
'url' => '',
'img' => 'http://img02.yohoboys.com/staticimg/2015/06/30/21/02912cd7f0b2c67939404c71ef00e3f513.jpg',
'text' => '明星潮牌'
),
array(
'url' => '',
'img' => 'http://img02.yohoboys.com/staticimg/2015/06/30/21/02912cd7f0b2c67939404c71ef00e3f513.jpg',
'text' => '全部品类'
),
array(
'url' => '',
'img' => 'http://img02.yohoboys.com/staticimg/2015/06/30/21/02912cd7f0b2c67939404c71ef00e3f513.jpg',
'text' => '逛'
),
array(
'url' => '',
'img' => 'http://img02.yohoboys.com/staticimg/2015/06/30/21/02912cd7f0b2c67939404c71ef00e3f513.jpg',
'text' => '搭配指南'
),
array(
'url' => '',
'img' => 'http://img02.yohoboys.com/staticimg/2015/06/30/21/02912cd7f0b2c67939404c71ef00e3f513.jpg',
'text' => '潮品推荐'
),
array(
'url' => '',
'img' => 'http://img02.yohoboys.com/staticimg/2015/06/30/21/02912cd7f0b2c67939404c71ef00e3f513.jpg',
'text' => '折扣精选'
)
)
),
'bannerCenter' => array(
'img' => 'http://img02.yohoboys.com/staticimg/2015/06/24/16/02ee02f1dd11c9103f7cf7995eafdaa605.jpg',
'url' => ''
),
'hotCategory' => array(
'title' => array(
'name' => '热门品类'
),
'list' => array(
array(
'textCn' => '卫衣',
'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg',
'url' => ''
),
array(
'textCn' => 'T恤',
'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg',
'url' => ''
),
array(
'textCn' => '打底衫',
'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg',
'url' => ''
),
array(
'textCn' => '打底衫',
'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg',
'url' => ''
),
array(
'textCn' => '打底衫',
'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg',
'url' => ''
),
array(
'textCn' => '打底衫',
'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg',
'url' => ''
),
array(
'textCn' => '打底衫',
'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg',
'url' => ''
),
array(
'textCn' => '打底衫',
'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg',
'url' => ''
)
)
),
'hotBrands' => array(
'title' => array(
'name' => '热门品牌'
),
'list' => array(
array(
'textCn' => 'Moussy',
'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg',
'url' => ''
),
array(
'textCn' => 'Moussy',
'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg',
'url' => ''
),
array(
'textCn' => 'Moussy',
'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg',
'url' => ''
),
array(
'textCn' => 'Moussy',
'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg',
'url' => ''
),
array(
'textCn' => 'Moussy',
'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg',
'url' => ''
),
array(
'textCn' => 'Moussy',
'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg',
'url' => ''
)
)
),
'trendColloaction' => array(
'title' => array(
'title' => '潮人 ▪ 搭配',
'more_name' => '...',
'more_url' => 'http://www.yohobuy.com?openby:yohobuy={"action":"go.guangchannel","params":{"id":3,"name":"\u6f6e\u4eba"}}'
),
'article' => array(
array(
'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg',
'url' => ''
),
array(
'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg',
'url' => ''
)
),
'recommend_collocation' => array(
array(
'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg',
'url' => ''
),
array(
'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg',
'url' => ''
),
array(
'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg',
'url' => ''
),
array(
'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg',
'url' => ''
),
array(
'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg',
'url' => ''
)
)
),
'trendTopics' => array(
'title' => array(
'title' => '潮品 ▪ 话题',
'more_name' => '...',
'more_url' => 'http://www.yohobuy.com?openby:yohobuy={"action":"go.guangchannel","params":{"id":3,"name":"\u6f6e\u4eba"}}'
),
'list' => array(
array(
'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg',
'url' => '',
'title' => '现代裁剪',
'time' => '2月13日 12:34'
),
array(
'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg',
'url' => '',
'title' => '现代裁剪',
'time' => '2月13日 12:34'
),
array(
'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg',
'url' => '',
'title' => '现代裁剪',
'time' => '2月13日 12:34'
)
)
),
'goodsCategory' => array(
'title' => array(
'title' => '潮流时装',
'more_name' => '...',
'more_url' => 'http://www.yohobuy.com?openby:yohobuy={"action":"go.guangchannel","params":{"id":3,"name":"\u6f6e\u4eba"}}'
),
'big_image' => array(
'list' => array(
array(
'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg',
'url' => ''
)
)
),
'list' => array(
array(
'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg',
'url' => '',
'textCn' => '手表'
),
array(
'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg',
'url' => '',
'textCn' => '烛台'
),
array(
'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg',
'url' => '',
'textCn' => '围巾'
),
array(
'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg',
'url' => '',
'textCn' => '盘子'
),
array(
'img' => 'http://img.alicdn.com/imgextra/i1/2086467111/TB2CsqHdXXXXXaDXpXXXXXXXXXX_!!2086467111.jpg',
'url' => '',
'textCn' => '耳机'
)
)
),
'creativeLife' => array(
'title' => array(
'title' => '新入住品牌',
'more_name' => '...',
'more_url' => 'http://www.yohobuy.com?openby:yohobuy={"action":"go.guangchannel","params":{"id":3,"name":"\u6f6e\u4eba"}}'
),
'banner' => 'http://img10.static.yhbimg.com/yhb-img01/2015/07/09/18/0119ffceddb0819d36d74b408bd743b4a9.jpg?imageView/2/w/640/h/640',
'classify' => array(
array(
'url' => '',
'img' => 'http://img13.static.yhbimg.com/goodsimg/2015/04/10/05/029bef1041343ea2e31dc0423f2f176589.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90',
'name' => '手表'
), array(
'url' => '',
'img' => 'http://img12.static.yhbimg.com/goodsimg/2015/07/07/09/02271a775d17649860abec4387b4559e26.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90',
'name' => '烛台'
), array(
'url' => '',
'img' => 'http://img12.static.yhbimg.com/goodsimg/2015/05/19/07/02a269d20ed44803eee33e255fe88d7873.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90',
'name' => '围巾'
), array(
'url' => '',
'img' => 'http://img13.static.yhbimg.com/goodsimg/2015/06/01/07/02fe94083352435ce53b5d90812cc5bdbd.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90',
'name' => '盘子'
), array(
'url' => '',
'img' => 'http://img12.static.yhbimg.com/goodsimg/2015/07/08/07/028db8a2afbe4ecbf37bebc7e98e8e1e80.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90',
'name' => '耳机'
), array(
'url' => '',
'img' => 'http://img13.static.yhbimg.com/goodsimg/2015/04/22/02/02a1b688b6dafd786f391e0624aea1e93b.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90',
'name' => '生活'
)
)
),
'plusStar' => array(
array(
'name' => 'PLUS 全球优选',
'url' => '',
'img' => 'http://img11.static.yhbimg.com/yhb-img01/2015/07/13/15/014f7ba48071160053ac3b8f045b9fc264.jpg?imageView/2/w/640/h/640'
),
array(
'name' => 'PLUS 全球优选',
'url' => '',
'img' => 'http://img11.static.yhbimg.com/yhb-img01/2015/07/13/15/014f7ba48071160053ac3b8f045b9fc264.jpg?imageView/2/w/640/h/640'
)
),
'maybeLike' => array(
'goods' => array(
array(
'id' => 1,
'thumb' => 'http://img11.static.yhbimg.com/goodsimg/2015/03/02/07/01ebfb219e22770ffb0c2c3a2cbb2b4bef.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90',
'name' => 'GAWS DIGI 丛林数码印花拼接卫衣',
'isLike' => false,
'price' => 1268,
'salePrice' => 589,
'isSale' => true,
'isFew' => true,
'isNew' => false,
'url' => ''
), array(
'id' => 2,
'thumb' => 'http://img13.static.yhbimg.com/goodsimg/2015/03/03/08/023d70c59e81ccbfb39404487aaf642da2.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90',
'name' => 'CLOTtee 撞色连帽外套',
'isLike' => false,
'price' => 488,
'salePrice' => 139,
'isSale' => true,
'isFew' => true,
'isNew' => false,
'url' => ''
), array(
'id' => 3,
'thumb' => 'http://img12.static.yhbimg.com/goodsimg/2015/03/02/08/02e2d44125e95495e3152aa459fa6b9b0c.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90',
'name' => 'HALFGIRL 插肩棒球服短裙套装',
'isLike' => true,
'price' => 478,
'salePrice' => 208,
'isSale' => true,
'isFew' => true,
'isNew' => false,
'url' => ''
), array(
'id' => 4,
'thumb' => 'http://img12.static.yhbimg.com/goodsimg/2015/03/03/08/022f25fbe177ee12803c522f04fcce06d0.jpg?imageMogr2/thumbnail/235x314/extent/235x314/background/d2hpdGU=/position/center/quality/90',
'name' => '黄伟文Wyman X yohood联名商品YYYOHOOD连帽卫衣',
'isLike' => false,
'salePrice' => 148,
'isSale' => false,
'isFew' => false,
'isNew' => true,
'url' => ''
)
)
),
'bannerBottom' => array(
'img' => 'http://img02.yohoboys.com/staticimg/2015/06/24/16/02ee02f1dd11c9103f7cf7995eafdaa605.jpg',
'url' => ''
)
));
$this->_view->assign('title', 'YOHO!有货');
$this->_view->display('index', $data);
}
}
}
\ No newline at end of file
... ...
... ... @@ -93,7 +93,12 @@ class ListController extends AbstractAction
'share' => true,
'url' => '',
'likeUrl' => '',
'isFashionMan' => true
'isFashionMan' => true,
'author' => array(
'url' => '',
'name' => 'LEO_LU',
'avatar' => 'http://img11.static.yhbimg.com/yhb-img02/2015/09/07/02/01a050445c64825eed381c4e049030c692.jpg?imageView/0/w/100/h/100'
)
),
array(
'id' => 1,
... ... @@ -104,14 +109,18 @@ class ListController extends AbstractAction
'showTags' => true,
'publishTime' => '2月13日 12:34',
'pageView' => 3445,
'like' => array(
'count' => 459,
'isLiked' => true
'collect' => array(
'isCollected' => true
),
'share' => true,
'url' => '',
'likeUrl' => '',
'isTip' => true
'isTip' => true,
'author' => array(
'url' => '',
'name' => 'Kishi',
'avatar' => 'http://img13.static.yhbimg.com/yhb-img02/2015/06/12/10/0256020c504fb08a176c5457599bdf5b49.jpg?imageView/0/w/100/h/100'
)
)
)
),
... ... @@ -301,7 +310,7 @@ class ListController extends AbstractAction
)
);
$this->_view->assign('title', 'YOHO!有货');
$this->_view->display('index', array('modulePath' => 'guang/home', 'guang' => $data));
$this->_view->display('index', array('guangHome' => true, 'guang' => $data));
}
/**
... ...
... ... @@ -10,7 +10,7 @@ class NewsaleController extends AbstractAction
{
public function indexAction()
{
$this->_view->assign('title', '新品到着');
/*$this->_view->assign('title', '新品到着');
// 新品到着顶部焦点图
$focusData = Newsale::getNewsaleFocus('a7989369aa86681c678bc40f171b8f1d');
... ... @@ -31,7 +31,43 @@ class NewsaleController extends AbstractAction
$products = Newsale::getNewProducts('1,3', 1, 60);
var_dump($focus);
$this->_view->display('new', compact('focus', 'products'));
$this->_view->display('new', compact('focus', 'products'));*/
$data = array(
'headerBanner' => array(
'list' => array(
array(
'url' => '',
'img' => 'http://img12.static.yhbimg.com/adpic/2015/08/14/12/0205a06e86edb30a7d1833477a9e886577.jpg?imageView/2/w/640/h/480',
)
)
),
'listNav' => array(
'list' => array(
array(
'url' => '',
'textCn' => '5月27日',
'styleClass' => ''
),
array(
'url' => '',
'textCn' => '本周上新'
),
array(
'url' => '',
'textCn' => '销量'
),
array(
'url' => '',
'textCn' => '筛选',
'styleClass' => 'screen-nav'
)
)
)
);
$this->_view->assign('title', '新品到着');
$this->_view->display('new', $data);
}
... ...