chore: 模版更新

This commit is contained in:
xiongxiaoyang 2023-09-29 19:25:06 +08:00
parent 44bf0cd693
commit 4497dd1974

View File

@ -1,5 +1,5 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"> <html xmlns="http://www.w3.org/1999/xhtml">
<head> <head>
<head> <head>
@ -16,6 +16,7 @@
background: #f80; background: #f80;
color: #fff; color: #fff;
} }
a.redBtn:hover { a.redBtn:hover {
color: #fff; color: #fff;
@ -27,7 +28,8 @@
<div class="header"> <div class="header">
<div class="mainNav" id="mainNav"> <div class="mainNav" id="mainNav">
<div class="box_center cf" style="text-align: center;height: 44px;line-height: 48px;color: #fff;font-size: 16px;"> <div class="box_center cf"
style="text-align: center;height: 44px;line-height: 48px;color: #fff;font-size: 16px;">
小说精品屋作家管理 小说精品屋作家管理
@ -88,7 +90,6 @@
<tbody id="bookList"> <tbody id="bookList">
</tbody> </tbody>
</table> </table>
<div class="pageBox cf" id="shellPage"> <div class="pageBox cf" id="shellPage">
@ -165,8 +166,8 @@
" </td>\n" +*/ " </td>\n" +*/
" <td style=\"position: relative\" class=\"goread\">\n" + " <td style=\"position: relative\" class=\"goread\">\n" +
"<input class=\"opacity\" onchange=\"picChange('"+book.id+"')\"\n" + "<input class=\"opacity\" onchange=\"picChange('" + book.id + "'," + i + ")\"\n" +
" type=\"file\" id=\"file0\" name=\"file\"\n" + " type=\"file\" id=\"file" + i + "\" name=\"file\"\n" +
" title=\"点击上传图片\"\n" + " title=\"点击上传图片\"\n" +
" style=\"z-index: 100;cursor: pointer;left: 30px; top: 0px; width: 60px; height: 80px; opacity: 0; position: absolute; \"\n" + " style=\"z-index: 100;cursor: pointer;left: 30px; top: 0px; width: 60px; height: 80px; opacity: 0; position: absolute; \"\n" +
" />" + " />" +
@ -273,21 +274,18 @@
}) })
} }
function picChange(bookId) { function picChange(bookId, i) {
var file = $("#file0").val(); //文件名称 var file = $("#file" + i).val(); //文件名称
if (file != "") { if (file != "") {
if(checkPicUpload($("#file0")[0])) { if (checkPicUpload($("#file" + i)[0])) {
$.ajaxFileUpload({ $.ajaxFileUpload({
url: "/file/picUpload", //用于文件上传的服务器端请求地址 url: "/file/picUpload", //用于文件上传的服务器端请求地址
secureuri: false, //是否需要安全协议一般设置为false secureuri: false, //是否需要安全协议一般设置为false
fileElementId: "file0", //文件上传域的ID fileElementId: "file" + i, //文件上传域的ID
dataType: "json", //返回值类型 一般设置为json dataType: "json", //返回值类型 一般设置为json
type: "post", type: "post",
success: function (data) { //服务器成功响应处理函数 success: function (data) { //服务器成功响应处理函数
@ -327,7 +325,6 @@
} }
} }
</script> </script>
</html> </html>