PortIO/resources/js/views/Index.vue

37 lines
841 B
Vue
Raw Normal View History

2023-03-14 14:33:06 +00:00
<template>
<div>
2023-05-14 08:53:10 +00:00
<h1>欢迎</h1>
2023-03-14 14:33:06 +00:00
</div>
2023-05-14 08:53:10 +00:00
<div class="mt-3">
<p>用户名: {{ user.name }}</p>
<p>剩余流量: {{ user.traffic }}GB</p>
2023-03-14 14:33:06 +00:00
</div>
2023-05-14 08:53:10 +00:00
2023-05-14 10:17:59 +00:00
<div class="mt-3" v-if="!user.realnamed">
<p>注意您没有完成实名认证请点击下方按钮完成实名认证否则您只能使用中国大陆以外的隧道</p>
<a class="btn btn-primary" target="_blank" href="https://oauth.laecloud.com/real_name">实名认证</a>
<p>在实名认证后请重新登录 {{ sitename }}</p>
</div>
2023-03-14 14:33:06 +00:00
</template>
<script setup>
import { ref } from "vue";
import http from '../plugins/http'
2023-05-14 10:17:59 +00:00
const sitename = window.Base.SiteName
2023-03-14 14:33:06 +00:00
const user = ref({
2023-05-14 08:53:10 +00:00
name: 'loading...',
traffic: ''
2023-03-14 14:33:06 +00:00
})
http.get('user').then((res) => {
user.value = res.data
})
</script>