版本1.0.14

This commit is contained in:
kron
2025-12-03 17:24:55 +08:00
parent a9156e57ca
commit 8cb4a26263

View File

@@ -1,5 +1,5 @@
<script setup>
import { ref, onMounted } from "vue";
import { ref, onMounted, watch } from "vue";
import { onShow, onShareAppMessage, onShareTimeline } from "@dcloudio/uni-app";
import Container from "@/components/Container.vue";
import AppFooter from "@/components/AppFooter.vue";
@@ -69,6 +69,22 @@ const toRankListPage = () => {
});
};
watch(
() => user.value.id,
(newVal) => {
if (newVal && "823,209,293,257,210,290".indexOf(newVal) !== -1) {
const show = uni.getStorageSync("show-the-user");
if (!show) {
showTheUser.value = true;
uni.setStorageSync("show-the-user", true);
}
}
},
{
deep: false,
}
);
onShow(async () => {
const token = uni.getStorageSync(
`${uni.getAccountInfoSync().miniProgram.envVersion}_token`
@@ -88,7 +104,7 @@ onShow(async () => {
console.log("首页数据:", homeData);
if (homeData.user) {
updateUser(homeData.user);
if ("823,209".indexOf(homeData.user.id) !== -1) {
if ("823,209,293,257".indexOf(homeData.user.id) !== -1) {
const show = uni.getStorageSync("show-the-user");
if (!show) {
showTheUser.value = true;