Commit 513fd6f0 authored by agping's avatar agping

1

parent 0d4102dd
......@@ -471,16 +471,13 @@ define(['doT', 'text!temp/building_dictionary_list_template_tpl.html','css!style
});
//地铁 获取地铁站
_doc.on('input', '.shop_city_choose_site_list_line', function() {
// var arr_ = JSON.parse($(this).val());
var arr_ = JSON.parse($("option:selected",this).attr("data-id"));
var _str = '<option value="">请选择</option>';
$.each(arr_, function(i, item) {
_str += '<option value="' + item.id + '" data-latitude="' + item.latitude + '" data-longitude="' + item.longitude + '">' + item.name + '</option>';
});
$(this).next().html(_str);
if(business.isAdd == 0){
$($(this).find('option').eq(0)).remove();//删除第一个option
}
});
//点击 区域 获取 商圈(新增)
_doc.on('input', '#shop_area_id_add', function() {
......
......@@ -142,8 +142,8 @@ define(['doT', 'text!temp/user_model_template_tpl.html','css!style/home.css', 'c
user.Caozuo();
$('#caozuo_table2').html('');
user.pageNoUser=1;
user.getGenjincon();
user.getUserLogNew();//客户详情获取最近一条带看动态
// user.getGenjincon();
// user.getUserLogNew();//客户详情获取最近一条带看动态
// user.getGenjinLabel();
_doc.delegate(".caozuo-yue", "click", function() {
//约带看初始化
......@@ -895,7 +895,8 @@ define(['doT', 'text!temp/user_model_template_tpl.html','css!style/home.css', 'c
async: true,
data: {
"user_id": user.user_id,
"type": type
"type": type,
"entrust_type": user.entrustType
},
dataType: 'json',
success: function(data) {
......@@ -1000,7 +1001,6 @@ define(['doT', 'text!temp/user_model_template_tpl.html','css!style/home.css', 'c
getPhoneLabelLiu: function(n) { //拨打电话 获取普通标签
var _htmlTemp = '';
var _data = [{"id":"1","name":"未打通","operation_id":"314","update_time":"2018-08-06 13:45:52","create_time":"2018-03-01 16:11:38","type":"1","free":"1"},{"id":"2","name":"无意向","operation_id":"1","update_time":"2018-03-02 16:14:03","create_time":"2018-03-01 16:15:35","type":"1","free":"1"},{"id":"3","name":"有意向","operation_id":"314","update_time":"2018-08-07 17:14:15","create_time":"2018-03-01 16:15:35","type":"1","free":"0"},{"id":"4","name":"取消拨打","operation_id":"288","update_time":"2018-08-05 20:24:06","create_time":"2018-03-01 16:11:38","type":"1","free":"1"}];
console.log(666)
$.each(_data, function(i, item) {
_htmlTemp += '<a data-markid="{1}" data-free="{2}">{0}</a>'.stringFormatObj({
'0':item['name'],
......@@ -1057,7 +1057,8 @@ define(['doT', 'text!temp/user_model_template_tpl.html','css!style/home.css', 'c
async: true,
data: {
"user_id": user.user_id,
"type": 1
"type": 1,
"entrust_type": user.entrustType
},
dataType: 'json',
success: function(data) {
......@@ -1149,6 +1150,9 @@ define(['doT', 'text!temp/user_model_template_tpl.html','css!style/home.css', 'c
if(data.code == 200) {
if(data.data) {
user.entrustType = data.data.user_info.entrust_type;
//跟进 带看 6666
user.getGenjincon();
user.getUserLogNew();//客户详情获取最近一条带看动态
$(".cus_id").html(data.data.user_info.user_id); //客户编号
$(".cus_name").html(data.data.user_info.user_name); //姓名
$(".area_demand").html(data.data.user_info.area_demand * 1);
......@@ -1431,7 +1435,7 @@ define(['doT', 'text!temp/user_model_template_tpl.html','css!style/home.css', 'c
"user_id": user.user_id,
"page_no": user.pageNoUser,
"page_size": 30,
"entrust_type": user.entrustType
},
dataType: 'json',
......@@ -1492,7 +1496,7 @@ define(['doT', 'text!temp/user_model_template_tpl.html','css!style/home.css', 'c
"user_id": user.user_id,
"page_no": user.pageNoUser,
"page_size": 30,
"entrust_type": user.entrustType
},
dataType: 'json',
......@@ -1569,7 +1573,7 @@ define(['doT', 'text!temp/user_model_template_tpl.html','css!style/home.css', 'c
getInfor: function(params) {//上一页 下一页 调用接口
var user_info_obj = JSON.parse(decodeURIComponent(localStorage.getItem('pcUserInfo'))); //读取缓存
var params={};
params.entrustType = user.entrustType;//商铺类型 上一条 下一条筛选
params.entrust_type = user.entrustType;//商铺类型 上一条 下一条筛选
params.user_nick = $.trim($(parent.document.querySelector("input[name='user']")).val());
params.phone = $.trim($(parent.document.querySelector("input[name='phone']")).val());
params.id = $.trim($(parent.document.querySelector("input[name='userID']")).val());
......@@ -1727,7 +1731,7 @@ define(['doT', 'text!temp/user_model_template_tpl.html','css!style/home.css', 'c
data: {
"user_id": user.user_id,
"content": genj_text,
// "user_status": user.detailTabIndexFollowRent
"entrust_type": user.entrustType
},
beforeSend: function() {},
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