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

32 lines
731 B

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