...
|
...
|
@@ -17,7 +17,8 @@ var $loginTip = $loginBtn.siblings('.login-fail-tip'), |
|
|
ep = new EventProxy();
|
|
|
|
|
|
var $regionCodeText = $('#country-code'),
|
|
|
$regionSelectCtrl = $('#country-list');
|
|
|
$regionSelectList = $('#country-select-list'),
|
|
|
$regionSelectHeader = $('#country-select-header');
|
|
|
|
|
|
var $emailAutoComplete = $('#email-autocomplete');
|
|
|
|
...
|
...
|
@@ -37,6 +38,13 @@ var checkbox = { |
|
|
unchecked: ''
|
|
|
};
|
|
|
|
|
|
var upDown = {
|
|
|
up: '',
|
|
|
down: ''
|
|
|
};
|
|
|
|
|
|
var selectedIcon = '';
|
|
|
|
|
|
require('yoho-jquery-placeholder');
|
|
|
|
|
|
function errTip(ele, msg) {
|
...
|
...
|
@@ -258,11 +266,40 @@ $phoneNumInput.on('focus', function() { |
|
|
|
|
|
$('[placeholder]').placeholder();
|
|
|
|
|
|
// 选择地点
|
|
|
$regionSelectCtrl.change(function() {
|
|
|
var $this = $(this);
|
|
|
function changeHeader() {
|
|
|
var $indicator = $regionSelectHeader.find('.iconfont');
|
|
|
|
|
|
if ($regionSelectList.hasClass('hide')) {
|
|
|
$indicator.html(upDown.up);
|
|
|
} else {
|
|
|
$indicator.html(upDown.down);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
// 选择图家列表
|
|
|
$regionSelectList.on('click', '.option', function() {
|
|
|
var $clickItem = $(this);
|
|
|
var areaCode = $clickItem.data('code');
|
|
|
var name = $clickItem.data('value');
|
|
|
var $selectedItem = $clickItem.siblings('.selected');
|
|
|
|
|
|
$selectedItem.find('.iconfont').html('');
|
|
|
$selectedItem.removeClass('selected');
|
|
|
|
|
|
$clickItem.find('.iconfont').html(selectedIcon);
|
|
|
$clickItem.addClass('selected');
|
|
|
|
|
|
$regionSelectHeader.find('.name').html(name);
|
|
|
$regionCodeText.text(areaCode);
|
|
|
|
|
|
$regionSelectList.addClass('hide');
|
|
|
changeHeader();
|
|
|
});
|
|
|
|
|
|
$regionCodeText.text($this.val());
|
|
|
// 选择图家头
|
|
|
$regionSelectHeader.on('click', function() {
|
|
|
$regionSelectList.toggleClass('hide');
|
|
|
changeHeader();
|
|
|
});
|
|
|
|
|
|
// 密码
|
...
|
...
|
|