From 02fd0d7e256885c206684b7fb31b9a689e409745 Mon Sep 17 00:00:00 2001 From: xiongxiaoyang <773861846@qq.com> Date: Mon, 25 Jan 2021 18:10:47 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A8=A1=E7=89=88=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/orange/html/book/book_content.html | 1 + templates/orange/html/mobile/book/book_content.html | 2 ++ 2 files changed, 3 insertions(+) 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);