App.vue 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. <script>
  2. export default {
  3. onLaunch: function() {
  4. // 读取手机状态栏高度
  5. const app = uni.getWindowInfo()
  6. this.$store.commit('app/SET_statusBarHeight', app.statusBarHeight || 30)
  7. },
  8. onShow: function() {
  9. console.log('App Show')
  10. },
  11. onHide: function() {
  12. console.log('App Hide')
  13. }
  14. }
  15. </script>
  16. <style lang="scss">
  17. /* import "@/static/fontsize/iconfont.css" */
  18. @import '~./static/css/index.scss';
  19. @import url('@/static/fontsize/iconfont.css');
  20. /*每个页面公共css */
  21. * {
  22. box-sizing: border-box;
  23. }
  24. page {
  25. background-color: #fff;
  26. }
  27. /* 一行超出点点 */
  28. .hide_1 {
  29. overflow: hidden;
  30. text-overflow: ellipsis;
  31. white-space: nowrap;
  32. word-wrap: break-word;
  33. }
  34. /* 2行超出点点 */
  35. .hide_2 {
  36. display: -webkit-box;
  37. word-break: break-all;
  38. text-overflow: ellipsis;
  39. overflow: hidden;
  40. white-space: pre-line;
  41. -webkit-box-orient: vertical;
  42. -webkit-line-clamp: 2;
  43. }
  44. /* 3行超出点点 */
  45. .hide_3 {
  46. display: -webkit-box;
  47. word-break: break-all;
  48. text-overflow: ellipsis;
  49. overflow: hidden;
  50. white-space: pre-line;
  51. -webkit-box-orient: vertical;
  52. -webkit-line-clamp: 3;
  53. }
  54. /* .bg-color{
  55. background-color: #fff;
  56. }
  57. .box-pad{
  58. padding-left: 30rpx;
  59. padding: 30rpx $pages-padding 20rpx;
  60. } */
  61. .table-box {
  62. width: 100% !important;
  63. .uni-table {
  64. width: 100% !important;
  65. min-width: 100% !important;
  66. }
  67. }
  68. ::v-deep uni-tabbar {
  69. z-index: 88 !important;
  70. }
  71. </style>