e712741425
- 各 Page 补齐 onShareAppMessage/onShareTimeline,修复右上角转发/朋友圈按钮灰色 - ui-btn 透传 open-type,完成弹窗接入分享按钮 - config.share 集中维护文案,动态标题用 titleTemplate 占位符 - leaderboard 的 myEntry.rank 缺失时回退静态标题,避免出现"排第 undefined" - 完成弹窗分享按钮高度对齐 88rpx,与同排按钮等高 Co-Authored-By: Claude <noreply@anthropic.com>
23 lines
862 B
JavaScript
23 lines
862 B
JavaScript
Component({
|
|
properties: {
|
|
text: { type: String, value: '' },
|
|
variant: { type: String, value: 'primary' }, // primary | outline | danger | ghost
|
|
size: { type: String, value: 'md' }, // sm | md | lg | xl
|
|
block: { type: Boolean, value: false },
|
|
disabled: { type: Boolean, value: false },
|
|
iconSrc: { 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() {
|
|
this.triggerEvent('tap')
|
|
}
|
|
}
|
|
})
|