Authored by 2586703@qq.com

登录ajax修改

@@ -113,13 +113,13 @@ var tips = require("./tips");; @@ -113,13 +113,13 @@ var tips = require("./tips");;
113 var account = $('.yoho-account').val(); 113 var account = $('.yoho-account').val();
114 var password = $('.yoho-pwd').val(); 114 var password = $('.yoho-pwd').val();
115 $.ajax({ 115 $.ajax({
116 - type: 'POST',  
117 url: YohoConfig.mainUrl + '/passport/partner/yoho', 116 url: YohoConfig.mainUrl + '/passport/partner/yoho',
118 data: { 117 data: {
119 'account': account, 118 'account': account,
120 'password': password 119 'password': password
121 }, 120 },
122 dataType: 'jsonp', 121 dataType: 'jsonp',
  122 + jsonp: 'callback'
123 success: function(response) { 123 success: function(response) {
124 if (response && response.status && response.data) { 124 if (response && response.status && response.data) {
125 var userName; 125 var userName;
@@ -280,9 +280,9 @@ var tips = require("./tips");; @@ -280,9 +280,9 @@ var tips = require("./tips");;
280 } 280 }
281 281
282 $.ajax({ 282 $.ajax({
283 - type: 'GET',  
284 url: YohoConfig.mainUrl + '/passport/partner/logout', 283 url: YohoConfig.mainUrl + '/passport/partner/logout',
285 - dataType: 'json' 284 + dataType: 'jsonp',
  285 + jsonp: 'callback'
286 }); 286 });
287 }, 287 },
288 288