|
@@ -1375,16 +1375,21 @@ var dever = {
|
|
|
|
|
|
checkLogin : function(refer) {
|
|
|
if (!this.getToken()) {
|
|
|
- this.data('login_refer', this.getRefer(refer));
|
|
|
-
|
|
|
- if (this.source == 'h5') {
|
|
|
- this.location(this.login, 'go');
|
|
|
- } else {
|
|
|
- this.location(this.login, 'go');
|
|
|
- }
|
|
|
+ this.goLogin(refer);
|
|
|
}
|
|
|
},
|
|
|
|
|
|
+
|
|
|
+ goLogin : function(refer) {
|
|
|
+ this.data('login_refer', this.getRefer(refer));
|
|
|
+
|
|
|
+ if (this.source == 'h5') {
|
|
|
+ this.location(this.login, 'go');
|
|
|
+ } else {
|
|
|
+ this.location(this.login, 'go');
|
|
|
+ }
|
|
|
+ },
|
|
|
+
|
|
|
|
|
|
getRefer : function(refer) {
|
|
|
if (!refer) {
|