-
Notifications
You must be signed in to change notification settings - Fork 757
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
aaf4393
commit 904cf17
Showing
2 changed files
with
35 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<template> | ||
<div | ||
class="flex w-full items-center justify-between rounded-lg bg-purple-600 px-4 py-1 text-white" | ||
v-if="showAlert" | ||
> | ||
<span class="font-bold" | ||
>【邀请函】加入 Earthworm 创始会员 与我们一起成就更好的英语学习平台</span | ||
> | ||
<div class="flex space-x-4"> | ||
<button | ||
class="rounded-lg bg-white px-4 font-bold text-purple-600" | ||
@click="handleShowDetails" | ||
> | ||
查看详情 | ||
</button> | ||
</div> | ||
</div> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import { ref } from "vue"; | ||
const showAlert = ref(true); | ||
function handleShowDetails() { | ||
window.open("https://earthworm-docs.cuixueshe.com/get-started/founding-member.html", "_blank"); | ||
showAlert.value = false; | ||
} | ||
</script> | ||
|
||
<style scoped></style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters