From 1a49ba60ce7c66ceeae72f5e6207b1267e13e922 Mon Sep 17 00:00:00 2001 From: "DESKTOP-RQ919RC\\Pc" <1300399510@qq.com> Date: Thu, 18 Dec 2025 18:33:52 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E7=BB=84=E4=BB=B6):=20=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E7=A7=BB=E5=8A=A8=E7=AB=AF=E5=88=86=E4=BA=AB=E5=8A=9F=E8=83=BD?= =?UTF-8?q?=E5=B9=B6=E8=B0=83=E6=95=B4=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 调整推荐和精华图标高度为25px 为移动端添加点击分享直接复制链接功能 修复itemBottom组件中itemvalue拼写错误 添加响应式布局样式适配不同屏幕尺寸 --- component/item-bottom/item-bottom.js | 13 +- component/item-bottom/item-bottom.txt | 2 +- component/item-head/item-head.js | 2 +- component/item-head/item-head.txt | 4 +- css/public.css | 2 + css/public.less | 2 + css/section.css | 47 +- css/section.less | 55 ++- sectionV2.html | 684 ++++++++++++++++++++++++++ 9 files changed, 791 insertions(+), 20 deletions(-) create mode 100644 sectionV2.html diff --git a/component/item-bottom/item-bottom.js b/component/item-bottom/item-bottom.js index 908c6d9..ea868f3 100644 --- a/component/item-bottom/item-bottom.js +++ b/component/item-bottom/item-bottom.js @@ -17,9 +17,12 @@ export const itemBottom = defineComponent({ setup(props) { let valueUrl = ref(""); + let isMobile = ref(false) + onMounted(() => { const valueA = document.querySelector(".valueA"); valueUrl.value = valueA.innerText; + isMobile.value = window.isMobile }); let item = ref({ ...props.itemdata }); @@ -47,7 +50,7 @@ export const itemBottom = defineComponent({ const token = item.value.token || ""; - if (["offer", "offer_summary", "interviewexperience"].includes(item.value["type"]) && item.value["is_like"]) { + if (["offer", "offer_summary", "interviewexperience"].includes(itemvalue["type"]) && item.value["is_like"]) { creationAlertBox("error", "不可取消点赞"); return; } @@ -108,9 +111,7 @@ export const itemBottom = defineComponent({ }); }; - const copyLinkClick = () => { - copyForumUid(`${location.origin}/details/${item.value.uniqid}`); - }; + const copyLinkClick = () => copyForumUid(`${location.origin}/details/${item.value.uniqid}`); let QRcode = ref(""); const showQRcode = () => { @@ -146,12 +147,12 @@ export const itemBottom = defineComponent({ const shareBoxRef = ref(null); - return { valueUrl, isright, shareBoxRef, share, QRcode, showQRcode, copyLinkClick, collectClick, item, likeClick, isLogin, isLikeGif }; + return { isMobile, valueUrl, isright, shareBoxRef, share, QRcode, showQRcode, copyLinkClick, collectClick, item, likeClick, isLogin, isLikeGif }; }, components: { like, }, - template: `
{{ item?.commentreviews?.content || "[图]" }}
{{ item.likes || "赞" }}
{{ item.collections || "收藏" }}
{{ item.comments || "讨论" }}
{{ item.coins || "投币" }}
{{ item.shares || '转发'}}
`, + template: `
{{ item?.commentreviews?.content || "[图]" }}
{{ item.likes || "赞" }}
{{ item.collections || "收藏" }}
{{ item.comments || "讨论" }}
{{ item.coins || "投币" }}
{{ item.shares || '转发'}}
`, }); diff --git a/component/item-bottom/item-bottom.txt b/component/item-bottom/item-bottom.txt index 076b65b..f8d7dd5 100644 --- a/component/item-bottom/item-bottom.txt +++ b/component/item-bottom/item-bottom.txt @@ -32,7 +32,7 @@ -
+
{{ item.shares || '转发'}}