|
|
@@ -26,7 +26,21 @@ function login(event) {
|
|
|
function logout() {
|
|
|
$.get('account/logout', function(data) {
|
|
|
if(data.success) {
|
|
|
- window.location.reload();
|
|
|
+ logoutUuzc();
|
|
|
+ setTimeout("window.location.reload()", 200);
|
|
|
+ }
|
|
|
+ });
|
|
|
+}
|
|
|
+
|
|
|
+function logoutUuzc() { // 通知众创登出
|
|
|
+ var url = 'http://login.uuzcc.com/index/ubtob/logout';
|
|
|
+ $.ajax(url, {
|
|
|
+ dataType: 'jsonp',
|
|
|
+ crossDomain: true,
|
|
|
+ success: function(data) {
|
|
|
+ if(data && data.resultcode == '200'){
|
|
|
+ console.log(data.result.today);
|
|
|
+ }
|
|
|
}
|
|
|
});
|
|
|
}
|