Authored by Rock Zhang

更新到201604262137静态资源

... ... @@ -1785,8 +1785,12 @@ function intimacyData(data) {
$('.increased').hide();
}
$('.pop-intimacy').show();
$('.classroom-mask').show();
$('.pop-intimacy').css({
zIndex: '10'
}).show();
$('.classroom-mask').css({
zIndex: '9'
}).show();
$('body').css({
overflow: 'hidden'
});
... ... @@ -1874,7 +1878,7 @@ if ($('.home-floor-sign').length > 0) {
}
// 星鲜事点赞事件
$(document).on('touchstart', '.like-ico', function() {
$(document).on('touchstart', '.like-ico', function(event) {
var $that = $(this),
addString = '';
... ... @@ -1912,8 +1916,9 @@ $(document).on('touchstart', '.like-ico', function() {
});
// 增加亲密度请求
$('.add-intimacy').on('touchstart', function() {
$('.add-intimacy').on('touchstart', function(event) {
event.stopPropagation();
event.preventDefault();
$.ajax({
type: 'GET',
... ... @@ -1927,7 +1932,7 @@ $('.add-intimacy').on('touchstart', function() {
if (code === 201) {
if ($('#intimacy-link').length <= 0) {
$('body').append('<a href="' + data.data + '" style="display:none;" id="intimacy-link">' +
$('body').append('<a href=\'' + data.data + '\' style="display:none;" id="intimacy-link">' +
'<span class="intimacy-link"></span></a>');
}
... ... @@ -1942,8 +1947,12 @@ $('.add-intimacy').on('touchstart', function() {
// 关闭日历弹出窗事件
$('.pop-intimacy .pop-close, .classroom-mask').on('click', function() {
$('.pop-intimacy').hide();
$('.classroom-mask').hide();
$('.pop-intimacy').css({
zIndex: '-1'
}).hide();
$('.classroom-mask').css({
zIndex: '-1'
}).hide();
$('body').css({
overflow: 'visible'
... ... @@ -2168,7 +2177,7 @@ if ($('.collocation-list').find('li').length === 0) {
}
// 星搭配收藏请求
$(document).on('touchstart', '.collection', function() {
$(document).on('touchstart', '.collection', function(event) {
var $that = $(this),
$icon = $that.find('.collected-ico');
... ... @@ -4209,7 +4218,7 @@ module.exports = function(useInRegister, useForBind, useForRelate) {
var urlMid = useInRegister ? 'reg' : 'back';
// var isReg = parseInt($('#isReg').val());
var isReg = parseInt($('#isReg').val());
function startBind() {
$.ajax({
... ... @@ -4319,8 +4328,15 @@ module.exports = function(useInRegister, useForBind, useForRelate) {
}
if (useForBind || useForRelate) {
if (isReg) {
startBind();
} else {
location.href = '/passport/bind/password?phoneNum=' +
phoneNum + '&areaCode=' + areaCode + '&openId=' +
openId + '&sourceType=' + sourceType + '&nickname=' + nickname + '&code=' + trim($captcha.val());
}
} else {
startReg();
}
});
... ... @@ -5224,7 +5240,8 @@ var nickname = $('#nickname').val(),
sourceType = $('#sourceType').val(),
openId = $('#openId').val(),
phoneNum = $('#phone-num').val(),
areaCode = $('#area-code').val().replace('+', '');
areaCode = $('#area-code').val().replace('+', ''),
code = $('#code').val();
function startBind(password) {
$.ajax({
... ... @@ -5236,7 +5253,8 @@ function startBind(password) {
openId: openId,
sourceType: sourceType,
nickname: nickname,
password: password
password: password,
code: code
},
success: function(res) {
if (res.code === 200) {
... ...
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.