Commit 0c8ec517 authored by hujun's avatar hujun

每平方租金

parent 834c00c8
...@@ -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'] = ['<=', 1000000];
break; break;
case 2: case 2:
$where['rent_price'] = ['between', '10000,30000']; $where['rent_price'] = ['between', '1000000,3000000'];
break; break;
default : default :
$where['rent_price'] = ['>', '30000']; $where['rent_price'] = ['>', '3000000'];
} }
} }
......
...@@ -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"] >= 10000) { %] [% } else if(it[item]["rent_price"] >= 1000000) { %]
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) { %]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment