|
@@ -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来更改标题部分的颜色
|
|
@@ -931,7 +935,7 @@
|
|
|
<body>
|
|
|
<ul class="nav nav-tabs">
|
|
|
<li><a href="${ctx}/baike/cmBaikeProduct/?commodityType=${cmBaikeProduct.commodityType}">采美词条</a></li>
|
|
|
- <li class="active"><a id="createEntryGuidance" href="${ctx}/baike/cmBaikeProduct/form?id=${cmBaikeProduct.id}&commodityType=${cmBaikeProduct.commodityType}">${not empty cmBaikeProduct.id?'编辑':'添加'}</a></li>
|
|
|
+ <li class="active"><a id="createEntryGuidance" href="${ctx}/baike/cmBaikeProduct/form?id=${cmBaikeProduct.id}&commodityType=${cmBaikeProduct.commodityType}">${not empty cmBaikeProduct.id?'查看':'添加'}</a></li>
|
|
|
</ul><br/>
|
|
|
<%-- <div>--%>
|
|
|
<%-- <button onclick="showlog_result(true,'展示正确内容的弹框')">展示正确弹框</button>--%>
|
|
@@ -1183,8 +1187,9 @@
|
|
|
<div class="control-group">
|
|
|
<label class="control-label">词条名称:</label>
|
|
|
<div class="controls">
|
|
|
- <form:input path="name" htmlEscape="false" class="input-xlarge "/>
|
|
|
- <label id="nameSensitiveWords" class="red"></label>
|
|
|
+ ${cmBaikeProduct.name}
|
|
|
+<%-- <form:input path="name" htmlEscape="false" class="input-xlarge "/>--%>
|
|
|
+<%-- <label id="nameSensitiveWords" class="red"></label>--%>
|
|
|
</div>
|
|
|
</div>
|
|
|
<%--义项名--%>
|
|
@@ -1232,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">
|
|
@@ -1255,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">
|
|
@@ -1268,11 +1269,48 @@
|
|
|
</c:if>
|
|
|
</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>
|
|
|
<%--正文--%>
|
|
@@ -1298,8 +1336,8 @@
|
|
|
<span class="del">${videoFile.websiteName}.</span>
|
|
|
<span class="del">${videoFile.publishTime}.</span>
|
|
|
<span class="del">${videoFile.acitationTime}.</span>
|
|
|
- <a class="del" style="margin-left: 12px" onclick="upMaterial(${videoFile.id})">编辑</a>
|
|
|
- <a onclick="delMaterial(${videoFile.id})">删除</a>
|
|
|
+<%-- <a class="del" style="margin-left: 12px" onclick="upMaterial(${videoFile.id})">编辑</a>--%>
|
|
|
+<%-- <a onclick="delMaterial(${videoFile.id})">删除</a>--%>
|
|
|
</div>
|
|
|
</c:if>
|
|
|
<c:if test="${videoFile.referenceType eq '2'}">
|
|
@@ -1311,8 +1349,8 @@
|
|
|
<span class="del">${videoFile.press}.</span>
|
|
|
<span class="del">${videoFile.publicationYear}.</span>
|
|
|
<span class="del">${videoFile.acitationWeb}.</span>
|
|
|
- <a class="del" style="margin-left: 12px" onclick="upMaterial(${videoFile.id})">编辑</a>
|
|
|
- <a onclick="delMaterial(${videoFile.id})">删除</a>
|
|
|
+<%-- <a class="del" style="margin-left: 12px" onclick="upMaterial(${videoFile.id})">编辑</a>--%>
|
|
|
+<%-- <a onclick="delMaterial(${videoFile.id})">删除</a>--%>
|
|
|
</div>
|
|
|
</c:if>
|
|
|
<c:if test="${videoFile.referenceType eq '3'}">
|
|
@@ -1325,8 +1363,8 @@
|
|
|
<img id="imgaa" src="${videoFile.imageUrl}" height="50px" width="50px" ></input>
|
|
|
</div>
|
|
|
--%>
|
|
|
- <a class="del" style="margin-left: 12px" onclick="upMaterial(${videoFile.id})">编辑</a>
|
|
|
- <a onclick="delMaterial(${videoFile.id})">删除</a>
|
|
|
+<%-- <a class="del" style="margin-left: 12px" onclick="upMaterial(${videoFile.id})">编辑</a>--%>
|
|
|
+<%-- <a onclick="delMaterial(${videoFile.id})">删除</a>--%>
|
|
|
</div>
|
|
|
</c:if>
|
|
|
</c:forEach>
|
|
@@ -1360,46 +1398,38 @@
|
|
|
<div class="control-group">
|
|
|
<label class="control-label">SEO关键词:</label>
|
|
|
<div class="auto-input">
|
|
|
- <form:input cssStyle="margin-left: 20px" path="seoKeyword" htmlEscape="false" style="position: relative" class="input-xlarge"/>
|
|
|
+ <form:input cssStyle="margin-left: 20px" path="seoKeyword" htmlEscape="false" style="position: relative" class="input-xlarge" readonly="true"/>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <%--关联供应商--%>
|
|
|
+ <%--基础浏览量--%>
|
|
|
<div class="control-group">
|
|
|
- <label class="control-label">关联供应商:</label>
|
|
|
+ <label class="control-label keyClass">浏览量:</label>
|
|
|
<div class="controls">
|
|
|
- <form:select path="shopId" class="input-xlarge ">
|
|
|
- <form:option value="" label="请选择供应商"/>
|
|
|
- <form:options items="${cmBaikeProduct.shopList}" class="input-xlarge" itemLabel="name" itemValue="shopID" htmlEscape="false"/>
|
|
|
- </form:select>
|
|
|
+ <form:input path="actualPv" htmlEscape="false" onkeyup="onlynum(this)" class="input-xlarge digits " readonly="true"/>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <%--发布时间--%>
|
|
|
<div class="control-group">
|
|
|
- <label class="control-label keyClass">发布时间:</label>
|
|
|
+ <label class="control-label keyClass">供应商:</label>
|
|
|
<div class="controls">
|
|
|
- <input name="publishTime" type="text" readonly="readonly" maxlength="20" class="input-medium Wdate "
|
|
|
- value="<fmt:formatDate value="${cmBaikeProduct.publishTime}" pattern="yyyy-MM-dd HH:mm:ss"/>"
|
|
|
- onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm',isShowClear:false});"/>
|
|
|
+ ${cmBaikeProduct.shopName}
|
|
|
</div>
|
|
|
</div>
|
|
|
- <%--基础浏览量--%>
|
|
|
<div class="control-group">
|
|
|
- <label class="control-label keyClass">基础浏览量:</label>
|
|
|
+ <label class="control-label keyClass">审核:</label>
|
|
|
<div class="controls">
|
|
|
- <form:input path="basePv" htmlEscape="false" onkeyup="onlynum(this)" class="input-xlarge digits "/>
|
|
|
+ <input type="radio" name="auditStatus" value="2" onclick="updateAuditStatus(2)" ${empty cmBaikeProduct.auditStatus?'checked=checked':cmBaikeProduct.auditStatus eq 1?'checked=checked':''}> 审核通过
|
|
|
+ <input type="radio" name="auditStatus" value="3" onclick="updateAuditStatus(3)" ${cmBaikeProduct.auditStatus eq 3?'checked=checked':''}> 审核失败
|
|
|
</div>
|
|
|
</div>
|
|
|
- <%--状态--%>
|
|
|
- <div class="control-group">
|
|
|
- <label class="control-label keyClass">状态:</label>
|
|
|
+ <div class="control-group" id="failReasonDiv" style="${empty cmBaikeProduct.auditStatus or cmBaikeProduct.auditStatus eq 1?'display: none':''}">
|
|
|
+ <label class="control-label"><font color="red">*</font>失败原因</label>
|
|
|
<div class="controls">
|
|
|
- <form:radiobutton path="status" label="发布" value="1" checked="${empty cmBaikeProduct.status?'checked':''}"/>
|
|
|
- <form:radiobutton path="status" label="保存草稿箱" value="0"/>
|
|
|
+ <textarea type="text" id="failReason" name="failReason" required style="width: 400px;height: 90px">${cmBaikeProduct.failReason}</textarea>
|
|
|
</div>
|
|
|
</div>
|
|
|
<%--提交数据 --%>
|
|
|
<div class="form-actions">
|
|
|
- <input id="btnSubmit" class="btn btn-primary" type="submit" value="保 存"/>
|
|
|
+<%-- <input id="btnSubmit" class="btn btn-primary" type="submit" value="保 存"/> --%>
|
|
|
<input id="btnCancel" class="btn" type="button" value="返 回" onclick="history.go(-1)"/>
|
|
|
</div>
|
|
|
</form:form>
|
|
@@ -1561,7 +1591,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')
|
|
@@ -1569,9 +1599,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])
|
|
@@ -2070,6 +2100,14 @@
|
|
|
buttons: {"关闭": '-1'}
|
|
|
});
|
|
|
}
|
|
|
+ function updateAuditStatus(auditStatus) {
|
|
|
+ var elementById = document.getElementById("failReasonDiv");
|
|
|
+ if (auditStatus === 2) {
|
|
|
+ elementById.style.cssText = "display:none";
|
|
|
+ } else {
|
|
|
+ elementById.style.cssText = "";
|
|
|
+ }
|
|
|
+ }
|
|
|
//关键词联动
|
|
|
function autocomplete(text) {
|
|
|
var keywordlist=new Array();
|