Showing
30 changed files
with
109 additions
and
35 deletions
@@ -16,7 +16,7 @@ exports.crazyWheel = (req, res, next) => { | @@ -16,7 +16,7 @@ exports.crazyWheel = (req, res, next) => { | ||
16 | res.locals.width750 = true; | 16 | res.locals.width750 = true; |
17 | 17 | ||
18 | res.render('vip_day/crazy_wheel', { | 18 | res.render('vip_day/crazy_wheel', { |
19 | - pageStyle: 'vip-day vip-game-wheel', | 19 | + pageStyle: 'vip-day', |
20 | isWheel: true, | 20 | isWheel: true, |
21 | }); | 21 | }); |
22 | }; | 22 | }; |
@@ -27,7 +27,7 @@ exports.crazyLuck = (req, res, next) => { | @@ -27,7 +27,7 @@ exports.crazyLuck = (req, res, next) => { | ||
27 | res.locals.width750 = true; | 27 | res.locals.width750 = true; |
28 | 28 | ||
29 | res.render('vip_day/crazy_luck', { | 29 | res.render('vip_day/crazy_luck', { |
30 | - pageStyle: 'vip-day vip-game-luck', | 30 | + pageStyle: 'vip-day', |
31 | isLuck: true | 31 | isLuck: true |
32 | }); | 32 | }); |
33 | }; | 33 | }; |
1 | +{{#if isWheel}} | ||
1 | <div class="info"> | 2 | <div class="info"> |
2 | - {{#if isWheel}} | ||
3 | - {{else if isLuck}} | ||
4 | - <div class="info-item my-icon"> | ||
5 | - <div class="my-icon-label"> | ||
6 | - <i class="small-icon"></i><span>我的有货币</span> | ||
7 | - </div> | ||
8 | - <span id="my-icon" class="game-val game-rect">29870</span> | ||
9 | - </div> | ||
10 | - <div class="info-item"> | ||
11 | - <button id="my-award" class="game-btn my-award" type="button">我的奖品</button> | 3 | + <div class="info-item"> |
4 | + 已有<span class="game-val game-rect">29870</span>人参与抽奖 | ||
5 | + </div> | ||
6 | +</div> | ||
7 | +<div class="explain"> | ||
8 | + <div class="explain-txt"> | ||
9 | + <h6 class="explain-title">留言板细则:</h6> | ||
10 | + <ul class="explain-rules"> | ||
11 | + <li>每位用户限写一条留言,完成提交后获得一次抽奖机会。可随机获得10元现金券、20元现金券、50元现金券、100元现金券</li> | ||
12 | + <li>您的想法有可能会在后面的会员日实现哦~<br>本次活动解释权归有货所有</li> | ||
13 | + </ul> | ||
14 | + </div> | ||
15 | +</div> | ||
16 | +{{else if isLuck}} | ||
17 | +<div class="info"> | ||
18 | + <div class="info-item my-icon"> | ||
19 | + <div class="my-icon-label"> | ||
20 | + <i class="small-icon"></i><span>我的有货币</span> | ||
12 | </div> | 21 | </div> |
13 | - <div class="info-item player-num"> | ||
14 | - <div> | ||
15 | - 已有:<span id="player-num" class="player-num-val">12345</span>人 | ||
16 | - </div> | ||
17 | - <span>参加抽奖</span> | 22 | + <span id="my-icon" class="game-val game-rect">29870</span> |
23 | + </div> | ||
24 | + <div class="info-item"> | ||
25 | + <button id="my-award" class="game-btn my-award" type="button">我的奖品</button> | ||
26 | + </div> | ||
27 | + <div class="info-item player-num"> | ||
28 | + <div> | ||
29 | + 已有:<span id="player-num" class="player-num-val">12345</span>人 | ||
18 | </div> | 30 | </div> |
19 | - {{/if}} | 31 | + <span>参加抽奖</span> |
32 | + </div> | ||
20 | </div> | 33 | </div> |
21 | <div class="explain"> | 34 | <div class="explain"> |
22 | <div class="explain-txt"> | 35 | <div class="explain-txt"> |
23 | - <h6>有货币抽奖规则:</h6> | ||
24 | - <ul> | 36 | + <h6 class="explain-title">有货币抽奖规则:</h6> |
37 | + <ul class="explain-rules"> | ||
25 | <li>1、 每次投入20有货币,用户账内有货币需大于20;每位用户不限参与次数</li> | 38 | <li>1、 每次投入20有货币,用户账内有货币需大于20;每位用户不限参与次数</li> |
26 | <li>2、 奖品为20、50、100、200、1000、2000、5000有货币,抽中对应奖品即可获得;如未中奖则告知“很遗憾您没有中奖,继续加油哦~~”!</li> | 39 | <li>2、 奖品为20、50、100、200、1000、2000、5000有货币,抽中对应奖品即可获得;如未中奖则告知“很遗憾您没有中奖,继续加油哦~~”!</li> |
27 | </ul> | 40 | </ul> |
28 | </div> | 41 | </div> |
29 | -</div> | ||
42 | +</div> | ||
43 | +{{/if}} |
1 | <div class="game"> | 1 | <div class="game"> |
2 | <div class="game-stage"> | 2 | <div class="game-stage"> |
3 | - <div class="game-item game-award-1"></div> | ||
4 | - <div class="game-item game-award-2"></div> | ||
5 | - <div class="game-item game-award-3"></div> | ||
6 | - <div class="game-item game-award-4"></div> | 3 | + <div class="game-item game-award is-active"></div> |
4 | + <div class="game-item game-award"></div> | ||
5 | + <div class="game-item game-award"></div> | ||
6 | + <div class="game-item game-award"></div> | ||
7 | <div class="game-item game-boot"></div> | 7 | <div class="game-item game-boot"></div> |
8 | - <div class="game-item game-award-5"></div> | ||
9 | - <div class="game-item game-award-6"></div> | ||
10 | - <div class="game-item game-award-7"></div> | ||
11 | - <div class="game-item game-award-8"></div> | 8 | + <div class="game-item game-award"></div> |
9 | + <div class="game-item game-award"></div> | ||
10 | + <div class="game-item game-award"></div> | ||
11 | + <div class="game-item game-award"></div> | ||
12 | </div> | 12 | </div> |
13 | </div> | 13 | </div> |
2.94 KB
2.67 KB
2.31 KB
2.89 KB
2.96 KB
2.84 KB
2.58 KB
2.99 KB
public/img/activity/vip_day/chit-stage.png
0 → 100644
26 KB
public/img/activity/vip_day/chit.png
0 → 100644
8.28 KB
10.3 KB
3.55 KB
5.06 KB
4.99 KB
5.38 KB
5.18 KB
4.97 KB
5.34 KB
5.16 KB
public/img/activity/vip_day/coin.png
0 → 100644
15.8 KB
15.9 KB
public/img/activity/vip_day/cursor.png
0 → 100644
1.28 KB
1.28 KB
public/img/activity/vip_day/luck-stage.png
0 → 100644
39.3 KB
@@ -25,6 +25,8 @@ $border-radius: 8px; | @@ -25,6 +25,8 @@ $border-radius: 8px; | ||
25 | font-size: 38px; | 25 | font-size: 38px; |
26 | display: inline-block; | 26 | display: inline-block; |
27 | padding: 5px 20px; | 27 | padding: 5px 20px; |
28 | + margin-left: 20px; | ||
29 | + margin-right: 20px; | ||
28 | } | 30 | } |
29 | 31 | ||
30 | .game-btn { | 32 | .game-btn { |
@@ -58,7 +60,14 @@ $border-radius: 8px; | @@ -58,7 +60,14 @@ $border-radius: 8px; | ||
58 | width: 162px; | 60 | width: 162px; |
59 | height: 124px; | 61 | height: 124px; |
60 | margin: 11px 25px 7px 15px; | 62 | margin: 11px 25px 7px 15px; |
61 | - background: url("/activity/vip_day/chit@2x.png"); | 63 | + } |
64 | + | ||
65 | + &.game-luck .header-banner { | ||
66 | + background: url("/activity/vip_day/chit.png"); | ||
67 | + } | ||
68 | + | ||
69 | + &.game-wheel .header-banner { | ||
70 | + background: url("/activity/vip_day/coin.png"); | ||
62 | } | 71 | } |
63 | 72 | ||
64 | .game-notify { | 73 | .game-notify { |
@@ -71,15 +80,50 @@ $border-radius: 8px; | @@ -71,15 +80,50 @@ $border-radius: 8px; | ||
71 | line-height: calc(79 - 3 * 2px); | 80 | line-height: calc(79 - 3 * 2px); |
72 | } | 81 | } |
73 | 82 | ||
83 | + /* ---------------------------------------------------- *\ | ||
84 | + main area | ||
85 | + \* ---------------------------------------------------- */ | ||
74 | .game { | 86 | .game { |
87 | + position: relative; | ||
75 | height: 536px; | 88 | height: 536px; |
76 | background: resolve("activity/vip_day/stage@2x.png"); | 89 | background: resolve("activity/vip_day/stage@2x.png"); |
77 | background-size: 750px 536px; | 90 | background-size: 750px 536px; |
78 | } | 91 | } |
79 | 92 | ||
80 | - /* ---------------------------------------------------- *\ | ||
81 | - main area | ||
82 | - \* ---------------------------------------------------- */ | 93 | + .game-stage { |
94 | + position: absolute; | ||
95 | + top: 60px; | ||
96 | + right: 82px; | ||
97 | + left: 82px; | ||
98 | + width: 586px; | ||
99 | + height: 406px; | ||
100 | + background-size: contain; | ||
101 | + } | ||
102 | + | ||
103 | + .game-item { | ||
104 | + float: left; | ||
105 | + width: calc((586-4) / 3px); | ||
106 | + height: calc((406-4) / 3px); | ||
107 | + margin-right: 2px; | ||
108 | + margin-bottom: 2px; | ||
109 | + /* background-color:rgba(255,255,255,0.8); */ | ||
110 | + | ||
111 | + &:nth-child(3n) { | ||
112 | + margin-right: 0; | ||
113 | + } | ||
114 | + } | ||
115 | + | ||
116 | + .game-award.is-active { | ||
117 | + background: url("/activity/vip_day/cursor.png"); | ||
118 | + } | ||
119 | + | ||
120 | + &.game-luck .game-stage { | ||
121 | + background-image: resolve("activity/vip_day/luck-stage.png"); | ||
122 | + } | ||
123 | + | ||
124 | + &.game-wheel .game-stage { | ||
125 | + background-image: resolve("activity/vip_day/chit-stage.png"); | ||
126 | + } | ||
83 | 127 | ||
84 | /* ---------------------------------------------------- *\ | 128 | /* ---------------------------------------------------- *\ |
85 | footer area | 129 | footer area |
@@ -160,7 +204,19 @@ $border-radius: 8px; | @@ -160,7 +204,19 @@ $border-radius: 8px; | ||
160 | right: 0; | 204 | right: 0; |
161 | content: ""; | 205 | content: ""; |
162 | height: 27px; | 206 | height: 27px; |
163 | - background: linear-gradient(to bottom, rgba(171,171,171, 0.8), transparent); | 207 | + background: linear-gradient(to bottom, rgba(171, 171, 171, 0.8), transparent); |
208 | + } | ||
209 | + } | ||
210 | + | ||
211 | + .explain-title { | ||
212 | + font-size: 26px; | ||
213 | + font-weight: bold; | ||
214 | + margin-bottom: 10px; | ||
215 | + } | ||
216 | + | ||
217 | + .explain-rules { | ||
218 | + li { | ||
219 | + margin-bottom: 10px; | ||
164 | } | 220 | } |
165 | } | 221 | } |
166 | } | 222 | } |
-
Please register or login to post a comment