6.30 版本提交

This commit is contained in:
尚政杰
2025-06-30 19:02:44 +08:00
commit c4267a0e27
338 changed files with 27942 additions and 0 deletions

105
App.vue Normal file
View File

@@ -0,0 +1,105 @@
<script>
import { provide } from 'vue'
export default {
onLaunch: function() {
console.log('App Launch')
let windowInfo = uni.getWindowInfo()
provide('statusHeight',windowInfo.statusBarHeight)
provide('windowWidth',windowInfo.windowWidth)
provide('safeAreaTop',windowInfo.safeArea.top)
var safeAreaBottom = windowInfo.safeAreaInsets.bottom
let menuButtonInfo = uni.getMenuButtonBoundingClientRect();
provide('navHeight',menuButtonInfo.bottom + menuButtonInfo.top - windowInfo.statusBarHeight)
provide('menuTop',menuButtonInfo.top)
provide('menuHeight',menuButtonInfo.height)
provide('isiPhoneX',safeAreaBottom==34?true:false)
},
onShow: function() {
console.log('App Show')
},
onHide: function() {
console.log('App Hide')
}
}
</script>
<style>
/*每个页面公共css */
.flex
{
display: flex;
align-items: center;
}
.flexCenter
{
display: flex;
align-items: center;
justify-content: center;
}
.flexColumn
{
display: flex;
flex-direction: column;
}
.flexColumnCenter
{
display: flex;
flex-direction: column;
align-items: center;
}
.flex1
{
flex: 1;
}
.flexWrap
{
display: flex;
flex-wrap: wrap;
}
.flexStretch
{
display: flex;
align-items: stretch;
}
.between
{
justify-content: space-between;
}
.flexEnd
{
display: flex;
align-items: center;
justify-content: flex-end;
}
.relative
{
position: relative;
}
.absolute
{
position: absolute;
}
.fixed
{
position: fixed;
}
view,input,textarea,scroll-view,swiper
{
box-sizing: border-box;
}
button
{
background-color: transparent;
}
button::after
{
border: none;
}
::-webkit-scrollbar
{
color: transparent;
width: 0;
}
</style>