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
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
142 additions
and
55 deletions
+142
-55
houseList.html
application/index/view/houses/houseList.html
+71
-42
home.css
public/resource/css/home.css
+24
-0
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
...
@@ -36,23 +36,23 @@
...
@@ -36,23 +36,23 @@
<option
value=
"1"
>
否
</option>
<option
value=
"1"
>
否
</option>
</select>
</select>
<select
class=
"form-control btn2"
id=
"shop_type"
>
<select
class=
"form-control btn2"
id=
"shop_type"
>
<option
class=
"successModel"
>
商铺类型
</option>
<option
value=
""
class=
"successModel"
>
商铺类型
</option>
<option
value=
"0"
>
商场
</option>
<option
value=
"0"
>
商场
</option>
<option
value=
"1"
>
街铺
</option>
<option
value=
"1"
>
街铺
</option>
</select>
</select>
<select
class=
"form-control btn2"
id=
"leased"
>
<select
class=
"form-control btn2"
id=
"leased"
>
<option
class=
"successModel"
>
商铺状态
</option>
<option
value=
""
class=
"successModel"
>
商铺状态
</option>
<option
value=
"0"
>
已租
</option>
<option
value=
"0"
>
已租
</option>
<option
value=
"1"
>
待租
</option>
<option
value=
"1"
>
待租
</option>
</select>
</select>
<select
class=
"form-control btn2"
id=
"rent_price"
>
<select
class=
"form-control btn2"
id=
"rent_price"
>
<option
class=
"successModel"
>
月租金
</option>
<option
value=
""
class=
"successModel"
>
月租金
</option>
<option
value=
"2"
>
10000以下
</option>
<option
value=
"2"
>
10000以下
</option>
<option
value=
"1"
>
10000-30000
</option>
<option
value=
"1"
>
10000-30000
</option>
<option
value=
"0"
>
30000以上
</option>
<option
value=
"0"
>
30000以上
</option>
</select>
</select>
<select
class=
"form-control btn2"
id=
"is_exclusive_type"
>
<select
class=
"form-control btn2"
id=
"is_exclusive_type"
>
<option
class=
"successModel"
>
是否独家
</option>
<option
value=
""
class=
"successModel"
>
是否独家
</option>
<option
value=
"1"
>
是
</option>
<option
value=
"1"
>
是
</option>
<option
value=
"0"
>
否
</option>
<option
value=
"0"
>
否
</option>
</select>
</select>
...
@@ -87,44 +87,27 @@
...
@@ -87,44 +87,27 @@
</tr>
</tr>
</thead>
</thead>
<tbody
class=
"text-center"
id=
"business_list"
>
<tbody
class=
"text-center"
id=
"business_list"
>
<tr>
<!--<tr>-->
<td>
212
</td>
<!--<td>212</td>-->
<td>
商场
</td>
<!--<td>商场</td>-->
<td>
长兴
</td>
<!--<td>长兴</td>-->
<td>
1000
</td>
<!--<td>1000</td>-->
<td>
是
</td>
<!--<td>是</td>-->
<td>
2018-01-16 17:02:00
</td>
<!--<td>2018-01-16 17:02:00</td>-->
<td>
已租
</td>
<!--<td>已租</td>-->
<td>
张娜张
<!--<td>张娜张-->
<a
data-toggle=
"modal"
data-id=
"77"
href=
"#modal-watch"
class=
"btn1 btn-danger add_applies"
>
修改
</a>
<!--<a data-toggle="modal" data-id="77" href="#modal-watch" class="btn1 btn-danger add_applies">修改</a>-->
</td>
<!--</td>-->
<td>
<!--<td>-->
<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
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
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
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
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=
"77"
href=
"#modal-watch"
class=
"btn1 btn-danger add_applies"
onclick=
"delete_house(4720)"
>
删除
</a>
<!--<a data-toggle="modal" data-id="77" href="#modal-watch" class="btn1 btn-danger add_applies" onclick="delete_house(4720)">删除</a>-->
</td>
<!--</td>-->
</tr>
<!--</tr>-->
<tr>
<td>
12
</td>
<td>
街铺
</td>
<td>
大地
</td>
<td>
1000-32222
</td>
<td>
是
</td>
<td>
2018-01-16 17:02:00
</td>
<td>
已租
</td>
<td>
张娜
</td>
<td>
<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
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
class=
"btn1 btn-success "
href=
"#modal-process"
data-toggle=
"modal"
data-id=
"77"
onclick=
"alertFollow(this)"
>
操作记录
</a>
<a
data-toggle=
"modal"
data-id=
"77"
href=
"#modal-watch"
class=
"btn1 btn-danger add_applies"
>
删除
</a>
</td>
</tr>
</table>
</table>
</div>
</div>
</div>
</div>
...
@@ -145,3 +128,48 @@
...
@@ -145,3 +128,48 @@
</div>
</div>
</div>
</div>
</div>
</div>
<div
class=
"modal fade"
id=
"modal-delete"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"myModalLabel"
aria-hidden=
"true"
>
<div
class=
"modal-dialog"
>
<div
class=
"modal-content"
>
<div
class=
"modal-header"
>
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
aria-hidden=
"true"
>
×
</button>
<h4
class=
"modal-title"
>
删除
</h4>
</div>
<div
class=
"modal-body"
>
<div
class=
"modal-body"
id=
"del_msg"
>
确认删除吗?
</div>
</div>
<div
class=
"modal-footer"
>
<button
type=
"button"
class=
"btn btn-default"
data-dismiss=
"modal"
>
关闭
</button>
<button
type=
"button"
class=
"btn btn-primary"
id=
"confirm_delete"
>
删除
</button>
</div>
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal -->
</div>
<!--设置案场权限人-->
<div
id=
"modal_panf1"
>
<div
class=
"modal_con"
>
<div
class=
"modal-header"
>
<button
class=
"close"
data-dismiss=
"modal"
type=
"button"
>
×
</button>
<h3>
设置案场权限人
</h3>
</div>
<form
action=
"/Houseinfos/agent_prv"
method=
"POST"
id=
"submit_agent"
>
<div
class=
"jian_class"
><input
type=
"hidden"
value=
"59"
><input
name=
"phone[]"
placeholder=
"请输入"
type=
"tel"
style=
"margin-left: 10px;float: left"
class=
"phone_add"
><ul
class=
"phone_list1"
></ul><img
src=
"/mobile4.0/images/qdao-sha.png"
class=
"jian"
></div>
<img
src=
"/mobile4.0/images/jia2@2x.png"
class=
"jia"
onclick=
"jiabox()"
>
<input
type=
"hidden"
name=
"houseinfos_id"
class=
"houseinfos_id"
value=
"4720"
>
</form>
<div
class=
"modal-footer"
>
<button
class=
"btn"
id=
"modal_hide1"
>
关闭
</button>
<button
class=
"btn btn-primary"
type=
"submit"
id=
"edituserbtnid6"
>
保存
</button>
</div>
</div>
</div>
\ No newline at end of file
public/resource/css/home.css
View file @
eec36560
...
@@ -83,3 +83,27 @@ body{
...
@@ -83,3 +83,27 @@ body{
.img_header
{
.img_header
{
width
:
55px
;
height
:
47px
;
margin
:
0
auto
;
width
:
55px
;
height
:
47px
;
margin
:
0
auto
;
}
}
/*设置案场权限人*/
#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 @@
...
@@ -2,7 +2,7 @@
* Created by 刘丹 on 2017/12/11.
* 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
=
{
business
=
{
pageNo
:
1
,
/*第几页*/
pageNo
:
1
,
/*第几页*/
pageSize
:
10
,
/*每页显示多少条*/
pageSize
:
10
,
/*每页显示多少条*/
...
@@ -52,12 +52,12 @@ define (['doT', 'text!temp/business_district_template_tpl.html', 'css!style/home
...
@@ -52,12 +52,12 @@ define (['doT', 'text!temp/business_district_template_tpl.html', 'css!style/home
var
params
=
{};
var
params
=
{};
params
.
id
=
$
(
this
).
attr
(
"data-id"
);
params
.
id
=
$
(
this
).
attr
(
"data-id"
);
var
str
=
$
.
trim
(
$
(
this
).
html
());
var
str
=
$
.
trim
(
$
(
this
).
html
());
if
(
str
===
"
不显示
"
)
{
if
(
str
===
"
推荐至首页
"
)
{
params
.
type
=
1
;
params
.
type
=
1
;
$
(
this
).
html
(
'
显示
'
);
$
(
this
).
html
(
'
已推荐
'
);
}
else
{
}
else
{
params
.
type
=
0
;
params
.
type
=
0
;
$
(
this
).
html
(
'
不显示
'
);
$
(
this
).
html
(
'
推荐至首页
'
);
}
}
});
});
},
},
...
@@ -86,7 +86,7 @@ define (['doT', 'text!temp/business_district_template_tpl.html', 'css!style/home
...
@@ -86,7 +86,7 @@ define (['doT', 'text!temp/business_district_template_tpl.html', 'css!style/home
data
:
params
,
data
:
params
,
dataType
:
'json'
,
dataType
:
'json'
,
success
:
function
(
data
)
{
success
:
function
(
data
)
{
var
temp
=
document
.
getElementById
(
'
business
_list_tpl'
).
innerHTML
;
var
temp
=
document
.
getElementById
(
'
house
_list_tpl'
).
innerHTML
;
var
doTtmpl
=
doT
.
template
(
temp
);
var
doTtmpl
=
doT
.
template
(
temp
);
$
(
"#business_list"
).
html
(
doTtmpl
(
data
.
data
.
list
));
$
(
"#business_list"
).
html
(
doTtmpl
(
data
.
data
.
list
));
...
@@ -104,7 +104,7 @@ define (['doT', 'text!temp/business_district_template_tpl.html', 'css!style/home
...
@@ -104,7 +104,7 @@ define (['doT', 'text!temp/business_district_template_tpl.html', 'css!style/home
},
},
delBusiness
:
function
()
{
delBusiness
:
function
()
{
$
.
ajax
({
$
.
ajax
({
url
:
'/index/
delBusinessDistrict.htm
l'
,
url
:
'/index/
houseDe
l'
,
type
:
'POST'
,
type
:
'POST'
,
async
:
true
,
async
:
true
,
data
:
{
"id"
:
business
.
id
},
data
:
{
"id"
:
business
.
id
},
...
...
public/resource/template/house_template_tpl.html
View file @
eec36560
...
@@ -3,17 +3,51 @@
...
@@ -3,17 +3,51 @@
[
%
for
(
var
item
in
it
){
%
]
[
%
for
(
var
item
in
it
){
%
]
<
tr
class
=
"text-center"
>
<
tr
class
=
"text-center"
>
<
td
>
[
%=
it
[
item
][
'id'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'id'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'title'
]
%
]
<
/td
>
<
td
>
<
td
>
[
%
if
(
it
[
item
][
'description'
])
{
%
]
[
%
if
(
it
[
item
][
"shop_type"
]
==
0
)
{
%
]
[
%=
it
[
item
][
'description'
]
%
]
商场
[
%
}
else
{
%
]
街铺
[
%
}
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'internal_title'
]
%
]
<
/td
>
<
td
>
[
%
if
(
it
[
item
][
"rent_price"
]
==
0
)
{
%
]
30000
以上
[
%
}
else
if
(
it
[
item
][
"rent_price"
]
==
1
)
{
%
]
10000
-
30000
[
%
}
else
{
%
]
10000
以下
[
%
}
%
]
[
%
}
%
]
<
/td
>
<
/td
>
<
td
>
[
%=
it
[
item
][
"status"
]
%
]
<
/td
>
<
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
>
[
%
if
(
it
[
item
][
"is_show"
]
==
0
)
{
%
]
<
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
>
[
%
}
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
>
<
/td
>
<
/tr
>
<
/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