v2.0.16-20230425

This commit is contained in:
MI15\Win
2023-04-25 17:14:13 +08:00
parent ccae67f236
commit 5b6925aafa
35 changed files with 781 additions and 75 deletions

View File

@@ -48,7 +48,7 @@ layui.use(['layer','miniTab'], function(){
//如果失败
if(up_info.code != 1){
layer.closeAll();
layer.alert(up_info.msg ?? "错误代码404",{icon:2,title:'更新失败',anim: 2,shadeClose: false,closeBtn: 0,btn: ['知道了']});
layer.alert(up_info.msg || "错误代码404",{icon:2,title:'更新失败',anim: 2,shadeClose: false,closeBtn: 0,btn: ['知道了']});
return;
}
//设为异步模式
@@ -70,7 +70,7 @@ layui.use(['layer','miniTab'], function(){
request_update();
}else{
layer.closeAll();
layer.alert(data.msg ?? "未知错误,请联系开发者!",{icon:5,title:up_info.info[i-1],anim: 2,shadeClose: false,closeBtn: 0,btn: ['知道了']});
layer.alert(data.msg || "未知错误,请联系开发者!",{icon:5,title:up_info.info[i-1],anim: 2,shadeClose: false,closeBtn: 0,btn: ['知道了']});
}
});
}

View File

@@ -47,7 +47,7 @@ layui.define(['table', 'jquery', 'form'], function (exports) {
//判断是否多搜索条件
if(opt.searchType == 'more'){
$.each(opt.searchList, function (index, item) {
tableBox += '<input style="display:inline-block;width:'+(item.width ?? '190px') +';height:30px;vertical-align:middle;margin-right:-1px;border: 1px solid #C9C9C9;" type="text" name="'+item.searchKey+'" placeholder="'+item.searchPlaceholder+'" autocomplete="off" class="layui-input">';
tableBox += '<input style="display:inline-block;width:'+(item.width || '190px') +';height:30px;vertical-align:middle;margin-right:-1px;border: 1px solid #C9C9C9;" type="text" name="'+item.searchKey+'" placeholder="'+item.searchPlaceholder+'" autocomplete="off" class="layui-input">';
});
}else{
tableBox += '<input style="display:inline-block;width:190px;height:30px;vertical-align:middle;margin-right:-1px;border: 1px solid #C9C9C9;" type="text" name="'+opt.searchKey+'" placeholder="'+opt.searchPlaceholder+'" autocomplete="off" class="layui-input">';

View File

@@ -79,7 +79,7 @@ layui.use(['form','upload','miniTab'], function () {
form_data.icon = res.icon;
$("#icon").val(res.icon);
}else{
layer.msg(res.msg ?? '上传失败', {icon: 5});
layer.msg(res.msg || '上传失败', {icon: 5});
}
},error: function(){

View File

@@ -7,7 +7,7 @@ layui.use(['form','table','dropdown','miniTab'], function () {
var categorys = [];
var IDs = [];
var api = get_api('read_link_list'); //列表接口
var limit = localStorage.getItem(u + "_limit")??50; //尝试读取本地记忆数据,没有就默认50
var limit = localStorage.getItem(u + "_limit") || 50; //尝试读取本地记忆数据,没有就默认50
var pwds = [];
miniTab.listen();
//渲染表格

View File

@@ -3,7 +3,7 @@ layui.use(['form','table'], function () {
var table = layui.table;
var data_tr,table_page;
var api = get_api('read_link_list'); //列表接口
var limit = localStorage.getItem(u + "_limit")??50; //尝试读取本地记忆数据,没有就默认50
var limit = localStorage.getItem(u + "_limit") || 50; //尝试读取本地记忆数据,没有就默认50
var cols=[[ //表头
{type:'radio'} //开启单选框