docs: annotate account commerce finance and content pages
This commit is contained in:
1 parent
60827b8bfb
commit
2be21c1c62
24 files changed
+223
No files matched your search
@@ -1,4 +1,7 @@
|
||||
<script>
|
||||
/**
|
||||
* 会员中心首页:账户总览、登录提示及各业务概览面板的组合入口;问候语随本地时间更新,实名状态单独读取。
|
||||
*/
|
||||
import "~/assets/styles/WithdrawDialog.ks0wdKEK.css";
|
||||
import "~/assets/styles/PaymentDialog.BNFKQF1U.css";
|
||||
import "~/assets/styles/RechargeDialog.DpsMly4r.css";
|
||||
@@ -43,6 +46,7 @@ import HomeReferralPanel from "~/components/home/HomeReferralPanel.vue";
|
||||
import HomeServerPanel from "~/components/home/HomeServerPanel.vue";
|
||||
import HomeTicketPanel from "~/components/home/HomeTicketPanel.vue";
|
||||
import HomeWalletCard from "~/components/home/HomeWalletCard.vue";
|
||||
// 按本地时段选择问候语,不影响服务端账户或计费时间。
|
||||
function S(e) {
|
||||
let t = e.getHours();
|
||||
return t < 5 || t >= 22
|
||||
@@ -75,6 +79,7 @@ function S(e) {
|
||||
icon: `lucide:sunset`,
|
||||
};
|
||||
}
|
||||
// 把上次登录的秒级时间戳转换为可读时间;缺失或无效时展示无历史记录。
|
||||
function C(e) {
|
||||
let t = e?.previous_login,
|
||||
n = Number(t?.time),
|
||||
@@ -175,9 +180,11 @@ var w = {
|
||||
K = computed(() => S(G.value)),
|
||||
q = computed(() => C(b.overview)),
|
||||
J;
|
||||
// 更新问候语使用的时间;定时与页面可见性事件共用此入口。
|
||||
function Y() {
|
||||
G.value = new Date();
|
||||
}
|
||||
// 复制账户 ID;剪贴板失败时只复位反馈,不影响账户数据。
|
||||
async function me() {
|
||||
if (b.overview)
|
||||
try {
|
||||
@@ -190,6 +197,7 @@ var w = {
|
||||
let X = ref(null),
|
||||
Z = ref(!0),
|
||||
Q = ref(``);
|
||||
// 刷新账户总览;会话失效由鉴权层处理,其他失败在首页单独提示。
|
||||
function $() {
|
||||
((Q.value = ``),
|
||||
b.fetchOverview().catch((e) => {
|
||||
|
||||
Reference in new issue
Block a user