PortIO/resources/js/views/Index.vue

37 lines
841 B
Vue
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<template>
<div>
<h1>欢迎</h1>
</div>
<div class="mt-3">
<p>用户名: {{ user.name }}</p>
<p>剩余流量: {{ user.traffic }}GB</p>
</div>
<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>
</template>
<script setup>
import { ref } from "vue";
import http from '../plugins/http'
const sitename = window.Base.SiteName
const user = ref({
name: 'loading...',
traffic: ''
})
http.get('user').then((res) => {
user.value = res.data
})
</script>