Authored by ccbikai(👎🏻🍜)

双十一 入口

@@ -70,6 +70,7 @@ let index = (req, res, next) => { @@ -70,6 +70,7 @@ let index = (req, res, next) => {
70 pageFooter: true, 70 pageFooter: true,
71 channelList: result[0].channelList, 71 channelList: result[0].channelList,
72 yohood: result[0].yohood, 72 yohood: result[0].yohood,
  73 + double11: result[0].double11,
73 background: result[1] 74 background: result[1]
74 }); 75 });
75 }).catch(next); 76 }).catch(next);
@@ -196,11 +196,8 @@ const _getChannelList = () => { @@ -196,11 +196,8 @@ const _getChannelList = () => {
196 } 196 }
197 197
198 if (id === 6) { 198 if (id === 6) {
199 - list.channelList.push({  
200 - href: item.url,  
201 - title: item.title || '双 11',  
202 - entitle: item.title  
203 - }); 199 + list.double11 = {};
  200 + list.double11.href = item.url;
204 } 201 }
205 }); 202 });
206 203
@@ -26,9 +26,13 @@ @@ -26,9 +26,13 @@
26 {{/each}} 26 {{/each}}
27 {{#yohood}} 27 {{#yohood}}
28 {{#if showYohood}} 28 {{#if showYohood}}
29 - <a href="{{yohoodHref}}" id="yohood" class="list-item"> <span class="iconfont right-icon">&#xe614;</span></a> 29 + <a href="{{yohoodHref}}" id="yohood" class="list-item no-touch"> <span class="iconfont right-icon">&#xe614;</span></a>
30 {{/if}} 30 {{/if}}
31 {{/yohood}} 31 {{/yohood}}
  32 +
  33 + {{#if double11}}
  34 + <a href="{{double11.href}}" class="no-touch" id="double11"></a>
  35 + {{/if}}
32 </div> 36 </div>
33 </div> 37 </div>
34 </div> 38 </div>
@@ -16,15 +16,15 @@ module.exports = { @@ -16,15 +16,15 @@ module.exports = {
16 siteUrl: '//m.yohobuy.com', 16 siteUrl: '//m.yohobuy.com',
17 assetUrl: '//localhost:5001', 17 assetUrl: '//localhost:5001',
18 domains: { 18 domains: {
19 - // api: 'http://api-test3.yohops.com:9999/',  
20 - // service: 'http://service-test3.yohops.com:9999/',  
21 - // liveApi: 'http://testapi.live.yohops.com:9999/',  
22 - // singleApi: 'http://api-test3.yohops.com:9999/' 19 + api: 'http://api-test3.yohops.com:9999/',
  20 + service: 'http://service-test3.yohops.com:9999/',
  21 + liveApi: 'http://testapi.live.yohops.com:9999/',
  22 + singleApi: 'http://api-test3.yohops.com:9999/'
23 23
24 - api: 'http://api.yoho.cn/',  
25 - service: 'http://service.yoho.cn/',  
26 - liveApi: 'http://api.live.yoho.cn/',  
27 - singleApi: 'http://single.yoho.cn/' 24 + // api: 'http://api.yoho.cn/',
  25 + // service: 'http://service.yoho.cn/',
  26 + // liveApi: 'http://api.live.yoho.cn/',
  27 + // singleApi: 'http://single.yoho.cn/'
28 }, 28 },
29 subDomains: { 29 subDomains: {
30 host: '.m.yohobuy.com', 30 host: '.m.yohobuy.com',
1 'use strict'; 1 'use strict';
2 2
3 const fs = require('fs'); 3 const fs = require('fs');
4 -let devHost = '127.0.0.1'; 4 +let devHost = '172.16.6.7';
5 5
6 fs.readFile('.devhost', (err, buf)=> { 6 fs.readFile('.devhost', (err, buf)=> {
7 if (!err) { 7 if (!err) {
@@ -10,7 +10,7 @@ var $searchBox = $('.search-box'), @@ -10,7 +10,7 @@ var $searchBox = $('.search-box'),
10 $box = $('.box'), 10 $box = $('.box'),
11 $indexSearch = $('.index-search'), 11 $indexSearch = $('.index-search'),
12 $indexLogo = $('.index-logo'), 12 $indexLogo = $('.index-logo'),
13 - $channelLink = $('.index-channel a:not(#yohood)'); 13 + $channelLink = $('.index-channel a:not(.no-touch)');
14 14
15 var $search = $searchBox.children('input[type="text"]'), 15 var $search = $searchBox.children('input[type="text"]'),
16 $cancelSearch = $box.children('.no-search'), 16 $cancelSearch = $box.children('.no-search'),
@@ -3,6 +3,20 @@ @@ -3,6 +3,20 @@
3 margin: 0 auto; 3 margin: 0 auto;
4 width: 100%; 4 width: 100%;
5 5
  6 + #double11 {
  7 + display: block;
  8 + width: 432px;
  9 + height: 100px;
  10 + margin: 0 auto;
  11 + background-color: transparent;
  12 + background-image: resolve("channel/11.11.png");
  13 + background-size: 100%;
  14 +
  15 + &:active {
  16 + background-image: resolve("channel/11.11-touch.png");
  17 + }
  18 + }
  19 +
6 #yohood { 20 #yohood {
7 border: none; 21 border: none;
8 border-bottom: 8px solid #fff; 22 border-bottom: 8px solid #fff;