fix(settings): 关于页直接展示公众号名称,去除复制链接引导

- config.js: articleUrl 替换为 officialAccount: '爱咖啡的人'
- settings: 关于页「功能介绍」改为「公众号」直接展示名称,点击复制名称便于微信搜索关注
- 移除复制链接的底部 sheet 弹窗及对应样式
This commit is contained in:
2026-07-22 10:21:31 +08:00
parent 6176f2c341
commit 3e1d3bd05e
5 changed files with 117 additions and 1 deletions
+14 -1
View File
@@ -85,7 +85,9 @@ Page({
// App info from config
appVersion: config.version,
appUpdatedAt: config.updatedAt,
appDeveloper: config.developer
appDeveloper: config.developer,
// 公众号名称(来自 config,关于页直接展示)
appOfficialAccount: config.officialAccount
},
onLoad() {
@@ -308,6 +310,17 @@ Page({
})
},
// Copy the official account name so the user can paste it into WeChat search
onCopyOfficialAccount() {
if (!config.officialAccount) return
wx.setClipboardData({
data: config.officialAccount,
success: () => {
wx.showToast({ title: '已复制,去微信搜索关注', icon: 'none', duration: 1800 })
}
})
},
// Show custom confirmation instead of wx.showModal to avoid the dev-tools
// bug where the native dialog refuses to dismiss on first tap.
onClearData() {
+6
View File
@@ -193,6 +193,10 @@
<text class="about-label">开发者</text>
<text class="about-value about-link">{{appDeveloper}}</text>
</view>
<view class="about-row" bindtap="onCopyOfficialAccount">
<text class="about-label">公众号</text>
<text class="about-value about-link">{{appOfficialAccount}}</text>
</view>
</view>
<view class="about-footer">
<text class="about-copy">Made with ❤️ for better fitness</text>
@@ -321,3 +325,5 @@
</view>
</ui-modal>
</view>
<!-- 公众号名称直接在「关于」展示,点击复制名称,无需弹窗引导 -->
+2
View File
@@ -666,3 +666,5 @@
background: var(--danger);
color: #FFFFFF;
}
/* ---- 公众号名称(关于页直接展示,点击复制) ---- */