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
93f45068
Commit
93f45068
authored
Sep 04, 2018
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
商铺列表 锁盘
parent
946028ad
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
45 additions
and
2 deletions
+45
-2
houseList.js
public/resource/js/houseList.js
+38
-1
house_template_tpl.html
public/resource/template/house_template_tpl.html
+7
-1
No files found.
public/resource/js/houseList.js
View file @
93f45068
...
...
@@ -227,7 +227,44 @@ define(['doT', 'text!temp/house_template_tpl.html', 'css!style/home.css', 'ckfin
}
});
});
//锁盘 接口
//锁盘 取消锁盘
$
(
document
).
delegate
(
".is_show_lock_plate"
,
"click"
,
function
()
{
//点击禁用
if
(
!
confirm
(
'是否继续?'
))
{
return
;
}
business
.
house_id
=
$
(
this
).
attr
(
"data-id"
);
var
params
=
{
};
params
.
id
=
$
(
this
).
attr
(
"data-id"
);
var
str
=
$
.
trim
(
$
(
this
).
html
());
if
(
str
==
"锁盘"
)
{
$
(
this
).
attr
(
'class'
,
'btn1 btn-default is_show_lock_plate'
);
params
.
type
=
1
;
$
(
this
).
html
(
'已锁盘'
);
}
else
if
(
str
==
"已锁盘"
)
{
$
(
this
).
attr
(
'class'
,
'btn1 btn-info is_show_lock_plate'
);
params
.
type
=
0
;
$
(
this
).
html
(
'锁盘'
);
}
else
{
}
checkLogin
();
var
user_info_obj
=
JSON
.
parse
(
decodeURIComponent
(
localStorage
.
getItem
(
'pcUserInfo'
)));
//读取缓存
$
.
ajax
({
//禁用
'type'
:
'POST'
,
'url'
:
'/index/lockHouse'
,
//商铺锁盘,取消锁盘
data
:
{
"is_lock"
:
params
.
type
,
"house_id"
:
business
.
house_id
},
dataType
:
"json"
,
success
:
function
(
data
)
{
if
(
data
.
code
!=
200
)
{
alert
(
data
.
msg
)
}
}
});
});
//城市 区域 二级联动 筛选
_doc
.
on
(
'input'
,
'#user_city_choose'
,
function
()
{
...
...
public/resource/template/house_template_tpl.html
View file @
93f45068
<script
id=
"house_list_tpl"
type=
"text/template"
>
[
%
var
sw
=
function
(
s
){
switch
(
Number
(
s
)){
case
2
:
return
"btn-info"
;
case
1
:
return
"btn-default"
}};
%
]
[
%
var
sw2
=
function
(
s
){
switch
(
Number
(
s
)){
case
0
:
return
"btn-info"
;
case
1
:
return
"btn-default"
}};
%
]
[
%
if
(
it
)
{
%
]
[
%
for
(
var
item
in
it
){
%
]
<
tr
class
=
"text-center"
>
...
...
@@ -91,8 +93,12 @@
<
a
class
=
"btn1 btn-success anch"
data
-
target
=
"#modal-anch"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
>
设置案场权限人
<
/a
>
[
%
}
%
]
-->
<
a
class
=
"btn1 btn-success is_show_lock_plate btn-default-hide-display"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
>
<
a
class
=
"btn1 is_show_lock_plate btn-default-hide-display [%= sw2(it[item]['is_lock']) %]"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
>
[
%
if
(
it
[
item
][
"is_lock"
]
==
0
)
{
%
]
锁盘
[
%
}
else
if
(
it
[
item
][
"is_lock"
]
==
1
)
{
%
]
已锁盘
[
%
}
%
]
<
/a
>
[
%
if
(
check_auth
(
"index/editExclusive"
)
||
it
[
item
][
"is_exclusive_type"
]
==
0
||
it
[
item
][
"auth_edit_exclusive"
]
==
1
)
{
%
]
...
...
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