App.vue 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. <script>
  2. import '.env.js'
  3. import 'font.js'
  4. export default {
  5. onLaunch: function() {
  6. },
  7. onShow: function() {
  8. },
  9. onReady: function() {
  10. console.log("aaa")
  11. },
  12. onHide: function() {
  13. },
  14. methods:{
  15. }
  16. }
  17. </script>
  18. <style lang="scss">
  19. #__vconsole{
  20. z-index: 99999;
  21. position: absolute;
  22. }
  23. .tooltip {
  24. color: #777777;
  25. position: relative;
  26. display: inline-flex;
  27. width: 36rpx;
  28. height: 36rpx;
  29. }
  30. .tooltipleft .tooltiptext{
  31. left: -260px !important;
  32. }
  33. .tooltipleft .tooltiptext:before{
  34. left: 260px !important;
  35. }
  36. .tooltiplong .tooltiptext{
  37. left: -60px !important;
  38. }
  39. .tooltiplong .tooltiptext:before{
  40. left: 60px !important;
  41. }
  42. .tooltip .tooltiptext {
  43. opacity: 0.8;
  44. min-width: 180px;
  45. min-height: 20px;
  46. position: absolute;
  47. visibility: hidden;
  48. top: -30px;
  49. left: -10px;
  50. padding: 1px 20rpx;
  51. line-height: 20px;
  52. font-size: 24rpx;
  53. color: #fff;
  54. background-color: #333333;
  55. border-radius: 5px;
  56. text-align: center;
  57. z-index: 1;
  58. }
  59. .tooltip:hover .tooltiptext {
  60. visibility: visible;
  61. }
  62. .tooltiptext:before {
  63. z-index: 1;
  64. content: "";
  65. position: absolute;
  66. top: 20px;
  67. //right: 5px;
  68. left: 10px;
  69. border-top: 5px solid #333333;
  70. border-right: 5px solid transparent;
  71. border-left: 5px solid transparent;
  72. }
  73. /* 注意要写在第一行,同时给style标签加入lang="scss"属性 */
  74. @import "uview-ui/index.scss";
  75. //
  76. /*每个页面公共css */
  77. //@import 'static/css/style.css';
  78. @import '@/iconfont/iconfont.css';
  79. @import '@/assets/font/iconfont.css';
  80. .uni-icon-success-no-circle:before {
  81. content: "" !important ;
  82. display: none;
  83. }
  84. .uni-toast .uni-toast__content{
  85. margin: -10px 1px 10px 1px;
  86. }
  87. .uni-modal .uni-modal__btn{
  88. flex: 1;
  89. height: 43px;
  90. line-height: 43px !important;;
  91. font-size: 13px !important;
  92. box-sizing: border-box;
  93. cursor: pointer;
  94. text-align: center;
  95. border-radius: 1px;
  96. }
  97. @media screen and (min-width: 320px) {
  98. ::v-deep.u-tabbar__content {
  99. height: 42px!important;
  100. }
  101. }
  102. @media screen and (min-width: 375px) {
  103. ::v-deep.u-tabbar__content {
  104. height: 52px!important;
  105. }
  106. }
  107. @media screen and (min-width: 425px) {
  108. ::v-deep.u-tabbar__content {
  109. height: 62px!important;
  110. }
  111. }
  112. </style>