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
0c8ec517
Commit
0c8ec517
authored
May 05, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
每平方租金
parent
834c00c8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
10 deletions
+12
-10
Houses.php
application/index/controller/Houses.php
+4
-3
house_template_tpl.html
public/resource/template/house_template_tpl.html
+8
-7
No files found.
application/index/controller/Houses.php
View file @
0c8ec517
...
@@ -130,15 +130,16 @@ class Houses extends Basic
...
@@ -130,15 +130,16 @@ class Houses extends Basic
/*价格 -1表示营业额扣点 存分*/
/*价格 -1表示营业额扣点 存分*/
if
(
$this
->
params
[
'rent_price'
]
!=
NULL
&&
$this
->
params
[
'rent_price'
]
!=
-
1
)
{
if
(
$this
->
params
[
'rent_price'
]
!=
NULL
&&
$this
->
params
[
'rent_price'
]
!=
-
1
)
{
$where
[
'rent_type'
]
=
1
;
switch
(
$this
->
params
[
'rent_price'
])
{
switch
(
$this
->
params
[
'rent_price'
])
{
case
1
:
case
1
:
$where
[
'rent_price'
]
=
[
'<='
,
10000
];
$where
[
'rent_price'
]
=
[
'<='
,
10000
00
];
break
;
break
;
case
2
:
case
2
:
$where
[
'rent_price'
]
=
[
'between'
,
'10000
,3
0000'
];
$where
[
'rent_price'
]
=
[
'between'
,
'10000
00,300
0000'
];
break
;
break
;
default
:
default
:
$where
[
'rent_price'
]
=
[
'>'
,
'30000'
];
$where
[
'rent_price'
]
=
[
'>'
,
'30000
00
'
];
}
}
}
}
...
...
public/resource/template/house_template_tpl.html
View file @
0c8ec517
...
@@ -12,19 +12,20 @@
...
@@ -12,19 +12,20 @@
<
/td
>
<
/td
>
<
td
>
[
%=
it
[
item
][
'internal_title'
]
%
]
<
/td
>
<
td
>
[
%=
it
[
item
][
'internal_title'
]
%
]
<
/td
>
<
td
>
<
td
>
[
%
if
(
it
[
item
][
'rent_type'
]
==
2
)
{
%
]
[
%
if
(
it
[
item
][
'rent_type'
]
==
1
)
{
%
]
[
%=
it
[
item
][
"rent_price"
]
/
100
%
]
%
[
%
if
(
it
[
item
][
"rent_price"
]
>
3000000
)
{
%
]
[
%
}
else
{
%
]
[
%
if
(
it
[
item
][
"rent_price"
]
>
30000
)
{
%
]
30000
以上
30000
以上
[
%
}
else
if
(
it
[
item
][
"rent_price"
]
>=
1
0000
)
{
%
]
[
%
}
else
if
(
it
[
item
][
"rent_price"
]
>=
100
0000
)
{
%
]
10000
-
30000
10000
-
30000
[
%
}
else
{
%
]
[
%
}
else
{
%
]
10000
以下
10000
以下
[
%
}
%
]
[
%
}
%
]
[
%
}
%
]
[
%
}
else
if
(
it
[
item
][
'rent_type'
]
==
2
)
{
%
]
[
%=
it
[
item
][
"rent_price"
]
/
100
%
]
%
[
%
}
else
{
%
]
[
%=
it
[
item
][
"rent_price"
]
/
100
%
]
元
/
天
/
㎡
[
%
}
%
]
<
/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