App.vue 623 B

1234567891011121314151617181920212223242526272829303132333435
  1. <script>
  2. // import { mapActions } from "vuex";
  3. export default {
  4. methods: {
  5. // ...mapActions("demo", ["getData"]),
  6. },
  7. onLaunch: function () {
  8. console.log("App Launch");
  9. },
  10. onShow: function () {
  11. console.log("App Show");
  12. },
  13. onHide: function () {
  14. console.log("App Hide");
  15. },
  16. mounted() {
  17. // this.getData().then((res) => {
  18. // console.log(res);
  19. // });
  20. },
  21. };
  22. </script>
  23. <style lang="scss">
  24. /*每个页面公共css */
  25. // @import "@/uni_modules/uni-scss/index.scss";
  26. // 设置整个项目的样式
  27. page {
  28. background-color: #f9fafb;
  29. * {
  30. box-sizing: border-box;
  31. }
  32. }
  33. </style>