重新修改背景音乐的功能实现,原来的功能不起作用

This commit is contained in:
2025-12-23 14:33:40 +08:00
parent 63c79e1235
commit 53cb2e9239
9 changed files with 125 additions and 27 deletions

View File

@@ -712,7 +712,29 @@ function dockingInfo() {
.dialog({ title: lang.DockingInformation, width: 600, height: 380 })
.dialog("open");
}
function deletemusic()
{
$.ajax({
url: '/SysHotel/DeleteBGM/',
type: 'Post',
//contentType: 'application/x-www-form-urlencoded',
contentType: 'application/json',
//data: JSON.stringify(getdata),
data: {},
success: function(response) {
$("#welcomebgmid").val("");
},
error: function(xhr, status, error) {
console.log(error);
},
beforeSend: function(xhr) {
console.log('Sending request...');
},
complete: function(xhr, status) {
console.log('Request completed.');
}
});
}
function uploadmusic()
{
var filename = $("#welcomebgm").val();
@@ -725,8 +747,10 @@ function uploadmusic()
secureuri: false,
fileElementId: "welcomebgm",
dataType: "json",
success: function (data) {
success: function (response) {
console.log(response);
var fname= response.FileName;
$("#welcomebgmid").val(fname);
},
error: function (data, status, e) {
$("#msg").html(e);