Authored by 姜敏

修复个人设置手机短信问题

... ... @@ -51,8 +51,8 @@ function uploadImage() {
module.exports = {
swfobject,
uploadImage
swfobject: swfobject,
uploadImage: uploadImage
};
... ...
... ... @@ -11,7 +11,7 @@ var type = types[types.length - 1];// 界面操作类型
var $imgCaptchaInput = $('#captcha');
var second = 60;
var $sms = $('#send-code2');// 发送短信验证码按钮
var area = $('#country-code').text().substring(0);// 地区码
var area = $('#country-code').text().substring(0)||"86";// 地区码
// 发送短信后倒计时显示
var disableSMSBtn = function() {
second -= 1;
... ...
... ... @@ -8,7 +8,7 @@ var dialog = require('../../plugins/dialog');
var _alert = dialog.Alert;
var types = location.pathname.split('/');
var type = types[types.length - 1];// 界面操作类型
var area = $('#country-code').text()||"86";
/**
* 手机号码验证
... ... @@ -35,7 +35,7 @@ $('[placeholder]').placeholder();
// 发送手机验证码
$sms.click(function() {
var mobile = $('#real-mobile').val();
var area = $('#country-code').text();
if ($(this).hasClass('disable')) {
return;
... ... @@ -64,7 +64,6 @@ $sms.click(function() {
$('#mobile-step1').click(function() {
var code = $('#msg-code').val().trim();
var mobile = $('#real-mobile').val();
var area = '+86';
$.ajax({
type: 'POST',
... ...