创建uniapp基础形态
This commit is contained in:
+19
-6
@@ -1,18 +1,31 @@
|
||||
<script>
|
||||
export default {
|
||||
onLaunch: function() {
|
||||
onLaunch() {
|
||||
console.log('App Launch')
|
||||
},
|
||||
onShow: function() {
|
||||
onShow() {
|
||||
console.log('App Show')
|
||||
},
|
||||
onHide: function() {
|
||||
onHide() {
|
||||
console.log('App Hide')
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
/*每个页面公共css */
|
||||
@import './src/uni.scss';
|
||||
<style lang="scss">
|
||||
@import 'uview-plus/index.scss';
|
||||
@import './src/styles/theme.scss';
|
||||
@import './src/styles/fontawesome.scss';
|
||||
|
||||
page {
|
||||
height: 100%;
|
||||
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
|
||||
background-color: #f8fafc;
|
||||
color: #1e293b;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
view, text {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user