Files
PartsInquiry/frontend/App.vue
2025-09-20 21:09:27 +08:00

62 lines
1.7 KiB
Vue
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<script>
export default {
onLaunch: function() {
console.log('App Launch')
},
onShow: function() {
console.log('App Show')
},
onHide: function() {
console.log('App Hide')
}
}
</script>
<style lang="scss">
/*每个页面公共css */
page{
background-color: $uni-bg-color;
color: $uni-text-color;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
/* 强制所有端白底(防止小程序旧样式残留覆盖) */
.uni-page-body, uni-page-body {
background-color: $uni-bg-color !important;
}
/* 小程序节点:强制 wx-view 白底 */
wx-view { background-color: #ffffff !important; }
/* 例外:需要有主色底的元素,强制还原 */
.cta, .notice-left, .fab {
background-color: $uni-color-primary !important;
border-color: $uni-color-primary !important;
color: #ffffff !important;
}
.cta .cta-text { color:#ffffff !important; font-weight: 700; }
/* 覆盖历史深色背景(统一纯白/浅灰) */
.home, .report, .order, .me, .page { background: $uni-bg-color !important; }
.notice, .hero, .grid-wrap, .panel, .card, .tabs, .seg, .list, .search, .summary, .toolbar, .item { background: $uni-bg-color-grey !important; }
.text-secondary{
color:$uni-text-color-grey;
}
.card{
background-color:$uni-bg-color-grey;
border:1px solid $uni-border-color;
border-radius: 8rpx;
}
.primary{
color:$uni-color-primary;
}
/* 底部原生 tabBarH5/APP端可生效字体加大 */
.uni-tabbar__label, .uni-tabbar__text{
font-size: 28rpx !important;
font-weight: 700 !important;
}
/* 图表统一透明底(常见容器/画布选择器) */
canvas, .ec-canvas, .echarts, .charts, .chart, .ucharts-box{
background-color: transparent !important;
}
</style>