Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tl_estate
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hujun
tl_estate
Commits
0b393ea7
Commit
0b393ea7
authored
Jan 15, 2019
by
zw
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'test'
parents
3b96586e
31134c23
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
21 additions
and
14 deletions
+21
-14
baidu_send.html
application/app/view/index/baidu_send.html
+2
-2
Basic.php
application/index/extend/Basic.php
+12
-9
h57@2x.png
public/app/images/h57@2x.png
+0
-0
mainIndex.js
public/resource/js/mainIndex.js
+6
-2
checkLoginFailureAjax.js
public/resource/lib/js/checkLoginFailureAjax.js
+1
-1
No files found.
application/app/view/index/baidu_send.html
View file @
0b393ea7
...
...
@@ -171,7 +171,7 @@
<div
class=
"header_img"
class=
"overflow"
>
<img
src=
"/app/images/h57@2x.png"
class=
"w-h-100"
/>
</div>
<div
class=
"shop_img_data overflow"
>
<
!--<
div class="shop_img_data overflow">
<div class="w-50 ">
<div style="text-align:center;margin-left:.7rem;">
<img src="/app/images/h59@2x.png" style="width:1.86rem;"/>
...
...
@@ -186,7 +186,7 @@
<div><span style="color:#F79130 ; font-size:0.22rem;">上周成交量</span></div>
</div>
</div>
</div>
</div>
-->
<div
class=
"text-area overflow"
>
<img
src=
"/app/images/h5@2x.png"
class=
"desc_title overflow"
/>
<div
class=
"left_radio overflow"
>
...
...
application/index/extend/Basic.php
View file @
0b393ea7
...
...
@@ -230,7 +230,8 @@ class Basic extends Controller
if
(
$this
->
request
->
isAjax
()){
//echo json_encode(array( "code" => "300", "msg" => "没有权限!", "data" => [], "type" => "json" ));exit;
}
else
{
$this
->
error
(
'没有当前页面权限'
);
exit
;
// $this->error('没有当前页面权限');exit;
echo
json_encode
(
array
(
"code"
=>
"101"
,
"msg"
=>
"没有当前页面权限"
,
"data"
=>
[],
"type"
=>
"json"
));
exit
;
}
}
}
...
...
@@ -244,21 +245,23 @@ class Basic extends Controller
public
function
userVerify
(){
$this
->
lastLoginTime
=
Session
::
get
(
"lastLoginTime"
);
if
(
empty
(
$this
->
userName
)
||
empty
(
$this
->
userId
)
||
empty
(
$this
->
lastLoginTime
)
){
if
(
$this
->
request
->
isAjax
())
{
echo
json_encode
(
array
(
"code"
=>
"101"
,
"msg"
=>
"登录失效,请重新登录"
,
"data"
=>
[],
"type"
=>
"json"
));
exit
;
}
else
{
$this
->
redirect
(
'/index/login'
);
}
// if ($this->request->isAjax()) {
// echo json_encode(array( "code" => "101", "msg" => "登录失效,请重新登录", "data" => [], "type" => "json" ));exit;
// } else {
// $this->redirect('/index/login');
// }
}
$time
=
time
();
//登录有效期判断
if
((
$time
-
$this
->
lastLoginTime
)
>
36000
)
{
if
(
$this
->
request
->
isAjax
())
{
echo
json_encode
(
array
(
"code"
=>
"101"
,
"msg"
=>
"登录失效,请重新登录"
,
"data"
=>
[],
"type"
=>
"json"
));
exit
;
}
else
{
$this
->
redirect
(
'/index/login'
);
die
;
}
// if ($this->request->isAjax()) {
// echo json_encode(array( "code" => "101", "msg" => "登录失效,请重新登录", "data" => [], "type" => "json" ));exit;
// } else {
// $this->redirect('/index/login');die;
// }
}
else
{
//更新时间
Session
::
set
(
"lastLoginTime"
,
$time
);
...
...
public/app/images/h57@2x.png
View replaced file @
3b96586e
View file @
0b393ea7
214 KB
|
W:
|
H:
214 KB
|
W:
|
H:
2-up
Swipe
Onion skin
public/resource/js/mainIndex.js
View file @
0b393ea7
...
...
@@ -24,8 +24,12 @@ define (['doT', 'text!temp/menu_template_tpl.html','ckfinder','ckfinderStart', '
var
sceenWidth
=
window
.
screen
.
width
<
1200
?
1200
:
window
.
screen
.
width
;
var
width
=
sceenWidth
-
$
(
'#sidebar-wrapper'
).
width
()
+
"px !important"
;
var
sceen
=
sceenWidth
+
"px !important"
;
if
(
sceenWidth
==
1200
){
$
(
'#mainFrameTabs'
).
attr
(
"style"
,
"width:1023px !important"
);
}
else
{
$
(
'#mainFrameTabs'
).
attr
(
"style"
,
"min-width:1023px !important"
);
}
$
(
'#mainFrameTabs'
).
attr
(
"style"
,
"min-width:959px !important"
);
$
(
'#wrapper'
).
attr
(
"style"
,
"min-width:"
+
sceen
);
$
(
'#headTileNavBar'
).
attr
(
"style"
,
"min-width:"
+
sceen
);
menu_bar
(
function
(){
...
...
@@ -73,7 +77,7 @@ define (['doT', 'text!temp/menu_template_tpl.html','ckfinder','ckfinderStart', '
//登录时间无效 直接跳转登录页面
if
(
!
user_info_obj
){
alert
(
'登录失效,请您重新登录'
);
window
.
location
.
href
=
"login.html"
;
//
window.location.href="login.html";
}
$
(
"#menu_bar"
).
append
(
template
);
if
(
user_info_obj
)
{
...
...
public/resource/lib/js/checkLoginFailureAjax.js
View file @
0b393ea7
...
...
@@ -8,7 +8,7 @@ function checkLogin(){
success
:
function
(
data
)
{
if
(
data
.
code
==
300
){
alert
(
'登录失效,请您重新登录'
);
window
.
location
.
href
=
"login.html"
;
//
window.location.href="login.html";
}
}
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment