diff --git a/templates/orange/html/book/book_content.html b/templates/orange/html/book/book_content.html index b254f93..8d46d77 100644 --- a/templates/orange/html/book/book_content.html +++ b/templates/orange/html/book/book_content.html @@ -348,6 +348,7 @@ } else if(data.code == 1001){ //未登录 + location.href = '/user/login.html?originUrl='+decodeURIComponent(location.href); }else { layer.alert(data.msg); diff --git a/templates/orange/html/mobile/book/book_content.html b/templates/orange/html/mobile/book/book_content.html index dfa6a02..c601880 100644 --- a/templates/orange/html/mobile/book/book_content.html +++ b/templates/orange/html/mobile/book/book_content.html @@ -341,6 +341,8 @@ } else if(data.code == 1001){ //未登录 + location.href = '/user/login.html?originUrl='+decodeURIComponent(location.href); + }else { layer.alert(data.msg);