Commit e9a04c7f authored by agping's avatar agping

商铺审核

parent 375c16fe
video_check_list{layout name="global/frame_two_tpl" /} {layout name="global/frame_two_tpl" /}
<input type="hidden" class="page-load" id="videoCheckList" /> <input type="hidden" class="page-load" id="videoCheckList" />
<style> <style>
video{ video{
...@@ -163,7 +163,9 @@ video_check_list{layout name="global/frame_two_tpl" /} ...@@ -163,7 +163,9 @@ video_check_list{layout name="global/frame_two_tpl" /}
<div class="modal-body modal-body-one"> <div class="modal-body modal-body-one">
<div class="detail-modal-body-sec"> <div class="detail-modal-body-sec">
视频 <table>
<tbody class="text-center" id="shop-details-video">
</table>
</div> </div>
<div class="detail-modal-body-sec"> <div class="detail-modal-body-sec">
<iframe class="iframe-shop-detail"></iframe> <iframe class="iframe-shop-detail"></iframe>
......
...@@ -371,7 +371,7 @@ define(['doT', 'text!temp/inspectionRecordAll_list_template_tpl.html', 'css!styl ...@@ -371,7 +371,7 @@ define(['doT', 'text!temp/inspectionRecordAll_list_template_tpl.html', 'css!styl
}; };
if(imgname.join(',')) { if(imgname.join(',')) {
// params.transfer_img = imgname.join(','); // params.transfer_img = imgname.join(',');
params.transfer_img = imgname; params.transfer_img = JSON.stringify(imgname);
} else { } else {
return return
......
...@@ -934,7 +934,8 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', ' ...@@ -934,7 +934,8 @@ define(['doT', 'text!temp/reportList_template_tpl.html', 'css!style/home.css', '
imgname[i] = $('.result-du-liu>img').eq(i).attr('data-imgname'); imgname[i] = $('.result-du-liu>img').eq(i).attr('data-imgname');
}; };
if(imgname.join(',')) { if(imgname.join(',')) {
params.transfer_img = imgname.join(','); // params.transfer_img = imgname.join(',');
params.transfer_img = JSON.stringify(imgname);
} else { } else {
return return
}; };
......
...@@ -89,8 +89,8 @@ define(['doT', 'text!temp/video_check_list_template_tpl.html', 'css!style/home.c ...@@ -89,8 +89,8 @@ define(['doT', 'text!temp/video_check_list_template_tpl.html', 'css!style/home.c
if(house.detailTabIndex == 1){ if(house.detailTabIndex == 1){
$('.iframe-shop-detail').attr('src', '/app_broker/shop_detail_pc?shop_id='+house.id); $('.iframe-shop-detail').attr('src', '/app_broker/shop_detail_pc?shop_id='+house.id);
}else if(house.detailTabIndex == 0){ }else if(house.detailTabIndex == 0){
$('.followup-modal-comment-area>textarea').val('');//清空跟进框内容 house.shopVideo();//商铺视频
house.getFollowupList();
} }
}); });
//点击审核视频 按钮 //点击审核视频 按钮
...@@ -128,19 +128,6 @@ define(['doT', 'text!temp/video_check_list_template_tpl.html', 'css!style/home.c ...@@ -128,19 +128,6 @@ define(['doT', 'text!temp/video_check_list_template_tpl.html', 'css!style/home.c
house.checkVideo(); house.checkVideo();
}); });
//点击查看,触发定位事件
_doc.on('click', '[href="#modal_detail"]', function(){
var _this = $(this);
if(_this.hasClass('btn-success')){
_this.removeClass('btn-success').addClass('btn-warning');
};
});
//点击跟进,获取商铺跟进动态的接口
_doc.on('click', '[href="#modal_followup"]', function(){
house.id = $(this).attr("data-id");
$('.followup-modal-comment-area>textarea').val('');//清空跟进框内容
house.getFollowupList();
});
//跟进姓名 下拉式搜索 //跟进姓名 下拉式搜索
$(document).on("input", "#partical_name", function() { //手机号新增搜索客方 $(document).on("input", "#partical_name", function() { //手机号新增搜索客方
if($("#partical_name").val() == '') { if($("#partical_name").val() == '') {
...@@ -163,13 +150,11 @@ define(['doT', 'text!temp/video_check_list_template_tpl.html', 'css!style/home.c ...@@ -163,13 +150,11 @@ define(['doT', 'text!temp/video_check_list_template_tpl.html', 'css!style/home.c
_this.removeClass('btn-success').addClass('btn-warning'); _this.removeClass('btn-success').addClass('btn-warning');
var _id = _this.attr('data-id'); var _id = _this.attr('data-id');
house.id=_id; house.id=_id;
console.log(_id);
$('.detail-modal-header-tab>a:nth-of-type(1)').removeClass('btn-default').addClass('btn-info').siblings().removeClass('btn-info').addClass('btn-default'); $('.detail-modal-header-tab>a:nth-of-type(1)').removeClass('btn-default').addClass('btn-info').siblings().removeClass('btn-info').addClass('btn-default');
house.detailTabIndex = 0; house.detailTabIndex = 0;
$('.detail-modal-body-sec:nth-of-type(1)').show().siblings().hide(); $('.detail-modal-body-sec:nth-of-type(1)').show().siblings().hide();
$('.followup-modal-comment-area>textarea').val('');//清空跟进框内容 house.shopVideo();//商铺视频
house.getFollowupList();
// $('.iframe-shop-detail').attr('src', '/app_broker/shop_detail_pc?shop_id='+_id);
}); });
}, },
getList: function(pageNo) { //商铺视频列表 getList: function(pageNo) { //商铺视频列表
...@@ -229,7 +214,32 @@ define(['doT', 'text!temp/video_check_list_template_tpl.html', 'css!style/home.c ...@@ -229,7 +214,32 @@ define(['doT', 'text!temp/video_check_list_template_tpl.html', 'css!style/home.c
} }
}); });
}, },
// 获取视频
shopVideo: function() {
var user_info_obj = JSON.parse(decodeURIComponent(localStorage.getItem('pcUserInfo')));
var params = {};
params.id = house.id;
params.site_area = 4;
params.AuthToken = user_info_obj.AuthToken;
$.ajax({
url: '/broker/getShopDetail', //获取列表
type: 'GET',
async: true,
data: params,
dataType: 'json',
beforeSend: function() {
},
success: function(data) {
var temp = document.getElementById('shop_video_list_tpl').innerHTML;
var doTtmpl = doT.template(temp);
$("#shop-details-video").html(doTtmpl(data.data.shop_videos));
},
complete: function(){
}
});
},
//调用部门 和 门店的接口 //调用部门 和 门店的接口
getDistrict: function(fn) { getDistrict: function(fn) {
$.ajax({ $.ajax({
......
...@@ -31,5 +31,29 @@ ...@@ -31,5 +31,29 @@
[% } %] [% } %]
</script> </script>
<!--商铺视频-->
<script id="shop_video_list_tpl" type="text/template">
[% if(it) { %]
[% for(var item in it){ %]
<tr class="text-left" style="width: 262px;float: left;">
<td style="margin-right: 10px;">
<video src="[%= it[item]['video_path'] %]" controls="controls" preload="none" muted type="video/mp4" id="video-check" style="width: 230px;height: 246px;margin-right: 10px;" poster="[%= it[item]['video_image'] %]"></video>
<br />
上传人:[%= it[item]['upload_name'] %]
<br />
上传时间:[%= it[item]['create_time'] %]
<br />
审核人:[%= it[item]['check_name'] %]
<br />
审核时间:[%= it[item]['check_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