123456789101112131415161718192021222324252627282930313233 |
- <script>
- import {
- mapMutations,
- mapActions
- } from 'vuex'
-
- export default {
- onLaunch: function() {
- this.getUser()
- },
- onShow: function() {
- },
- onHide: function() {
- console.log('App Hide')
- },
- globalData: {
- },
- methods: {
- ...mapActions(['doLogin', 'getUser']),
- }
- }
- </script>
- <style lang="scss">
- //H5端引用。玄学问题,我这边在这里引入的css,在APP上无效。前面加/也一样。原因未知...
- //可自行测试在APP上是否有效,如果有效,可在vue里删除css引入的代码。
- /* #ifndef APP-PLUS */
- @import 'common/uni.css';
- @import "static/colorui/main.css";
- @import "static/colorui/icon.css";
- @import "static/zaiui/style/app.scss";
- /* #endif */
- </style>
|