Authored by zzzzzzz

修改链接名字

@@ -72,7 +72,8 @@ exports.index = (req, res, next) => { @@ -72,7 +72,8 @@ exports.index = (req, res, next) => {
72 pageStyle: 'vip-day10 entry', 72 pageStyle: 'vip-day10 entry',
73 goods1: result.data.goods1, 73 goods1: result.data.goods1,
74 goods2: result.data.goods2, 74 goods2: result.data.goods2,
75 - goods3: result.data.goods3 75 + goods3: result.data.goods3,
  76 + isStudent: true
76 }); 77 });
77 return; 78 return;
78 }).catch(next); 79 }).catch(next);
@@ -83,10 +84,6 @@ exports.crazyWheel = (req, res, next) => { @@ -83,10 +84,6 @@ exports.crazyWheel = (req, res, next) => {
83 res.locals.page = 'vipday-wheel10'; 84 res.locals.page = 'vipday-wheel10';
84 res.locals.width750 = true; 85 res.locals.width750 = true;
85 86
86 - if (!req.session.playwheel) {  
87 - return res.redirect('/activity/vip-day10');  
88 - }  
89 -  
90 vipDayModel.getJoinNum(1).then(result => { 87 vipDayModel.getJoinNum(1).then(result => {
91 let joins = result && result.data || 0; 88 let joins = result && result.data || 0;
92 89
1 'use strict'; 1 'use strict';
2 2
3 const fs = require('fs'); 3 const fs = require('fs');
4 -let devHost = '172.16.6.112'; 4 +let devHost = '127.0.0.1';
5 5
6 fs.readFile('.devhost', (err, buf)=> { 6 fs.readFile('.devhost', (err, buf)=> {
7 if (!err) { 7 if (!err) {
1 -._10_ {  
2 - border-width: 1px;  
3 - border-color: rgb( 154, 122, 79 );  
4 - border-style: solid;  
5 - background-color: rgb( 6, 6, 6 );  
6 - opacity: 0.6;  
7 - position: absolute;  
8 - left: 25px;  
9 - top: 1528px;  
10 - width: 588px;  
11 - height: 1839px;  
12 - z-index: 155;  
13 -}  
1 /* eslint-disable vars-on-top */ 1 /* eslint-disable vars-on-top */
2 /** 2 /**
3 - * @author xuan.chen@yoho.cn 3 + * @author acgpiano
4 */ 4 */
5 'use strict'; 5 'use strict';
6 require('plugin/modal'); 6 require('plugin/modal');
@@ -13,7 +13,7 @@ var tip = require('plugin/tip'); @@ -13,7 +13,7 @@ var tip = require('plugin/tip');
13 window.tip = tip; 13 window.tip = tip;
14 14
15 var $punch, $punchModal; 15 var $punch, $punchModal;
16 -var $invite; 16 +var $student, $invite;
17 17
18 function appJump(where, option) { 18 function appJump(where, option) {
19 var $anchor = $(document.createElement('a')); 19 var $anchor = $(document.createElement('a'));
@@ -46,6 +46,7 @@ var page = { @@ -46,6 +46,7 @@ var page = {
46 domInit: function() { 46 domInit: function() {
47 $punch = $('#js-qiandao'); 47 $punch = $('#js-qiandao');
48 $punchModal = $('#qiandao-modal'); 48 $punchModal = $('#qiandao-modal');
  49 + $student = $('#vip-student');
49 $invite = $('#js-invite-friends'); 50 $invite = $('#js-invite-friends');
50 }, 51 },
51 52
@@ -59,11 +60,25 @@ var page = { @@ -59,11 +60,25 @@ var page = {
59 okText: '立即去' 60 okText: '立即去'
60 }) 61 })
61 .on('hiden.yoho.modal', function() { 62 .on('hiden.yoho.modal', function() {
62 - appJump('/home', { action: 'go.mine'}); 63 + appJump('/home', { action: 'go.mine' });
63 }); 64 });
64 65
65 }); 66 });
66 } 67 }
  68 +
  69 + $student.on('click', '.in-button-bg2', function(e) {
  70 + e.preventDefault();
  71 + if (yoho.isApp) {
  72 + return appJump('/activity/vip-day10/crazy-wheel', {
  73 + action: 'go.h5',
  74 + params: {
  75 + url: 'http://m.yohobuy.com/activity/vip-day10/crazy-wheel',
  76 + islogin: 'Y'
  77 + }
  78 + });
  79 + }
  80 + window.location = '/activity/vip-day10/crazy-wheel';
  81 + });
67 }, 82 },
68 83
69 // 签到福利 84 // 签到福利
@@ -92,13 +107,13 @@ var page = { @@ -92,13 +107,13 @@ var page = {
92 107
93 $punchModal.yModal('show'); 108 $punchModal.yModal('show');
94 }) 109 })
95 - .fail(function() {  
96 - tip.show('签到失败 >_<');  
97 - }); 110 + .fail(function() {
  111 + tip.show('签到失败 >_<');
  112 + });
98 }, 113 },
99 }; 114 };
100 115
101 window.$ = $; 116 window.$ = $;
102 $(function() { 117 $(function() {
103 page.init(); 118 page.init();
104 -}); 119 +});
@@ -152,6 +152,7 @@ @@ -152,6 +152,7 @@
152 margin: 60px auto 0; 152 margin: 60px auto 0;
153 background: resolve("activity/vip-day/vip-day1028/invite-friend.png"); 153 background: resolve("activity/vip-day/vip-day1028/invite-friend.png");
154 background-size: 100% 100%; 154 background-size: 100% 100%;
  155 + z-index: -1;
155 156
156 .invite-button { 157 .invite-button {
157 position: absolute; 158 position: absolute;