fix login $http

master
luoyang 5 years ago
parent c903eea8da
commit 7d3e242295

@ -353,14 +353,19 @@
function getGeekSsoLoginUrl() { function getGeekSsoLoginUrl() {
var url = "http://mch.dev.geekforbest.com/#/sso_login?token="; var url = "http://mch.dev.geekforbest.com/#/sso_login?token=";
$http.get("/client/partner_info/incremental_service/RP跨境商城/login_token").then(function (res) { $.ajax({
url += res.data.token; url: '/client/partner_info/incremental_service/RP跨境商城/login_token',
window.open(url, '_blank'); method: 'get',
location.href = '/index.html'; success: function (res) {
}, function (resp) { url += res.data.token;
console.log(resp.data.message) window.open(url, '_blank');
location.href = '/index.html'; location.href = '/index.html';
}); },
error: function (resp) {
console.log(resp.data.message)
location.href = '/index.html';
}
})
}; };
$('#forgetPassword-btn').click(function () { $('#forgetPassword-btn').click(function () {

@ -334,14 +334,19 @@
function getGeekSsoLoginUrl() { function getGeekSsoLoginUrl() {
var url = "http://mch.dev.geekforbest.com/#/sso_login?token="; var url = "http://mch.dev.geekforbest.com/#/sso_login?token=";
$http.get("/client/partner_info/incremental_service/RP跨境商城/login_token").then(function (res) { $.ajax({
url += res.data.token; url: '/client/partner_info/incremental_service/RP跨境商城/login_token',
window.open(url, '_blank'); method: 'get',
location.href = '/index.html'; success: function (res) {
}, function (resp) { url += res.data.token;
console.log(resp.data.message) window.open(url, '_blank');
location.href = '/index.html'; location.href = '/index.html';
}); },
error: function (resp) {
console.log(resp.data.message)
location.href = '/index.html';
}
})
}; };
$('#forgetPassword-btn').click(function () { $('#forgetPassword-btn').click(function () {

Loading…
Cancel
Save