猫妈狗爸伴宠师小程序前端代码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
838 B

3 months ago
3 months ago
3 months ago
3 months ago
  1. <script>
  2. import {
  3. store
  4. } from '@/store'
  5. export default {
  6. onLaunch: function() {
  7. console.warn('当前组件仅支持 uni_modules 目录结构 ,请升级 HBuilderX 到 3.1.0 版本以上!')
  8. console.log('App Launch')
  9. store.dispatch('fetchConfigList')
  10. store.dispatch('getUserInfo')
  11. },
  12. onShow: function() {
  13. console.log('App Show')
  14. },
  15. onHide: function() {
  16. console.log('App Hide')
  17. }
  18. }
  19. </script>
  20. <style lang="scss">
  21. /*每个页面公共css */
  22. @import '@/uni_modules/uni-scss/index.scss';
  23. /* 注意要写在第一行,同时给style标签加入lang="scss"属性 */
  24. @import "@/uni_modules/uview-plus/index.scss";
  25. // 设置整个项目的背景色
  26. @import "@/style/index.scss";
  27. page {
  28. background-color: #F5F5F7;
  29. }
  30. .example-info {
  31. font-size: 14px;
  32. color: #333;
  33. padding: 10px;
  34. }
  35. </style>