From 7bdeff17f64f9ad376730e98e6d7df8cd79a11c0 Mon Sep 17 00:00:00 2001 From: A1300399510 <1300399510@qq.com> Date: Mon, 3 Nov 2025 00:42:30 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=96=B0=E5=A2=9E=E7=BC=96=E8=BE=91?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E5=92=8C=E5=88=86=E4=BA=AB=E5=8A=9F=E8=83=BD?= =?UTF-8?q?=EF=BC=8C=E4=BC=98=E5=8C=96=E9=93=BE=E6=8E=A5=E8=B7=B3=E8=BD=AC?= =?UTF-8?q?=E5=92=8C=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 添加edit.html编辑页面及相关CSS样式 - 实现内容编辑区的富文本功能 - 为item-bottom组件添加分享功能,包括复制链接和微信转发 - 更新多个组件的链接跳转地址 - 优化CSS样式,包括圆角、阴影和hover效果 - 修复部分样式问题和布局错位 - 移除不再使用的section-index.html文件 --- 1/base.html | 16 + 1/header.html | 1 + 1/index.html | 35 ++ component/head-top/head-top.js | 2 +- component/head-top/head-top.txt | 2 +- component/hot-search/hot-search.js | 2 +- component/hot-search/hot-search.txt | 2 +- component/hot-tag/hot-tag.js | 2 +- component/hot-tag/hot-tag.txt | 2 +- component/item-bottom/item-bottom.js | 8 +- component/item-bottom/item-bottom.txt | 21 +- component/item-forum/item-forum.js | 2 +- component/item-forum/item-forum.txt | 5 +- component/item-head/item-head.js | 4 +- component/item-head/item-head.txt | 4 +- component/latest-list/latest-list.js | 71 ++-- component/latest-list/latest-list.txt | 26 +- component/slideshow-box/slideshow-box.js | 10 +- component/slideshow-box/slideshow-box.txt | 8 +- css/details.css | 112 +++++ css/details.less | 130 ++++++ css/edit.css | 266 ++++++++++++ css/edit.less | 302 +++++++++++++ css/index.css | 43 +- css/index.less | 50 ++- css/public.css | 85 ++++ css/public.less | 109 +++++ css/{section-index.css => section.css} | 53 ++- css/{section-index.less => section.less} | 40 +- edit.html | 86 ++++ img/copy-black-icon.png | Bin 0 -> 742 bytes img/draft-icon.png | Bin 0 -> 1144 bytes img/edit-logo-icon.png | Bin 0 -> 2685 bytes img/essence.png | Bin 0 -> 4999 bytes img/img-icon.png | Bin 0 -> 1237 bytes img/mj-index-icon.png | Bin 0 -> 3359 bytes img/newest-icon.png | Bin 0 -> 4427 bytes img/offer-index-icon.png | Bin 0 -> 5321 bytes img/smiling-face-round-black.png | Bin 0 -> 2471 bytes img/t-icon.png | Bin 0 -> 698 bytes img/tick-box.svg | 6 + img/vote-index-icon.png | Bin 0 -> 4318 bytes img/weixin-icon.png | Bin 0 -> 2505 bytes index.html | 496 +++++++++++----------- js/edit.js | 495 +++++++++++++++++++++ js/index.js | 6 + js/public.js | 6 +- js/{section-index.js => section.js} | 31 +- post | 1 + section-index.html | 128 ------ section.html | 227 ++++++++++ 51 files changed, 2414 insertions(+), 481 deletions(-) create mode 100644 1/base.html create mode 100644 1/header.html create mode 100644 1/index.html create mode 100644 css/edit.css create mode 100644 css/edit.less rename css/{section-index.css => section.css} (79%) rename css/{section-index.less => section.less} (89%) create mode 100644 edit.html create mode 100644 img/copy-black-icon.png create mode 100644 img/draft-icon.png create mode 100644 img/edit-logo-icon.png create mode 100644 img/essence.png create mode 100644 img/img-icon.png create mode 100644 img/mj-index-icon.png create mode 100644 img/newest-icon.png create mode 100644 img/offer-index-icon.png create mode 100644 img/smiling-face-round-black.png create mode 100644 img/t-icon.png create mode 100644 img/tick-box.svg create mode 100644 img/vote-index-icon.png create mode 100644 img/weixin-icon.png create mode 100644 js/edit.js rename js/{section-index.js => section.js} (85%) create mode 160000 post delete mode 100644 section-index.html create mode 100644 section.html diff --git a/1/base.html b/1/base.html new file mode 100644 index 0000000..2a3fd6b --- /dev/null +++ b/1/base.html @@ -0,0 +1,16 @@ + + + + + {block name="title"}标题{/block} + + + + {block name="menu"}菜单{/block} + {block name="left"}左边分栏{/block} + {block name="main"}主内容{/block} + {block name="right"}右边分栏{/block} + {block name="footer"}底部{/block} + + + \ No newline at end of file diff --git a/1/header.html b/1/header.html new file mode 100644 index 0000000..0015833 --- /dev/null +++ b/1/header.html @@ -0,0 +1 @@ +模板被引用 \ No newline at end of file diff --git a/1/index.html b/1/index.html new file mode 100644 index 0000000..5e9d669 --- /dev/null +++ b/1/index.html @@ -0,0 +1,35 @@ +{extend name="forum/base" /} + +{block name="title"}{$title}{/block} + +{block name="menu"} +首页 +资讯 +论坛 + + +{include file="forum/header" /} + + +{/block} + +{block name="left"}{/block} + +{block name="main"} +{volist name="list" id="vo"} +{$vo.title}
+{$vo.content} +{/volist} +{/block} + +{block name="right"} +最新资讯: +{volist name="news" id="new"} +{$new.title}
+{/volist} +{/block} + +{block name="footer"} +{__block__} +@寄托天下 版权所有 +{/block} \ No newline at end of file diff --git a/component/head-top/head-top.js b/component/head-top/head-top.js index e53e4c9..b86dac9 100644 --- a/component/head-top/head-top.js +++ b/component/head-top/head-top.js @@ -19,5 +19,5 @@ export const headTop = defineComponent({ return { signInAlreadyState }; }, - template: `
已签到,明天再来
签到领寄托币
GO
`, + template: `
已签到,明天再来
签到领寄托币
GO
`, }); diff --git a/component/head-top/head-top.txt b/component/head-top/head-top.txt index 37918b6..18ab0ad 100644 --- a/component/head-top/head-top.txt +++ b/component/head-top/head-top.txt @@ -3,7 +3,7 @@
- +
diff --git a/component/hot-search/hot-search.js b/component/hot-search/hot-search.js index 7300765..7ec7363 100644 --- a/component/hot-search/hot-search.js +++ b/component/hot-search/hot-search.js @@ -25,5 +25,5 @@ export const hotSearch = defineComponent({ components: {}, - template: `
热门搜索
`, + template: `
热门搜索
`, }); diff --git a/component/hot-search/hot-search.txt b/component/hot-search/hot-search.txt index 047ea0c..122259a 100644 --- a/component/hot-search/hot-search.txt +++ b/component/hot-search/hot-search.txt @@ -4,6 +4,6 @@ 热门搜索
- {{ item.keyword }} + {{ item.keyword }}
\ No newline at end of file diff --git a/component/hot-tag/hot-tag.js b/component/hot-tag/hot-tag.js index 17b48d7..9244565 100644 --- a/component/hot-tag/hot-tag.js +++ b/component/hot-tag/hot-tag.js @@ -25,5 +25,5 @@ export const hotTag = defineComponent({ components: {}, - template: `
热门标签
{{ item.tagname }}
`, + template: `
热门标签
{{ item.tagname }}
`, }); diff --git a/component/hot-tag/hot-tag.txt b/component/hot-tag/hot-tag.txt index 7bd75eb..ca57f25 100644 --- a/component/hot-tag/hot-tag.txt +++ b/component/hot-tag/hot-tag.txt @@ -4,6 +4,6 @@ 热门标签
- {{ item.tagname }} + {{ item.tagname }}
\ No newline at end of file diff --git a/component/item-bottom/item-bottom.js b/component/item-bottom/item-bottom.js index 3b9674c..feb1187 100644 --- a/component/item-bottom/item-bottom.js +++ b/component/item-bottom/item-bottom.js @@ -98,12 +98,16 @@ export const itemBottom = defineComponent({ }); }; - return { collectClick, item, likeClick, isLogin, isLikeGif }; + const copyLinkClick = () => { + copyUid(`http://14.22.79.19:9551/?tpl=forum/details&uniqid=${item.value.uniqid}`); + } + + return { copyLinkClick, collectClick, item, likeClick, isLogin, isLikeGif }; }, components: { like, }, - template: `
{{ item?.commentreviews?.content || "[图]" }}
{{ item.likes || "赞" }}
{{ item.collections || "收藏" }}
{{ item.comments || "讨论" }}
{{ item.coins || "投币" }}
转发
`, + template: `
{{ item?.commentreviews?.content || "[图]" }}
{{ item.likes || "赞" }}
{{ item.collections || "收藏" }}
{{ item.comments || "讨论" }}
{{ item.coins || "投币" }}
转发
`, }); diff --git a/component/item-bottom/item-bottom.txt b/component/item-bottom/item-bottom.txt index 4d94b16..3bd3d2a 100644 --- a/component/item-bottom/item-bottom.txt +++ b/component/item-bottom/item-bottom.txt @@ -1,9 +1,9 @@
{{ item?.commentreviews?.content || "[图]" }}
-
+