fix: 修复邀请好友分享功能
- 使用button组件的open-type=share触发分享 - 移除uni.showShareMenu调用 - 添加button样式重置
This commit is contained in:
1 parent
1f999b2ea8
commit
db22cd87a4
1 file changed
+9
-8
@@ -64,9 +64,9 @@
|
||||
<text class="task-reward">+10金币/人</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="task-btn" @click="inviteFriend">
|
||||
<button class="task-btn" open-type="share">
|
||||
<text class="task-btn-text">邀请</text>
|
||||
</view>
|
||||
</button>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
@@ -238,12 +238,6 @@ export default {
|
||||
|
||||
uni.showToast({ title: `签到成功 +${reward}金币`, icon: 'success' })
|
||||
},
|
||||
inviteFriend() {
|
||||
uni.showShareMenu({
|
||||
withShareTicket: true,
|
||||
menus: ['shareAppMessage']
|
||||
})
|
||||
},
|
||||
loadVideoCount() {
|
||||
const today = this.formatDate(new Date())
|
||||
const lastVideoDate = uni.getStorageSync('lastVideoDate')
|
||||
@@ -550,6 +544,13 @@ page {
|
||||
background: linear-gradient(135deg, #10B981 0%, #059669 100%);
|
||||
padding: 16rpx 32rpx;
|
||||
border-radius: 32rpx;
|
||||
border: none;
|
||||
margin: 0;
|
||||
line-height: normal;
|
||||
}
|
||||
|
||||
.task-btn::after {
|
||||
border: none;
|
||||
}
|
||||
|
||||
.task-btn.disabled {
|
||||
|
||||
Reference in new issue
Block a user