App.vue 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  1. <script>
  2. export default {
  3. onLaunch: function() {
  4. // console.log("App Launch");
  5. // this.checkArguments(); // 检测启动参数
  6. // if (uni.getSystemInfoSync().platform == 'android') {
  7. // // 重点是以下: 一定要监听后台恢复 !一定要
  8. // plus.globalEvent.addEventListener('newintent', e => {
  9. // this.checkArguments(); // 检测启动参数
  10. // });
  11. // }
  12. },
  13. onShow: function() {
  14. // console.log("App Show");
  15. },
  16. onHide: function() {
  17. // console.log("App Hide");
  18. },
  19. methods: {
  20. // 监测是否传参数
  21. checkArguments() {
  22. try {
  23. if (uni.getSystemInfoSync().platform === 'android') {
  24. // 接收第三方app传递的参数 extra;
  25. if (plus.runtime.arguments) {
  26. // patParams: 院区,病区, 床号
  27. const { patParams } = JSON.parse(plus.runtime.arguments);
  28. uni.setStorageSync('patParams', patParams);
  29. }
  30. }
  31. } catch (e) {}
  32. }
  33. }
  34. };
  35. </script>
  36. <style lang="less">
  37. /*每个页面公共css */
  38. body,
  39. uni-app,
  40. uni-page,
  41. uni-page-wrapper,
  42. uni-page-body {
  43. height: 100%;
  44. font-size: 20rpx;
  45. line-height: 30rpx;
  46. color: #292C33;
  47. background-color: #F5F6FA;
  48. }
  49. view,
  50. label,
  51. scroll-view {
  52. box-sizing: border-box;
  53. }
  54. // 底部固定的按钮
  55. .fixed-buttom-btn {
  56. position: fixed;
  57. left: 0;
  58. bottom: 0;
  59. display: flex;
  60. justify-content: center;
  61. align-items: center;
  62. margin-top: 12.5rpx;
  63. width: 100%;
  64. height: 75rpx;
  65. background-color: #3377FF;
  66. .btn-text {
  67. flex: 1;
  68. font-size: 22.5rpx;
  69. color: #fff;
  70. text-align: center;
  71. }
  72. .btn-text.cancle {
  73. line-height: 76.25rpx;
  74. background-color: #FFFFFF;
  75. color: #3377FF;
  76. }
  77. }
  78. // 新建情境样式start
  79. .creatingSituations {
  80. .title {
  81. padding-bottom: 35rpx;
  82. padding-left: 25rpx;
  83. font-size: 30rpx;
  84. line-height: 45rpx;
  85. color: #292C33;
  86. }
  87. }
  88. // 新建情境样式end
  89. // 查核地图列表样式start
  90. .check-map-list {
  91. overflow: hidden;
  92. padding: 0 25rpx;
  93. .item {
  94. position: relative;
  95. overflow: hidden;
  96. margin-bottom: 25rpx;
  97. border-radius: 5rpx;
  98. padding-top: 16.25rpx;
  99. padding-bottom: 0;
  100. width: 100%;
  101. background-color: #fff;
  102. box-shadow: 0 3.75rpx 12.5rpx 0 rgba(0, 13, 51, 0.1);
  103. .title-wrap {
  104. display: flex;
  105. flex-direction: row;
  106. align-items: center;
  107. padding: 0 25rpx;
  108. >text {
  109. font-size: 35rpx;
  110. line-height: 52.5rpx;
  111. color: #292C33;
  112. }
  113. >view {
  114. display: flex;
  115. flex-direction: row;
  116. align-items: center;
  117. margin-left: 20rpx;
  118. border-radius: 17.5rpx;
  119. height: 35rpx;
  120. font-size: 17.5rpx;
  121. line-height: 35rpx;
  122. color: #8F9BB3;
  123. background-color: #EDF2FA;
  124. image {
  125. width: 35rpx;
  126. height: 35rpx;
  127. }
  128. text {
  129. padding-left: 10rpx;
  130. padding-right: 20rpx;
  131. }
  132. }
  133. }
  134. .content {
  135. display: flex;
  136. flex-direction: column;
  137. padding: 11.25rpx 25rpx 20rpx;
  138. >text {
  139. overflow: hidden;
  140. white-space: nowrap;
  141. text-overflow: ellipsis;
  142. font-size: 20rpx;
  143. line-height: 30rpx;
  144. color: #666F80;
  145. &:first-child {
  146. margin-bottom: 5rpx;
  147. font-weight: bold;
  148. color: #292C33;
  149. }
  150. }
  151. }
  152. }
  153. }
  154. // 查核地图列表样式end
  155. </style>