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
6c5c4e1e
Commit
6c5c4e1e
authored
Apr 28, 2018
by
hujun
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/test' into test
parents
e47181b2
b09336b9
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
13 deletions
+11
-13
edit.html
application/index/view/houses/edit.html
+3
-3
edit.js
public/resource/js/edit.js
+0
-0
login.js
public/resource/js/login.js
+1
-1
public.js
public/resource/js/public.js
+7
-9
No files found.
application/index/view/houses/edit.html
View file @
6c5c4e1e
...
@@ -386,9 +386,9 @@
...
@@ -386,9 +386,9 @@
<input
type=
"checkbox"
class=
"yetai"
id=
""
value=
"其他"
>
其他
<input
type=
"checkbox"
class=
"yetai"
id=
""
value=
"其他"
>
其他
</label>
</label>
</li>
</li>
<li
class=
"list-group-item"
>
<li
class=
"list-group-item"
id=
"shangpu_tags_area"
>
<label
for=
""
>
商铺标签(可多选)
</label>
<label
for=
""
>
商铺标签(可多选)
</label>
<label
class=
"checkbox-inline"
>
<
!--<
label class="checkbox-inline">
<input type="checkbox" class="roomTag" id="" value="购物广场" name="shangpu_tags[]">购物广场
<input type="checkbox" class="roomTag" id="" value="购物广场" name="shangpu_tags[]">购物广场
</label>
</label>
<label class="checkbox-inline">
<label class="checkbox-inline">
...
@@ -441,7 +441,7 @@
...
@@ -441,7 +441,7 @@
</label>
</label>
<label class="checkbox-inline">
<label class="checkbox-inline">
<input type="checkbox" class="roomTag" id="" value="40831" name="shangpu_tags[]">40831
<input type="checkbox" class="roomTag" id="" value="40831" name="shangpu_tags[]">40831
</label>
</label>
-->
</li>
</li>
<li
class=
"list-group-item"
>
<li
class=
"list-group-item"
>
<div
class=
"form-group"
id=
"li_landlord_phone_input"
>
<div
class=
"form-group"
id=
"li_landlord_phone_input"
>
...
...
public/resource/js/edit.js
View file @
6c5c4e1e
This diff is collapsed.
Click to expand it.
public/resource/js/login.js
View file @
6c5c4e1e
...
@@ -45,7 +45,7 @@ $(function(){
...
@@ -45,7 +45,7 @@ $(function(){
success
:
function
(
data
)
{
success
:
function
(
data
)
{
if
(
typeof
data
===
'object'
)
{
if
(
typeof
data
===
'object'
)
{
if
(
data
.
code
==
200
)
{
if
(
data
.
code
==
200
)
{
localStorage
.
setItem
(
'user_info'
,
JSON
.
stringify
(
data
.
data
));
sessionStorage
.
setItem
(
'pcUserInfo'
,
encodeURIComponent
(
JSON
.
stringify
(
data
.
data
)));
//存储PC后台登录用户所有信息
location
.
href
=
'/admin.php/index/banner'
;
location
.
href
=
'/admin.php/index/banner'
;
}
else
{
}
else
{
alert
(
data
[
'msg'
]);
alert
(
data
[
'msg'
]);
...
...
public/resource/js/public.js
View file @
6c5c4e1e
...
@@ -29,16 +29,15 @@ define(['doT', 'jquery', 'text!temp/menu_template_tpl.html'], function (doT, $,t
...
@@ -29,16 +29,15 @@ define(['doT', 'jquery', 'text!temp/menu_template_tpl.html'], function (doT, $,t
function
menu_bar
()
{
function
menu_bar
()
{
var
user_info_obj
=
localStorage
.
getItem
(
'user_info'
);
//读取缓存
var
user_info_obj
=
JSON
.
parse
(
decodeURIComponent
(
sessionStorage
.
getItem
(
'pcUserInfo'
))
);
//读取缓存
$
(
"#menu_bar"
).
append
(
template
);
$
(
"#menu_bar"
).
append
(
template
);
if
(
typeof
user_info_obj
===
'string'
)
{
if
(
typeof
user_info_obj
===
'string'
)
{
var
user_info
=
JSON
.
parse
(
user_info_obj
);
var
temp
=
document
.
getElementById
(
'menu_tpl'
).
innerHTML
;
var
temp
=
document
.
getElementById
(
'menu_tpl'
).
innerHTML
;
var
doTtmpl
=
doT
.
template
(
temp
);
var
doTtmpl
=
doT
.
template
(
temp
);
$
(
"#dropdownMenu1"
).
append
(
user_info
[
'name'
]);
$
(
"#dropdownMenu1"
).
append
(
user_info
_obj
[
'name'
]);
$
(
"#menu_bar"
).
html
(
doTtmpl
(
user_info
[
'menu'
]));
$
(
"#menu_bar"
).
html
(
doTtmpl
(
user_info
_obj
[
'menu'
]));
}
else
{
}
else
{
$
.
ajax
({
$
.
ajax
({
...
@@ -58,7 +57,7 @@ define(['doT', 'jquery', 'text!temp/menu_template_tpl.html'], function (doT, $,t
...
@@ -58,7 +57,7 @@ define(['doT', 'jquery', 'text!temp/menu_template_tpl.html'], function (doT, $,t
}
}
$
(
"#logout"
).
click
(
function
()
{
$
(
"#logout"
).
click
(
function
()
{
localStorage
.
removeItem
(
'user_i
nfo'
);
sessionStorage
.
removeItem
(
'pcUserI
nfo'
);
});
});
});
});
function
getUrlParam
(
name
)
{
function
getUrlParam
(
name
)
{
...
@@ -94,12 +93,11 @@ String.prototype.stringFormatObj = function(){
...
@@ -94,12 +93,11 @@ String.prototype.stringFormatObj = function(){
* @returns {boolean}
* @returns {boolean}
*/
*/
function
check_auth
(
auth_rule
)
{
function
check_auth
(
auth_rule
)
{
var
user_info_obj
=
localStorage
.
getItem
(
'user_info'
);
//读取缓存
var
user_info_obj
=
JSON
.
parse
(
decodeURIComponent
(
sessionStorage
.
getItem
(
'pcUserInfo'
)));
//读取缓存
var
user_info
=
JSON
.
parse
(
user_info_obj
);
var
result
=
false
;
var
result
=
false
;
if
(
user_info
.
id
!=
1
)
{
if
(
user_info
_obj
.
id
!=
1
)
{
$
.
each
(
user_info
.
auth
,
function
(
i
,
val
)
{
$
.
each
(
user_info
_obj
.
auth
,
function
(
i
,
val
)
{
if
(
val
[
'name'
]
==
auth_rule
)
{
if
(
val
[
'name'
]
==
auth_rule
)
{
result
=
true
;
result
=
true
;
}
}
...
...
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