Authored by whb

index.js css

... ... @@ -1102,7 +1102,6 @@ function actionTipPic() {
function closeCover() {
var $cover = $('#cover');
... ... @@ -1649,11 +1648,13 @@ function actionLoopUpdCartNum() {
function actionExeTemplate() {
var $goodcartempwarpper = $('#goodcartempwarpper');
var resulthtml = '';
if ($goodcartempwarpper && $goodcartempwarpper.html()) {
resulthtml = $('#goodcartempwarpper').html().replace(/\\/g, '');
$('#goodcartempwarpper').html(resulthtml);
vipInfoCombine = handlebars.compile($('#tmpl-my-login-new').html());
if ($goodcartempwarpper) {
if ($goodcartempwarpper.html()) {
resulthtml = $('#goodcartempwarpper').html().replace(/\\/g, '');
$('#goodcartempwarpper').html(resulthtml);
vipInfoCombine = handlebars.compile($('#tmpl-my-login-new').html());
}
}
}
/**
... ... @@ -1836,7 +1837,7 @@ function init() {
actionListenCartMore(); //
actionLoginInfo(); //获取登录信息
actionCover(); //初次登录弹框
actionAddKeyWords();//增加关键字
actionAddKeyWords(); //增加关键字
}
init();
... ... @@ -2661,7 +2662,11 @@ $('#brand-favor').on('click', function() {
}
}).then(function(res) {
if (res.code === 200) {
$this.addClass('favored');
if (res.message === 'add') {
$this.find('i').addClass('coled');
} else {
$this.find('i').removeClass('coled');
}
}
});
});
... ... @@ -6056,7 +6061,7 @@ function chooseProtocol() {
});
}
})
});
}
function chooseAreaToogle() {
... ... @@ -6068,12 +6073,18 @@ function chooseAreaToogle() {
function cancelChooseArea() {
$(document).on('click', 'body', function(e) {
var $target = $(e.target);
if ($target.hasClass('yohoselectarea') || $target.hasClass('yohoselectarea') || $target.hasClass('areaname') || $target.hasClass('righttag') || $target.hasClass('optionslist') || $target.hasClass('optionitem')) {
if ($target.hasClass('yohoselectarea') ||
$target.hasClass('yohoselectarea') ||
$target.hasClass('areaname') ||
$target.hasClass('righttag') ||
$target.hasClass('optionslist') ||
$target.hasClass('optionitem')) {
return;
} else {
$('.optionslist').addClass('hide');
}
})
});
}
function chooseArea() {
... ... @@ -6081,17 +6092,29 @@ function chooseArea() {
var $option = $(this);
var areanum = $option.attr('areanum');
var areaname = $option.text();
$('#areaname').text(areaname);
$('#areanum').text(areanum);
$('#areacode').val(areanum);
$('.optionslist').addClass('hide');
})
});
}
function isagree() {
return $('.choosetag').attr('checked');
}
function closeMask() {
var $target;
$(document).on('click', '#alreayregist', function(e) {
$target = $(e.target);
if ($target.hasClass('mask') || $target.hasClass('backdrop')) {
$('#alreayregist').hide();
}
})
}
function nextStep() {
var openId = '';
var sourceType = '';
... ... @@ -6113,7 +6136,7 @@ function nextStep() {
openId = $('#openId').val() || '29803EC6D4AAC3AAB8ABDB6AE829D579';
sourceType = $('#sourceType').val() || 'qq';
$.ajax({
type: "post",
type: 'post',
url: '/passport/autouserinfo/bindCheck',
data: {
mobile: mobile,
... ... @@ -6125,18 +6148,17 @@ function nextStep() {
success: function(data) {
if (data.code === 200) {
if (data.data.isReg === 0) {
$('#bindmobileform').attr('action','/passport/thirdlogin/noregist');
$('#bindmobileform').attr('action', '/passport/thirdlogin/noregist');
$('#bindmobileform').submit();
} else {
$('#alreayregist').show();
}
} else {
alert(data.message);
}
}
});
})
});
}
function init() {
... ... @@ -6145,6 +6167,7 @@ function init() {
chooseAreaToogle();
cancelChooseArea();
nextStep();
closeMask();
}
init();
});
... ...
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.