Commit c8bc7676 authored by agping's avatar agping

视频审核

parent 2f0b3a63
...@@ -449,7 +449,7 @@ ...@@ -449,7 +449,7 @@
<strong><span>4、入账日期:<span id="come_time"></span></span></strong> <strong><span>4、入账日期:<span id="come_time"></span></span></strong>
</div> </div>
<div class="col-xs-12 l"> <div class="col-xs-12 l">
<strong><span>5、该收款提交时间:<span id="pay_create_time"></span></span></strong> <strong><span>5、该收款提交时间:<span id="pay_create_time"></span>&nbsp;(收款ID:<span id="pay_log_id"></span>)</span></strong>
</div> </div>
<div class="col-xs-12 l"> <div class="col-xs-12 l">
<strong><span>6、商铺地址:<span id="check_addr"></span></span></strong> <strong><span>6、商铺地址:<span id="check_addr"></span></span></strong>
......
...@@ -188,16 +188,18 @@ ...@@ -188,16 +188,18 @@
<div class="modal-body modal-body-one"> <div class="modal-body modal-body-one">
<div style="overflow: hidden;"> <div style="overflow: hidden;">
<div style="float: left; text-align: center;"> <div style="float: left; text-align: center;">
<video src="/resource/image/liu.mp4" controls="controls" type="video/mp4"></video> <video src="/resource/image/liu.mp4" controls="controls" type="video/mp4" id="video-check"></video>
<br /> <br />
<span class="text-danger">删除</span> <span class="text-danger delVideo" style="cursor: pointer;">删除</span>
</div> </div>
<div style="float: left;margin-top: 80px;margin-left: 10px;"> <div style="float: left;margin-top: 80px;margin-left: 10px;">
<a class="btn btn-info">审核通过</a> <a class="btn btn-info checkVideo">审核通过</a>
<span class="text-danger">备注:视频将展示给客户看,请注意不要泄露位置!</span> <span class="text-danger">备注:视频将展示给客户看,请注意不要泄露位置!</span>
</div> </div>
</div> </div>
<div>上传人:周小雨&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;上传时间:2019.1.10 12:00:00</div> <div>上传人:<span class="shop-name"></span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;上传时间:<span class="shop-time"></span></div>
<div>审核人:<span class="shop-name-check"></span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;审核时间:<span class="shop-time-check"></span></div>
</div> </div>
</div> </div>
</div> </div>
......
...@@ -293,6 +293,7 @@ define(['doT', 'text!temp/refund_template_tpl.html', 'css!style/home.css', 'ckfi ...@@ -293,6 +293,7 @@ define(['doT', 'text!temp/refund_template_tpl.html', 'css!style/home.css', 'ckfi
$('#check_addr').text(data.data.address); $('#check_addr').text(data.data.address);
$('#house_id').text(data.data.house_id); $('#house_id').text(data.data.house_id);
$('#pay_create_time').text(data.data.pay_create_time); $('#pay_create_time').text(data.data.pay_create_time);
$('#pay_log_id').text(data.data.pay_log_id);//收款id
$('#order_id').text(data.data.order_id); $('#order_id').text(data.data.order_id);
$('#check_resaon').text(data.data.refund_cause); $('#check_resaon').text(data.data.refund_cause);
$('#check_type').text(data.data.refund_way == 0 ? '银行卡' : "--"); $('#check_type').text(data.data.refund_way == 0 ? '银行卡' : "--");
......
...@@ -18,6 +18,10 @@ define(['doT', 'text!temp/video_check_list_template_tpl.html', 'css!style/home.c ...@@ -18,6 +18,10 @@ define(['doT', 'text!temp/video_check_list_template_tpl.html', 'css!style/home.c
boxphoto: '', boxphoto: '',
detailTabIndex:0,//查看 弹出框 tab切换 初始化 detailTabIndex:0,//查看 弹出框 tab切换 初始化
agent_id_phone:'',//下拉跟进人id agent_id_phone:'',//下拉跟进人id
videoPath:'',
videoName:'',
videoTime:'',
videoId:'',
init: function() { init: function() {
//初始化dot //初始化dot
$(document.body).append(template); $(document.body).append(template);
...@@ -89,6 +93,38 @@ define(['doT', 'text!temp/video_check_list_template_tpl.html', 'css!style/home.c ...@@ -89,6 +93,38 @@ define(['doT', 'text!temp/video_check_list_template_tpl.html', 'css!style/home.c
house.getFollowupList(); house.getFollowupList();
} }
}); });
//点击审核视频 按钮
_doc.on('click', '.review-video', function(){
var _this = $(this);
house.videoPath = $(this).attr("data-name");
house.videoName = $(this).attr("data-uploadName");
house.videoTime = $(this).attr("data-time");
house.videoId = $(this).attr("data-id");
$('.shop-name').html(house.videoName);
$('.shop-time').html(house.videoTime);
document.getElementById("video-check").src = ServerHostImageLiu + '/resource/lib/Attachments/video/' + house.videoPath;
if($(this).attr("data-status") == 1){//审核过
$('.shop-name-check').html('');
$('.shop-time-check').html('');
$('.checkVideo').hide();
}else{//未审核
$('.shop-name-check').hide();
$('.shop-time-check').hide();
$('.checkVideo').show();
}
});
//审核视频 删除视频
_doc.on('click', '.delVideo', function(){
var _this = $(this);
house.delVideo();
});
//审核视频 审核通过视频
_doc.on('click', '.checkVideo', function(){
var _this = $(this);
house.checkVideo();
});
//点击查看,触发定位事件 //点击查看,触发定位事件
_doc.on('click', '[href="#modal_detail"]', function(){ _doc.on('click', '[href="#modal_detail"]', function(){
var _this = $(this); var _this = $(this);
...@@ -135,25 +171,14 @@ define(['doT', 'text!temp/video_check_list_template_tpl.html', 'css!style/home.c ...@@ -135,25 +171,14 @@ define(['doT', 'text!temp/video_check_list_template_tpl.html', 'css!style/home.c
}, },
getList: function(pageNo) { //商铺跟进列表 getList: function(pageNo) { //商铺视频列表
var user_info_obj = JSON.parse(decodeURIComponent(localStorage.getItem('pcUserInfo'))); //读取缓存
house.pageNo = pageNo; house.pageNo = pageNo;
var params = {}; var params = {};
//时间转化为时间戳
params.start_time = '1553184000';
params.end_time = '1553270399';
params.district_id = $('#district_id').val();//部门
params.store_id = $('#guest_stores').val();//门店
params.house_id = $('#houseID').val();//商铺 id
params.name_or_phone = $('#user_phone').val();
params.agent_id = house.agent_id_phone?house.agent_id_phone:$('#guest_stores_agent').val(); //下拉搜索 跟进人id
params.search_content = $('#follow_up_con').val();
params.pageNo = house.pageNo; params.pageNo = house.pageNo;
params.pageSize = house.pageSize; params.pageSize = house.pageSize;
params.AuthToken = user_info_obj.AuthToken;
$.ajax({ $.ajax({
type: 'POST', type: 'GET',
url: '/broker/houseFollowUpList', //商铺跟进 对接接口 url: '/index/houseVideoList', //商铺视频审核
data: params, data: params,
timeout: 30000, timeout: 30000,
dataType: 'json', dataType: 'json',
...@@ -164,7 +189,7 @@ define(['doT', 'text!temp/video_check_list_template_tpl.html', 'css!style/home.c ...@@ -164,7 +189,7 @@ define(['doT', 'text!temp/video_check_list_template_tpl.html', 'css!style/home.c
if(typeof data === 'object') { if(typeof data === 'object') {
if(data.code == 200) { if(data.code == 200) {
var doTtmpl = doT.template(document.getElementById('video_check_list_tpl').innerHTML); var doTtmpl = doT.template(document.getElementById('video_check_list_tpl').innerHTML);
$("#shop_video_list").html(doTtmpl(data.data.result)); $("#shop_video_list").html(doTtmpl(data.data.list));
/*分页代码*/ /*分页代码*/
add_page(40000, pageNo, house.pageSize, house.getList); add_page(40000, pageNo, house.pageSize, house.getList);
$('.hide-total-info-liu').hide(); $('.hide-total-info-liu').hide();
...@@ -225,6 +250,41 @@ define(['doT', 'text!temp/video_check_list_template_tpl.html', 'css!style/home.c ...@@ -225,6 +250,41 @@ define(['doT', 'text!temp/video_check_list_template_tpl.html', 'css!style/home.c
} }
}); });
}, },
delVideo: function() {
$.ajax({
url: '/index/delVideo',
type: 'POST',
async: true,
data: {
'video_id': house.videoId,
"type": 'delete'
},
dataType: 'json',
success: function(data) {
alert(data.msg);
$("#modal_shop_check").modal('hide');
}
});
},
checkVideo: function() {
$.ajax({
url: '/index/checkVideo',
type: 'POST',
async: true,
data: {
'video_id': house.videoId,
"type": 'check'
},
dataType: 'json',
success: function(data) {
alert(data.msg);
$("#modal_shop_check").modal('hide');
}
});
},
//获取门店的 经纪人 //获取门店的 经纪人
getStoreAgentList: function(id, fn) { getStoreAgentList: function(id, fn) {
$.ajax({ $.ajax({
......
...@@ -2,17 +2,20 @@ ...@@ -2,17 +2,20 @@
[% if(it&&it.length!=0) { %] [% if(it&&it.length!=0) { %]
[% for(var item in it){ %] [% for(var item in it){ %]
<tr class="text-center"> <tr class="text-center">
<td width="47%" class="text-left follow-up-home">[%= dealPunctuation(it[item]['follow_up_info']) %]</td> <td width="47%" class="text-left follow-up-home">[%= it[item]['create_time'] %]</td>
<td>[%= it[item]['name'] %]</td> <td>[%= it[item]['upload_name'] %]</td>
<td>[%= it[item]['house_id'] %]</td> <td>[%= it[item]['house_id'] %]</td>
<td> <td>
[% if(it[item]["internal_title"] != null) { %] [% if(it[item]["check_status"] == 1) { %]
[%= hideStr(it[item]['internal_title']) %] 已审核
[% } else{ %]
未审核
[% } %] [% } %]
</td> </td>
<td> <td>
<a class="btn1 btn-success" href="#modal_shop_check" data-id='[%= it[item]["house_id"] %]' data-toggle="modal">审核</a> <a class="btn1 btn-success review-video" href="#modal_shop_check" data-name='[%= it[item]["video_name"] %]' data-toggle="modal" data-uploadName='[%= it[item]["upload_name"] %]' data-time='[%= it[item]["create_time"] %]' data-id='[%= it[item]["id"] %]' data-status='[%= it[item]["check_status"] %]'>审核</a>
<a class="btn1 btn-success" href="#modal_shop_detail" data-id='[%= it[item]["house_id"] %]' data-toggle="modal">查看商铺</a> <a class="btn1 btn-success" href="#modal_shop_detail" data-id='[%= it[item]["house_id"] %]' data-toggle="modal">查看商铺</a>
</td> </td>
...@@ -27,5 +30,3 @@ ...@@ -27,5 +30,3 @@
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