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
eec36560
Commit
eec36560
authored
Jan 23, 2018
by
刘丹
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
列表
parent
bea8e483
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
72 additions
and
15 deletions
+72
-15
houseList.html
application/index/view/houses/houseList.html
+0
-0
home.css
public/resource/css/home.css
+25
-2
houseList.js
public/resource/js/houseList.js
+6
-6
house_template_tpl.html
public/resource/template/house_template_tpl.html
+41
-7
No files found.
application/index/view/houses/houseList.html
View file @
eec36560
This diff is collapsed.
Click to expand it.
public/resource/css/home.css
View file @
eec36560
...
...
@@ -82,4 +82,28 @@ body{
}
.img_header
{
width
:
55px
;
height
:
47px
;
margin
:
0
auto
;
}
\ No newline at end of file
}
/*设置案场权限人*/
#modal_panf1
{
width
:
100%
;
height
:
100%
;
background
:
rgba
(
0
,
0
,
0
,
0.6
);
position
:
fixed
;
z-index
:
1
;
top
:
0
;
left
:
0
;
bottom
:
0
;
display
:
none
;
}
.modal_con
{
width
:
600px
;
height
:
500px
;
margin
:
0
auto
;
background
:
#ffffff
;
margin-top
:
100px
;
position
:
relative
;
}
.imagebox
img
{
width
:
110px
;
height
:
80px
;
}
public/resource/js/houseList.js
View file @
eec36560
...
...
@@ -2,7 +2,7 @@
* Created by 刘丹 on 2017/12/11.
*/
define
([
'doT'
,
'text!temp/
business_district
_template_tpl.html'
,
'css!style/home.css'
,
'pagination'
,
'bootstrapJs'
],
function
(
doT
,
template
)
{
define
([
'doT'
,
'text!temp/
house
_template_tpl.html'
,
'css!style/home.css'
,
'pagination'
,
'bootstrapJs'
],
function
(
doT
,
template
)
{
business
=
{
pageNo
:
1
,
/*第几页*/
pageSize
:
10
,
/*每页显示多少条*/
...
...
@@ -52,12 +52,12 @@ define (['doT', 'text!temp/business_district_template_tpl.html', 'css!style/home
var
params
=
{};
params
.
id
=
$
(
this
).
attr
(
"data-id"
);
var
str
=
$
.
trim
(
$
(
this
).
html
());
if
(
str
===
"
不显示
"
)
{
if
(
str
===
"
推荐至首页
"
)
{
params
.
type
=
1
;
$
(
this
).
html
(
'
显示
'
);
$
(
this
).
html
(
'
已推荐
'
);
}
else
{
params
.
type
=
0
;
$
(
this
).
html
(
'
不显示
'
);
$
(
this
).
html
(
'
推荐至首页
'
);
}
});
},
...
...
@@ -86,7 +86,7 @@ define (['doT', 'text!temp/business_district_template_tpl.html', 'css!style/home
data
:
params
,
dataType
:
'json'
,
success
:
function
(
data
)
{
var
temp
=
document
.
getElementById
(
'
business
_list_tpl'
).
innerHTML
;
var
temp
=
document
.
getElementById
(
'
house
_list_tpl'
).
innerHTML
;
var
doTtmpl
=
doT
.
template
(
temp
);
$
(
"#business_list"
).
html
(
doTtmpl
(
data
.
data
.
list
));
...
...
@@ -104,7 +104,7 @@ define (['doT', 'text!temp/business_district_template_tpl.html', 'css!style/home
},
delBusiness
:
function
()
{
$
.
ajax
({
url
:
'/index/
delBusinessDistrict.htm
l'
,
url
:
'/index/
houseDe
l'
,
type
:
'POST'
,
async
:
true
,
data
:
{
"id"
:
business
.
id
},
...
...
public/resource/template/house_template_tpl.html
View file @
eec36560
...
...
@@ -3,17 +3,51 @@
[
%
for
(
var
item
in
it
){
%
]
<
tr
class
=
"text-center"
>
<
td
>
[
%=
it
[
item
][
'id'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'title'
]
%
]
<
/td
>
<
td
>
[
%
if
(
it
[
item
][
'description'
])
{
%
]
[
%=
it
[
item
][
'description'
]
%
]
[
%
if
(
it
[
item
][
"shop_type"
]
==
0
)
{
%
]
商场
[
%
}
else
{
%
]
街铺
[
%
}
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
"status"
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'internal_title'
]
%
]
<
/td
>
<
td
>
<
a
title
=
"编辑"
class
=
"btn btn-success btn-xs"
href
=
"/admin.php/index/roleedit?id=[%= it[item]['id']%].html"
style
=
"margin-right:6px;"
>
编辑
<
/a
>
<
a
title
=
"权限分配"
class
=
"btn btn-info btn-xs"
href
=
"/admin.php/index/access?id=[%= it[item]['id']%].html"
style
=
"margin-right:6px;"
>
权限分配
<
/a
>
<
a
title
=
"成员授权"
class
=
"btn btn-primary btn-xs"
href
=
"/admin.php/index/accessUser?id=[%= it[item]['id']%].html"
style
=
"margin-right:6px;"
>
成员授权
<
/a
>
[
%
if
(
it
[
item
][
"rent_price"
]
==
0
)
{
%
]
30000
以上
[
%
}
else
if
(
it
[
item
][
"rent_price"
]
==
1
)
{
%
]
10000
-
30000
[
%
}
else
{
%
]
10000
以下
[
%
}
%
]
<
/td
>
<
td
>
[
%
if
(
it
[
item
][
"is_show"
]
==
0
)
{
%
]
是
[
%
}
else
{
%
]
否
[
%
}
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'create_time'
]
%
]
<
/td
>
<
td
>
[
%
if
(
it
[
item
][
"leased"
]
==
0
)
{
%
]
已租
[
%
}
else
{
%
]
待租
[
%
}
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'dish_name'
]
%
]
<
a
data
-
toggle
=
"modal"
data
-
id
=
"77"
href
=
"#modal-watch"
class
=
"btn1 btn-danger add_applies"
>
修改
<
/a
>
<
/td
>
<
td
>
<
a
class
=
"btn1 btn-success "
href
=
"/admin.php/index/houseEdit?id=[%= it[item]['id']%].html"
data
-
toggle
=
"modal"
data
-
id
=
"77"
onclick
=
"alertFollow(this)"
>
编辑
<
/a
>
<
a
class
=
"btn1 btn-success is_show"
href
=
"#modal-process"
data
-
toggle
=
"modal"
data
-
id
=
"77"
onclick
=
"alertFollow(this)"
>
推荐至首页
<
/a
>
<
a
class
=
"btn1 btn-success modal_anch"
href
=
"#modal_panf1"
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
>
设置案场权限人
<
/a
>
<
a
class
=
"btn1 btn-success "
href
=
"#modal-process"
data
-
toggle
=
"modal"
data
-
id
=
"77"
onclick
=
"alertFollow(this)"
>
是否独家
<
/a
>
<
a
class
=
"btn1 btn-success "
href
=
"#modal-process"
data
-
toggle
=
"modal"
data
-
id
=
"77"
onclick
=
"alertFollow(this)"
>
操作记录
<
/a
>
<
a
data
-
toggle
=
"modal"
data
-
id
=
'[%= it[item]["id"] %]'
href
=
"#modal-delete"
class
=
"btn1 btn-danger add_applies del_modal"
>
删除
<
/a
>
<
/td
>
<
/tr
>
[
%
}
%
]
...
...
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