From a37a7c23e4a814fb4284e5b4d375ef14949e94ae Mon Sep 17 00:00:00 2001 From: wjm <484440634@qq.com> Date: Thu, 12 Dec 2024 20:20:33 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B3=A8=E9=87=8A=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/webapp/front/pages/chat/chat.jsp | 198 ++++----- src/main/webapp/front/pages/config/list.jsp | 443 +++++++++----------- src/main/webapp/front/pages/forum/list.jsp | 360 ++++++++-------- 3 files changed, 478 insertions(+), 523 deletions(-) diff --git a/src/main/webapp/front/pages/chat/chat.jsp b/src/main/webapp/front/pages/chat/chat.jsp index 423216e..70240fe 100644 --- a/src/main/webapp/front/pages/chat/chat.jsp +++ b/src/main/webapp/front/pages/chat/chat.jsp @@ -6,141 +6,143 @@ + +
+ +
+
+
- + +
+
- + +
+
+
- - 发布 -
-
-
- - - - - - - - - - - - - - - + + + + { + this.dataList = res.data.list; // 更新数据列表 + }) + }, + // 提交方法(未实现) + submit() { + this.getList(); // 获取列表数据 + this.ruleForm.ask=""; // 清空输入框内容 + } + } + })">发送 + + + + + + + diff --git a/src/main/webapp/front/pages/config/list.jsp b/src/main/webapp/front/pages/config/list.jsp index 21b4cdc..fc18b9a 100644 --- a/src/main/webapp/front/pages/config/list.jsp +++ b/src/main/webapp/front/pages/config/list.jsp @@ -1,242 +1,207 @@ -<%@ page language="java" contentType="text/html; charset=UTF-8" - pageEncoding="UTF-8"%> -<%@ page isELIgnored="true" %> - - - - - - - 轮播图管理 - - - - - - - - - - -
- - - - - - - -
- - -
- -
-
名称
- -
- - - -
- -
- -
-
-
-
¥{{Number(item.price).toFixed(2)}}
-
¥{{Number(item.vipprice).toFixed(2)}} 会员价
-
{{Number(item.jf).toFixed(0)}}积分
-
-
-
-
- - -
- -
-
- - - - - - - - - - - - - - + + - // 获取列表数据 - http.request('config/list', 'get', param, function(res) { - vue.dataList = res.data.list - // 分页 - laypage.render({ - elem: 'pager', - count: res.data.total, - limit: limit, - groups: 5, - layout: ["count","prev","page","next","limit","skip"], - prev: '上一页', - next: '下一页', - jump: function(obj, first) { - param.page = obj.curr; - //首次不执行 - if (!first) { - http.request('config/list', 'get', param, function(res) { - vue.dataList = res.data.list - }) - } - } - }); - }) - } - }); - - + + + + + Layui Example + + + + +
+ + + + +
+ + +
+ + +
+ + +
+
+ + + + + diff --git a/src/main/webapp/front/pages/forum/list.jsp b/src/main/webapp/front/pages/forum/list.jsp index 906171f..9bf0321 100644 --- a/src/main/webapp/front/pages/forum/list.jsp +++ b/src/main/webapp/front/pages/forum/list.jsp @@ -1,203 +1,191 @@ -<%@ page language="java" contentType="text/html; charset=UTF-8" - pageEncoding="UTF-8"%> -<%@ page isELIgnored="true" %> +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" isELIgnored="true" %> - - - - - 论坛 - - - - - - - - - - -
- - - + + +论坛 + + + + + + + + + +
+ + + - - - - - - - - - - + + + - - + // 搜索按钮 + jquery('#btn-search').click(function(e) { + pageList(); + }); + function pageList() { + // 获取列表数据 + http.request('forum/flist?isdone=开放&sort=addtime&order=desc', 'get', { + page: 1, + limit: limit, + title: '%' + jquery('#title').val() + '%', + }, function(res) { + vue.dataList = res.data.list + // 分页 + laypage.render({ + elem: 'pager', + count: res.data.total, + limit: limit, + groups: 5, + layout: ["count","prev","page","next","limit","skip"], + prev: '上一页', + next: '下一页', + jump: function(obj, first) { + //首次不执行 + if (!first) { + http.request('forum/flist?isdone=开放&sort=addtime&order=desc', 'get', { + page: obj.curr, + limit: obj.limit + }, function(res) { + vue.dataList = res.data.list + }) + } + } + }); + }) + } + }); + +