猫妈狗爸伴宠师小程序前端代码
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.

35 lines
802 B

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