Authored by ccbikai(👎🏻🍜)

双十一 入口

... ... @@ -70,6 +70,7 @@ let index = (req, res, next) => {
pageFooter: true,
channelList: result[0].channelList,
yohood: result[0].yohood,
double11: result[0].double11,
background: result[1]
});
}).catch(next);
... ...
... ... @@ -196,11 +196,8 @@ const _getChannelList = () => {
}
if (id === 6) {
list.channelList.push({
href: item.url,
title: item.title || '双 11',
entitle: item.title
});
list.double11 = {};
list.double11.href = item.url;
}
});
... ...
... ... @@ -26,9 +26,13 @@
{{/each}}
{{#yohood}}
{{#if showYohood}}
<a href="{{yohoodHref}}" id="yohood" class="list-item"> <span class="iconfont right-icon">&#xe614;</span></a>
<a href="{{yohoodHref}}" id="yohood" class="list-item no-touch"> <span class="iconfont right-icon">&#xe614;</span></a>
{{/if}}
{{/yohood}}
{{#if double11}}
<a href="{{double11.href}}" class="no-touch" id="double11"></a>
{{/if}}
</div>
</div>
</div>
... ...
... ... @@ -16,15 +16,15 @@ module.exports = {
siteUrl: '//m.yohobuy.com',
assetUrl: '//localhost:5001',
domains: {
// api: 'http://api-test3.yohops.com:9999/',
// service: 'http://service-test3.yohops.com:9999/',
// liveApi: 'http://testapi.live.yohops.com:9999/',
// singleApi: 'http://api-test3.yohops.com:9999/'
api: 'http://api-test3.yohops.com:9999/',
service: 'http://service-test3.yohops.com:9999/',
liveApi: 'http://testapi.live.yohops.com:9999/',
singleApi: 'http://api-test3.yohops.com:9999/'
api: 'http://api.yoho.cn/',
service: 'http://service.yoho.cn/',
liveApi: 'http://api.live.yoho.cn/',
singleApi: 'http://single.yoho.cn/'
// api: 'http://api.yoho.cn/',
// service: 'http://service.yoho.cn/',
// liveApi: 'http://api.live.yoho.cn/',
// singleApi: 'http://single.yoho.cn/'
},
subDomains: {
host: '.m.yohobuy.com',
... ...
'use strict';
const fs = require('fs');
let devHost = '127.0.0.1';
let devHost = '172.16.6.7';
fs.readFile('.devhost', (err, buf)=> {
if (!err) {
... ...
... ... @@ -10,7 +10,7 @@ var $searchBox = $('.search-box'),
$box = $('.box'),
$indexSearch = $('.index-search'),
$indexLogo = $('.index-logo'),
$channelLink = $('.index-channel a:not(#yohood)');
$channelLink = $('.index-channel a:not(.no-touch)');
var $search = $searchBox.children('input[type="text"]'),
$cancelSearch = $box.children('.no-search'),
... ...
... ... @@ -3,6 +3,20 @@
margin: 0 auto;
width: 100%;
#double11 {
display: block;
width: 432px;
height: 100px;
margin: 0 auto;
background-color: transparent;
background-image: resolve("channel/11.11.png");
background-size: 100%;
&:active {
background-image: resolve("channel/11.11-touch.png");
}
}
#yohood {
border: none;
border-bottom: 8px solid #fff;
... ...