fix login $http

master
luoyang 5 years ago
parent c903eea8da
commit 7d3e242295

@ -353,14 +353,19 @@
function getGeekSsoLoginUrl() {
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;
window.open(url, '_blank');
location.href = '/index.html';
}, function (resp) {
},
error: function (resp) {
console.log(resp.data.message)
location.href = '/index.html';
});
}
})
};
$('#forgetPassword-btn').click(function () {

@ -334,14 +334,19 @@
function getGeekSsoLoginUrl() {
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;
window.open(url, '_blank');
location.href = '/index.html';
}, function (resp) {
},
error: function (resp) {
console.log(resp.data.message)
location.href = '/index.html';
});
}
})
};
$('#forgetPassword-btn').click(function () {

Loading…
Cancel
Save