fix: bizhisuoluetu

This commit is contained in:
zzc
2026-02-01 17:54:59 +08:00
parent 3f4fff3584
commit 1ce775436d

View File

@@ -1,13 +1,8 @@
<template> <template>
<view <view
class="wallpaper-page" class="wallpaper-page"
:style="{ paddingTop: getBavBarHeight() + 'px' }"
> >
<!-- Custom Navbar --> <NavBar title="精美壁纸" />
<view class="nav-bar">
<view class="back" @tap="goBack"></view>
<text class="nav-title">新春精美壁纸</text>
</view>
<!-- Category Tabs --> <!-- Category Tabs -->
<view class="category-tabs"> <view class="category-tabs">
@@ -42,7 +37,7 @@
:key="index" :key="index"
> >
<image <image
:src="item.imageUrl" :src="getThumbUrl(item.imageUrl)"
mode="aspectFill" mode="aspectFill"
class="wallpaper-img" class="wallpaper-img"
@tap="previewImage(index)" @tap="previewImage(index)"
@@ -97,12 +92,12 @@ import {
import { onShareAppMessage } from "@dcloudio/uni-app"; import { onShareAppMessage } from "@dcloudio/uni-app";
import { getShareReward, abilityCheck } from "@/api/system.js"; import { getShareReward, abilityCheck } from "@/api/system.js";
import { useUserStore } from "@/stores/user"; import { useUserStore } from "@/stores/user";
import NavBar from "@/components/NavBar/NavBar.vue";
const userStore = useUserStore(); const userStore = useUserStore();
const loginPopupRef = ref(null); const loginPopupRef = ref(null);
const isLoggedIn = computed(() => !!userStore.userInfo.nickName); const isLoggedIn = computed(() => !!userStore.userInfo.nickName);
const categories = ref([]); const categories = ref([]);
const currentCategoryId = ref(null); const currentCategoryId = ref(null);
const wallpapers = ref([]); const wallpapers = ref([]);
@@ -135,8 +130,8 @@ onMounted(async () => {
await fetchCategories(); await fetchCategories();
}); });
const goBack = () => { const getThumbUrl = (url) => {
uni.navigateBack(); return `${url}?imageView2/1/w/340/h/600/q/80`;
}; };
const fetchCategories = async () => { const fetchCategories = async () => {