|
@@ -1,6 +1,6 @@
|
|
|
<template>
|
|
|
<view class="hc-login-box relative h-full p-4">
|
|
|
- <view class="hc-dot-box">
|
|
|
+ <view class="hc-dot-box" v-show="isDotShow">
|
|
|
<view un-absolute un-b-rounded-100 class="dot dot-1"/>
|
|
|
<view un-absolute un-b-rounded-100 class="dot dot-2"/>
|
|
|
<view un-absolute un-b-rounded-100 class="dot dot-3"/>
|
|
@@ -36,12 +36,15 @@ import {useAppStore} from "@/store";
|
|
|
import {userLogin} from "@/store/user";
|
|
|
import {getObjVal} from "js-fast-way";
|
|
|
|
|
|
+//初始变量
|
|
|
const store = useAppStore()
|
|
|
const webStyle = ref({
|
|
|
width: '1px',
|
|
|
height: '1px',
|
|
|
})
|
|
|
|
|
|
+const isDotShow = ref(false)
|
|
|
+
|
|
|
onLoad(() => {
|
|
|
const user_info = getStorage('login_user_info');
|
|
|
if (getObjVal(user_info)) {
|
|
@@ -55,6 +58,7 @@ onLoad(() => {
|
|
|
if (getObjVal(user_info)) {
|
|
|
setStorage('login_user_info', user_info);
|
|
|
}
|
|
|
+ isDotShow.value = true
|
|
|
}, 1000)
|
|
|
})
|
|
|
|