Commit 0c8ec517 authored by hujun's avatar hujun

每平方租金

parent 834c00c8
......@@ -130,15 +130,16 @@ class Houses extends Basic
/*价格 -1表示营业额扣点 存分*/
if ($this->params['rent_price'] != NULL && $this->params['rent_price'] != -1) {
$where['rent_type'] = 1;
switch ($this->params['rent_price']) {
case 1:
$where['rent_price'] = ['<=', 10000];
$where['rent_price'] = ['<=', 1000000];
break;
case 2:
$where['rent_price'] = ['between', '10000,30000'];
$where['rent_price'] = ['between', '1000000,3000000'];
break;
default :
$where['rent_price'] = ['>', '30000'];
$where['rent_price'] = ['>', '3000000'];
}
}
......
......@@ -12,19 +12,20 @@
</td>
<td>[%= it[item]['internal_title'] %]</td>
<td>
[% if (it[item]['rent_type'] == 2) { %]
[%= it[item]["rent_price"] / 100 %] %
[% }else{ %]
[% if(it[item]["rent_price"] > 30000) { %]
[% if (it[item]['rent_type'] == 1) { %]
[% if(it[item]["rent_price"] > 3000000) { %]
30000以上
[% }else if(it[item]["rent_price"] >= 10000) { %]
[% } else if(it[item]["rent_price"] >= 1000000) { %]
10000-30000
[% }else{ %]
10000以下
[% } %]
[% } %]
[% } else if (it[item]['rent_type'] == 2) { %]
[%= it[item]["rent_price"] / 100 %] %
[% }else{ %]
[%= it[item]["rent_price"] / 100 %] //
[% } %]
</td>
<td>
[% 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