|
@@ -526,6 +526,10 @@
|
|
|
margin-left: 27px !important;
|
|
|
margin-top: 14px;
|
|
|
}
|
|
|
+ .video{
|
|
|
+ margin-left: 95px;
|
|
|
+ margin-top: 80px;
|
|
|
+ }
|
|
|
</style>
|
|
|
<script type="text/javascript">
|
|
|
//显示弹框,并且根据结果是true或false来更改标题部分的颜色
|
|
@@ -1233,12 +1237,10 @@
|
|
|
</div>
|
|
|
</c:forEach>
|
|
|
</div>
|
|
|
- </div>
|
|
|
- <div class="control-group">
|
|
|
- <div class="control-group">
|
|
|
- <label class="control-label keyClass">相关视频(各视频大小不超过50M,最多上传6个)</label>
|
|
|
+ <div class="control-label">
|
|
|
+ <label class="control-label keyClass" style="margin-left: 90px">概述视频(各视频大小不超过50M,最多上传6个)</label>
|
|
|
</div>
|
|
|
- <div class="control-group">
|
|
|
+ <div class="control-group video">
|
|
|
<label class="control-label">标题:</label>
|
|
|
<div class="controls">
|
|
|
<input id="fileTitle" htmlEscape="false" type="text">
|
|
@@ -1256,8 +1258,6 @@
|
|
|
<img alt="gif" src="/static/images/upload.gif" width="32px" border="none">
|
|
|
</div>
|
|
|
</div>
|
|
|
- </div>
|
|
|
- <div class="control-group">
|
|
|
<div id='file-list-display' style="margin-left:180px">
|
|
|
<c:if test="${not empty cmBaikeProduct.videoList}">
|
|
|
<c:forEach items="${cmBaikeProduct.videoList}" var="videoFile" varStatus="statusIndex">
|
|
@@ -1270,10 +1270,46 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
+<%-- <div class="control-group">--%>
|
|
|
+<%-- <div class="control-group">--%>
|
|
|
+<%-- <label class="control-label keyClass">概述视频(各视频大小不超过50M,最多上传6个)</label>--%>
|
|
|
+<%-- </div>--%>
|
|
|
+<%-- <div class="control-group">--%>
|
|
|
+<%-- <label class="control-label">标题:</label>--%>
|
|
|
+<%-- <div class="controls">--%>
|
|
|
+<%-- <input id="fileTitle" htmlEscape="false" type="text">--%>
|
|
|
+<%-- </div>--%>
|
|
|
+<%-- <label class="control-label" style="margin-top:10px">视频路径:</label>--%>
|
|
|
+<%-- <div class="controls" style="margin-top:10px;width: 600px;">--%>
|
|
|
+<%-- <input id="uploadFileName" type="text" style="display: inline;" placeholder="支持mp4" disabled="true" class="input-xlarge required" />--%>
|
|
|
+<%-- <div class="upload">--%>
|
|
|
+<%-- <input type="file" name="file" id="productFile" accept=".mp4" >选择文件--%>
|
|
|
+<%-- </div>--%>
|
|
|
+<%-- <div class="add-submit">--%>
|
|
|
+<%-- <input id="addSubmit" type="button" value="上传"/>上传 --%>
|
|
|
+<%-- </div>--%>
|
|
|
+<%-- <div class="upload-loading">--%>
|
|
|
+<%-- <img alt="gif" src="/static/images/upload.gif" width="32px" border="none">--%>
|
|
|
+<%-- </div>--%>
|
|
|
+<%-- </div>--%>
|
|
|
+<%-- </div>--%>
|
|
|
+<%-- <div class="control-group">--%>
|
|
|
+<%-- <div id='file-list-display' style="margin-left:180px">--%>
|
|
|
+<%-- <c:if test="${not empty cmBaikeProduct.videoList}">--%>
|
|
|
+<%-- <c:forEach items="${cmBaikeProduct.videoList}" var="videoFile" varStatus="statusIndex">--%>
|
|
|
+<%-- <p>${videoFile.fileTitle}--%>
|
|
|
+<%-- <span class="del"><a onclick="previewVideo('${videoFile.ossUrl}')">预览</a></span>--%>
|
|
|
+<%-- <span class="del" onclick="dataDelete(this,'${videoFile.id}')">删除</span>--%>
|
|
|
+<%-- </p>--%>
|
|
|
+<%-- </c:forEach>--%>
|
|
|
+<%-- </c:if>--%>
|
|
|
+<%-- </div>--%>
|
|
|
+<%-- </div>--%>
|
|
|
+<%-- </div>--%>
|
|
|
<%--信息栏--%>
|
|
|
<div class="control-group paramList" id="paramList">
|
|
|
- <label class="control-label titleClass">信息栏:(注:未填写的信息将不会显示在词条页上)</label>
|
|
|
- <div class="controls add-button"><button class="btn btn-primary" type="button">增加信息项</button></div>
|
|
|
+ <label class="control-label titleClass" style="margin-left: 90px">信息栏:(注:未填写的信息将不会显示在词条页上)</label>
|
|
|
+ <div class="controls add-button"><button class="btn btn-primary" type="button" style="margin-left: 20px">增加信息项</button></div>
|
|
|
<div class="controls param-controls not-overflow"></div>
|
|
|
</div>
|
|
|
<%--正文--%>
|
|
@@ -1527,15 +1563,26 @@
|
|
|
}
|
|
|
// 初始化信息栏
|
|
|
function initParamList(){
|
|
|
- <c:forEach items="${cmBaikeProduct.paramList}" var="videoFile" varStatus="statusIndex">
|
|
|
- var index=${statusIndex.index}
|
|
|
+ var te='${cmBaikeProduct.paramList}';
|
|
|
+ if(''==te ||null==te ||te=='[]') {
|
|
|
+ var paramList=[{},{},{}]
|
|
|
+ paramList.forEach(function(item, index){
|
|
|
paramItemIndex = index
|
|
|
- var paramItem = createParamItem(index)
|
|
|
- $('#paramList .param-controls').append(paramItem)
|
|
|
- createContentEdit('#param-' + index,'${videoFile.content}')
|
|
|
- console.log('${videoFile.name}')
|
|
|
- $('#paramName-'+index).val('${videoFile.name}')
|
|
|
- </c:forEach>
|
|
|
+ var paramItem = createParamItem(index)
|
|
|
+ $('#paramList .param-controls').append(paramItem)
|
|
|
+ createContentEdit('#param-' + index)
|
|
|
+ })
|
|
|
+ }else{
|
|
|
+ <c:forEach items="${cmBaikeProduct.paramList}" var="videoFile" varStatus="statusIndex">
|
|
|
+ var index=${statusIndex.index}
|
|
|
+ paramItemIndex = index
|
|
|
+ var paramItem = createParamItem(index)
|
|
|
+ $('#paramList .param-controls').append(paramItem)
|
|
|
+ createContentEdit('#param-' + index,'${videoFile.content}')
|
|
|
+ console.log('${videoFile.name}')
|
|
|
+ $('#paramName-'+index).val('${videoFile.name}')
|
|
|
+ </c:forEach>
|
|
|
+ }
|
|
|
// paramList.forEach(function(item, index){
|
|
|
// paramItemIndex = index
|
|
|
// var paramItem = createParamItem(index)
|
|
@@ -1562,7 +1609,7 @@
|
|
|
input = $('<input type="text" />')
|
|
|
input.attr('id', inputId)
|
|
|
input.attr('name', 'textInfolist[' + index + '].dictionaryContent')
|
|
|
- var placeholder = type == 1 ? '一级目录' : '二级目录'
|
|
|
+ var placeholder = type == 1 ? '一级标题' : '二级标题'
|
|
|
input.attr('placeholder', placeholder)
|
|
|
inputType=$('<input type="text" />')
|
|
|
inputType.attr('name','textInfolist[' + index + '].dictionaryType')
|
|
@@ -1570,9 +1617,9 @@
|
|
|
inputType.attr('style','display: none')
|
|
|
}
|
|
|
var control = $('<div class="bk-textInfo-control"></div>')
|
|
|
- var first = $('<span>一级目录</span>')
|
|
|
- var second = $('<span>二级目录</span>')
|
|
|
- var content = $('<span>内容</span>')
|
|
|
+ var first = $('<span>+一级标题</span>')
|
|
|
+ var second = $('<span>+二级标题</span>')
|
|
|
+ var content = $('<span>+内容</span>')
|
|
|
var deleteBtn = $('<span>删除</span>')
|
|
|
control.append([first, second, content, deleteBtn])
|
|
|
textInfoItem.append([input,inputType,control])
|