版本1.0.14
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
<script setup>
|
<script setup>
|
||||||
import { ref, onMounted } from "vue";
|
import { ref, onMounted, watch } from "vue";
|
||||||
import { onShow, onShareAppMessage, onShareTimeline } from "@dcloudio/uni-app";
|
import { onShow, onShareAppMessage, onShareTimeline } from "@dcloudio/uni-app";
|
||||||
import Container from "@/components/Container.vue";
|
import Container from "@/components/Container.vue";
|
||||||
import AppFooter from "@/components/AppFooter.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 () => {
|
onShow(async () => {
|
||||||
const token = uni.getStorageSync(
|
const token = uni.getStorageSync(
|
||||||
`${uni.getAccountInfoSync().miniProgram.envVersion}_token`
|
`${uni.getAccountInfoSync().miniProgram.envVersion}_token`
|
||||||
@@ -88,7 +104,7 @@ onShow(async () => {
|
|||||||
console.log("首页数据:", homeData);
|
console.log("首页数据:", homeData);
|
||||||
if (homeData.user) {
|
if (homeData.user) {
|
||||||
updateUser(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");
|
const show = uni.getStorageSync("show-the-user");
|
||||||
if (!show) {
|
if (!show) {
|
||||||
showTheUser.value = true;
|
showTheUser.value = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user