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
200c769d
Commit
200c769d
authored
May 03, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
商铺金额搜索
parent
f4d1b721
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
12 deletions
+18
-12
Houses.php
application/index/controller/Houses.php
+3
-3
houseList.html
application/index/view/houses/houseList.html
+4
-4
house_template_tpl.html
public/resource/template/house_template_tpl.html
+11
-5
No files found.
application/index/controller/Houses.php
View file @
200c769d
...
@@ -129,10 +129,10 @@ class Houses extends Basic
...
@@ -129,10 +129,10 @@ class Houses extends Basic
}
}
/*价格 -1表示营业额扣点 存分*/
/*价格 -1表示营业额扣点 存分*/
if
(
$this
->
params
[
'rent_price'
]
!=
NULL
)
{
if
(
$this
->
params
[
'rent_price'
]
!=
NULL
&&
$this
->
params
[
'rent_price'
]
!=
-
1
)
{
switch
(
$this
->
params
[
'rent_price'
])
{
switch
(
$this
->
params
[
'rent_price'
])
{
case
1
:
case
1
:
$where
[
'rent_price'
]
=
[
'
>
'
,
10000
];
$where
[
'rent_price'
]
=
[
'
<=
'
,
10000
];
break
;
break
;
case
2
:
case
2
:
$where
[
'rent_price'
]
=
[
'between'
,
'10000,30000'
];
$where
[
'rent_price'
]
=
[
'between'
,
'10000,30000'
];
...
@@ -181,7 +181,7 @@ class Houses extends Basic
...
@@ -181,7 +181,7 @@ class Houses extends Basic
$where
[
'industry_type'
]
=
[
'LIKE'
,
'%'
.
$this
->
params
[
'industry_type'
]
.
'%'
];
$where
[
'industry_type'
]
=
[
'LIKE'
,
'%'
.
$this
->
params
[
'industry_type'
]
.
'%'
];
}
}
$fields
=
'a.id,a.shop_type,a.internal_title,a.rent_price,a.is_show,a.create_time,a.residue_num'
;
$fields
=
'a.id,a.shop_type,a.internal_title,a.rent_price,a.is_show,a.create_time,a.residue_num
,a.rent_type
'
;
//案场权限人搜索
//案场权限人搜索
if
(
empty
(
$this
->
params
[
'dish'
]))
{
if
(
empty
(
$this
->
params
[
'dish'
]))
{
/*楼盘编号*/
/*楼盘编号*/
...
...
application/index/view/houses/houseList.html
View file @
200c769d
...
@@ -82,10 +82,10 @@
...
@@ -82,10 +82,10 @@
<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
value=
""
class=
"successModel"
>
月租金
</option>
<option
value=
"
-1
"
class=
"successModel"
>
月租金
</option>
<option
value=
"
2
"
>
10000以下
</option>
<option
value=
"
1
"
>
10000以下
</option>
<option
value=
"
1
"
>
10000-30000
</option>
<option
value=
"
2
"
>
10000-30000
</option>
<option
value=
"
0
"
>
30000以上
</option>
<option
value=
"
3
"
>
30000以上
</option>
</select>
</select>
<select
class=
"form-control btn2"
id=
"is_exclusive_type"
>
<select
class=
"form-control btn2"
id=
"is_exclusive_type"
>
<option
value=
""
class=
"successModel"
>
是否独家
</option>
<option
value=
""
class=
"successModel"
>
是否独家
</option>
...
...
public/resource/template/house_template_tpl.html
View file @
200c769d
...
@@ -12,13 +12,19 @@
...
@@ -12,13 +12,19 @@
<
/td
>
<
/td
>
<
td
>
[
%=
it
[
item
][
'internal_title'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'internal_title'
]
%
]
<
/td
>
<
td
>
<
td
>
[
%
if
(
it
[
item
][
"rent_price"
]
>
30000
)
{
%
]
[
%
if
(
it
[
item
][
'rent_type'
]
==
2
)
{
%
]
30000
以上
[
%=
it
[
item
][
"rent_price"
]
/
100
%
]
%
[
%
}
else
if
(
it
[
item
][
"rent_price"
]
>=
10000
)
{
%
]
10000
-
30000
[
%
}
else
{
%
]
[
%
}
else
{
%
]
10000
以下
[
%
if
(
it
[
item
][
"rent_price"
]
>
30000
)
{
%
]
30000
以上
[
%
}
else
if
(
it
[
item
][
"rent_price"
]
>=
10000
)
{
%
]
10000
-
30000
[
%
}
else
{
%
]
10000
以下
[
%
}
%
]
[
%
}
%
]
[
%
}
%
]
<
/td
>
<
/td
>
<
td
>
<
td
>
[
%
if
(
it
[
item
][
"is_show"
]
==
0
)
{
%
]
[
%
if
(
it
[
item
][
"is_show"
]
==
0
)
{
%
]
...
...
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