App.vue 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. <script>
  2. export default {
  3. globalData: {
  4. postHeader: null,
  5. uuid: '',
  6. skey: '',
  7. postHeader: null,
  8. systemInfo: null
  9. },
  10. beforeDestroy() {},
  11. onLaunch: function(options) {
  12. let systemInfo = uni.getSystemInfoSync();
  13. this.globalData.uuid = systemInfo.deviceId;
  14. let skey = uni.getStorageSync("wapptoken");
  15. if (skey != null && skey != "" && skey != undefined) {
  16. this.globalData.skey = skey;
  17. }
  18. },
  19. onShow: function(options) {
  20. console.log('App Show');
  21. // setTimeout(()=>{
  22. // uni.hideTabBar()
  23. // },100)
  24. },
  25. onHide: function() {
  26. console.log('App Hide');
  27. },
  28. onAppBackground() {},
  29. methods: {}
  30. };
  31. </script>
  32. <style>
  33. /*每个页面公共css */
  34. @import 'colorui/main.css';
  35. @import 'colorui/icon.css';
  36. @import 'style/FontStyle.css';
  37. @import "uni_modules/cl-uni/index.scss";
  38. body {
  39. -webkit-text-size-adjust: none;
  40. overscroll-behavior-y: contain;
  41. -webkit-overflow-scrolling: touch;
  42. background-color: #161616;
  43. background: url('./static/w3/bg.png');
  44. background-size: 750rpx 1624rpx;
  45. background-repeat: repeat-y;
  46. }
  47. /* 超出一行省略号 */
  48. .one-omit {
  49. white-space: nowrap;
  50. /*规定段落中的文本不进行换行*/
  51. overflow: hidden;
  52. /*内容会被修剪,并且其余内容是不可见的。*/
  53. text-overflow: ellipsis;
  54. /*显示省略号来代表被修剪的文本*/
  55. }
  56. .two-omit {
  57. display: -webkit-box;
  58. -webkit-line-clamp: 2;
  59. overflow: hidden;
  60. text-overflow: ellipsis;
  61. -webkit-box-orient: vertical;
  62. }
  63. img {
  64. width: 100%;
  65. }
  66. uni-modal {
  67. z-index: 998 !important;
  68. }
  69. .cu-modal {
  70. z-index: 997 !important;
  71. }
  72. </style>