From 7d81e02d3d2beb7924478766d8af359a8590022d Mon Sep 17 00:00:00 2001 From: "DESKTOP-RQ919RC\\Pc" <1300399510@qq.com> Date: Tue, 28 Oct 2025 19:10:26 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=96=B0=E5=A2=9E=E8=AF=A6=E6=83=85?= =?UTF-8?q?=E9=A1=B5=E5=92=8C=E4=B8=AA=E4=BA=BA=E4=B8=BB=E9=A1=B5=E5=8A=9F?= =?UTF-8?q?=E8=83=BD=E5=8F=8A=E7=BB=84=E4=BB=B6=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 添加详情页(details.html)和个人主页(homepage-me.html)的完整功能实现 - 新增多个图片资源用于UI展示 - 优化item-head、item-bottom等组件的数据绑定和交互逻辑 - 添加公共工具函数(public.js)包括时间处理和网络请求 - 完善CSS样式文件,增加响应式布局和交互效果 - 实现用户信息展示、帖子详情、相关帖子推荐等功能模块 - 添加签到、投币等交互功能 - 优化组件模板结构和数据传递方式 --- component/item-bottom/item-bottom.js | 9 +- component/item-bottom/item-bottom.txt | 14 +- component/item-forum/item-forum.js | 24 +- component/item-forum/item-forum.txt | 14 +- component/item-head/item-head.js | 32 +- component/item-head/item-head.txt | 21 +- component/item-offer/item-offer.js | 10 - component/item-summary/item-summary.js | 10 - component/item-tenement/item-tenement.js | 2 +- component/item-tenement/item-tenement.txt | 27 +- css/details.css | 496 ++++++ css/details.less | 585 +++++++ css/homepage-me.css | 464 ++++++ css/homepage-me.less | 535 ++++++ css/homepage-other.css | 66 +- css/homepage-other.less | 78 +- css/public.css | 64 +- css/public.less | 76 +- css/{sectionIndex.css => section-index.css} | 136 +- css/{sectionIndex.less => section-index.less} | 160 +- details.html | 205 +++ homepage-me.html | 193 +++ homepage-other.html | 15 +- img/bi-black-icon.png | Bin 0 -> 1623 bytes img/bi-icon.png | Bin 0 -> 16971 bytes img/bi-icon.svg | 18 + img/bi-masking.svg | 11 + img/collect-black-icon.png | Bin 0 -> 1773 bytes img/discuss-black-icon.png | Bin 0 -> 17423 bytes img/dot-dot-dot-gray.png | Bin 0 -> 542 bytes img/empty-icon.png | Bin 0 -> 84471 bytes img/eye-icon.svg | 6 + img/fork-icon.png | Bin 0 -> 489 bytes img/like-black-icon.png | Bin 0 -> 1729 bytes img/post-mj.png | Bin 0 -> 17517 bytes img/post-offer.png | Bin 0 -> 17155 bytes img/post-summary.png | Bin 0 -> 18958 bytes img/post-thread.png | Bin 0 -> 15272 bytes img/post-vote.png | Bin 0 -> 24050 bytes img/question-mark.svg | 6 + img/share-black-icon.png | Bin 0 -> 11426 bytes index.html | 248 +-- js/details.js | 75 + js/homepage-me.js | 1483 +++++++++++++++++ js/public.js | 150 ++ js/section-index.js | 119 ++ js/sectionIndex.js | 12 - section-index.html | 134 +- 48 files changed, 4809 insertions(+), 689 deletions(-) create mode 100644 css/details.css create mode 100644 css/details.less create mode 100644 css/homepage-me.css create mode 100644 css/homepage-me.less rename css/{sectionIndex.css => section-index.css} (70%) rename css/{sectionIndex.less => section-index.less} (70%) create mode 100644 details.html create mode 100644 homepage-me.html create mode 100644 img/bi-black-icon.png create mode 100644 img/bi-icon.png create mode 100644 img/bi-icon.svg create mode 100644 img/bi-masking.svg create mode 100644 img/collect-black-icon.png create mode 100644 img/discuss-black-icon.png create mode 100644 img/dot-dot-dot-gray.png create mode 100644 img/empty-icon.png create mode 100644 img/eye-icon.svg create mode 100644 img/fork-icon.png create mode 100644 img/like-black-icon.png create mode 100644 img/post-mj.png create mode 100644 img/post-offer.png create mode 100644 img/post-summary.png create mode 100644 img/post-thread.png create mode 100644 img/post-vote.png create mode 100644 img/question-mark.svg create mode 100644 img/share-black-icon.png create mode 100644 js/details.js create mode 100644 js/homepage-me.js create mode 100644 js/public.js create mode 100644 js/section-index.js delete mode 100644 js/sectionIndex.js diff --git a/component/item-bottom/item-bottom.js b/component/item-bottom/item-bottom.js index 22f6782..5bc57f6 100644 --- a/component/item-bottom/item-bottom.js +++ b/component/item-bottom/item-bottom.js @@ -5,10 +5,6 @@ const { defineComponent, ref } = Vue; export const itemBottom = defineComponent({ name: "item-bottom", props: { - title: { - type: String, - default: "默认标题", - }, itemdata: { type: Object, default: () => {}, @@ -17,8 +13,11 @@ export const itemBottom = defineComponent({ setup(props) { let item = ref({ ...props.itemdata }); + const likeClick = (item) => { + console.log("item", item); + }; return { item }; }, - 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 a2c34ad..e9afbaa 100644 --- a/component/item-bottom/item-bottom.txt +++ b/component/item-bottom/item-bottom.txt @@ -3,25 +3,29 @@
{{ item?.commentreviews?.content }}
-
- + -