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.

43 lines
750 B

2 months ago
4 weeks ago
2 months ago
  1. <script>
  2. export default {
  3. onLaunch: function() {
  4. console.log('App Launch')
  5. },
  6. onShow: function() {
  7. console.log('App Show')
  8. },
  9. onHide: function() {
  10. console.log('App Hide')
  11. }
  12. }
  13. </script>
  14. <style lang="scss">
  15. /*每个页面公共css */
  16. @import "@/uni_modules/uview-plus/index.scss";
  17. @import '@/static/css/app.scss';
  18. .h1 {
  19. text {
  20. position: relative;
  21. color: #999;
  22. font-weight: 700;
  23. &.active {
  24. color: #333;
  25. &::before {
  26. position: absolute;
  27. content: '';
  28. width: 54rpx;
  29. height: 12rpx;
  30. background: url('./static/images/h1Active.png') #F6F7FA no-repeat;
  31. background-size: 100% 100%;
  32. left: 50%;
  33. transform: translateX(-50%);
  34. bottom: -20rpx;
  35. }
  36. }
  37. }
  38. }
  39. </style>