Commit 778bf062 authored by agping's avatar agping

优化

parent cf74d939
...@@ -221,8 +221,8 @@ define(['doT', 'text!temp/my_collection_office_template_tpl.html', 'css!style/ho ...@@ -221,8 +221,8 @@ define(['doT', 'text!temp/my_collection_office_template_tpl.html', 'css!style/ho
params.pageNo = house.pageNo; params.pageNo = house.pageNo;
params.pageSize = house.pageSize; params.pageSize = house.pageSize;
params.AuthToken = user_info_obj.AuthToken; params.AuthToken = user_info_obj.AuthToken;
params.agents_id = user_info_obj.id; params.agents_id = $('#user_city').val();
params.city = $('#user_city').val(); // params.city = $('#user_city').val();
params.from =1; params.from =1;
$.ajax({ $.ajax({
...@@ -275,11 +275,11 @@ define(['doT', 'text!temp/my_collection_office_template_tpl.html', 'css!style/ho ...@@ -275,11 +275,11 @@ define(['doT', 'text!temp/my_collection_office_template_tpl.html', 'css!style/ho
//获取转勤账号 //获取转勤账号
var _str = ''; var _str = '';
$.each(data.data, function(i, item) { $.each(data.data, function(i, item) {
_str += '<option value="' + item.city + '">' + item.city + '</option>'; _str += '<option value="' + item.id + '">' + item.city + '</option>';
}); });
$('#user_city').html(_str); $('#user_city').html(_str);
//默认显示本账号所在城市 //默认显示本账号所在城市
$('#user_city').val(user_info_obj.city); $('#user_city').val(user_info_obj.id);
house.getList(1);//搜索列表 house.getList(1);//搜索列表
} else { } else {
......
...@@ -222,9 +222,8 @@ define(['doT', 'text!temp/my_collection_shop_template_tpl.html', 'css!style/home ...@@ -222,9 +222,8 @@ define(['doT', 'text!temp/my_collection_shop_template_tpl.html', 'css!style/home
params.pageNo = house.pageNo; params.pageNo = house.pageNo;
params.pageSize = house.pageSize; params.pageSize = house.pageSize;
params.AuthToken = user_info_obj.AuthToken; params.AuthToken = user_info_obj.AuthToken;
params.agents_id = user_info_obj.id; // params.city = $('#user_city').val();
params.city = $('#user_city').val(); params.agents_id = $('#user_city').val();//城市筛选
// params.agents_id = $('#user_city').val();//城市筛选
params.from =1; params.from =1;
...@@ -264,7 +263,7 @@ define(['doT', 'text!temp/my_collection_shop_template_tpl.html', 'css!style/home ...@@ -264,7 +263,7 @@ define(['doT', 'text!temp/my_collection_shop_template_tpl.html', 'css!style/home
var user_info_obj = JSON.parse(decodeURIComponent(localStorage.getItem('pcUserInfo'))); //读取缓存 var user_info_obj = JSON.parse(decodeURIComponent(localStorage.getItem('pcUserInfo'))); //读取缓存
var params = {}; var params = {};
params.AuthToken = user_info_obj.AuthToken; params.AuthToken = user_info_obj.AuthToken;
params.agent_phone = 15601652311; params.agent_phone = user_info_obj.phone;
$.ajax({ $.ajax({
type: 'GET', type: 'GET',
url: '/broker/getAgentSiteList', //商铺跟进 对接接口 url: '/broker/getAgentSiteList', //商铺跟进 对接接口
...@@ -278,11 +277,11 @@ define(['doT', 'text!temp/my_collection_shop_template_tpl.html', 'css!style/home ...@@ -278,11 +277,11 @@ define(['doT', 'text!temp/my_collection_shop_template_tpl.html', 'css!style/home
//获取转勤账号 //获取转勤账号
var _str = ''; var _str = '';
$.each(data.data, function(i, item) { $.each(data.data, function(i, item) {
_str += '<option value="' + item.city + '">' + item.city + '</option>'; _str += '<option value="' + item.id + '">' + item.city + '</option>';
}); });
$('#user_city').html(_str); $('#user_city').html(_str);
//默认显示本账号所在城市 //默认显示本账号所在城市
$('#user_city').val(user_info_obj.city); $('#user_city').val(user_info_obj.id);
house.getList(1);//搜索列表 house.getList(1);//搜索列表
} else { } else {
alert(data['msg']); alert(data['msg']);
......
...@@ -1529,8 +1529,8 @@ define(['doT', 'text!temp/my_collection_user_template_tpl.html', 'css!style/home ...@@ -1529,8 +1529,8 @@ define(['doT', 'text!temp/my_collection_user_template_tpl.html', 'css!style/home
//商铺 办公楼 //商铺 办公楼
params.entrust_type = user.entrust_type_list; params.entrust_type = user.entrust_type_list;
params.agents_id = user_info_obj.id; params.agents_id = $('#user_city').val();
params.site_id = $('#user_city').val(); // params.site_id = $('#user_city').val();
params.pageNo = user.pageNo; params.pageNo = user.pageNo;
params.pageSize = user.pageSize; params.pageSize = user.pageSize;
params.AuthToken = user_info_obj.AuthToken; params.AuthToken = user_info_obj.AuthToken;
...@@ -1563,7 +1563,7 @@ define(['doT', 'text!temp/my_collection_user_template_tpl.html', 'css!style/home ...@@ -1563,7 +1563,7 @@ define(['doT', 'text!temp/my_collection_user_template_tpl.html', 'css!style/home
var user_info_obj = JSON.parse(decodeURIComponent(localStorage.getItem('pcUserInfo'))); //读取缓存 var user_info_obj = JSON.parse(decodeURIComponent(localStorage.getItem('pcUserInfo'))); //读取缓存
var params = {}; var params = {};
params.AuthToken = user_info_obj.AuthToken; params.AuthToken = user_info_obj.AuthToken;
params.agent_phone = 15601652311; params.agent_phone = user_info_obj.phone;
$.ajax({ $.ajax({
type: 'GET', type: 'GET',
url: '/broker/getAgentSiteList', //商铺跟进 对接接口 url: '/broker/getAgentSiteList', //商铺跟进 对接接口
...@@ -1577,11 +1577,11 @@ define(['doT', 'text!temp/my_collection_user_template_tpl.html', 'css!style/home ...@@ -1577,11 +1577,11 @@ define(['doT', 'text!temp/my_collection_user_template_tpl.html', 'css!style/home
//获取转勤账号 //获取转勤账号
var _str = ''; var _str = '';
$.each(data.data, function(i, item) { $.each(data.data, function(i, item) {
_str += '<option value="' + item.site_id + '">' + item.city + '</option>'; _str += '<option value="' + item.id + '">' + item.city + '</option>';
}); });
$('#user_city').html(_str); $('#user_city').html(_str);
//默认显示本账号所在城市 //默认显示本账号所在城市
$('#user_city').val(user_info_obj.site_id); $('#user_city').val(user_info_obj.id);
user.getList(1);//搜索列表 user.getList(1);//搜索列表
} else { } else {
......
...@@ -27,7 +27,7 @@ define(['doT', 'text!temp/receiving_log_template_tpl.html', 'css!style/home.css' ...@@ -27,7 +27,7 @@ define(['doT', 'text!temp/receiving_log_template_tpl.html', 'css!style/home.css'
params.pageSize = bargain.pageSize; params.pageSize = bargain.pageSize;
params.start_date = $('#create_time') .val(); params.start_date = $('#create_time') .val();
params.end_date = $('#end_time') .val(); params.end_date = $('#end_time') .val();
params.pay_log_id = $('#house_id') .val(); params.house_id = $('#house_id') .val();
$.ajax({ $.ajax({
url: '/index/receiptOperatingRecordsList', //获取列表 url: '/index/receiptOperatingRecordsList', //获取列表
type: 'POST', type: 'POST',
......
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