Merge remote-tracking branch 'origin/feature/VIP_DAY'
Showing
16 changed files
with
24 additions
and
23 deletions
@@ -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 | + <br /> | ||
6 | <p class="fz14 intro-title"> | 6 | <p class="fz14 intro-title"> |
7 | 只需1位小伙伴领取,<br/> | 7 | 只需1位小伙伴领取,<br/> |
8 | 即得<strong class="fz17">10元现金券</strong>!<br/> | 8 | 即得<strong class="fz17">10元现金券</strong>!<br/> |
@@ -15,7 +15,7 @@ | @@ -15,7 +15,7 @@ | ||
15 | </p> | 15 | </p> |
16 | <a href="javascript:void(0)" class="weal-btn fz16" id="send_gift">立刻发福利</a> | 16 | <a href="javascript:void(0)" class="weal-btn fz16" id="send_gift">立刻发福利</a> |
17 | <h2 class="rule-tit fz15">活动细则</h2> | 17 | <h2 class="rule-tit fz15">活动细则</h2> |
18 | - <ol class="rule-con"> | 18 | + <ol class="rule-con hide"> |
19 | <li>本次活动所获现金券仅限Yoho!Buy有货商城购买商品使用,不得转借他人,不可兑换现金;</li> | 19 | <li>本次活动所获现金券仅限Yoho!Buy有货商城购买商品使用,不得转借他人,不可兑换现金;</li> |
20 | <li>一个订单只可使用一张优惠券,优惠券需在有效期内使用,过期则无法使用;</li> | 20 | <li>一个订单只可使用一张优惠券,优惠券需在有效期内使用,过期则无法使用;</li> |
21 | <li>使用优惠券支付的订单,退款结算按照实际支付金额退款,优惠券返还账户,且有效期不变;</li> | 21 | <li>使用优惠券支付的订单,退款结算按照实际支付金额退款,优惠券返还账户,且有效期不变;</li> |
@@ -187,7 +187,7 @@ gulp.task('webpack-dev-server', () => { | @@ -187,7 +187,7 @@ gulp.task('webpack-dev-server', () => { | ||
187 | 187 | ||
188 | new WebpackDevServer(webpack(devConfig), { | 188 | new WebpackDevServer(webpack(devConfig), { |
189 | contentBase: '.', | 189 | contentBase: '.', |
190 | - publicPath: '//localhost:5001/', | 190 | + publicPath: 'http://localhost:5001/', |
191 | hot: true, | 191 | hot: true, |
192 | stats: { | 192 | stats: { |
193 | colors: true | 193 | colors: true |
public/img/activity/vip_day/activity.jpg
0 → 100644
51.9 KB
260 KB
public/img/activity/vip_day/invite.jpg
0 → 100644
39.9 KB
119 KB
public/img/activity/vip_day/vip-boot-pic.jpg
0 → 100644
45.9 KB
@@ -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 |
@@ -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,6 +10,12 @@ | @@ -10,6 +10,12 @@ | ||
10 | font-family: "Microsoft YaHei"; | 10 | font-family: "Microsoft YaHei"; |
11 | color: #fff; | 11 | color: #fff; |
12 | 12 | ||
13 | + .banner { | ||
14 | + width: 445px; | ||
15 | + height: 359px; | ||
16 | + margin-top: 50px; | ||
17 | + } | ||
18 | + | ||
13 | .intro-title { | 19 | .intro-title { |
14 | margin-top: 90px; | 20 | margin-top: 90px; |
15 | } | 21 | } |
@@ -19,11 +25,6 @@ | @@ -19,11 +25,6 @@ | ||
19 | text-align: center; | 25 | text-align: center; |
20 | color: #fff; | 26 | color: #fff; |
21 | 27 | ||
22 | - .banner { | ||
23 | - width: 445px; | ||
24 | - height: 359px; | ||
25 | - margin-top: 50px; | ||
26 | - } | ||
27 | 28 | ||
28 | .logo { | 29 | .logo { |
29 | width: 328px; | 30 | width: 328px; |
@@ -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 | ||
@@ -315,7 +315,7 @@ | @@ -315,7 +315,7 @@ | ||
315 | margin-bottom: 56px; | 315 | margin-bottom: 56px; |
316 | color: transparent; | 316 | color: transparent; |
317 | height: 297px; | 317 | height: 297px; |
318 | - background-image: resolve('activity/vip_day/invite.png'); | 318 | + background-image: resolve('activity/vip_day/invite.jpg'); |
319 | background-size: 100% 100%; | 319 | background-size: 100% 100%; |
320 | } | 320 | } |
321 | } | 321 | } |
-
Please register or login to post a comment