张含笑
2025-11-07 450dc8a1e4e0d643817ffd0eee04b938cc84af74
src/App.vue
@@ -1,43 +1,61 @@
<!--
 * @Author       : yuan
 * @Date         : 2025-09-28 09:31:16
 * @LastEditors  : yuan
 * @LastEditTime : 2025-09-28 10:07:55
 * @FilePath     : \src\App.vue
 * @Description  :
 * Copyright 2025 OBKoro1, All Rights Reserved.
 * 2025-09-28 09:31:16
-->
<script setup>
import { onHide, onLaunch, onShow } from "@dcloudio/uni-app"
import { useAppStore } from "@/store"
import { mpUpdate } from "@/utils/index"
import { onHide, onLaunch, onShow } from "@dcloudio/uni-app";
import { useAppStore } from "@/store";
import {mpUpdate} from "@/utils/index";
const appStore = useAppStore()
const appStore = useAppStore();
onLaunch(() => {
  console.log("App Launch")
  console.log("App Launch");
  // 初始化系统信息
  appStore.initSystemInfo()
  appStore.initSystemInfo();
  // #ifdef MP-WEIXIN
  mpUpdate()
  mpUpdate();
  // #endif
})
});
onShow(() => {
  console.log("App Show")
})
  console.log("App Show");
});
onHide(() => {
  console.log("App Hide")
})
  console.log("App Hide");
});
</script>
<style lang="scss">
/* 每个页面公共css */
@import 'uview-plus/index.scss';
@import '@/static/styles/common.scss';
@import "uview-plus/index.scss";
@import "@/static/styles/common.scss";
page {
  background-image: url('~@/static/images/user/bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  // min-height: 10vh;
}
.uni-tabbar__item:nth-child(4) {
  .uni-tabbar__bd {
    .uni-tabbar__icon {
      width: 60px !important;
      height: 60px !important;
      margin-top: -20px;
    }
  }
}
.uni-tabbar-border{
  background-color: #f6f6f6 !important;
}
.uni-page-head__title {
 font-family: Source Han Sans CN, Source Han Sans CN !important;
 font-weight: 400 !important;
 font-size: 17px !important;
 color: #222324 !important;
}
.uni-page-head {
  background: transparent !important;
}
</style>