App.vue 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. <script>
  2. export default {
  3. globalData: {
  4. baseUrl: 'https://tofflon.blpharms.com/client',
  5. },
  6. onLaunch: function() {
  7. let url = location.href;
  8. // let url = 'https://tofflon.blpharms.com/h5/?language=en'
  9. console.log('url', url);
  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. /*每个页面公共css */
  21. @import "@/uni_modules/uview-ui/index.scss";
  22. @import url("@/common/css/iconfont.css");
  23. html, body {
  24. //overflow: hidden;
  25. //height: 100%;
  26. //touch-action: none;
  27. }
  28. page {
  29. //height: 100vh !important;
  30. background-color: #F3F4F6;
  31. /* 兼容底部和头部安全区域 */
  32. padding-bottom: constant(safe-area-inset-bottom);
  33. padding-bottom: env(safe-area-inset-bottom);
  34. padding-top: constant(safe-area-inset-top);
  35. padding-top: env(safe-area-inset-top);
  36. }
  37. view {
  38. color: #333333;
  39. font-size: 28rpx;
  40. }
  41. /* 搜索框 */
  42. /deep/.uni-searchbar {
  43. margin-top: 28rpx;
  44. padding: 0 !important;
  45. }
  46. /deep/.uni-searchbar__box {
  47. border: none !important;
  48. height: 90rpx !important;
  49. background-color: #FFFFFF !important;
  50. box-shadow: 0rpx 16rpx 60rpx rgba(202, 205, 220, 0.3) !important;
  51. }
  52. .flex-column {
  53. display: flex;
  54. flex-direction: column;
  55. align-items: center;
  56. }
  57. .flex-column-center {
  58. display: flex;
  59. flex-direction: column;
  60. align-items: center;
  61. justify-content: center;
  62. }
  63. .flex-align-center {
  64. display: flex;
  65. align-items: center;
  66. }
  67. .flex {
  68. display: flex;
  69. justify-content: center;
  70. align-items: center;
  71. }
  72. .flex-around {
  73. display: flex;
  74. justify-content: space-around;
  75. align-items: center;
  76. }
  77. .flex-between {
  78. display: flex;
  79. justify-content: space-between;
  80. align-items: center;
  81. }
  82. .flex-end {
  83. display: flex;
  84. justify-content: flex-end;
  85. align-items: center;
  86. }
  87. /* 单行文字省略 */
  88. .font-overflow {
  89. text-overflow: ellipsis;
  90. overflow: hidden;
  91. white-space: nowrap;
  92. }
  93. /* 2行文字省略 */
  94. .font-overflow2 {
  95. text-overflow: ellipsis;
  96. display: -webkit-box;
  97. -webkit-line-clamp: 2;
  98. overflow: hidden;
  99. -webkit-box-orient: vertical;
  100. }
  101. .placeholder-input {
  102. color: #CCCCCC;
  103. font-size: 28rpx;
  104. }
  105. // 修改checkbox样式边框
  106. uni-checkbox .uni-checkbox-input.uni-checkbox-input-checked {
  107. border: 1rpx solid #BF1C2D;
  108. background-color: #BF1C2D;
  109. }
  110. uni-checkbox .uni-checkbox-wrapper {
  111. width: 100%;
  112. }
  113. uni-checkbox:not([disabled]) .uni-checkbox-input:hover {
  114. border-color: #BF1C2D;
  115. }
  116. </style>