Authored by 陈轩

FIX vip-day

@@ -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],

145 KB | W: | H:

46.1 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
@@ -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
@@ -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) {
@@ -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',
@@ -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 }