Commit a2b2c10b authored by agping's avatar agping

我收藏的办公楼

parent 61ee9b10
......@@ -92,7 +92,7 @@ define(['doT', 'text!temp/my_collection_office_template_tpl.html', 'css!style/ho
var user_info_obj = JSON.parse(decodeURIComponent(localStorage.getItem('pcUserInfo'))); //读取缓存
$.ajax({ //禁用
'type': 'POST',
'url': '/broker/addCollectHouse',//商铺收藏 取消收藏
'url': '/office/addCollectHouse',//商铺收藏 取消收藏
data: {
"agents_id": user_info_obj.id,
"status": params.type,
......@@ -224,10 +224,9 @@ define(['doT', 'text!temp/my_collection_office_template_tpl.html', 'css!style/ho
params.agents_id = user_info_obj.id;
params.from =1;
$.ajax({
type: 'GET',
url: '/broker/getCollectHouseList', //商铺跟进 对接接口
url: '/office/getCollectHouseList', //商铺跟进 对接接口
data: params,
timeout: 30000,
dataType: 'json',
......
......@@ -342,7 +342,7 @@ define(['doT', 'text!temp/office_building_list_template_tpl.html', 'css!style/ho
var user_info_obj = JSON.parse(decodeURIComponent(localStorage.getItem('pcUserInfo'))); //读取缓存
$.ajax({ //禁用
'type': 'POST',
'url': '/broker/addCollectHouse',//商铺收藏 取消收藏
'url': '/office/addCollectHouse',//商铺收藏 取消收藏
data: {
"agents_id": user_info_obj.id,
"status": params.type,
......
......@@ -122,11 +122,12 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart'], function
_data['source'] = _source;
_data['sublet_id'] = _sublet_id;
} else {};
_data['AuthToken'] = user_info_obj.AuthToken;
// _data['AuthToken'] = user_info_obj.AuthToken;
$.ajax({
type: 'GET',
url: '/office/houseEdit',//获取楼盘详情
// url: '/office/houseEdit',//获取楼盘详情
url: '/office_index/houseEdit',//获取楼盘详情
data: _data,
timeout: 30000,
dataType: 'json',
......@@ -1110,13 +1111,15 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart'], function
if(_id != null) {
_data['id'] = _id;
_data['upload_id'] = _objThis.upload_id;
user.urlBuilding = "/office/houseEdit";//编辑接口
// user.urlBuilding = "/office/houseEdit";//编辑接口
user.urlBuilding = "/office_index/houseEdit";//编辑接口
}else{
// _data['id'] = '';//新增时id传空
user.urlBuilding = "/office/houseAdd";//新增接口
// user.urlBuilding = "/office/houseAdd";//新增接口
user.urlBuilding = "/office_index/houseAdd";//新增接口
}
_data['AuthToken'] = user_info_obj.AuthToken;
// _data['AuthToken'] = user_info_obj.AuthToken;
_data['building_id'] = 1;
//当为委托转铺新增时,需要传这两个参数
if(_source) {
......
......@@ -56,7 +56,7 @@
[% } %]
[% }else{ %]
<tr>
<td colspan="10" style="text-align:center;"> 暂无数据</td>
<td colspan="18" style="text-align:center;"> 暂无数据</td>
</tr>
[% } %]
</script>
......
......@@ -62,13 +62,13 @@
[% if(it[item]["is_lock"] == 0 || check_auth('index/lockHouse') || it[item]["auth_edit_exclusive"] == 1 || it[item]["auth_edit_house"] == 1) { %]
<a class="btn1 [%= (it[item]['is_look'] && it[item]['auth_edit_house'] == 0)?'btn-warning':'btn-success' %]" href="#modal_shop_detail" data-id='[%= it[item]["id"] %]' data-toggle="modal">跟进/查看</a>
<!--<a class="btn1 is_show_shoucang [%= sw(it[item]['is_collect']) %]" data-toggle="modal" data-id='[%= it[item]["id"] %]'>
<a class="btn1 is_show_shoucang [%= sw(it[item]['is_collect']) %]" data-toggle="modal" data-id='[%= it[item]["id"] %]'>
[%if(it[item]["is_collect"] == 1) { %]
取消收藏
[% }else if(it[item]["is_collect"] == 2 ) { %]
收藏
[% } %]
</a>-->
</a>
[% } %]
[% 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