Commit 106a12de authored by agping's avatar agping

商铺视频 优化

parent 18695f9c
......@@ -3,7 +3,8 @@
<style>
video{
width: 296px;
height: 200px;
height: 396px;
outline: none;
}
.modal-body {
/*height: 600px;*/
......@@ -149,7 +150,7 @@
<!-- #查看-->
<div class="modal fade modal_followup" id="modal_shop_detail" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog modal-dialog-one">
<div class="modal-content">
<div class="modal-content" style="height: 699px;">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">
&times;
......@@ -178,7 +179,7 @@
<!--审核-->
<div class="modal fade modal_followup" id="modal_shop_check" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog modal-dialog-one" style="width: 800px;">
<div class="modal-content" style="height: 600px;">
<div class="modal-content" style="height: 699px;">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">
&times;
......@@ -190,7 +191,7 @@
<div class="modal-body modal-body-one">
<div style="overflow: hidden;">
<div style="float: left; text-align: center;">
<video src="/resource/image/liu.mp4" controls="controls" type="video/mp4" id="video-check"></video>
<video src="/resource/image/liu.mp4" controls="controls" type="video/mp4" id="video-check" preload="none"></video>
<br />
<span class="text-danger delVideo" style="cursor: pointer;">删除</span>
</div>
......@@ -199,8 +200,10 @@
<span class="text-danger">备注:视频将展示给客户看,请注意不要泄露位置!</span>
</div>
</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>
上传人:<span class="shop-name"></span> <br />
上传时间:<span class="shop-time"></span> <br />
审核人:<span class="shop-name-check"></span> <br />
审核时间:<span class="shop-time-check"></span>
</div>
</div>
......
......@@ -96,6 +96,7 @@ define(['doT', 'text!temp/video_check_list_template_tpl.html', 'css!style/home.c
//点击审核视频 按钮
_doc.on('click', '.review-video', function(){
var _this = $(this);
house.video_image = $(this).attr("data-img");
house.videoPath = $(this).attr("data-name");
house.videoName = $(this).attr("data-uploadName");
house.videoTime = $(this).attr("data-time");
......@@ -103,6 +104,8 @@ define(['doT', 'text!temp/video_check_list_template_tpl.html', 'css!style/home.c
$('.shop-name').html(house.videoName);
$('.shop-time').html(house.videoTime);
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){//审核过
$('.shop-name-check').html('');
$('.shop-time-check').html('');
......
......@@ -14,7 +14,7 @@
</td>
<td>
[% if(it[item]["check_id"] == 0 && check_auth('index/checkVideo')) { %]
<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-check_id='[%= it[item]["check_id"] %]'>审核</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-img='[%= it[item]["video_image"] %]' data-id='[%= it[item]["id"] %]' data-check_id='[%= it[item]["check_id"] %]'>审核</a>
[% } %]
<a class="btn1 btn-success" href="#modal_shop_detail" data-id='[%= it[item]["house_id"] %]' data-toggle="modal">查看商铺</a>
......@@ -38,7 +38,7 @@
[% 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>
<video src="[%= it[item]['video_path'] %]" controls="controls" preload="none" muted type="video/mp4" id="video-check" style="width: 260px;height: 396px;margin-right: 6px;" poster="[%= it[item]['video_image'] %]"></video>
<br />
上传人:[%= it[item]['upload_name'] %]
<br />
......
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