update:教练点评判断优化

This commit is contained in:
2026-06-26 11:04:24 +08:00
parent ca6bba4dff
commit 02290615e8
+7 -1
View File
@@ -70,6 +70,11 @@ const arrows = computed(() => {
});
const validArrows = computed(() => arrows.value.filter((a) => !!a.ring).length);
const isMember = computed(() => user.value.vip === true || user.value.sVip === true);
const openCoachComment = () => {
if (!isMember.value) return;
showComment.value = true;
};
</script>
<template>
@@ -112,9 +117,10 @@ const validArrows = computed(() => arrows.value.filter((a) => !!a.ring).length);
:onClick="onClickShare"
/>
<IconButton
v-if="isMember"
name="教练点评"
src="../static/review.png"
:onClick="() => (showComment = true)"
:onClick="openCoachComment"
/>
</block>
<SButton