Commit 9f69f839 authored by 王炽's avatar 王炽

66666

parent 6ef06be8
......@@ -546,7 +546,7 @@
// 轮播图数据可在此定义(当前使用静态路径)
// "rgba(255,255,255,0.5)"
import { ref, onMounted, onBeforeMount, computed, watch } from 'vue';
import { ref, onMounted, onBeforeMount, onBeforeUnmount, computed, watch } from 'vue';
import { onShareAppMessage } from '@dcloudio/uni-app';
import { jump, JumpType } from '@/utils/index.js'
import { useUserStore } from "@/stores/user";
......@@ -1905,14 +1905,29 @@ onBeforeMount(async () => {
})
onShow(async () => {
console.log('onShow');
console.log('onShow111111111111');
if (needReinit.value) {
needReinit.value = false
initNetData()
}
})
// 使用 watch 监听控制积分页面显示/隐藏的状态
// 这样可以更精确地知道页面何时显示和隐藏
// watch(
// () => globalStore.curTabIndex === 2 && !globalStore.isWxFriendCircle,
// (isVisible) => {
// if (isVisible) {
// console.log('积分页面显示 - watch (curTabIndex:', globalStore.curTabIndex, ', isWxFriendCircle:', globalStore.isWxFriendCircle, ')');
// // 这里可以添加页面显示时的逻辑
// } else {
// console.log('积分页面隐藏 - watch (curTabIndex:', globalStore.curTabIndex, ', isWxFriendCircle:', globalStore.isWxFriendCircle, ')');
// // 这里可以添加页面隐藏时的逻辑
// }
// console.log('isVisible:', isVisible);
// },
// { immediate: true }
// );
onMounted(async () => {
// showSignedTips.value = true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment