Commit db38f994 authored by agping's avatar agping

视频显示优化

parent 80822611
...@@ -191,7 +191,8 @@ ...@@ -191,7 +191,8 @@
<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" id="video-check" preload="none"></video> <span class="video-span"></span>
<!--<video src="/resource/image/liu.mp4" controls="controls" type="video/mp4" id="video-check" preload="none"></video>-->
<br /> <br />
<span class="text-danger delVideo" style="cursor: pointer;">删除</span> <span class="text-danger delVideo" style="cursor: pointer;">删除</span>
</div> </div>
......
...@@ -103,8 +103,11 @@ define(['doT', 'text!temp/video_check_list_template_tpl.html', 'css!style/home.c ...@@ -103,8 +103,11 @@ define(['doT', 'text!temp/video_check_list_template_tpl.html', 'css!style/home.c
house.videoId = $(this).attr("data-id"); house.videoId = $(this).attr("data-id");
$('.shop-name').html(house.videoName); $('.shop-name').html(house.videoName);
$('.shop-time').html(house.videoTime); $('.shop-time').html(house.videoTime);
document.getElementById("video-check").src = ServerHostImageLiu + '/resource/lib/Attachments/video/' + house.videoPath; var tag = '<video src="' + ServerHostImageLiu + '/resource/lib/Attachments/video/' + house.videoPath + '" controls="controls" type="video/mp4" id="video-check" preload="none" poster="' + ServerHostImageLiu + '/resource/lib/Attachments/video/' + house.video_image + '"></video>'
document.getElementById("video-check").poster = ServerHostImageLiu + '/resource/lib/Attachments/video/' + house.video_image; $(".video-span").html(tag);
// <video src="/resource/image/liu.mp4" controls="controls" type="video/mp4" id="video-check" preload="none"></video>
// document.getElementById("video-check").src = ServerHostImageLiu + '/resource/lib/Attachments/video/' + house.videoPath;
// document.getElementById("video-check").poster = ServerHostImageLiu + '/resource/lib/Attachments/video/' + house.video_image;
if($(this).attr("data-check_id") > 0){//审核过 if($(this).attr("data-check_id") > 0){//审核过
$('.shop-name-check').html(''); $('.shop-name-check').html('');
......
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