Authored by 王水玲

年度账单修改

@@ -14,6 +14,11 @@ const index = (req, res, next) => { @@ -14,6 +14,11 @@ const index = (req, res, next) => {
14 let uid = +req.query.uid || +req.user.uid; 14 let uid = +req.query.uid || +req.user.uid;
15 let curUrl = 'http://m.yohobuy.com/activity/annual-account'; 15 let curUrl = 'http://m.yohobuy.com/activity/annual-account';
16 16
  17 + if (!uid) {
  18 + res.redirect('/signin.html?refer=http://m.yohobuy.com/activity/annual-account');
  19 + return;
  20 + }
  21 +
17 annualAccountModel.getAccountData({ 22 annualAccountModel.getAccountData({
18 uid: uid, 23 uid: uid,
19 year: '2016' 24 year: '2016'
@@ -8,7 +8,6 @@ @@ -8,7 +8,6 @@
8 8
9 const router = require('express').Router(); // eslint-disable-line 9 const router = require('express').Router(); // eslint-disable-line
10 const cRoot = './controllers'; 10 const cRoot = './controllers';
11 -const auth = require('../../doraemon/middleware/auth');  
12 const demo = require(`${cRoot}/demo`); 11 const demo = require(`${cRoot}/demo`);
13 const coupon = require(`${cRoot}/coupon`); 12 const coupon = require(`${cRoot}/coupon`);
14 const wechat = require(`${cRoot}/wechat`); 13 const wechat = require(`${cRoot}/wechat`);
@@ -138,7 +137,7 @@ router.get('/redbag/2017', redbag.index); @@ -138,7 +137,7 @@ router.get('/redbag/2017', redbag.index);
138 router.get('/individuation', individuation.productLst); 137 router.get('/individuation', individuation.productLst);
139 138
140 // 2016 年度账单 139 // 2016 年度账单
141 -router.get('/annual-account', auth, annualAccount.index); 140 +router.get('/annual-account', annualAccount.index);
142 router.get('/annual-account/share', annualAccount.share); 141 router.get('/annual-account/share', annualAccount.share);
143 router.get('/app-downloads', appDownloads.index); 142 router.get('/app-downloads', appDownloads.index);
144 143
1 {{#data}} 1 {{#data}}
2 <div class="annual-account-page ch" data-login="{{loginUrl}}" data-is-app="{{isApp}}"> 2 <div class="annual-account-page ch" data-login="{{loginUrl}}" data-is-app="{{isApp}}">
3 - <div class="annual-bg ch"></div> 3 +
4 <input type="hidden" value="{{sUrl}}" id="s-url"> 4 <input type="hidden" value="{{sUrl}}" id="s-url">
5 <div class="audio-btn"></div> 5 <div class="audio-btn"></div>
6 <audio preload="auto" loop="loop" id="audio"> 6 <audio preload="auto" loop="loop" id="audio">
@@ -54,6 +54,9 @@ function listenVideo() { @@ -54,6 +54,9 @@ function listenVideo() {
54 } 54 }
55 }); 55 });
56 } 56 }
  57 +$('body').css({
  58 + height: $(window).height()
  59 +});
57 60
58 $(function() { 61 $(function() {
59 var $purdah1 = $('.purdah1'), 62 var $purdah1 = $('.purdah1'),
@@ -72,6 +75,11 @@ $(function() { @@ -72,6 +75,11 @@ $(function() {
72 75
73 $commonH.css({height: $(window).height()}); 76 $commonH.css({height: $(window).height()});
74 77
  78 + setTimeout(function() {
  79 + $('.top-downloadbar').css({zIndex: 9});
  80 + }, 400);
  81 +
  82 +
75 audioAction(); 83 audioAction();
76 listenVideo(); 84 listenVideo();
77 85
1 .annual-account-page { 1 .annual-account-page {
2 width: 640px; 2 width: 640px;
3 overflow: hidden; 3 overflow: hidden;
  4 + background-image: resolve("activity/annual-account/bg.gif");
  5 + background-size: cover;
4 position: fixed; 6 position: fixed;
5 - top: 0;  
6 left: 0; 7 left: 0;
7 - z-index: -1; 8 + top: 0;
  9 + z-index: 1;
8 10
9 .audio-btn { 11 .audio-btn {
10 width: 49px; 12 width: 49px;
@@ -14,7 +16,7 @@ @@ -14,7 +16,7 @@
14 position: fixed; 16 position: fixed;
15 top: 30px; 17 top: 30px;
16 right: 30px; 18 right: 30px;
17 - z-index: 99; 19 + z-index: 8;
18 } 20 }
19 21
20 .audio-f { 22 .audio-f {
@@ -22,16 +24,6 @@ @@ -22,16 +24,6 @@
22 background-size: contain; 24 background-size: contain;
23 } 25 }
24 26
25 - .annual-bg {  
26 - width: 100%;  
27 - background-image: resolve("activity/annual-account/bg.gif");  
28 - background-size: cover;  
29 - position: fixed;  
30 - left: 0;  
31 - top: 0;  
32 - z-index: -1;  
33 - }  
34 -  
35 .nav-1 { 27 .nav-1 {
36 width: 100%; 28 width: 100%;
37 background: resolve("activity/annual-account/account-bg.png") no-repeat; 29 background: resolve("activity/annual-account/account-bg.png") no-repeat;