update
This commit is contained in:
@@ -3,6 +3,11 @@
|
||||
<div class="todolist-wrapper">
|
||||
<div class="btn-group">
|
||||
<div class="btn-share" :class="globalStore.MAX_INVITE_DAILY === globalStore.MAX_INVITE_DAILY ? 'has' : ''" @click="openHaibao($event)"></div>
|
||||
<!-- <div
|
||||
class="btn-share"
|
||||
:class="{'has': globalStore.inviteCount >= globalStore.MAX_INVITE_DAILY}"
|
||||
@click="globalStore.inviteCount < globalStore.MAX_INVITE_DAILY && openHaibao($event)">
|
||||
</div> -->
|
||||
<div class="btn-qiwei" :class="globalStore.followed_official && 'has'" @click="openQiwei($event)"></div>
|
||||
</div>
|
||||
<div class="close" @click="$emit('close')"></div>
|
||||
@@ -42,6 +47,9 @@ const userhaibaoCover = computed(() => {
|
||||
})
|
||||
|
||||
const openHaibao = async (e) => {
|
||||
if (this.globalStore.inviteCount >= this.globalStore.MAX_INVITE_DAILY) {
|
||||
return;
|
||||
}
|
||||
globalToastEvent.emit(ToastType.SHOW_SHAREPAGE, true);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user