App.vue 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  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. @import "uview-ui/index.scss";
  16. /*每个页面公共css */
  17. page {
  18. background-color: #1f1f1f;
  19. }
  20. uni-page {
  21. // overflow: hidden;
  22. // overflow-y: scroll;
  23. }
  24. uni-page-head {
  25. --window-top: calc(var(--top-window-height) + calc(102rpx + env(safe-area-inset-top)));
  26. --window-bottom: 0px;
  27. }
  28. .uni-page-head {
  29. font-size: 38rpx !important;
  30. height: 102rpx !important;
  31. //line-height: 100rpx !important;
  32. background-color: #1f1f1f !important;
  33. color: #bb955e !important;
  34. padding: 0 !important;
  35. .uni-btn-icon {
  36. color: #bb955e !important;
  37. }
  38. .uni-page-head__title {
  39. height: 102rpx !important;
  40. line-height: 102rpx !important;
  41. }
  42. }
  43. .uni-picker-container {
  44. .uni-picker-header {
  45. background-color: #6e6c6b !important;
  46. .uni-picker-action-confirm {
  47. color: #bb955e !important;
  48. }
  49. .uni-picker-action-cancel {
  50. color: #fff !important;
  51. }
  52. }
  53. .uni-picker-view-indicator {
  54. // background-color: rgba(158, 158, 158, 25%);
  55. color: #bb955e;
  56. }
  57. }
  58. .u-input__input {
  59. color: #999 !important;
  60. }
  61. .u-cell-box {
  62. background-color: #2c2b2b;
  63. border-radius: 19rpx;
  64. .u-cell-item-box {
  65. border-radius: 19rpx;
  66. background-color: #2c2b2b !important;
  67. }
  68. }
  69. /* App.vue */
  70. .cell-hover-class {
  71. background-color: #434142;
  72. }
  73. /* 或者单是设置透明度 */
  74. .cell-hover-class {
  75. opacity: 0.5;
  76. }
  77. .u-radio__label {
  78. color: inherit !important;
  79. }
  80. </style>