|
|
'use strict';
|
|
|
|
|
|
var tip = require('plugin/tip');
|
|
|
var api = require('./api');
|
|
|
|
|
|
var tip, api, checkPoint;
|
|
|
var $countrySelect,
|
|
|
$areaCode,
|
|
|
$nextBtn,
|
|
|
$resetBtn,
|
|
|
$phoneNum;
|
|
|
var page;
|
|
|
|
|
|
require('js/common');
|
|
|
tip = require('plugin/tip');
|
|
|
api = require('./api');
|
|
|
checkPoint = require('./smslogin/check-point');
|
|
|
|
|
|
var page = {
|
|
|
page = {
|
|
|
init: function() {
|
|
|
this.domInit();
|
|
|
this.bindEvent();
|
...
|
...
|
@@ -76,6 +80,7 @@ var page = { |
|
|
})
|
|
|
.done(function(data) {
|
|
|
if (data.code === 200) {
|
|
|
checkPoint('YB_MOBILE_NEXT_C'); // 埋点
|
|
|
$nextBtn.off();
|
|
|
location.href = data.redirect;
|
|
|
} else {
|
...
|
...
|
@@ -88,9 +93,6 @@ var page = { |
|
|
.always(function() {
|
|
|
$nextBtn.prop('disabled', false);
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
};
|
|
|
|
...
|
...
|
|