Commit 200c769d authored by hujun's avatar hujun

商铺金额搜索

parent f4d1b721
......@@ -129,10 +129,10 @@ class Houses extends Basic
}
/*价格 -1表示营业额扣点 存分*/
if ($this->params['rent_price'] != NULL) {
if ($this->params['rent_price'] != NULL && $this->params['rent_price'] != -1) {
switch ($this->params['rent_price']) {
case 1:
$where['rent_price'] = ['>', 10000];
$where['rent_price'] = ['<=', 10000];
break;
case 2:
$where['rent_price'] = ['between', '10000,30000'];
......@@ -181,7 +181,7 @@ class Houses extends Basic
$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'])) {
/*楼盘编号*/
......
......@@ -82,10 +82,10 @@
<option value="1">待租</option>
</select>
<select class="form-control btn2" id="rent_price">
<option value="" class="successModel">月租金</option>
<option value="2">10000以下</option>
<option value="1" >10000-30000</option>
<option value="0">30000以上</option>
<option value="-1" class="successModel">月租金</option>
<option value="1">10000以下</option>
<option value="2" >10000-30000</option>
<option value="3">30000以上</option>
</select>
<select class="form-control btn2" id="is_exclusive_type">
<option value="" class="successModel">是否独家</option>
......
......@@ -12,13 +12,19 @@
</td>
<td>[%= it[item]['internal_title'] %]</td>
<td>
[% if(it[item]["rent_price"] > 30000) { %]
30000以上
[% }else if(it[item]["rent_price"] >= 10000) { %]
10000-30000
[% if (it[item]['rent_type'] == 2) { %]
[%= it[item]["rent_price"] / 100 %] %
[% }else{ %]
10000以下
[% if(it[item]["rent_price"] > 30000) { %]
30000以上
[% }else if(it[item]["rent_price"] >= 10000) { %]
10000-30000
[% }else{ %]
10000以下
[% } %]
[% } %]
</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