e54555f6 by yangjianbin

init

1 parent 685a3f41
......@@ -90,7 +90,31 @@
title: '删除产品',
icon: 3
}, function(){
layer.msg('删除');
$.ajax({
type: 'delete',
url: apiBaseUrl + 'config/product/' + id,
cache: false,
data: JSON.stringify(data),
dataType: 'json',
contentType: "application/json; charset=UTF-8",
success: function (data) {
if (data.msg) {
layer.alert(data.msg);
} else if (data.code != 0) {
layer.alert('请求失败');
} else {
layer.msg('删除成功');
}
if(!data.code) {
window.parent.reload();
layer_close();
}
},
error: function () {
layer.alert("请求失败")
}
})
});
}
function reload() {
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!