feat(share): 启用全站系统分享 + 完善分享文案配置
- 各 Page 补齐 onShareAppMessage/onShareTimeline,修复右上角转发/朋友圈按钮灰色 - ui-btn 透传 open-type,完成弹窗接入分享按钮 - config.share 集中维护文案,动态标题用 titleTemplate 占位符 - leaderboard 的 myEntry.rank 缺失时回退静态标题,避免出现"排第 undefined" - 完成弹窗分享按钮高度对齐 88rpx,与同排按钮等高 Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -6,7 +6,13 @@ Component({
|
||||
block: { type: Boolean, value: false },
|
||||
disabled: { type: Boolean, value: false },
|
||||
iconSrc: { type: String, value: '' },
|
||||
customStyle: { type: String, value: '' }
|
||||
customStyle: { type: String, value: '' },
|
||||
// 透传微信原生 button 的 open-type:
|
||||
// share — 触发 Page.onShareAppMessage(分享给朋友)
|
||||
// contact / feedback / shareToPhone … 等
|
||||
// 设置后会在底层 button 上挂 open-type="{{openType}}",配合 Page 的
|
||||
// onShareAppMessage 即可让自定义按钮真正调起原生分享面板。
|
||||
openType: { type: String, value: '' }
|
||||
},
|
||||
methods: {
|
||||
onTap() {
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
style="{{customStyle}}"
|
||||
bindtap="onTap"
|
||||
disabled="{{disabled}}"
|
||||
open-type="{{openType}}"
|
||||
hover-class="none"
|
||||
>
|
||||
<image
|
||||
|
||||
Reference in New Issue
Block a user