-
-
+
+
+
+
+
+
+
+
+
+
+
![]()
+
-
![]()
-
-
-
+
-
+
+
+
+
+
+
+
+
+
+
+
拖拽图片到此上传
+
图片不限大小,但会占用计算机的存储空间
+
+
+
+
+
-
-
-
-
-
-
-
-
拖拽图片到此上传
-
图片不限大小,但会占用计算机的存储空间
-
-
-
+
+
+
@@ -69,8 +78,55 @@ import localforage from 'localforage';
import { currentGallery, galleryData, galleryType, setBase64Background } from './data/data';
import GalleryHead from './GalleryHead.vue';
+import CatHead from "@/views/desktop/setting/wallpaper/CatHead.vue";
+import CatBody from "@/views/desktop/setting/wallpaper/CatBody.vue";
+
const store = usePageStore();
const fileList = ref([]);
+const current = ref
(['local']);
+const catLoading = ref(false);
+const items = [
+ {
+ key: 'local',
+ label: '本地壁纸',
+ title: '本地壁纸',
+ },
+ {
+ key: 'xiaoNiao',
+ label: '小鸟壁纸',
+ title: '小鸟壁纸',
+ }
+]
+const catBody = ref();
+const catHead = ref();
+const wallpaperClick = (e) => {
+ // 用两个nextTick套用或 setTimeout 因为CatBody是用v-if包裹的
+ // setTimeout( () => {
+ //
+ // },0)
+
+ if (e.key === 'xiaoNiao'){
+ nextTick(()=> {
+ nextTick(()=>{
+ // 全局loading在这里启用
+ // catLoading.value = true
+ catBody.value.wallpaperClick()
+ })
+ })
+ }
+}
+
+const zoneClick = () => {
+ catHead.value.noHome()
+}
+const home = () => {
+ catHead.value.home()
+ catBody.value.wallpaperClickCache()
+}
+const closeLoading = () => {
+ catLoading.value = false
+}
+
const comBackground = computed(() => {
return store.$state.desktop.background;
});
diff --git a/src/views/desktop/setting/wallpaper/GalleryHead.vue b/src/views/desktop/setting/wallpaper/GalleryHead.vue
index 6b2093f180eeffef567fae72552af02f1f7990dc..315d598a8d6ad518fa0de285538a99c67366e10a 100644
--- a/src/views/desktop/setting/wallpaper/GalleryHead.vue
+++ b/src/views/desktop/setting/wallpaper/GalleryHead.vue
@@ -1,8 +1,8 @@
-
+
+
+