App.vue 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <!--
  2. * @Descripttion: 应用入口
  3. * @version: 1.0.0
  4. * @Author: dream
  5. * @Date: 2021-03-25 15:13:56
  6. * @LastEditors: dream
  7. * @LastEditTime: 2021-03-30 15:33:35
  8. -->
  9. <script>
  10. export default {
  11. onLaunch: function () {
  12. console.log('App Launch')
  13. this.$store.dispatch('systemStore/getSystemInfo')
  14. },
  15. onShow: function () {
  16. console.log('App Show')
  17. },
  18. onHide: function () {
  19. console.log('App Hide')
  20. }
  21. }
  22. </script>
  23. <style lang="scss">
  24. /*每个页面公共css */
  25. @import "uview-ui/index.scss";
  26. page {
  27. box-sizing: border-box;
  28. height: 100vh;
  29. font-size: 26px;
  30. line-height: 36px;
  31. color: $iph-base-text;
  32. background-color: $iph-base-bg;
  33. font-family: PingFangSC-Regular, PingFang SC;
  34. image {
  35. width: 100%;
  36. height: 100%;
  37. border-radius: inherit;
  38. }
  39. /deep/ .input-placeholder {
  40. color: $iph-placeholder-color;
  41. }
  42. /deep/ u-line {
  43. flex: none;
  44. }
  45. /deep/ button[disabled] {
  46. background: $iph-btn-disabel-bg !important;
  47. }
  48. }
  49. </style>