Authored by biao

update

... ... @@ -15,12 +15,12 @@ exports.index = (req, res) => {
let data = headerModel.getAllHeaderData(response.data, 'boy');
data.headerData.navbars[0].active = true;
console.log(data.headerData.subNav);
data.module = 'index';
data.page = 'index';
res.render('index', data);
})
.catch(function(err) {
res.render('error', err);
.catch(function() {
res.render('index', {devEnv: true, pageErr: true});
});
};
... ...
... ... @@ -37,5 +37,5 @@ module.exports = {
if (isProduction) {
Object.assign(module.exports, {
})
});
}
... ...
##公共头部模拟数据
```javascript
var header = {
header: true,
type: 'boy',
yohoGroup: [
{
link: 'http://www.yoho.cn',
cn: '集团官网',
en: 'YOHO!'
},
{
link: 'http://www.yohoboys.com',
cn: '男生潮流',
en: 'YOHO!BOYS'
},
{
link: 'http://www.yohogirls.com',
cn: '女生潮流',
en: 'YOHO!GIRLS'
},
{
link: 'http://www.yohoshow.com',
cn: '物趣分享',
en: 'YOHO!SHOW'
},
{
link: 'http://www.yohood.cn',
cn: '潮流嘉年华',
en: 'YO\'HOOD'
}
],
navbars: [
{
active: true,
link: 'http://www.yohobuy.com/',
cn: '男生',
en: 'BOYS'
},
{
link: 'http://new.yohobuy.com/woman',
cn: '女生',
en: 'GIRLS'
}
],
subNav: [
{
link: '#',
name: '新品到着'
},
{
link: '#',
name: '服饰',
thirdNav: [{
link: '#',
title: '',
imgCode: '9f8af647f35746ba23373d7a66250753',
brandItems: {
link: '#',
hot: false,
brandName:
}
}]
},
{
link: '#',
name: '逛',
isNew: true
},
]
}
```
##公共头部模拟数据
```javascript
var header = {
header: true,
type: 'boy',
yohoGroup: [
{
link: 'http://www.yoho.cn',
cn: '集团官网',
en: 'YOHO!'
},
{
link: 'http://www.yohoboys.com',
cn: '男生潮流',
en: 'YOHO!BOYS'
},
{
link: 'http://www.yohogirls.com',
cn: '女生潮流',
en: 'YOHO!GIRLS'
},
{
link: 'http://www.yohoshow.com',
cn: '物趣分享',
en: 'YOHO!SHOW'
},
{
link: 'http://www.yohood.cn',
cn: '潮流嘉年华',
en: 'YO\'HOOD'
}
],
navbars: [
{
active: true,
link: 'http://www.yohobuy.com/',
cn: '男生',
en: 'BOYS'
},
{
link: 'http://new.yohobuy.com/woman',
cn: '女生',
en: 'GIRLS'
}
],
subNav: [
{
link: '#',
name: '新品到着'
},
{
link: '#',
name: '服饰',
thirdNav: [
{
link: '#',
title: '',
imgCode: '9f8af647f35746ba23373d7a66250753',
brandItems: [
{
link: '#',
hot: false,
brandName: ''
}
]
}
]
},
{
link: '#',
name: '逛',
isNew: true
},
]
}
```
... ...
... ... @@ -22,7 +22,11 @@
</head>
<body>
{{> header}}
{{{body}}}
{{#if pageErr}}
{{> 404}}
{{^}}
{{{body}}}
{{/if}}
{{> footer}}
{{#if devEnv}}
<script src="//localhost:8000/{{module}}.{{page}}.js"></script>
... ... @@ -30,4 +34,4 @@
<script src="//cdn.yoho.cn/m-yohobuy-node/{{version}}/{{module}}.{{page}}.js"></script>
{{/if}}
</body>
</html>
\ No newline at end of file
</html>
... ...
<div class="wrapper-404">
<div class="main-error">
<div class="left">
<img src="http://static.yohobuy.com/images/v3/index/404.png">
</div>
<div class="right">
<p class="text1">很抱歉,您访问的页面不存在!</p>
<p class="text2"></p>
<p class="text3">
<a href="http://www.yohobuy.com/product/new">浏览新品</a>&nbsp;&nbsp;
<a href="http://www.yohobuy.com/">返回首页</a>
</p>
</div>
</div>
</div>
... ...
... ... @@ -178,23 +178,23 @@
<div class="promise">
<div class="center-content clearfix">
<div class="left">
<span class="iconfont rgbf">&#xe63d;</span>
<span class="iconfont rgbf">&#xe604;</span>
<span class="red">100%</span>
<span class="rgbf">品牌正品</span>
</div>
<div class="left">
<span class="iconfont rgbf">&#xe63c;</span>
<span class="iconfont rgbf">&#xe603;</span>
<span class="red">7天</span>
<span class="rgbf">无理由退换货</span>
</div>
<div class="left">
<span class="iconfont rgbf">&#xe63b;</span>
<span class="iconfont rgbf">&#xe602;</span>
<span class="red">便捷</span>
<span class="rgbf">在线客服</span>
</div>
<div class="right subscribe footer-right">
<input id="subscriber-box" class="rgb6 top" name="subscriberBox"value="订阅我们的邮件">
<a id="subscriber-btn" href="javascript:void(0);" class="iconfont rgbf">&#xe61b;</a>
<a id="subscriber-btn" href="javascript:void(0);" class="iconfont rgbf">&#xe601;</a>
</div>
</div>
</div>
... ... @@ -364,4 +364,4 @@
<div class="return-top hide">
<span class="iconfont">&#xe610;</span>
</div>
</div>
\ No newline at end of file
</div>
... ...
... ... @@ -102,7 +102,7 @@
<div class="center-content">
<ul class="sub-nav-list">
{{# subNav}}
<li{{#if thirdnav}} class="contain-third"{{/if}}>
<li{{#if thirdNav}} class="contain-third"{{/if}}>
<a href="{{link}}">{{name}}
{{#if isNew}}
<span class="newlogo"></span>
... ... @@ -118,7 +118,7 @@
</dt>
{{#brandItems}}
<dd>
<a href="{{link}}" class="{{hot}}" >{{brandName}}</a>
<a href="{{link}}"{{#if hot}} class="hot"{{/if}}>{{brandName}}</a>
</dd>
{{/brandItems}}
{{/thirdNav}}
... ...
/**
* 公共头部
* @author: yyq<yanqing.yang@yoho.cn>
* @date: 2016/5/9
*/
/* eslint-disable */
var $ = require('yoho-jquery');
// handlebars = require('yoho.handlebars'),
// json2 = require('json2');
var $tool = $('.tool-wrapper'),
$yohoGroup = $tool.find('.yoho-group'),
$loginBox = $('#loginBox');
var $head = $('.head-wrapper'),
$searchForm = $('#search-form'),
$searchSug = $head.find('.search-suggest'),
$goCart = $head.find('.go-cart'),
$goodsNum = $goCart.find('.goods-num-tip'),
$miniCart = $head.find('.mini-cart-wrapper');
var $subNav = $('.sub-nav-list .contain-third');
var apiDomain = $('#api-domain').val(), // 获取登陆状态的地址
apiBanner = 'http://new.yohobuy.com/common/getbanner',
thirdLineNum = 9,
delayer,
centerFn,
loginFn,
cartFn;
$('#api-domain').remove(); // 删除地址信息
// handlebars模板
// centerFn = handlebars.compile($('#simple-account-info-tpl').html());
// loginFn = handlebars.compile($('#header-login-info-tpl').html());
// cartFn = handlebars.compile($('#mini-cart-tpl').html());
// handlebars helper
// handlebars.registerHelper('notzero', function(v1, options) {
// if (v1 !== '0') {
// return options.fn(this);
// } else {
// return options.inverse(this);
// }
// });
// 格式化三级菜单
function formatThirdMenu() {
$subNav.each(function() {
var $thirdList = $(this).find('.hide-list'),
list = [],
i = 0;
if ($thirdList.length) {
$thirdList.children().each(function() {
if (i % thirdLineNum === 0) {
list.push('');
}
list[list.length - 1] += this.outerHTML + '';
i++;
});
for (i = 0; i < 3; i++) {
$thirdList.before('<dl class="category-list">' + list[i] + '</dl>');
}
$thirdList.remove();
}
});
}
// 更新头部登陆信息
function updateLoginInfo(data) {
var info = {
usercenter: 'http://www.yohobuy.com/home?t=' + new Date().getTime(),
nickname: data.profile_name,
signout: 'http://www.yohobuy.com/logout_' + data.token
};
if (data.vip.curVipInfo.curLevel * 1 === 3) {
data.vip3 = true;
}
$tool.find('.simple-user-center').html(centerFn(data));
$loginBox.html(loginFn(info));
}
// 同步sso登录状态
function syncLoginInfo() {
var param = {
return_type: 'jsonp',
method: 'open.passport.get'
};
$.getJSON(apiDomain + '/?callback=?', param, function(jsonData) {
if (jsonData && jsonData.data && jsonData.data.result !== -1) {
updateLoginInfo(jsonData.data.data);
} else {
window.setCookie('_UID', '', {
domain: '.yohobuy.com',
expires: -1
});
}
});
}
// 关键词搜索联想
function searchSuggest(key) {
var param = {
return_type: 'jsonp',
query: key
};
$.getJSON('http://search.yohobuy.com/api/suggest/?callback=?', param, function(jsonData) {
if (jsonData.code === 200) {
if (jsonData.data && jsonData.data.length) {
$searchSug.html(jsonData.data).show();
} else {
$searchSug.hide();
}
}
});
}
// 同步mini购物车数据
function syncCratInfo(strG) {
// var info, total;
//
// if (strG) {
// window.setCookie('_g', strG, {
// path: '/',
// domain: '.yohobuy.com'
// });
// }
// if (window.cookie('_g')) {
// info = json2.parse(window.cookie('_g'));
// total = parseInt(info._nac) + parseInt(info._ac);
// total = total > 0 ? total : 0;
// $goCart.data({
// key: info._k,
// num: total
// });
// $goodsNum.text(total);
// }
}
function loadCartDetail(key) {
// var param = {
// return_type: 'jsonp',
// method: 'open.Shoppingcart.getCartData',
// shopping_key: key
// };
//
// $.getJSON(apiDomain + '/?callback=?', param, function(jsonData) {
// var totalGoods, data;
//
// if (jsonData.code === 200) {
// data = jsonData.data;
// totalGoods = $.merge(data.main_goods, data.advance_goods);
// totalGoods = $.merge(totalGoods, data.outlet_goods);
// totalGoods = $.merge(totalGoods, data.gift_goods);
// totalGoods = $.merge(totalGoods, data.need_pay_gifts);
// if (totalGoods && totalGoods.length) {
// data.totalGoods = totalGoods;
// $miniCart.html(cartFn({
// carData: data
// }));
// } else {
// $miniCart.html('<div class="empty-cart"><h3>您的购物车暂无商品</h3></div>');
// }
// }
// });
}
function delCartGoods(data, callback) {
// var param = {
// return_type: 'jsonp',
// method: 'open.Shoppingcart.delone',
// shopping_key: data.key,
// id: data.id,
// isreduce: data.isreduce
// };
//
// $.getJSON(apiDomain + '/?callback=?', param, function(jsonData) {
// var strG = '';
//
// if (jsonData.code === 200) {
// callback();
// strG = '{"_k":"' + data.key + '","_nac":' + jsonData.data.total_goods_num + ',"_ac":0,"_r":0}';
// syncCratInfo(strG);
// }
// });
}
syncLoginInfo();
formatThirdMenu();
setInterval(syncCratInfo, 2000);
$yohoGroup.hover(function() {
var data = $(this).data();
$(this).text(data.cn);
}, function() {
var data = $(this).data();
$(this).text(data.en);
});
$searchForm.on('keyup', '.search-key', function(e) {
var val = $.trim($(this).val()),
$child = $searchSug.find('li'),
$act = $searchSug.find('.action'),
$focus;
if (e.which > 36 && e.which < 41) {
if (e.which === 38) {
$focus = $act.prev();
if (!$act.length || !$focus.length) {
$focus = $child.eq($child.length - 1);
}
} else if (e.which === 40) {
$focus = $act.next();
if (!$act.length || !$focus.length) {
$focus = $child.eq(0);
}
} else {
return;
}
$child.removeClass('action');
$focus.addClass('action');
$(this).val($focus.find('.searchvalue').text());
} else if (e.which === 13) {
if (val !== '') {
$searchForm.submit();
}
} else {
val = val.replace(new RegExp('\'', 'gm'), ''); // 去掉特殊字符
$(this).val(val);
searchSuggest(val);
}
// http://search.yohobuy.com/api/suggest
// searchSuggest
});
$goCart.hover(function() {
var data, _html = '';
if ($goCart.hasClass('on-hover')) {
return;
}
data = $goCart.data();
if (data && data.num * 1) {
_html = '<div class="loading-cart"><h3>加载中,请稍后</h3></div>';
loadCartDetail(data.key);
} else {
_html = '<div class="empty-cart"><h3>您的购物车暂无商品</h3></div>';
}
$miniCart.html(_html);
$goCart.addClass('on-hover');
}, function() {
$goCart.removeClass('on-hover');
});
$goCart.on('click', '.cart-goods-del', function(e) {
var $dom = $(this),
data = $dom.data(),
callback;
if (data) {
callback = function() {
$dom.closest('.goods-item').remove();
};
data.key = $goCart.data().key;
delCartGoods(data, callback);
}
});
$subNav.on({
mouseenter: function() {
var $thirdNav = $(this).children('.third-nav-wrapper'),
$show = $thirdNav.find('.show-detail'),
param = {};
delayer = setTimeout(function() {
$thirdNav.show();
}, 200);
if (!$show.length || $show.hasClass('show')) {
return;
}
param.content_code = $show.data().code;
param.client_type = 'web';
param.width = 174;
param.height = 155;
param._ = new Date();
// $.getJSON(apiBanner + '/?callback=?', param, function(JsonData) {
// if (JsonData.code === 200) {
// $show.addClass('show');
// $show.find('img').attr('src', JsonData.data.src);
// $show.find('a').attr('href', JsonData.data.url);
// $show.find('.title').text(JsonData.data.title);
// }
// });
},
mouseleave: function() {
var $thirdNav = $(this).children('.third-nav-wrapper');
if (delayer) {
clearTimeout(delayer);
}
$thirdNav.hide();
}
});
/* eslint-ensable */
... ...
require('../header');
... ...
.wrapper-404 {
padding: 80px 0;
.main-error {
width: 560px;
height: 240px;
margin: 0 auto;
.text1 {
font-size: 24px;
margin-top: 60px;
line-height: 24px;
}
.text2 {
margin: 18px 0 10px;
line-height: 12px;
}
.text3 a {
text-decoration: none;
color: #666;
font-size: 12px;
outline: none;
}
}
}
... ...
.yoho-footer {
font-size: 12px;
.yoho-header {
.tool-wrapper {
width: 100%;
height: 32px;
line-height: 32px;
font-size: 12px;
background-color: #f4f4f4;
.yoho-group-map {
padding: 0 5px;
.yoho-group-list {
position: absolute;
display: none;
width: 170px;
top: 32px;
margin-left: -5px;
background-color: #f4f4f4;
padding: 20px 0 20px 20px;
z-index: 1000;
}
* {
box-sizing: border-box;
}
&:hover {
background-color: #dcdcdc;
.red {
color: #e01;
}
.yoho-group-list {
display: block;
}
}
.rgb6 {
color: #666;
}
li {
a {
color: #9196a0;
font-size: 14px;
}
.rgb9 {
color: #999;
}
&:hover a {
color: #000;
}
}
}
.rgbf {
color: #fff;
}
.yoho-buy-tools {
li {
float: left;
padding-right: 10px;
.index-foot {
background: #eee;
padding: 20px 0;
span {
display: inline-block;
vertical-align: middle;
}
dd {
float: left;
width: 370px;
margin-right: 20px;
overflow: hidden;
.hi {
vertical-align: top;
}
&.last {
margin-right: 0;
a {
color: #8e8e8e;
}
}
ul {
margin-top: 18px;
padding-top: 18px;
.nick-name {
color: #000;
}
.tag-seprate {
width: 0;
margin-top: 11px;
margin-right: 12px;
height: 14px;
float: left;
border-left: 1px solid #dcdcdc;
}
}
}
.foot-panel {
background: #fff;
padding: 20px;
}
.simple-user-center {
top: 32px;
margin-left: -110px;
width: 300px;
position: absolute;
background-color: #f8f8f8;
z-index: 100;
display: none;
.account-info-header {
margin: 17px auto 0;
width: 257px;
border-bottom: 1px solid #dcdcdc;
text-align: center;
padding-bottom: 15px;
}
.title {
position: relative;
text-align: center;
}
.user-img {
width: 63px;
height: 63px;
margin: 0 auto;
border-radius: 50%;
overflow: hidden;
background: resolve('layout/default-thumb.png') center center;
filter: "progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod='scale')";
background-size: 100% 100%;
-moz-background-size: 100% 100%;
}
.title-line {
border-bottom: 1px solid #ddd;
position: absolute;
top: 9px;
width: 100%;
left: 0;
}
.user-name {
margin-top: 14px;
line-height: 25px;
}
.text {
position: absolute;
width: 100%;
text-align: center;
left: 0;
top: 0;
span {
background: #fff;
font-size: 18px;
line-height: 18px;
padding: 0 10px;
.user-level {
color: #000;
height: 20px;
line-height: 20px;
font-size: 18px;
span {
color: #8cc4f9;
}
}
.level-detail {
font-size: 14px;
line-height: 14px;
padding-top: 10px;
padding-left: 20px;
}
.level-view-bar {
width: 150px;
height: 14px;
margin-right: 5px;
text-align: left;
background-color: #e2e2e2;
display: inline-block;
vertical-align: middle;
overflow: hidden;
.text-span {
font-size: 16px;
line-height: 16px;
padding-left: 3px;
position: absolute;
}
.integrate {
height: 14px;
background-color: #ceae64;
padding-left: 5px;
}
}
.account-info-content {
padding: 20px 30px 0;
border-bottom: 1px solid #dcdcdc;
li {
float: none;
font-size: 16px;
}
a {
font-size: 14px;
color: #000;
}
}
.account-info-footer {
height: 51px;
line-height: 51px;
text-align: center;
a {
font-size: 14px;
color: #000;
}
}
}
}
.item-nav {
padding-top: 20px;
.myyoho:hover {
background-color: #dcdcdc;
span {
color: #fff;
padding: 0 3px;
cursor: pointer;
font-size: 20px;
.simple-user-center {
display: block;
}
}
.cur {
color: #999;
.download-app-box {
position: absolute;
top: 32px;
margin-left: -100px;
width: 231px;
height: 290px;
background-color: #f8f8f8;
z-index: 1000;
display: none;
.qr-img {
position: relative;
background-image: resolve('layout/qr.png');
background-repeat: no-repeat;
background-size: 100% 100%;
margin: 32px auto 15px;
width: 143px;
height: 147px;
}
.qr-words {
height: 25px;
line-height: 25px;
font-size: 16px;
text-align: center;
}
.qr-more {
margin-top: 6px;
line-height: 25px;
font-size: 14px;
text-align: center;
}
}
}
.vote {
line-height: 24px;
.phoneapp:hover {
background-color: #dcdcdc;
input {
margin: 0 5px 0 1px;
.download-app-box {
display: block;
}
}
.button {
height: 24px;
line-height: 24px;
width: 55px;
font-size: 12px;
margin-top: 11px;
margin-right: 10px;
background: #222;
color: #fff;
.icon-hamburger {
background: resolve('layout/hamburger.png') no-repeat;
width: 16px;
height: 12px;
display: inline-block;
text-align: center;
cursor: pointer;
vertical-align: middle;
}
p {
height: 24px;
overflow: hidden;
.icon-bottomarrow {
background: resolve('layout/bottom-arrow.png') no-repeat;
width: 10px;
height: 5px;
margin-top: -2px;
}
textarea {
width: 98%;
height: 68px;
vertical-align: middle;
margin: 5px 0 0 0;
resize: none;
.icon-papers {
background: resolve('layout/paper.png') no-repeat;
width: 10px;
height: 14px;
margin-top: -2px;
}
}
.vote-item p {
float: left;
width: 50%;
}
.mobile {
margin-right: -10px;
.icon-heart {
background: resolve('layout/heart.png') no-repeat;
width: 12px;
height: 11px;
margin-top: -2px;
}
li {
margin-right: 10px;
float: left;
.icon-mail {
background: resolve('layout/mail.png') no-repeat;
width: 16px;
height: 10px;
margin-top: -2px;
}
img {
display: block;
width: 103px;
height: 131px;
.icon-phone {
background: resolve('layout/iphone.png') no-repeat;
width: 8px;
height: 14px;
margin-top: -2px;
}
}
.index-banner {
.head-wrapper {
width: 100%;
margin-top: 20px;
}
.two-dim {
margin-right: -10px;
overflow: hidden;
.main-nav-list {
display: inline-block;
vertical-align: top;
padding-top: 45px;
li {
border: 1px solid #ddd;
padding: 7px;
margin-right: 10px;
li {
float: left;
padding: 8px 23px 5px;
a {
display: block;
a {
font-size: 12px;
line-height: 14px;
}
.name-cn a {
font-size: 16px;
}
}
p {
text-align: center;
margin-top: 13px;
margin-bottom: 3px;
line-height: 12px;
.cure {
color: #fff;
background-color: #3a3a3a;
a {
color: #fff;
}
}
}
}
.dim-img {
display: block;
width: 87px;
height: 87px;
}
.dim-hover {
position: absolute;
.main-logo {
background: resolve('layout/logo-en.png') no-repeat center center;
width: 182px;
height: 53px;
left: 42%;
margin-top: 22px;
position: absolute;
animation: logoflip 20s infinite;
-moz-animation: logoflip 20s infinite;
-webkit-animation: logoflip 20s infinite;
-o-animation: logoflip 20s infinite;
.main-link {
display: block;
width: 100%;
height: 100%;
}
}
img {
width: 38px;
height: 38px;
.func-area {
float: right;
width: 378px;
padding-right: 18px;
margin-top: 45px;
}
}
.dim-active .dim-img {
opacity: 1;
}
.search-2016 {
width: 320px;
height: 28px;
background-color: #3a3a3a;
border: 1px solid #3a3a3a;
display: inline-block;
overflow: hidden;
.dim-active .dim-hover {
display: none;
}
input {
width: 240px;
height: 100%;
border: none;
background: #fff;
box-sizing: border-box;
padding: 7px 0 7px 10px;
}
.footerbottom {
width: 100%;
}
.search-btn {
background: resolve('layout/search.png') no-repeat center center;
width: 80px;
height: 28px;
float: right;
border: none;
cursor: pointer;
}
}
.promise {
padding: 20px 0 10px 0;
background: #000;
.search-suggest {
position: absolute;
width: 320px;
border: 1px solid #000;
margin-top: 29px;
padding-top: 20px;
background-color: #fff;
display: none;
z-index: 1000;
.action,
li:hover {
background-color: #eee;
}
.left {
margin-right: 60px;
line-height: 30px;
font-size: 12px;
font-weight: bold;
a {
display: block;
padding: 5px;
height: 25px;
line-height: 25px;
font-size: 12px;
}
.iconfont {
display: inline-block;
font-weight: normal;
font-size: 22px;
vertical-align: middle;
margin-right: 5px;
.valuenum {
float: right;
}
}
.left:first-child .iconfont {
font-size: 27px;
}
}
.go-cart {
width: 30px;
height: 30px;
float: right;
cursor: pointer;
position: relative;
.subscribe {
border: 1px solid #262626;
width: 240px;
input {
width: 180px;
height: 32px;
padding: 0 10px;
line-height: 32px;
border: none;
margin: 0;
background: #000;
}
.iconfont {
font-size: 26px;
color: #3a3a3a;
}
a {
display: block;
float: right;
margin-right: 20px;
font-size: 20px;
line-height: 28px;
opacity: 0.5;
.goods-num-tip {
position: absolute;
background: resolve('layout/ic-information.png') no-repeat;
width: 27px;
height: 20px;
top: -10px;
right: -15px;
color: white;
text-align: center;
line-height: 20px;
font-size: 12px;
}
}
}
.footer-help {
background: #000;
font-size: 12px;
overflow: hidden;
.mini-cart-wrapper {
position: absolute;
top: 30px;
right: -14px;
width: 378px;
background: #f8f8f8 reslove('layout/empty_car.png') no-repeat 106px 132px;
z-index: 1000;
display: none;
.empty-cart {
padding: 280px 0 200px;
text-align: center;
}
> div {
padding: 15px 0;
border-top: 1px solid #262626;
}
.loading-cart {
padding: 200px 0;
text-align: center;
background: #f8f8f8 reslove('layout/loading.gif') no-repeat center 170px;
}
ul {
width: 110%;
}
.rich-cart {
background: #f8f8f8;
}
p {
line-height: 24px;
.goods-list {
padding-top: 20px;
margin-bottom: 15px;
max-height: 444px;
overflow-x: hidden;
}
span {
color: #fff;
.goods-item {
padding: 0 0 18px 18px;
> div {
font-size: 14px;
display: inline-block;
vertical-align: top;
}
p {
margin-bottom: 12px;
}
.goods-img {
width: 60px;
}
.goods-info {
width: 170px;
color: #b0b0b0;
}
.goods-price {
min-width: 90px;
text-align: right;
}
.title {
width: 170px;
height: 14px;
font-size: 14px;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
}
.title > a {
color: #666;
}
}
a {
color: #666;
.activity-item {
font-size: 14px;
margin-bottom: 8px;
padding-left: 18px;
line-height: 18px;
label {
width: 60px;
height: 18px;
background-color: #3a3a3a;
color: #fff;
text-align: center;
margin-right: 13px;
vertical-align: top;
display: inline-block;
}
&:hover {
text-decoration: underline;
h3 {
width: 250px;
color: #3a3a3a;
font-size: 12px;
word-break: break-all;
display: inline-block;
}
}
}
li {
width: 180px;
.go-full-cart {
padding: 0 18px;
> div {
height: 61px;
line-height: 61px;
border-top: 1px solid #dcdcdc;
text-align: center;
}
}
}
.screen {
border-top: 1px solid #262626;
padding: 15px 0;
.on-hover .mini-cart-wrapper {
display: block;
}
}
.footer-link {
background: #000;
padding: 10px 0 30px 0;
font-size: 12px;
.nav-wrapper {
height: 40px;
width: 100%;
background-color: #3a3a3a;
position: relative;
.sub-nav-list {
float: left;
.right-flag {
margin-top: 3px;
li {
float: left;
line-height: 40px;
padding-right: 46px;
box-sizing: border-box;
margin-right: 38px;
}
.newlogo {
display: block;
width: 26px;
height: 12px;
background-image: resolve('layout/new.png');
background-repeat: no-repeat;
position: absolute;
margin-top: -20px;
margin-left: 16px;
}
a {
margin-right: 5px;
color: #fff;
font-size: 14px;
line-height: 14px;
display: inline-block;
}
li:hover a {
padding-bottom: 3px;
border-bottom: 2px solid white;
}
}
.about-us {
line-height: 20px;
color: #666;
margin-left: 10px;
.third-nav-wrapper {
width: 100%;
height: 410px;
box-sizing: border-box;
position: absolute;
left: 0;
top: 38px;
display: none;
padding: 30px 0;
background-color: #f8f8f8;
z-index: 900;
a {
color: #666;
font-size: 14px;
border-bottom: none !important;
}
span {
padding: 0 10px;
dl {
float: left;
width: 278px;
height: 352px;
box-sizing: border-box;
border-left: 1px solid #ccc;
padding: 0 50px;
}
}
}
.return-top {
position: fixed;
width: 60px;
height: 60px;
left: 50%;
margin-left: 595px;
text-align: center;
line-height: 50px;
color: #fff;
background: #000;
opacity: 0.5;
bottom: 20px;
cursor: pointer;
z-index: 4;
&:hover {
opacity: 0.9;
dl:first-child {
width: 228px;
border-left: 0;
padding-left: 0;
}
dt {
width: 180px;
padding-bottom: 10px;
border-bottom: 1px solid #000;
line-height: 18px;
margin-bottom: 20px;
a {
color: #000;
}
}
dd {
line-height: 14px;
height: 14px;
margin-bottom: 24px;
a {
color: #a1a1a1;
}
a:hover {
text-decoration: underline;
}
}
.hot {
color: #e01;
}
}
.iconfont {
font-size: 34px;
.show-detail {
box-sizing: border-box;
padding-left: 19px;
padding-right: 19px;
width: 337px;
height: 250px;
float: right;
.title {
width: 100%;
margin-top: 40px;
text-align: center;
font-size: 14px;
color: #000;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
}
}
}
.yoho-footer .return-top.min {
left: 100%;
right: 20px;
margin-left: auto;
.yoho-header.girls {
.search-2016 {
background-color: #ff88ae;
border-color: #ff88ae;
}
.nav-wrapper,
.cure {
background-color: #ff88ae !important;
}
.go-cart .iconfont {
color: #ff88ae;
}
}
.min-screen .yoho-footer {
.index-foot dd {
width: 316px;
.yoho-header.kids {
.search-2016 {
background-color: #7bd3f9;
border-color: #7bd3f9;
}
.two-dim {
margin-top: 26px;
margin-bottom: 10px;
overflow: hidden;
.nav-wrapper,
.cure {
background-color: #7bd3f9 !important;
}
.dim-img {
width: 69px;
height: 69px;
.go-cart .iconfont {
color: #7bd3f9;
}
}
.mobile {
margin-top: 26px;
padding-bottom: 15px;
.yoho-header.lifestyle {
.search-2016 {
background-color: #5e4b3c;
border-color: #5e4b3c;
}
img {
width: 85px;
height: 108px;
}
.nav-wrapper,
.cure {
background-color: #5e4b3c !important;
}
.go-cart .iconfont {
color: #5e4b3c;
}
}
.promise .left {
margin-right: 45px;
.min-screen {
.head-wrapper .main-nav-list > li {
padding: 8px 14px 5px;
}
.subscribe {
width: 200px;
.nav-wrapper {
.sub-nav-list > li {
margin-right: 15px;
}
input {
width: 140px;
.show-detail {
width: 190px;
padding-right: 0;
}
}
.footer-help li {
width: 150px;
.head-wrapper .main-logo {
left: 39%;
}
}
}
... ...
... ... @@ -227,5 +227,6 @@ a {
/* 公共 */
@import "header";
@import "footer";
@import "404";
/* 模块 */
... ...