update:教练点评判断优化
This commit is contained in:
@@ -70,6 +70,11 @@ const arrows = computed(() => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
const validArrows = computed(() => arrows.value.filter((a) => !!a.ring).length);
|
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>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
@@ -112,9 +117,10 @@ const validArrows = computed(() => arrows.value.filter((a) => !!a.ring).length);
|
|||||||
:onClick="onClickShare"
|
:onClick="onClickShare"
|
||||||
/>
|
/>
|
||||||
<IconButton
|
<IconButton
|
||||||
|
v-if="isMember"
|
||||||
name="教练点评"
|
name="教练点评"
|
||||||
src="../static/review.png"
|
src="../static/review.png"
|
||||||
:onClick="() => (showComment = true)"
|
:onClick="openCoachComment"
|
||||||
/>
|
/>
|
||||||
</block>
|
</block>
|
||||||
<SButton
|
<SButton
|
||||||
|
|||||||
Reference in New Issue
Block a user