App.vue 2.0 KB

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