From 921e9c9ff3fac8e4d1f4717efa01bb14181d6bb0 Mon Sep 17 00:00:00 2001 From: "1152958806@qq.com" <1152958806@qq.com> Date: Tue, 2 Jan 2024 20:11:48 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=96=87=E7=AB=A0=E5=88=86?= =?UTF-8?q?=E4=BA=AB=E5=88=B0QQ=EF=BC=8C=E5=88=86=E4=BA=AB=E5=88=B0?= =?UTF-8?q?=E5=BE=AE=E4=BF=A1=E6=9C=8B=E5=8F=8B=E5=9C=88=EF=BC=8C=E6=96=87?= =?UTF-8?q?=E7=AB=A0=E6=9B=B4=E6=96=B0=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- settings.yaml | 27 -------- templates/assets/zhheo/rightmenu.js | 48 --------------- templates/modules/head.html | 2 - templates/modules/post-list.html | 61 ++++--------------- .../post/copyright/copyright-default.html | 10 --- .../modules/post/copyright/copyright-one.html | 10 --- 6 files changed, 11 insertions(+), 147 deletions(-) diff --git a/settings.yaml b/settings.yaml index 6d323e87..7fb3407b 100644 --- a/settings.yaml +++ b/settings.yaml @@ -1307,15 +1307,6 @@ spec: value: true - label: 关闭 value: false - - $formkit: radio - name: article_date_show - label: 文章“发表于”、“更新于”展示 - value: true - options: - - label: 打开 - value: true - - label: 关闭 - value: false - $formkit: group name: aiDescription label: 文章 AI 摘要 @@ -1498,24 +1489,6 @@ spec: value: true - label: 禁用 value: false - - $formkit: radio - name: qq_edit - help: 启用分享到QQ - value: true - options: - - label: 启用 - value: true - - label: 禁用 - value: false - - $formkit: radio - name: wechat_edit - help: 启用分享到微信朋友圈 - value: true - options: - - label: 启用 - value: true - - label: 禁用 - value: false - $formkit: group name: copyrights label: 版权声明 diff --git a/templates/assets/zhheo/rightmenu.js b/templates/assets/zhheo/rightmenu.js index f1c31d53..f4f16ad8 100644 --- a/templates/assets/zhheo/rightmenu.js +++ b/templates/assets/zhheo/rightmenu.js @@ -262,54 +262,6 @@ rm.sharePage = function () { rm.hideRightMenu(); } -function isMobileDevice() { - return /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent); -} - -rm.shareToQQ = function () { - var url = /*[[${post.status.permalink}]]*/ window.location.href; - var title = $('#post-info .post-title')[0].innerText; - if (isMobileDevice()) { - // 使用手机分享方式 - window.location.href = "mqqapi://share/to_fri?src_type=web&version=1&file_type=news&url=" + encodeURIComponent(url) + "&title=" + encodeURIComponent(title) + "&callback_type=scheme&generalpastboard=1"; - } else { - // 使用Web分享方式 - window.open("https://connect.qq.com/widget/shareqq/index.html?url=" + encodeURIComponent(url) + "&title=" + encodeURIComponent(title)); - } - btf.snackbarShow('分享链接地址成功', false, 2000); - rm.hideRightMenu(); -} - -rm.shareToWechat = function () { - - // 手机分享逻辑 - if (isMobileDevice) { - - wx.config({ - // 配置微信的appID、timestamp、nonceStr、signature等参数 - // ... - debug: false, - jsApiList: ['onMenuShareTimeline'] // 需要使用的微信接口 - }); - - wx.ready(function () { - wx.onMenuShareTimeline({ - title: $('#post-info .post-title')[0].innerText, - link: window.location.href, - imgUrl: $('#coverdiv img')[0].src, - success: function () { - btf.snackbarShow('分享链接地址成功', false, 2000); - rm.hideRightMenu(); - }, - cancel: function () { - btf.snackbarShow('分享链接地址失败', false, 2000); - rm.hideRightMenu(); - } - }); - }); - } -} - // 复制当前选中文本 var selectTextNow = ''; document.onmouseup = document.ondbclick = selceText; diff --git a/templates/modules/head.html b/templates/modules/head.html index f03a0a80..8a1c5909 100644 --- a/templates/modules/head.html +++ b/templates/modules/head.html @@ -163,8 +163,6 @@ - - diff --git a/templates/modules/post-list.html b/templates/modules/post-list.html index 850bed3e..e4093b8f 100644 --- a/templates/modules/post-list.html +++ b/templates/modules/post-list.html @@ -55,39 +55,28 @@ -
- -