Commit 2691b2d8 authored by agping's avatar agping

商铺视频 优化

parent c1077536
......@@ -610,6 +610,8 @@
<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>
<div class="modal-body modal-body-one" style="padding-top: 0;">
......@@ -682,6 +684,11 @@
<tbody class="text-center" id="caozuo_table_edit">
</table>
</div>
<div class="detail-modal-body-sec iframe-shop-detail-scroll">
<table>
<tbody class="text-center" id="shop-details-video">
</table>
</div>
</div>
</div>
......
......@@ -505,6 +505,9 @@ define(['doT', 'text!temp/house_template_tpl.html', 'css!style/home.css', 'ckfin
if(business.detailTabIndex == 4){
business.Caozuoedit();
};
if(business.detailTabIndex == 5){//商铺视频
business.shopVideo();
};
});
// 提交按钮设置案场权限人
......@@ -1386,6 +1389,32 @@ if(data.code == 200) {
});
},
// 获取视频
shopVideo: function() {
var user_info_obj = JSON.parse(decodeURIComponent(localStorage.getItem('pcUserInfo')));
var params = {};
params.id = business.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) {
$.ajax({
url: '/api/filtrateCondition',
......
......@@ -148,4 +148,28 @@
<td colspan="16" style="text-align:center;">暂无数据</td>
</tr>
[% } %]
</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>
\ No newline at end of file
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