1
0
mirror of https://github.com/newnius/YAO-portal.git synced 2025-12-15 09:36:43 +00:00
This commit is contained in:
2019-04-23 16:57:15 +08:00
parent dbfe0c5bb7
commit 75657a7d6d
18 changed files with 396 additions and 123 deletions

View File

@@ -14,12 +14,17 @@ $(function () {
$("#btn-oauth-login").click(function (e) {
e.preventDefault();
var ajax = $.ajax({
url: window.config.BASE_URL + "/service?action=oauth_get_url",
url: window.config.BASE_URL + "/service?action=user_login",
type: 'POST',
data: {}
});
ajax.done(function (res) {
window.location.href = res['url'];
if (res["errno"] !== 0) {
$("#modal-msg-content").html(res["msg"]);
$("#modal-msg").modal('show');
} else {
window.location.pathname = "/ucenter";
}
});
});