fix: index page
This commit is contained in:
@@ -124,7 +124,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import { ref, onMounted } from "vue";
|
import { ref } from "vue";
|
||||||
import { onLoad, onShareAppMessage, onShareTimeline } from "@dcloudio/uni-app";
|
import { onLoad, onShareAppMessage, onShareTimeline } from "@dcloudio/uni-app";
|
||||||
import { getPageDetail } from "@/api/system.js";
|
import { getPageDetail } from "@/api/system.js";
|
||||||
import { getAvatarRecommendList } from "@/api/avatar.js";
|
import { getAvatarRecommendList } from "@/api/avatar.js";
|
||||||
|
|||||||
@@ -68,7 +68,7 @@
|
|||||||
style="margin-right: 4rpx"
|
style="margin-right: 4rpx"
|
||||||
/>
|
/>
|
||||||
<text>{{
|
<text>{{
|
||||||
signInfo.isSignedToday ? "已开启今日好运" : "签到抽取好运"
|
signInfo.isSignedToday ? "今日好运已开启" : "签到抽取好运"
|
||||||
}}</text>
|
}}</text>
|
||||||
</button>
|
</button>
|
||||||
</block>
|
</block>
|
||||||
@@ -242,13 +242,14 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import { ref, onMounted, computed } from "vue";
|
import { ref, computed } from "vue";
|
||||||
import { getStatusBarHeight } from "@/utils/system";
|
import { getStatusBarHeight } from "@/utils/system";
|
||||||
import {
|
import {
|
||||||
onShareAppMessage,
|
onShareAppMessage,
|
||||||
onShareTimeline,
|
onShareTimeline,
|
||||||
onShow,
|
onShow,
|
||||||
onPullDownRefresh,
|
onPullDownRefresh,
|
||||||
|
onLoad,
|
||||||
} from "@dcloudio/uni-app";
|
} from "@dcloudio/uni-app";
|
||||||
import { useUserStore } from "@/stores/user";
|
import { useUserStore } from "@/stores/user";
|
||||||
import {
|
import {
|
||||||
@@ -383,7 +384,7 @@ const sceneList = ref([
|
|||||||
const wallpaperList = ref([]);
|
const wallpaperList = ref([]);
|
||||||
const avatarList = ref([]);
|
const avatarList = ref([]);
|
||||||
|
|
||||||
onMounted(() => {
|
onLoad(() => {
|
||||||
fetchUserSingInfo(); // 获取用户签到信息
|
fetchUserSingInfo(); // 获取用户签到信息
|
||||||
fetchHomeData();
|
fetchHomeData();
|
||||||
fetchSpecialTopic();
|
fetchSpecialTopic();
|
||||||
|
|||||||
Reference in New Issue
Block a user