fix(settings): 关于页直接展示公众号名称,去除复制链接引导
- config.js: articleUrl 替换为 officialAccount: '爱咖啡的人' - settings: 关于页「功能介绍」改为「公众号」直接展示名称,点击复制名称便于微信搜索关注 - 移除复制链接的底部 sheet 弹窗及对应样式
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user