123456789101112131415161718192021222324252627282930 |
- var app = getApp();
- var that;
- Page({
- data: {},
- onLoad() {
- that = this;
- that.loginAll();
- },
- loginAll(){
- // dd.showLoading();
- app.login(app.globalData.corpId, function (is) {
- if(is){
- // dd.hideLoading();
- dd.reLaunch({
- url: '../workbench/index/index'
- })
- } else {
- dd.reLaunch({
- url: '../workbench/noJurisdiction/noJurisdiction'
- })
- }
- },function(code){
- if(code==2001){
- setTimeout(function(){
- that.loginAll();
- }, 3000);
- }
- })
- },
- });
|