|
|
<!DOCTYPE html>
|
|
|
<html>
|
|
|
<head>
|
|
|
<meta charset="UTF-8"/>
|
|
|
<title>Yoho!Buy运营平台</title>
|
|
|
<script src="/ufoPlatform/js/include.js"></script>
|
|
|
</head>
|
|
|
<body class="easyui-layout" fit="true">
|
|
|
<div region="north" style="height: 230px">
|
|
|
<script>
|
|
|
document.write(addHead('辅助工具', ''));
|
|
|
</script>
|
|
|
<style>
|
|
|
.div_search input {
|
|
|
margin-top: 20px;
|
|
|
}
|
|
|
|
|
|
.div_search .textbox {
|
|
|
margin-top: 20px;
|
|
|
}
|
|
|
|
|
|
.div_search .easyui-linkbutton {
|
|
|
margin-top: 20px;
|
|
|
}
|
|
|
</style>
|
|
|
<div style="margin-left: 30px;" class="div_search">
|
|
|
<input id="productCode" type="text"/>
|
|
|
|
|
|
<a id="syncButton" class="easyui-linkbutton btn-info" data-options="iconCls:'icon-search'">同步订单商品信息</a>
|
|
|
</div>
|
|
|
</div>
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
|
var productPoolId;
|
|
|
$(function () {
|
|
|
|
|
|
$("#productCode").textbox({
|
|
|
prompt: "商品编号"
|
|
|
});
|
|
|
|
|
|
// 同步
|
|
|
$("#syncButton").linkbutton({
|
|
|
onClick: function () {
|
|
|
var param = getParams();
|
|
|
syncOrderGoodsInfo(param);
|
|
|
}
|
|
|
});
|
|
|
|
|
|
//同步订单商品的图片地址和商品名称
|
|
|
function syncOrderGoodsInfo(param) {
|
|
|
$.ajax({
|
|
|
type: 'POST',
|
|
|
url: contextPath + '/product/syncOrderGoodsInfo',
|
|
|
data: param,
|
|
|
success: function (result) {
|
|
|
if(result.code == 200){
|
|
|
window.self.$.messager.show({
|
|
|
title : "提示",
|
|
|
msg : result.message
|
|
|
});
|
|
|
$("#productCode").val('');
|
|
|
}else {
|
|
|
window.self.$.messager.alert("失败", result.message, "error");
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
/**
|
|
|
* 提取参数
|
|
|
*/
|
|
|
function getParams() {
|
|
|
var productCode = $('#productCode').textbox('getValue');
|
|
|
var param = {};
|
|
|
if (undefined !== productCode && null !== productCode && "" !== productCode) {
|
|
|
param.productCode = productCode;
|
|
|
}
|
|
|
return param;
|
|
|
}
|
|
|
});
|
|
|
|
|
|
</script>
|
|
|
|
|
|
</body>
|
|
|
</html> |
|
|
\ No newline at end of file |
...
|
...
|
|