Commit d1b0aefd authored by agping's avatar agping

1

parent ec7fc62f
...@@ -573,13 +573,15 @@ define(['doT', 'text!temp/building_dictionary_list_template_tpl.html','css!style ...@@ -573,13 +573,15 @@ define(['doT', 'text!temp/building_dictionary_list_template_tpl.html','css!style
} else { } else {
return return
}; };
var user_info_obj = JSON.parse(decodeURIComponent(localStorage.getItem('pcUserInfo'))); //读取缓存
var _data = { var _data = {
// id: id_pic//新增 不传id // id: id_pic//新增 不传id
'title': $('#loupan_title').val(), 'title': $('#loupan_title').val(),
'type': $('#loupan_type').val(), 'type': $('#loupan_type').val(),
'building_images': imgOffice, 'building_images': imgOffice,
'intro': $('#introOffice').val(), 'intro': $('#introOffice').val(),
// 'intro': $('#loucengOffice').val(), 'agent_id':user_info_obj.id,
// 'add_building_stations': id_pic,//交通 暂无 // 'add_building_stations': id_pic,//交通 暂无
'province': _provinceInternalObj.val(), 'province': _provinceInternalObj.val(),
'city': _cityInternalObj.val(), 'city': _cityInternalObj.val(),
...@@ -593,7 +595,7 @@ define(['doT', 'text!temp/building_dictionary_list_template_tpl.html','css!style ...@@ -593,7 +595,7 @@ define(['doT', 'text!temp/building_dictionary_list_template_tpl.html','css!style
$.ajax({ $.ajax({
type: 'GET', type: 'POST',
url: '/office_index/houseDictionaryAdd', url: '/office_index/houseDictionaryAdd',
data: _data, data: _data,
dataType: 'json', dataType: 'json',
......
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