Commit b3c89f8b authored by agping's avatar agping

商铺浏览记录

预约看铺
parent b8353768
......@@ -324,7 +324,7 @@
}
.detail-modal-header-tab {
width: 240px;
width: 346px;
float: left;
margin-top: 8px;
}
......@@ -509,8 +509,10 @@
<div>
<div class="modal-header">
<h4 class="modal-title text-info detail-modal-header-tab">
<span class="btn-info-liu" style="margin-right: 30px;">客户详情/跟进</span>
<span class="btn-default-liu caozuo-yue">约带看</span>
<span class="btn-info-liu" style="margin-right: 20px;">客户详情/跟进</span>
<span class="btn-default-liu caozuo-yue" style="margin-right: 20px;">约带看</span>
<span class="btn-default-liu browse-shops">客户商铺浏览</span>
<button type="button" class="close" data-dismiss="modal" aria-hidden="true" style="position: absolute;top: 0;right: 10px;width: 30px;height: 30px;font-size: 24px;">
×
</button>
......@@ -521,6 +523,7 @@
<span id='user_is_collect' class='public-box-liu-73'>收藏</span>
<a id='user_add_relational' class='public-box-liu-88' style="margin-left: 32px;cursor: pointer;" href="#modal-addRelational" data-toggle="modal">添加关联客户</a>
</div>
</div>
<div class="modal-body modal-body1" style="color: #061C43;font-size: 14px;">
......@@ -775,11 +778,29 @@
<button type="button" class="btn btn-primary save-look">保存</button>
<button type="button" class="btn btn-default btn-guanbi" data-dismiss="modal">关闭</button>
</div>
</div>
</div>
<!--商铺浏览记录-->
<div class="detail-modal-body-sec" style="display: none;">
<table class="table table-striped table-bordered table-hover table-condensed">
<thead>
<tr>
<th class="text-center">编辑内容</th>
<th class="text-center">编辑人</th>
<th class="text-center">编辑时间</th>
</tr>
</thead>
<tbody id='watchShopLog'>
</tbody>
</table>
<div class="center-btn">
<button type="button" class="btn btn-default btn-guanbi" data-dismiss="modal">关闭</button>
</div>
</div>
</div>
</div>
......@@ -911,4 +932,46 @@
<!-- /.modal-content -->
</div>
<!-- /.modal -->
</div>
<!--商铺浏览记录-->
<div class="modal fade" id="modal-browseShops" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">
&times;
</button>
<h4 class="modal-title">
客户商铺浏览
</h4>
</div>
<div class="modal-body" style="padding: 25px;">
<form class="form-horizontal">
<div class="form-group">
<table class="table table-striped table-bordered table-hover table-condensed">
<thead>
<tr>
<th class="text-center">浏览时间</th>
<th class="text-center">浏览的商铺ID</th>
<th class="text-center">浏览的商铺名称</th>
</tr>
</thead>
<tbody id='agent_phone_binding'>
</tbody>
</table>
</div>
</form>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">关闭
</button>
</div>
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal -->
</div>
\ No newline at end of file
......@@ -23,6 +23,12 @@
<div class="table-responsive">
<table class="table table-striped table-bordered table-hover table-condensed">
<thead>
<tr>
<td colspan="14" class="maintable-top-sub-tr">
<a class="btn btn-info liudan_pic_btn" id="our">我的</a>
<a class="btn btn-default liudan_pic_btn" id="is_show_all">全部</a>
</td>
</tr>
<tr>
<td colspan="9">
<form id="form_search">
......
define(['doT', 'css!style/home.css', 'ckfinder', 'ckfinderStart', 'bootstrapJs'], function(doT) {
define(['doT', 'text!temp/user_model_template_tpl.html','css!style/home.css', 'ckfinder', 'ckfinderStart', 'bootstrapJs'], function(doT,template) {
var user_info_obj = JSON.parse(decodeURIComponent(localStorage.getItem('pcUserInfo'))); //读取缓存
var _doc = $(document),
_token = user_info_obj.AuthToken;
......@@ -64,6 +64,7 @@ define(['doT', 'css!style/home.css', 'ckfinder', 'ckfinderStart', 'bootstrapJs']
isExitsNewInfo:1,
detailTabIndexFollowRent:3,//标识求租 已租
init: function() {
$("body").append(template);
user.isExitsNew=0;
//汉化实现
;(function($){
......@@ -167,6 +168,8 @@ define(['doT', 'css!style/home.css', 'ckfinder', 'ckfinderStart', 'bootstrapJs']
user.getGenjincon();
user.getUserLogNew();
user.getUserLog(2);
}else if(user.detailTabIndex == 2){
user.watchShopLog(user.user_id);//客户浏览商铺
}
});
......@@ -1315,7 +1318,28 @@ define(['doT', 'css!style/home.css', 'ckfinder', 'ckfinderStart', 'bootstrapJs']
}
});
},
//跟进人 姓名搜索
//客户编辑日志
watchShopLog: function(id) {
$.ajax({
url: '/index/getUserBindHistory',
type: 'GET',
async: true,
data: {
"user_id": id
},
dataType: 'json',
success: function(data) {
if(data.code == 200) {
var temp = document.getElementById('watch_shop_log_list').innerHTML;
var doTtmpl = doT.template(temp);
$("#watchShopLog").html(doTtmpl(data.data.data));
} else {
}
}
});
},
//跟进人 姓名搜索
search_phone_liu: function() { //手机号新增客户
$.ajax({
url: '/broker/searchUser',
......
......@@ -6,6 +6,7 @@ define (['doT', 'text!temp/watch_template_tpl.html', 'css!style/home.css','pagin
agents_id : '',
watch_id : '',
urls: '',
url:'/index/our_watch_shop/2',
init: function () {
;(function($){
......@@ -149,7 +150,21 @@ define (['doT', 'text!temp/watch_template_tpl.html', 'css!style/home.css','pagin
});
}
});
$(document).on('click', '.maintable-top-sub-tr>a', function(e){
e.preventDefault();
e.stopPropagation();
var _this = $(this);
_this.removeClass('btn-default').addClass('btn-info').siblings().removeClass('btn-info').addClass('btn-default');
user.mainTabIndex = _this.index();
user.getList(1);
});
$("#our").click(function () {
user.url = "/index/our_watch_shop/2";
});
$("#is_show_all").click(function () {
user.url = "/index/watch_shop/1";
});
/*选择经纪人*/
$ (document).delegate (".addphone", "click", function () {
user.addphone($(this));
......@@ -200,22 +215,8 @@ define (['doT', 'text!temp/watch_template_tpl.html', 'css!style/home.css','pagin
params.pageNo = user.pageNo;
params.pageSize = user.pageSize;
//预约看铺列表 取地址栏数据
var str = decodeURI(window.location.href);
var index = str .lastIndexOf("\/");
str = str .substring(index + 1, str.length);
var watch_url='';
if(str==1){
watch_url='/index/watch_shop/1'
}
if(str==2){
watch_url='/index/our_watch_shop/2'
}
if(watch_url==''){
alert('数据错误');
return;
}
$.ajax ({
url:watch_url,
url:user.url,
type: 'GET',
async: true,
data: params,
......
<!--客户列表 商铺浏览日志-->
<script id="watch_shop_log_list" type="text/template">
[% if(it&&it.length) { %]
[% for(var item in it){ %]
<tr class="text-center">
<td>[%= it[item]["remark"] %]</td>
<td>[%= it[item]["name"] %]</td>
<td>[%= it[item]["create_time"] %]</td>
</tr>
[% } %]
[% }else{ %]
<tr>
<td colspan="8" style="text-align:center;"> 暂无数据</td>
</tr>
[% } %]
</script>
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