Authored by zzzzzzz

修改链接名字

... ... @@ -72,7 +72,8 @@ exports.index = (req, res, next) => {
pageStyle: 'vip-day10 entry',
goods1: result.data.goods1,
goods2: result.data.goods2,
goods3: result.data.goods3
goods3: result.data.goods3,
isStudent: true
});
return;
}).catch(next);
... ... @@ -83,10 +84,6 @@ exports.crazyWheel = (req, res, next) => {
res.locals.page = 'vipday-wheel10';
res.locals.width750 = true;
if (!req.session.playwheel) {
return res.redirect('/activity/vip-day10');
}
vipDayModel.getJoinNum(1).then(result => {
let joins = result && result.data || 0;
... ...
'use strict';
const fs = require('fs');
let devHost = '172.16.6.112';
let devHost = '127.0.0.1';
fs.readFile('.devhost', (err, buf)=> {
if (!err) {
... ...
._10_ {
border-width: 1px;
border-color: rgb( 154, 122, 79 );
border-style: solid;
background-color: rgb( 6, 6, 6 );
opacity: 0.6;
position: absolute;
left: 25px;
top: 1528px;
width: 588px;
height: 1839px;
z-index: 155;
}
/* eslint-disable vars-on-top */
/**
* @author xuan.chen@yoho.cn
* @author acgpiano
*/
'use strict';
require('plugin/modal');
... ... @@ -13,7 +13,7 @@ var tip = require('plugin/tip');
window.tip = tip;
var $punch, $punchModal;
var $invite;
var $student, $invite;
function appJump(where, option) {
var $anchor = $(document.createElement('a'));
... ... @@ -46,6 +46,7 @@ var page = {
domInit: function() {
$punch = $('#js-qiandao');
$punchModal = $('#qiandao-modal');
$student = $('#vip-student');
$invite = $('#js-invite-friends');
},
... ... @@ -59,11 +60,25 @@ var page = {
okText: '立即去'
})
.on('hiden.yoho.modal', function() {
appJump('/home', { action: 'go.mine'});
appJump('/home', { action: 'go.mine' });
});
});
}
$student.on('click', '.in-button-bg2', function(e) {
e.preventDefault();
if (yoho.isApp) {
return appJump('/activity/vip-day10/crazy-wheel', {
action: 'go.h5',
params: {
url: 'http://m.yohobuy.com/activity/vip-day10/crazy-wheel',
islogin: 'Y'
}
});
}
window.location = '/activity/vip-day10/crazy-wheel';
});
},
// 签到福利
... ... @@ -92,13 +107,13 @@ var page = {
$punchModal.yModal('show');
})
.fail(function() {
tip.show('签到失败 >_<');
});
.fail(function() {
tip.show('签到失败 >_<');
});
},
};
window.$ = $;
$(function() {
page.init();
});
});
\ No newline at end of file
... ...
... ... @@ -152,6 +152,7 @@
margin: 60px auto 0;
background: resolve("activity/vip-day/vip-day1028/invite-friend.png");
background-size: 100% 100%;
z-index: -1;
.invite-button {
position: absolute;
... ...