App.vue 1.6 KB

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