From 6bb48ff86d60e3533f22905c9393cbbc25a10215 Mon Sep 17 00:00:00 2001 From: "DESKTOP-RQ919RC\\Pc" <1300399510@qq.com> Date: Wed, 22 Oct 2025 18:31:16 +0800 Subject: [PATCH] =?UTF-8?q?refactor(component):=20=E9=87=8D=E6=9E=84?= =?UTF-8?q?=E7=BB=84=E4=BB=B6=E6=A8=A1=E6=9D=BF=E4=B8=8E=E6=A0=B7=E5=BC=8F?= =?UTF-8?q?=E7=BB=93=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 将公共样式提取至public.css,优化组件模板结构 添加图片资源与组件模板同步脚本 调整组件样式与布局,统一风格 --- component/item-bottom/item-bottom.js | 24 + component/item-bottom/item-bottom.txt | 28 + component/item-forum/item-forum.js | 20 +- component/item-forum/item-forum.text | 5 - component/item-forum/item-forum.txt | 15 + component/item-head/item-head.js | 22 + component/item-head/item-head.txt | 28 + component/item-offer/item-offer.js | 33 + component/item-offer/item-offer.txt | 28 + component/item-summary/item-summary.js | 33 + component/item-summary/item-summary.txt | 36 + component/item-vote/item-vote.js | 38 + component/item-vote/item-vote.txt | 29 + css/homepage-other.css | 89 +- css/homepage-other.less | 107 +- css/index.css | 167 --- css/index.less | 204 +--- css/public.css | 419 +++++++ css/public.less | 509 +++++++++ css/sectionIndex.css | 41 - css/sectionIndex.less | 50 - homepage-other.html | 273 +++-- img/arrows-circle-dark-blue.svg | 6 + img/forum-title.png | Bin 0 -> 5735 bytes img/offer-icon.png | Bin 0 -> 6099 bytes img/vote-tick.svg | 6 + index.html | 1 + js/homepage-other.js | 1393 ++++++++++++++++++++++- js/save.js | 71 ++ js/sectionIndex.js | 4 +- section-index.html | 1 + 31 files changed, 3067 insertions(+), 613 deletions(-) create mode 100644 component/item-bottom/item-bottom.js create mode 100644 component/item-bottom/item-bottom.txt delete mode 100644 component/item-forum/item-forum.text create mode 100644 component/item-forum/item-forum.txt create mode 100644 component/item-head/item-head.js create mode 100644 component/item-head/item-head.txt create mode 100644 component/item-offer/item-offer.js create mode 100644 component/item-offer/item-offer.txt create mode 100644 component/item-summary/item-summary.js create mode 100644 component/item-summary/item-summary.txt create mode 100644 component/item-vote/item-vote.js create mode 100644 component/item-vote/item-vote.txt create mode 100644 css/public.css create mode 100644 css/public.less create mode 100644 img/arrows-circle-dark-blue.svg create mode 100644 img/forum-title.png create mode 100644 img/offer-icon.png create mode 100644 img/vote-tick.svg create mode 100644 js/save.js diff --git a/component/item-bottom/item-bottom.js b/component/item-bottom/item-bottom.js new file mode 100644 index 0000000..22f6782 --- /dev/null +++ b/component/item-bottom/item-bottom.js @@ -0,0 +1,24 @@ +// my-component.js +// 引入全局 Vue 对象(因在 HTML 中通过 script 引入,Vue 已挂载到 window) +const { defineComponent, ref } = Vue; +// 定义组件(直接使用模板) +export const itemBottom = defineComponent({ + name: "item-bottom", + props: { + title: { + type: String, + default: "默认标题", + }, + itemdata: { + type: Object, + default: () => {}, + }, + }, + + setup(props) { + let item = ref({ ...props.itemdata }); + return { item }; + }, + + template: `
+ 这是从text文件加载的模板内容
- -这是从text文件加载的模板内容
- -
+
-
-
-
- UID: 3276161
-
-
勋章 6
-
+ UID: 3276161
+
+
勋章 6
+