Authored by unknown

ajax登录js修改

@@ -220,8 +220,8 @@ $.ajax({ @@ -220,8 +220,8 @@ $.ajax({
220 if (data.code === 200){ 220 if (data.code === 200){
221 data = data.data; 221 data = data.data;
222 userName = data.profile_name; 222 userName = data.profile_name;
223 - uid = data.message.uid;  
224 - token = data.message.token; 223 + uid = data.uid;
  224 + token = data.token;
225 loginHtml = '<span>Hi,</span><a class="user-name" href="http://m.yohobuy.com/home?tmp=' + Math.random()+'">' + userName + '</a>' + 225 loginHtml = '<span>Hi,</span><a class="user-name" href="http://m.yohobuy.com/home?tmp=' + Math.random()+'">' + userName + '</a>' +
226 '<a href="http://m.yohobuy.com/passport/signout/index?token=4f4fcaa66f34fe2e3156e6d85f8ea897">退出</a>' + 226 '<a href="http://m.yohobuy.com/passport/signout/index?token=4f4fcaa66f34fe2e3156e6d85f8ea897">退出</a>' +
227 '<span class="back-to-top">Back to top<i class="iconfont">&#xe608;</i></span>'; 227 '<span class="back-to-top">Back to top<i class="iconfont">&#xe608;</i></span>';