Commit d487fd2c authored by agping's avatar agping

1

parent 51e52250
...@@ -341,7 +341,7 @@ ...@@ -341,7 +341,7 @@
<!-- /#新增编辑楼盘字典模态框 --> <!-- /#新增编辑楼盘字典模态框 -->
<div class="modal fade" id="modal_add_loupan" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> <div class="modal fade" id="modal_add_loupan" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog" style="width: 960px;"> <div class="modal-dialog" style="width: 960px; height:600px;overflow:scroll" >
<div class="modal-content modal-body-new-user"> <div class="modal-content modal-body-new-user">
<div class="modal-header"> <div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
...@@ -486,7 +486,7 @@ ...@@ -486,7 +486,7 @@
</form> </form>
</div> </div>
<div class="modal-footer"> <div class="modal-footer">
<button type="button" class="btn btn-default" id="close">关闭 <button type="button" class="btn btn-default" id="close" data-dismiss="modal">关闭
</button> </button>
<button type="button" class="btn btn-primary btn-guanbi" id="saveBtn"> <button type="button" class="btn btn-primary btn-guanbi" id="saveBtn">
提交 提交
......
...@@ -526,7 +526,7 @@ define(['doT', 'text!temp/building_dictionary_list_template_tpl.html','css!style ...@@ -526,7 +526,7 @@ define(['doT', 'text!temp/building_dictionary_list_template_tpl.html','css!style
e.stopPropagation(); e.stopPropagation();
if(confirm('确认删除吗?')){ if(confirm('确认删除吗?')){
_this.parent().remove(); _this.parent().remove();
that.spandelList(_this.prev().attr('data-imgid')); business.spandelList(_this.prev().attr('data-imgid'));
}; };
}); });
//新增楼盘 //新增楼盘
...@@ -632,7 +632,7 @@ define(['doT', 'text!temp/building_dictionary_list_template_tpl.html','css!style ...@@ -632,7 +632,7 @@ define(['doT', 'text!temp/building_dictionary_list_template_tpl.html','css!style
params.type = $('#shop_type').val(); params.type = $('#shop_type').val();
} }
if($('.shop_city_choose_site_list').val()){ if($('.shop_city_choose_site_list').val()){
params.city = $('#shop_city_choose_site_list').val(); params.city = $('.shop_city_choose_site_list').val();
} }
if($('#shop_area_id').val()){ if($('#shop_area_id').val()){
params.disc = $('#shop_area_id').val(); params.disc = $('#shop_area_id').val();
...@@ -801,6 +801,24 @@ define(['doT', 'text!temp/building_dictionary_list_template_tpl.html','css!style ...@@ -801,6 +801,24 @@ define(['doT', 'text!temp/building_dictionary_list_template_tpl.html','css!style
} }
} }
}); });
},
//删除 编辑的图片
spandelList: function(id) {
$.ajax({
url: '/office_index/delBuildingFile',
type: 'POST',
async: true,
data: {
'AuthToken': user_info_obj.AuthToken,
'id': id
},
dataType: 'json',
success: function(data) {
if(data.code == 200 && data.data != null) {
}
}
});
}, },
//城市 区域 筛选 //城市 区域 筛选
getDistrictStoreList: function(id, fn) { getDistrictStoreList: function(id, fn) {
......
...@@ -581,7 +581,7 @@ define(['doT', 'text!temp/office_building_list_template_tpl.html', 'css!style/ho ...@@ -581,7 +581,7 @@ define(['doT', 'text!temp/office_building_list_template_tpl.html', 'css!style/ho
checkLogin(); checkLogin();
$.ajax({ //推荐至首页 $.ajax({ //推荐至首页
'type': 'POST', 'type': 'POST',
'url': '/index/carefullyChosen', 'url': '/office_index/carefullyChosen',
data: { data: {
"houses_id": business.id, "houses_id": business.id,
"is_carefully_chosen": params.type "is_carefully_chosen": params.type
...@@ -1648,7 +1648,7 @@ if(data.code == 200) { ...@@ -1648,7 +1648,7 @@ if(data.code == 200) {
}, },
delBusiness: function() { delBusiness: function() {
$.ajax({ $.ajax({
url: '/index/houseDel', url: '/office_index/houseDel',
type: 'POST', type: 'POST',
async: true, async: true,
data: { data: {
......
...@@ -6,15 +6,15 @@ ...@@ -6,15 +6,15 @@
<td> <td>
[% if(it[item]["type"] == 1) { %] [% if(it[item]["type"] == 1) { %]
写字楼 写字楼
[% }else if (it[item]["status"] == 2){ %] [% }else if (it[item]["type"] == 2){ %]
商住两用 商住两用
[% }else if (it[item]["status"] == 3){ %] [% }else if (it[item]["type"] == 3){ %]
园区 园区
[% }else if (it[item]["status"] == 4){ %] [% }else if (it[item]["type"] == 4){ %]
洋房 洋房
[% }else if(it[item]["status"] == 5){ %] [% }else if(it[item]["type"] == 5){ %]
联合办公 联合办公
[% }else if(it[item]["status"] == 6){ %] [% }else if(it[item]["type"] == 6){ %]
厂房 厂房
[% } %] [% } %]
</td> </td>
......
...@@ -50,10 +50,10 @@ ...@@ -50,10 +50,10 @@
[% } %] [% } %]
</td> </td>
<td> <td>
[%if(it[item]["residue_num"] == 0) { %] [%if(it[item]["is_rent"] == 0) { %]
[% }else{ %] [% }else{ %]
[% } %] [% } %]
</td> </td>
<td> <td>
...@@ -92,8 +92,8 @@ ...@@ -92,8 +92,8 @@
<a class="btn1 btn-default btn-default-show-caozuo">>>></a> <a class="btn1 btn-default btn-default-show-caozuo">>>></a>
[% if(check_auth('index/houseEdit')) { %] <!--[% if(check_auth('index/houseEdit')) { %]-->
<!--<a class="btn1 btn-success is_show btn-default-hide-display" data-toggle="modal" data-id='[%= it[item]["id"] %]'> <a class="btn1 btn-success is_show btn-default-hide-display" data-toggle="modal" data-id='[%= it[item]["id"] %]'>
[% if(it[item]["is_carefully_chosen"] == 0) { %] [% if(it[item]["is_carefully_chosen"] == 0) { %]
推荐至首页 推荐至首页
[% }else if(it[item]["is_carefully_chosen"] == 1 ) { %] [% }else if(it[item]["is_carefully_chosen"] == 1 ) { %]
...@@ -101,8 +101,8 @@ ...@@ -101,8 +101,8 @@
[% } %] [% } %]
</a>--> </a>
[% } %] <!--[% } %]-->
[% if(check_auth('index/lockHouse')) { %] [% if(check_auth('index/lockHouse')) { %]
<!--<a class="btn1 is_show_lock_plate btn-default-hide-display [%= sw2(it[item]['is_lock']) %]" data-toggle="modal" data-id='[%= it[item]["id"] %]'> <!--<a class="btn1 is_show_lock_plate btn-default-hide-display [%= sw2(it[item]['is_lock']) %]" data-toggle="modal" data-id='[%= it[item]["id"] %]'>
...@@ -119,13 +119,13 @@ ...@@ -119,13 +119,13 @@
<!--<a class="btn1 btn-success dujia btn-default-hide-display" href="#modal-dujia" data-toggle="modal" data-id='[%= it[item]["id"] %]' data-exclusive='[%= it[item]["auth_edit_exclusive"] %]'>是否独家</a> <!--<a class="btn1 btn-success dujia btn-default-hide-display" href="#modal-dujia" data-toggle="modal" data-id='[%= it[item]["id"] %]' data-exclusive='[%= it[item]["auth_edit_exclusive"] %]'>是否独家</a>
--> [% } %] --> [% } %]
[% if(check_auth('index/houseDel')) { %] <!--[% if(check_auth('index/houseDel')) { %]-->
[% if((it[item]["status"] != 3)){ %] [% if((it[item]["status"] != 3)){ %]
<!--<a data-toggle="modal" data-id='[%= it[item]["id"] %]' href="#modal-delete" class="btn1 btn-danger add_applies del_modal btn-default-hide-display">无效</a> <a data-toggle="modal" data-id='[%= it[item]["id"] %]' href="#modal-delete" class="btn1 btn-danger add_applies del_modal btn-default-hide-display">无效</a>
[% }else{ %] [% }else{ %]
<a data-toggle="modal" data-id='[%= it[item]["id"] %]' class="btn1 btn-default add_applies del_modal btn-default-hide-display">已无效</a> <a data-toggle="modal" data-id='[%= it[item]["id"] %]' class="btn1 btn-default add_applies del_modal btn-default-hide-display">已无效</a>
[% } %]--> [% } %]
[% } %] <!--[% } %]-->
[% if(check_auth('index/vipHouse')) { %] [% if(check_auth('index/vipHouse')) { %]
<!--<a class="btn1 is_vip_plate btn-default-hide-display [%= sw3(it[item]['is_vip']) %]" data-toggle="modal" data-id='[%= it[item]["id"] %]'> <!--<a class="btn1 is_vip_plate btn-default-hide-display [%= sw3(it[item]['is_vip']) %]" data-toggle="modal" data-id='[%= it[item]["id"] %]'>
[%if(it[item]["is_vip"] == 1 ) { %] [%if(it[item]["is_vip"] == 1 ) { %]
......
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