Authored by 2586703@qq.com

登录ajax修改

... ... @@ -113,13 +113,13 @@ var tips = require("./tips");;
var account = $('.yoho-account').val();
var password = $('.yoho-pwd').val();
$.ajax({
type: 'POST',
url: YohoConfig.mainUrl + '/passport/partner/yoho',
data: {
'account': account,
'password': password
},
dataType: 'jsonp',
jsonp: 'callback'
success: function(response) {
if (response && response.status && response.data) {
var userName;
... ... @@ -280,9 +280,9 @@ var tips = require("./tips");;
}
$.ajax({
type: 'GET',
url: YohoConfig.mainUrl + '/passport/partner/logout',
dataType: 'json'
dataType: 'jsonp',
jsonp: 'callback'
});
},
... ...