Commit bd258f87 authored by agping's avatar agping

客户查看记录

parent 00712311
......@@ -615,6 +615,7 @@
<span class="btn-default-liu">查看日志</span>
<span class="btn-default-liu">编辑日志</span>
<span class="btn-default-liu">商铺视频</span>
<span class="btn-default-liu">客户浏览记录</span>
</h4>
</div>
......@@ -693,6 +694,23 @@
<tbody class="text-center" id="shop-details-video">
</table>
</div>
<!--编辑日志-->
<div class="detail-modal-body-sec iframe-shop-detail-scroll">
<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">客户ID</th>
<th class="text-center">查看端口</th>
</tr>
</thead>
<tbody class="text-center" id="caozuo_table_kehu">
</table>
</div>
</div>
</div>
......
......@@ -508,6 +508,9 @@ define(['doT', 'text!temp/house_template_tpl.html', 'css!style/home.css', 'ckfin
if(business.detailTabIndex == 5){//商铺视频
business.shopVideo();
};
if(business.detailTabIndex == 6){//商铺视频
business.Caozuokehu();
};
});
// 提交按钮设置案场权限人
......@@ -1093,6 +1096,34 @@ define(['doT', 'text!temp/house_template_tpl.html', 'css!style/home.css', 'ckfin
}
});
},
Caozuokehu: function() { //获取客户浏览商铺记录
var caozuo_table = "";
$.ajax({
'type': 'GET',
'url': '/index/getEditLog', //获取操作记录
data: {
"house_id": business.house_id
},
dataType: "json",
success: function(data) {
if(data.code == 200) {
if(data.data) {
$.each(data.data, function(i, item) {
caozuo_table += '<tr><td>' + item.create_time + '</td> <td>' + item.name + '</td> <td>' + item.remark + '</td> <td>' + item.remark +'</td></tr>'
});
if(caozuo_table){
$("#caozuo_table_kehu").html(caozuo_table);
}else{
$("#caozuo_table_kehu").html('<tr><td colspan="4">暂无数据</td></tr>');
}
}
} else {
alert('获取失败!');
}
}
});
},
Submit_follow: function() { //提交案场权限人数据
var agents_id = "";
var _agents_id = "";
......
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