统一身份认证
This commit is contained in:
69
App.vue
Normal file
69
App.vue
Normal file
@@ -0,0 +1,69 @@
|
||||
<script>
|
||||
export default {
|
||||
onLaunch: function() {
|
||||
console.log('App Launch')
|
||||
window.addEventListener('beforeunload', ()=>{
|
||||
uni.clearStorageSync();
|
||||
});
|
||||
},
|
||||
onShow: function() {
|
||||
console.log('App Show')
|
||||
},
|
||||
onHide: function() {
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
/*每个页面公共css */
|
||||
view {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
|
||||
/* 默认字体大小 */
|
||||
@media screen and (max-width: 1024px) {
|
||||
html {
|
||||
font-size: 0.6px !important;
|
||||
}
|
||||
}
|
||||
@media screen and (min-width: 1024px) {
|
||||
html {
|
||||
font-size: 0.8px !important;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (min-width: 1280px) {
|
||||
html {
|
||||
font-size: 1px !important;
|
||||
}
|
||||
}
|
||||
@media screen and (min-width: 1536px) {
|
||||
html {
|
||||
font-size: 1.2px !important;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (min-width:1980px) {
|
||||
html {
|
||||
font-size: 1.5px !important;
|
||||
}
|
||||
}
|
||||
@media screen and (min-width:2304px) {
|
||||
html {
|
||||
font-size: 1.8px !important;
|
||||
}
|
||||
}
|
||||
@media screen and (min-width:2560) {
|
||||
html {
|
||||
font-size: 2px !important;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</style>
|
||||
Reference in New Issue
Block a user