home1022
This commit is contained in:
@@ -0,0 +1,66 @@
|
||||
<script>
|
||||
import Vue from 'vue'
|
||||
import uView from '@/uni_modules/uview-ui'
|
||||
|
||||
Vue.use(uView)
|
||||
|
||||
export default {
|
||||
onLaunch: function() {
|
||||
console.log('应用启动')
|
||||
// 初始化uView配置
|
||||
this.$u.config.unit = 'rpx'
|
||||
},
|
||||
onShow: function() {
|
||||
console.log('应用显示')
|
||||
},
|
||||
onHide: function() {
|
||||
console.log('应用隐藏')
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
/*每个页面公共css */
|
||||
@import "@/uni_modules/uview-ui/index.scss";
|
||||
|
||||
/* 全局样式重置 */
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
body {
|
||||
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
|
||||
font-size: 28rpx;
|
||||
color: #333333;
|
||||
background-color: #f5f7fa;
|
||||
}
|
||||
|
||||
// 全局颜色变量
|
||||
:root {
|
||||
--primary-color: #1989fa;
|
||||
--success-color: #67c23a;
|
||||
--warning-color: #e6a23c;
|
||||
--danger-color: #f56c6c;
|
||||
--info-color: #909399;
|
||||
--text-color: #303133;
|
||||
--text-color-secondary: #606266;
|
||||
--border-color: #dcdfe6;
|
||||
--border-color-light: #e4e7ed;
|
||||
--background-color: #f5f7fa;
|
||||
}
|
||||
|
||||
// 适配安全区域
|
||||
page {
|
||||
padding-top: env(safe-area-inset-top);
|
||||
padding-bottom: env(safe-area-inset-bottom);
|
||||
}
|
||||
|
||||
// 滚动条样式
|
||||
::-webkit-scrollbar {
|
||||
display: none;
|
||||
width: 0;
|
||||
height: 0;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user