Authored by 王水玲

Merge branch 'release/5.0.0' of git.yoho.cn:fe/yohobuywap-node into release/5.0.0

@@ -41,7 +41,7 @@ exports.beforeIn = (req, res, next) => { @@ -41,7 +41,7 @@ exports.beforeIn = (req, res, next) => {
41 41
42 exports.index = (req, res, next) => { 42 exports.index = (req, res, next) => {
43 res.locals.module = 'activity'; 43 res.locals.module = 'activity';
44 - res.locals.page = 'vipday_entry'; 44 + res.locals.page = 'vipday-entry';
45 res.locals.width750 = true; 45 res.locals.width750 = true;
46 46
47 let cate = { 47 let cate = {
@@ -50,7 +50,7 @@ exports.index = (req, res, next) => { @@ -50,7 +50,7 @@ exports.index = (req, res, next) => {
50 goods3: [51374524, 51338322, 51344316] 50 goods3: [51374524, 51338322, 51344316]
51 }; 51 };
52 52
53 - if (req.app.get('env') !== 'product') { 53 + if (req.app.get('env') !== 'production') {
54 cate = { 54 cate = {
55 goods1: [512581904, 512581902, 512581900], 55 goods1: [512581904, 512581902, 512581900],
56 goods2: [512581822, 512581816, 512581812], 56 goods2: [512581822, 512581816, 512581812],
@@ -79,7 +79,7 @@ exports.index = (req, res, next) => { @@ -79,7 +79,7 @@ exports.index = (req, res, next) => {
79 79
80 exports.crazyWheel = (req, res, next) => { 80 exports.crazyWheel = (req, res, next) => {
81 res.locals.module = 'activity'; 81 res.locals.module = 'activity';
82 - res.locals.page = 'vipday_wheel'; 82 + res.locals.page = 'vipday-wheel';
83 res.locals.width750 = true; 83 res.locals.width750 = true;
84 84
85 if (!req.session.playwheel) { 85 if (!req.session.playwheel) {
@@ -103,7 +103,7 @@ exports.crazyLuck = (req, res, next) => { @@ -103,7 +103,7 @@ exports.crazyLuck = (req, res, next) => {
103 const uid = req.user.uid; 103 const uid = req.user.uid;
104 104
105 res.locals.module = 'activity'; 105 res.locals.module = 'activity';
106 - res.locals.page = 'vipday_luck'; 106 + res.locals.page = 'vipday-luck';
107 res.locals.width750 = true; 107 res.locals.width750 = true;
108 108
109 co(function* () { 109 co(function* () {
1 <div class="invite-page invite-page-bg"> 1 <div class="invite-page invite-page-bg">
2 <div class="invite-content-list"> 2 <div class="invite-content-list">
3 <div> 3 <div>
4 - <!--<img src="//cdn.yoho.cn/m-yohobuy-node/assets/img/activity/invite/title_new.png" />-->  
5 - <!--<br />--> 4 + <img class="banner" src="{{imgSrc 'img/activity/invite/title_new.png'}}" />
  5 + <img class="logo" src="{{imgSrc 'img/activity/invite/logo.png'}}" >
  6 + <br />
6 <p class="fz14 intro-title"> 7 <p class="fz14 intro-title">
7 只需1位小伙伴领取,<br/> 8 只需1位小伙伴领取,<br/>
8 即得<strong class="fz17">10元现金券</strong><br/> 9 即得<strong class="fz17">10元现金券</strong><br/>
@@ -15,7 +16,7 @@ @@ -15,7 +16,7 @@
15 </p> 16 </p>
16 <a href="javascript:void(0)" class="weal-btn fz16" id="send_gift">立刻发福利</a> 17 <a href="javascript:void(0)" class="weal-btn fz16" id="send_gift">立刻发福利</a>
17 <h2 class="rule-tit fz15">活动细则</h2> 18 <h2 class="rule-tit fz15">活动细则</h2>
18 - <ol class="rule-con"> 19 + <ol class="rule-con hide">
19 <li>本次活动所获现金券仅限Yoho!Buy有货商城购买商品使用,不得转借他人,不可兑换现金;</li> 20 <li>本次活动所获现金券仅限Yoho!Buy有货商城购买商品使用,不得转借他人,不可兑换现金;</li>
20 <li>一个订单只可使用一张优惠券,优惠券需在有效期内使用,过期则无法使用;</li> 21 <li>一个订单只可使用一张优惠券,优惠券需在有效期内使用,过期则无法使用;</li>
21 <li>使用优惠券支付的订单,退款结算按照实际支付金额退款,优惠券返还账户,且有效期不变;</li> 22 <li>使用优惠券支付的订单,退款结算按照实际支付金额退款,优惠券返还账户,且有效期不变;</li>
@@ -26,7 +26,7 @@ @@ -26,7 +26,7 @@
26 <i class="title-pic"></i> 26 <i class="title-pic"></i>
27 </header> 27 </header>
28 <div class="content"> 28 <div class="content">
29 - <a href='/home/mycurrency?openby:yohobuy={"action":"go.signin"}' class="d-chit-more"></a> 29 + <a href='/home/mycurrency{{#if isApp}}?openby:yohobuy={"action":"go.signin"}{{/if}}' class="d-chit-more"></a>
30 <ul class="clearfix"> 30 <ul class="clearfix">
31 <li class="item item-1 pull-left" id="js-qiandao"> 31 <li class="item item-1 pull-left" id="js-qiandao">
32 <!--<a href="http://m.yohobuy.com/home/mycurrency?openby:yohobuy={'action':'go.h5','params':{'islogin':'Y','url':'http://m.yohobuy.com/home/mycurrency'}}">--> 32 <!--<a href="http://m.yohobuy.com/home/mycurrency?openby:yohobuy={'action':'go.h5','params':{'islogin':'Y','url':'http://m.yohobuy.com/home/mycurrency'}}">-->
@@ -83,7 +83,7 @@ @@ -83,7 +83,7 @@
83 {{/each}} 83 {{/each}}
84 </ul> 84 </ul>
85 <div class="text-center"> 85 <div class="text-center">
86 - <a href='http://sale.yohobuy.com/?channel=&specialsale_id=7?openby:yohobuy={"action":"go.vippro"}' class="vip-goods-more">点击查看更多</a> 86 + <a href='https://m.yohobuy.com/product/sale/vip?channel={{channel}}&openby:yohobuy={"action":"go.vippro"}' class="vip-goods-more">点击查看更多</a>
87 </div> 87 </div>
88 </div> 88 </div>
89 </div> 89 </div>
@@ -181,9 +181,14 @@ const _searchSales = (params) => { @@ -181,9 +181,14 @@ const _searchSales = (params) => {
181 } 181 }
182 182
183 params = Object.assign({ 183 params = Object.assign({
184 - limit: '50' 184 + limit: '60'
185 }, params); 185 }, params);
186 186
  187 + // 5.0.0 sale 按后台导入顺序排列
  188 + if (params.type === 'all') {
  189 + params.type = '';
  190 + }
  191 +
187 if (typeCont[params.type]) { 192 if (typeCont[params.type]) {
188 params.order = typeCont[params.type][params.order]; 193 params.order = typeCont[params.type][params.order];
189 } 194 }
@@ -16,16 +16,9 @@ module.exports = { @@ -16,16 +16,9 @@ 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://dev-api.yohops.com:9999/',  
20 - // service: 'http://devservice.yoho.cn:58077/'  
21 - // api: 'http://api.yoho.cn/',  
22 - service: 'http://192.168.102.14:8090',  
23 - // service: 'http://service.yoho.cn/', 19 + api: 'http://api-test3.yohops.com:9999/',
  20 + service: 'http://service-test3.yohops.com:9999/',
24 liveApi: 'http://testapi.live.yohops.com:9999/' 21 liveApi: 'http://testapi.live.yohops.com:9999/'
25 -  
26 - // api: 'http://api.yoho.cn/',  
27 - // service: 'http://service.yoho.cn/',  
28 - // liveApi: 'http://testapi.live.yohops.com:9999/'  
29 }, 22 },
30 subDomains: { 23 subDomains: {
31 host: '.m.yohobuy.com', 24 host: '.m.yohobuy.com',
@@ -2,7 +2,15 @@ @@ -2,7 +2,15 @@
2 <noscript><iframe src="//www.googletagmanager.com/ns.html?id=GTM-W958MG" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript> 2 <noscript><iframe src="//www.googletagmanager.com/ns.html?id=GTM-W958MG" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
3 <script> 3 <script>
4 var _hmt = _hmt || []; 4 var _hmt = _hmt || [];
  5 +
5 function async_load(){ 6 function async_load(){
  7 + (function() {
  8 + var hm = document.createElement("script");
  9 + hm.src = "//hm.baidu.com/hm.js?e5b83a487a4458aa5abca43f5779b764";
  10 + var s = document.getElementsByTagName("script")[0];
  11 + s.parentNode.insertBefore(hm, s);
  12 + })();
  13 +
6 (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': 14 (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
7 new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], 15 new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
8 j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= 16 j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
1 { 1 {
2 "name": "m-yohobuy-node", 2 "name": "m-yohobuy-node",
3 - "version": "4.9.27", 3 + "version": "4.9.28",
4 "private": true, 4 "private": true,
5 "description": "A New Yohobuy Project With Express", 5 "description": "A New Yohobuy Project With Express",
6 "repository": { 6 "repository": {
@@ -38,7 +38,7 @@ @@ -38,7 +38,7 @@
38 "cookie-parser": "^1.4.3", 38 "cookie-parser": "^1.4.3",
39 "express": "^4.14.0", 39 "express": "^4.14.0",
40 "express-handlebars": "^3.0.0", 40 "express-handlebars": "^3.0.0",
41 - "express-session": "^1.14.0", 41 + "express-session": "^1.14.1",
42 "influxdb-winston": "^1.0.1", 42 "influxdb-winston": "^1.0.1",
43 "lodash": "^4.16.1", 43 "lodash": "^4.16.1",
44 "md5": "^2.1.0", 44 "md5": "^2.1.0",

145 KB | W: | H:

46.1 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin

123 KB | W: | H:

79.7 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin
@@ -83,7 +83,7 @@ Game.prototype._anim = function(stopLocation, coin) { @@ -83,7 +83,7 @@ Game.prototype._anim = function(stopLocation, coin) {
83 83
84 newLocation = newLocation > 8 ? newLocation - 8 : newLocation; 84 newLocation = newLocation > 8 ? newLocation - 8 : newLocation;
85 85
86 - console.log(newLocation); 86 + // console.log(newLocation);
87 87
88 setActive(newLocation); 88 setActive(newLocation);
89 89
@@ -41,8 +41,8 @@ var page = { @@ -41,8 +41,8 @@ var page = {
41 share({ 41 share({
42 title: '有货【会员日】开启啦!9月28日潮集狂欢趴等你来HI!限时6大福利,快参与起来喽~', 42 title: '有货【会员日】开启啦!9月28日潮集狂欢趴等你来HI!限时6大福利,快参与起来喽~',
43 link: location.href, 43 link: location.href,
44 - desc: 'YOHO!BUY',  
45 - imgUrl: 'http://static.yohobuy.com/m/v1/img/touch/apple-touch-icon-144x144-precomposed-new.png' 44 + desc: 'm.yohobuy.com',
  45 + imgUrl: 'http://img10.static.yhbimg.com/taobaocms/2016/09/23/18/010ccac2955e7e50ffb66b75110e73e3e1.png'
46 }); 46 });
47 }, 47 },
48 48
@@ -209,7 +209,7 @@ var page = { @@ -209,7 +209,7 @@ var page = {
209 oneMsgH = $msgRoll[0].getBoundingClientRect().height - 6; 209 oneMsgH = $msgRoll[0].getBoundingClientRect().height - 6;
210 onePageH = $fragClone[0].offsetTop; 210 onePageH = $fragClone[0].offsetTop;
211 211
212 - console.log(oneMsgH); 212 + // console.log(oneMsgH);
213 213
214 function rolling() { 214 function rolling() {
215 215
@@ -4,7 +4,7 @@ require('plugin/modal.alert'); @@ -4,7 +4,7 @@ require('plugin/modal.alert');
4 require('../common'); 4 require('../common');
5 var yoho = require('js/yoho-app'); 5 var yoho = require('js/yoho-app');
6 var tip = require('plugin/tip'); 6 var tip = require('plugin/tip');
7 -var Game = require('./vip_day/game'); 7 +var Game = require('./vip-day/game');
8 8
9 window.$ = $; 9 window.$ = $;
10 10
@@ -25,7 +25,7 @@ function getAwards($container) { @@ -25,7 +25,7 @@ function getAwards($container) {
25 25
26 var $frag = $(document.createDocumentFragment()); 26 var $frag = $(document.createDocumentFragment());
27 27
28 - if (!res.data.length) { 28 + if (!res.data) {
29 $frag.append('<li><div class="text-center">快试试手气吧~</div></li>'); 29 $frag.append('<li><div class="text-center">快试试手气吧~</div></li>');
30 } else { 30 } else {
31 $.each(res.data, function(i, li) { 31 $.each(res.data, function(i, li) {
@@ -3,7 +3,7 @@ @@ -3,7 +3,7 @@
3 require('plugin/modal.alert'); 3 require('plugin/modal.alert');
4 require('../common'); 4 require('../common');
5 var yoho = require('js/yoho-app'); 5 var yoho = require('js/yoho-app');
6 -var Game = require('./vip_day/game'); 6 +var Game = require('./vip-day/game');
7 7
8 window.$ = $; 8 window.$ = $;
9 9
@@ -35,7 +35,7 @@ $(function() { @@ -35,7 +35,7 @@ $(function() {
35 }, 5000); 35 }, 5000);
36 36
37 game.onsuccess = function(score) { 37 game.onsuccess = function(score) {
38 - console.log(score); 38 + // console.log(score);
39 upPlayers(1); 39 upPlayers(1);
40 $.yAlert({ 40 $.yAlert({
41 class: 'vipday-game-alert', 41 class: 'vipday-game-alert',
@@ -10,15 +10,6 @@ @@ -10,15 +10,6 @@
10 font-family: "Microsoft YaHei"; 10 font-family: "Microsoft YaHei";
11 color: #fff; 11 color: #fff;
12 12
13 - .intro-title {  
14 - margin-top: 90px;  
15 - }  
16 - /* 手机号 领福利 */  
17 - .invite-content-page {  
18 -  
19 - text-align: center;  
20 - color: #fff;  
21 -  
22 .banner { 13 .banner {
23 width: 445px; 14 width: 445px;
24 height: 359px; 15 height: 359px;
@@ -32,6 +23,17 @@ @@ -32,6 +23,17 @@
32 margin-bottom: 10px; 23 margin-bottom: 10px;
33 } 24 }
34 25
  26 + .intro-title {
  27 + // margin-top: 90px;
  28 + }
  29 + /* 手机号 领福利 */
  30 + .invite-content-page {
  31 +
  32 + text-align: center;
  33 + color: #fff;
  34 +
  35 +
  36 +
35 .bold { 37 .bold {
36 font-weight: bold; 38 font-weight: bold;
37 } 39 }
@@ -3,7 +3,7 @@ @@ -3,7 +3,7 @@
3 } 3 }
4 4
5 .vip-day-header { 5 .vip-day-header {
6 - background: resolve("activity/vip_day/activity.png"); 6 + background: resolve("activity/vip_day/activity.jpg");
7 background-size: 100% 100%; 7 background-size: 100% 100%;
8 height: 466px; 8 height: 466px;
9 /*box-shadow: inset -6px -6px 7px rgba(15, 5, 10, 0.32);*/ 9 /*box-shadow: inset -6px -6px 7px rgba(15, 5, 10, 0.32);*/
@@ -161,8 +161,8 @@ @@ -161,8 +161,8 @@
161 } 161 }
162 162
163 .content { 163 .content {
164 - height: 224px;  
165 - background: no-repeat center center resolve('activity/vip_day/vip-boot-pic.png'); 164 + height: 263px;
  165 + background: no-repeat center center resolve('activity/vip_day/vip-boot-pic.jpg');
166 background-size: 100% 100%; 166 background-size: 100% 100%;
167 } 167 }
168 168
@@ -247,7 +247,7 @@ @@ -247,7 +247,7 @@
247 247
248 .vip-good-show { 248 .vip-good-show {
249 width: 220px; 249 width: 220px;
250 - height: 155px; 250 + height: calc(220 * 4 / 3px);
251 } 251 }
252 252
253 .vip-good-price { 253 .vip-good-price {
@@ -298,8 +298,10 @@ @@ -298,8 +298,10 @@
298 .vip-good-name { 298 .vip-good-name {
299 font-size: 20px; 299 font-size: 20px;
300 color: #fff; 300 color: #fff;
301 - height: 2em; 301 + height: calc(2*20*1.4px);
302 margin-bottom: 10px; 302 margin-bottom: 10px;
  303 + margin-left: 5px;
  304 + margin-right: 5px;
303 } 305 }
304 306
305 .vip-good-fav { 307 .vip-good-fav {
@@ -315,7 +317,7 @@ @@ -315,7 +317,7 @@
315 margin-bottom: 56px; 317 margin-bottom: 56px;
316 color: transparent; 318 color: transparent;
317 height: 297px; 319 height: 297px;
318 - background-image: resolve('activity/vip_day/invite.png'); 320 + background-image: resolve('activity/vip_day/invite.jpg');
319 background-size: 100% 100%; 321 background-size: 100% 100%;
320 } 322 }
321 } 323 }
@@ -438,7 +440,7 @@ @@ -438,7 +440,7 @@
438 z-index: 1; 440 z-index: 1;
439 background-color: #131313; 441 background-color: #131313;
440 color: #345abc; 442 color: #345abc;
441 - text-shadow: 0px 0px 5px #0919f5; 443 + text-shadow: 0 0 5px #0919f5;
442 444
443 li { 445 li {
444 position: relative; 446 position: relative;