feat: 拖拽布局-测试接口对接

flex-api
LCJ-MinYa 4 weeks ago
parent 76d762d7c6
commit 36c641dd71

@ -1,4 +1,22 @@
(function () { (function () {
// 获取模版列表
var getTemplateList = function () {
// 获取JSON数据
$.ajax({
url: 'http://www.dtviptvott.com:20018/template/list',
type: 'GET',
dataType: 'json',
success: function (response) {
console.log('请求成功:', response);
// 处理响应数据
$('#result').html(JSON.stringify(response, null, 2));
},
error: function (xhr, status, error) {
console.log('请求失败:', error);
},
});
};
$(function () { $(function () {
$.getJSON('data.json', function (data) { $.getJSON('data.json', function (data) {
var listPanel = $('#list-panel'); var listPanel = $('#list-panel');
@ -56,5 +74,7 @@
console.log('应用'); console.log('应用');
}); });
}); });
getTemplateList();
}); });
})(); })();

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save