Commit 6a0a8663 authored by xishifeng's avatar xishifeng Committed by hujun

客户详情公用模块

# Conflicts: # application/index/controller/Member.php # application/index/extend/Basic.php
parent 32ef5ac6
......@@ -602,4 +602,11 @@ class Member extends Basic{
}
}
/**
* 公用客户详情跟进
*/
public function userDetail()
{
return view('member/user_genjing_modal');
}
}
......@@ -69,8 +69,7 @@ class Basic extends Controller
'index/getUserMacAddress',
'index/getConfigWeek',
'index/getSystemMessageByUser',
'index/getSystemMessageByUser',
'index/userModalList',
);
/**
......
<!DOCTYPE html>
<html lang="en-us">
<head>
<link rel="icon" href="/favicon.ico" type="image/x-icon">
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
{include file="global/header_tpl" /}
<link rel="stylesheet" href="/resource/css/bootstrap.css" type="text/css" />
<link rel="stylesheet" href="/resource/css/public.css" type="text/css" />
<link rel="stylesheet" href="//qidian.gtimg.com/lulu/theme/peak/css/common/ui/Pagination.css">
<link rel="stylesheet" href="/resource/css/bootstrap-theme.min.css">
<link rel="stylesheet" href="/resource/css/bootstrap-datetimepicker.min.css">
<title>同联商业</title>
</head>
<body>
<div>
{__CONTENT__}
{include file="global/footer_tpl" /}
</div>
</body>
</html>
This diff is collapsed.
This diff is collapsed.
......@@ -315,6 +315,7 @@ Route::group('index', [
'agentEvaluateNumAndFraction' => ['index/broker/agentEvaluateNumAndFraction', ['method' => 'POST|GET']],//经纪人列表计算-评价次数和分数 朱伟 2018-07-03
'uploadImg' => ['index/UploadImg/uploadImg', ['method' => 'POST']],//全局图片上传
'followUpList' => ['index/HouseFollowUp/followUpList', ['method' => 'GET']],//商铺跟进liu
'userModalList' => ['index/Member/userDetail', ['method' => 'GET']], //客户跟进模态框,公用
'inspectionRecordList' => ['index/InspectionRecord/inspectionRecordList', ['method' => 'GET']],//约带看记录liu
'realtimePerformance' => ['index/RealTimePerformance/realtimePerformanceList', ['method' => 'GET']],//实时业绩liu
'shopinspectionLog' => ['index/ShopInspectionLog/shopinspectionLogList', ['method' => 'POST|GET']],//商铺查看日志liu
......
......@@ -265,11 +265,6 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css'
}
user.delete_user(params);
});
$(document).delegate(".genj_ure", "click", function() {
user.user_id = $(this).attr("data-id");
// checkLogin();
user.getGenjinLabel();
});
$(document).delegate(".add_alert", "click", function() {
document.getElementById("add_user_form").reset();
......@@ -314,36 +309,8 @@ define(['doT', 'text!temp/remark_follow_template_tpl.html', 'css!style/home.css'
});
//客户列表操作
$(document).delegate(".caozuo", "click", function() { //点击操作跟进详情
user.user_id = $(this).attr("data-id");
user.user_phone = $(this).attr("data-phone");
user.baohu = $(this).attr("data-baohu");
user.agent_id_infor = $(this).attr("data-agentId");
user.remark_id = $(this).attr("data-remark");
//隐藏拨打电话 相关
user.agent_id_call=$(this).attr("data-agentId");
user.agent_id_call_vip=$(this).attr("data-vip");
$('.call-user-five').html('');
$('.detail-modal-body-sec-2').show();
$('#take_look_name').html($(this).attr("data-name"));
$('#take_look_phone').html($(this).attr("data-phone"));
$('#take_look_id').html($(this).attr("data-id"));
$('#look_shop_date').val('');
$('#note_look').val('');
$('.look-shop').val('');
$('.look-shop').removeAttr('data-id');
//点击客户详情 初始化客户动态 带看动态
$('.modal-title-genjing-con>span:nth-of-type(1)').addClass('text-info').siblings().removeClass('text-info');
//初始化客户动态 带看动态两个表格切换
$('.follow-up-modal-list-area:nth-of-type(1)').show().siblings().hide();
$('.detail-modal-header-tab>a:nth-of-type(1)').removeClass('btn-default').addClass('btn-info').siblings().removeClass('btn-info').addClass('btn-default');
user.detailTabIndex = 0;
$('.detail-modal-body-sec:nth-of-type(1)').show().siblings().hide();
$('.followup-modal-comment-area>textarea').val('');//清空跟进框内容
// checkLogin();
user.getSiteTagsEdit();
user.getUserLogNew();//客户详情获取最近一条带看动态
$('.user-log-more').show();//显示加载更多
var _$this = $(this);
$('#modal-record iframe').attr('src', '/index/userModalList?data=' + _$this.attr('data-item') + '&id=' + _$this.attr('data-id'));
});
//查看弹出框里的tab点击事件,客户动态 带看动态
_doc.on('click', '.modal-title-genjing-con>span', function(e){
......
This diff is collapsed.
......@@ -24,8 +24,10 @@ define(['doT', 'jquery', 'text!temp/menu_template_tpl.html', 'layer'], function
dataObj.init();
});
}
menu_bar(function(){
//是否有导航栏的标识
var haveMenu = !~location.href.indexOf('/userModalList');
haveMenu && menu_bar(function(){
//回调部分
//记录tab的点击状态,对应的标签内容展开,并高亮显示
var _hash = location.pathname.replace('/admin.php/', '/');
......@@ -80,7 +82,7 @@ define(['doT', 'jquery', 'text!temp/menu_template_tpl.html', 'layer'], function
var _doc = $(document);
//显示 隐藏城市 默认显示 当前账号 所在城市
$.ajax({
haveMenu && $.ajax({
url: '/index/getSiteList',
type: 'GET',
async: true,
......
This diff is collapsed.
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