App.vue 2.2 KB

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