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

37 lines
805 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. },
  11. onShow: function() {
  12. console.log('App Show')
  13. },
  14. onHide: function() {
  15. console.log('App Hide')
  16. }
  17. }
  18. </script>
  19. <style lang="scss">
  20. /*每个页面公共css */
  21. @import '@/uni_modules/uni-scss/index.scss';
  22. /* 注意要写在第一行,同时给style标签加入lang="scss"属性 */
  23. @import "@/uni_modules/uview-plus/index.scss";
  24. // 设置整个项目的背景色
  25. @import "@/style/index.scss";
  26. page {
  27. background-color: #F5F5F7;
  28. }
  29. .example-info {
  30. font-size: 14px;
  31. color: #333;
  32. padding: 10px;
  33. }
  34. </style>