App.vue 1.6 KB

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