提交新的移动端框架
This commit is contained in:
1 parent
134f711349
commit
9bda3717fe
75 files changed
+5283
-9011
No files matched your search
+13
-24
@@ -1,34 +1,23 @@
|
||||
<script>
|
||||
import { initRouteGuard } from '@/utils/route-guard';
|
||||
|
||||
export default {
|
||||
onLaunch: function () {
|
||||
<script lang="ts">
|
||||
import Vue from 'vue';
|
||||
export default Vue.extend({
|
||||
mpType: 'app',
|
||||
onLaunch() {
|
||||
console.log('App Launch');
|
||||
|
||||
// 初始化全局路由守卫
|
||||
initRouteGuard();
|
||||
},
|
||||
onShow: function () {
|
||||
onShow() {
|
||||
console.log('App Show');
|
||||
},
|
||||
onHide: function () {
|
||||
onHide() {
|
||||
console.log('App Hide');
|
||||
},
|
||||
};
|
||||
});
|
||||
</script>
|
||||
|
||||
<style>
|
||||
/* 引入 uview-plus 全局样式 */
|
||||
@import 'uview-plus/index.scss';
|
||||
<style lang="scss">
|
||||
/* 注意要写在第一行,同时给style标签加入lang="scss"属性 */
|
||||
@import 'uview-ui/index.scss';
|
||||
|
||||
/* 每个页面公共css */
|
||||
page {
|
||||
background-color: #f8f8f8;
|
||||
}
|
||||
|
||||
/* 全局字体设置 */
|
||||
* {
|
||||
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB',
|
||||
'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
||||
}
|
||||
/* 引入自定义图标系统 */
|
||||
@import '@/static/fonts/iconfont.css';
|
||||
</style>
|
||||
Reference in new issue
Block a user