|

楼主 |
发表于 2018-3-13 11:17:23
|
显示全部楼层
本帖最后由 丿天涯 于 2018-3-13 11:20 编辑
我看平台的代码是这样写的:
- Model.prototype.logout = function(config) {
- debugger;
- config = config || {};
- var self = this;
- if (config.ignoreConfirm || confirm("请您注意,是否打开的功能都保存了,关闭系统将导致没有保存的数据丢失!\r\r您确定要退出吗?")) {
- if(!this.isAgent){
- this.__logined = false;
- this.closeAllAgent();//关闭所有代理
- this.closeAllPage();
- this.closeMainPage();
- this._doLogout();
- this.showLoginDialo();
- }else window.close();//代理时关闭功能
- } else {
- if ((typeof event !== "undefined") && event.type == "hashchange") {
- history.forward();
-
- }
- }
- };
- Model.prototype.showLoginDialog = function() {
- this.beforeLogin();
- thisgetLoginDialo().open();
- };
- Model.prototype.getLoginDialog = function() {
- if (!this._loginDlg) {
- this._loginDlg = new WindowDialog({
- src : this._cfg.loginUR,
- parentNode : this.getRootNode()
- });
- this._loginDlg.on('onReceive', this.loginDialogReceive, this);
- }
- return this._loginDlg;
- };
- var Model = function() {
- this.callParent();
-
- this.waitTaskCount = justep.Bind.observable(0);
- this._cfg = {
- main : {
- show : true,
- xid : 'main',
- url : "$UI/portal/base/main/main.w",
- process : "/portal/process/message/messageProcess",
- activity : "mainActivity",
- title : "首页"
- },
- changePassword : {
- xid : "changePassword",
- url : '$UI/portal/base/changePassword/changePassword.w',
- process : "/portal/process/message/messageProcess",
- activity : "mainActivity",
- title : '修改密码'
- },
- agent : {
- process : "/SA/OPM/system/systemProcess",
- activity : "mainActivity"
- },
- waitTask : {
- count : {
- process : "/portal/process/message/messageProcess",
- activity : "mainActivity",
- action : "queryWaitMessageAction"
- },
- //默认指向任务中心
- url : "$UI/SA/task/taskCenter/mainActivity.a?parameter=waiting",
- process : "/SA/task/taskCenter/taskCenterProcess",
- activity : "mainActivity",
- xid : "waitTask",
- title : '待办任务',
- enabled : false
- },
- loginUR: '$UI/portal/base/login/login.w',
- // loginURL : 'http://localhost:8080/qqq/sso/logout.jsp',
- selectExecutorURL : '$UI/portal/base/dialog/selectExecutor.w',
- iframeFuncURL : '$UI/portal/base/plugin/iframeFunc.w',
- dateTimeFormat:'yyyy-MM-dd hh:mm:ss'
- };
- this._cfg.binds = [ {
- selector : selectors.setPassWord,
- event : 'click',
- func : this.changePassword.bind(this)
- }, {
- selector : selectors.logout,
- event : 'click',
- func : this.logout.bind(this)
- }, {
- selector : selectors.reload,
- event : 'click',
- func : this.reload.bind(this)
- }, {
- selector : selectors.showMainPage,
- event : 'click',
- func : this.showMainPage.bind(this)
- } ];
- this._pages = null;
- this.current = null;
- this._loginDlg = null;
- this._selectExecutorDlg = null;
- this.openedPage = {};
- this.openers = [];
- if (location.hash !== "" && location.hash !== "#!login") {
- this.loginDtd = this.getLoadedDeferred();
- }
- };
复制代码
那平台注销完如何跳转到第三方页面 |
|