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: '/client/partner_info/incremental_service/RP跨境商城/login_token',
method: 'get',
success: function (res) {
url += res.data.token; url += res.data.token;
window.open(url, '_blank'); window.open(url, '_blank');
location.href = '/index.html'; location.href = '/index.html';
}, function (resp) { },
error: function (resp) {
console.log(resp.data.message) console.log(resp.data.message)
location.href = '/index.html'; 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: '/client/partner_info/incremental_service/RP跨境商城/login_token',
method: 'get',
success: function (res) {
url += res.data.token; url += res.data.token;
window.open(url, '_blank'); window.open(url, '_blank');
location.href = '/index.html'; location.href = '/index.html';
}, function (resp) { },
error: function (resp) {
console.log(resp.data.message) console.log(resp.data.message)
location.href = '/index.html'; location.href = '/index.html';
}); }
})
}; };
$('#forgetPassword-btn').click(function () { $('#forgetPassword-btn').click(function () {

Loading…
Cancel
Save