...
|
...
|
@@ -58,7 +58,11 @@ |
|
|
<tr>
|
|
|
<td><label>订单类型:</label><span id="preSellOrNormal"></span></td>
|
|
|
<td><label>促销活动:</label><span id="activityType"></span></td>
|
|
|
<td><label>鉴定视频:</label><a href="javascript:void(0)" vedioUrl="" onclick="queryVedioUrl();" id="vedioUrl">查看视频</a></td>
|
|
|
<td>
|
|
|
<label>鉴定视频:</label>
|
|
|
<a href="javascript:void(0)" vedioUrl="" onclick="queryVedioUrl();" id="vedioUrl">查看视频</a>
|
|
|
<a href="javascript:void(0)" vedioUrl="" onclick="generateVedioUrl();" id="vedioUrl">重新生成</a>
|
|
|
</td>
|
|
|
</tr>
|
|
|
</table>
|
|
|
|
...
|
...
|
@@ -222,9 +226,11 @@ |
|
|
</div>
|
|
|
</div>
|
|
|
<script>
|
|
|
var orderCodeEx;
|
|
|
$(function() {
|
|
|
var param=window.location.search;
|
|
|
var orderCode = getQueryString(param, "orderCode");
|
|
|
orderCodeEx = orderCode;
|
|
|
var skup = getQueryString(param, "skup");
|
|
|
|
|
|
$("#returnBtn").linkbutton({
|
...
|
...
|
@@ -602,6 +608,67 @@ function queryVedioUrl() { |
|
|
window.open($('#vedioUrl').attr('vedioUrl') + "?ver=" + new Date().getTime())
|
|
|
}
|
|
|
|
|
|
function generateVedioUrl() {
|
|
|
var div = $("<div>").appendTo($(document.body));
|
|
|
var title = "重新生成视频";
|
|
|
var message = "确认重新生成视频吗?";
|
|
|
$(div).myDialog({
|
|
|
width: "550px",
|
|
|
height: "450px",
|
|
|
title: title,
|
|
|
href: contextPath + "/html/orderManage/generateVedio.html?time_version=" + new Date().getTime(),
|
|
|
queryParams: {
|
|
|
},
|
|
|
modal: true,
|
|
|
collapsible: true,
|
|
|
cache: false,
|
|
|
buttons: [{
|
|
|
id: "saveBtn",
|
|
|
text: "重新生成",
|
|
|
handler: function () {
|
|
|
$.messager.confirm("确认", message, function (flag) {
|
|
|
if (flag) {
|
|
|
var url = contextPath + "/live/generateMp4VedioEx";
|
|
|
$("#vedioEditForm").form("submit", {
|
|
|
url: url,
|
|
|
onSubmit: function () {
|
|
|
if (!$("#vedioEditForm").form("validate")) {
|
|
|
return false;
|
|
|
}
|
|
|
$.messager.progress({
|
|
|
title: "正在执行",
|
|
|
msg: "正在执行,请稍后..."
|
|
|
});
|
|
|
return true;
|
|
|
},
|
|
|
success: function (data) {
|
|
|
$.messager.progress("close");
|
|
|
data = JSON.parse(data);
|
|
|
if (data.code == 200) {
|
|
|
$(div).dialog("close");
|
|
|
$.messager.show({
|
|
|
title: "提示",
|
|
|
msg: title + "成功!",
|
|
|
height: 120
|
|
|
});
|
|
|
} else {
|
|
|
$.messager.alert("失败", data.message, "error");
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
}, {
|
|
|
text: "关闭",
|
|
|
iconCls: "icon-cancel",
|
|
|
handler: function () {
|
|
|
$(div).dialog("close");
|
|
|
}
|
|
|
}]
|
|
|
});
|
|
|
}
|
|
|
|
|
|
function initAreaDropDown(areaCode){
|
|
|
var firstId = areaCode.substr(0,2);
|
|
|
var secondId = areaCode.substr(0,4);
|
...
|
...
|
|