Authored by 王水玲

修改协议id, 添加隐私赠策

... ... @@ -21,9 +21,6 @@ const cert = {
res.render('cert/index', {
region: req.ctx(passportHelper).getCountry(),
refer: refer,
serviceUrl: helpers.urlFormat('/help', {
category_id: 9
}),
serviceUrl: helpers.urlFormat('/help/detail', {id: 254}),
privacyUrl: helpers.urlFormat('/help/detail', {id: 256}),
module: 'passport',
... ...
... ... @@ -10,7 +10,6 @@ var phoneRegx = require('../common/mail-phone-regx').phoneRegx;
var nopermissionoption = $('#nopermissionmessage').html(); // 倒计时dom
var sendmessagehtml = $('.validatewrapper').html(); // 发送短信dom
var second = +$('.second').text(); // 倒计时秒数
var choosedpic = 'https://cdn.yoho.cn/yohobuy/assets/img/passport/choosed.png';// 已选择图片
var $wrapper = $('.bindwrapper'),
$phoneTip = $wrapper.find('.phone-err-tip'),
... ... @@ -30,39 +29,6 @@ passwordCaptchaImg.onSuccess(function() {
require('../../simple-header');
/**
* 选择协议
* @return {[type]} [description]
*/
function chooseProtocol() {
$('.choosetag').on('change', function() {
var btnColor = '#f02200';
if ($(this).attr('checked') === 'checked') {
$('.choosewrapper').css({
'background-image': 'url("' + choosedpic + '")'
});
} else {
$('.choosewrapper').css({
'background-image': 'none'
});
btnColor = '#CCCCCC';
}
$nextBtn.css({
'background-color': btnColor
});
});
}
/**
* 判断是否同意协议
* @return {[type]} [description]
*/
function isagree() {
return $('.choosetag').attr('checked') === 'checked';
}
/**
* 选择区域的开关
* @return {[type]} [description]
... ... @@ -232,10 +198,6 @@ function nextStep() {
areaCode = $('#areanum').text();
regx = phoneRegx['+' + areaCode];
// if (!isagree()) {
// return;
// }
if (mobile === '' || !regx || !regx.test(mobile)) {
$phoneTip.find('em').text('手机格式错误');
$phoneTip.removeClass('hide');
... ... @@ -296,9 +258,6 @@ $wrapper.on('keydown', '.phonenum', function(e) {
function init() {
fixAreaNum(); // 去掉所有区域的+
sendMessageValidate(); // 有交互的发送短信
// chooseProtocol(); // 选择协议
chooseArea(); // 选择区域
chooseAreaToogle(); // 选择区域展示或关闭
cancelChooseArea(); // 取消选择区域
... ...
... ... @@ -6,7 +6,6 @@
var $ = require('yoho-jquery');
var Captcha = require('../../plugins/captcha');
var phoneRegx = require('../common/mail-phone-regx').phoneRegx;
var choosedpic = 'https://cdn.yoho.cn/yohobuy/assets/img/passport/choosed.png';// 已选择图片
var $wrapper = $('.bindwrapper'),
$phoneTip = $wrapper.find('.phone-err-tip'),
... ... @@ -47,30 +46,6 @@ function circleTime() {
window.setTimeout(changeSecond, 1000);
}
/**
* 选择协议
* @return {[type]} [description]
*/
function chooseProtocol() {
$('.choosetag').on('change', function() {
var btnColor = '#f02200';
if ($(this).prop('checked')) {
$('.choosewrapper').css({
'background-image': 'url("' + choosedpic + '")'
});
} else {
$('.choosewrapper').css({
'background-image': 'none'
});
btnColor = '#CCCCCC';
}
$nextBtn.css({
'background-color': btnColor
});
});
}
function sendMessageValidate() {
var mobile = '';
var area = '';
... ... @@ -102,14 +77,6 @@ function sendMessageValidate() {
}
/**
* 判断是否同意协议
* @return {[type]} [description]
*/
function isagree() {
return $('.choosetag').prop('checked');
}
/**
* 选择区域的开关
* @return {[type]} [description]
*/
... ... @@ -204,10 +171,6 @@ function nextStep() {
regx = phoneRegx['+' + areaCode];
smsCode = $('#smscode').val();
// if (!isagree()) {
// return;
// }
if (mobile === '' || !regx || !regx.test(mobile)) {
$phoneTip.find('em').text('手机格式错误');
$phoneTip.removeClass('hide');
... ... @@ -262,9 +225,6 @@ $wrapper.on('keydown', '.phonenum', function(e) {
function init() {
fixAreaNum(); // 去掉所有区域的+
// chooseProtocol(); // 选择协议
chooseArea(); // 选择区域
chooseAreaToogle(); // 选择区域展示或关闭
cancelChooseArea(); // 取消选择区域
... ...