Authored by xuqi

fix bug of getting mobile & areacode

... ... @@ -9,8 +9,8 @@ module.exports = function(useInRegister) {
var $captcha = $('#captcha'),
$btnNext = $('#btn-next'),
$captchaTip = $('#captcha-tip'),
mobile = $('#mobile').val(),
area = $('#area').val().split('+')[1];
phoneNum = $('#phone-num').val(),
areaCode = $('#area-code').val().split('+')[1];
var api = require('./api');
var tip = require('../plugin/tip');
... ... @@ -54,8 +54,8 @@ module.exports = function(useInRegister) {
type: 'POST',
url: '/passport/' + urlMid + '/sendcode',
data: {
phoneNum: mobile,
areaCode: area
phoneNum: phoneNum,
areaCode: areaCode
},
success: function(data) {
if (data.code === 200) {
... ... @@ -79,8 +79,8 @@ module.exports = function(useInRegister) {
type: 'POST',
url: '/passport/' + urlMid + '/verifycode',
data: {
phoneNum: mobile,
areaCode: area,
phoneNum: phoneNum,
areaCode: areaCode,
code: trim($captcha.val()),
token: $('#token').val()
},
... ...