App.vue 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  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. console.log({patParams});
  29. uni.setStorageSync('patParams', patParams);
  30. }
  31. }
  32. } catch (e) {}
  33. }
  34. }
  35. };
  36. </script>
  37. <style lang="less">
  38. /*每个页面公共css */
  39. body,
  40. uni-app,
  41. uni-page,
  42. uni-page-wrapper,
  43. uni-page-body {
  44. height: 100%;
  45. font-size: 20rpx;
  46. line-height: 30rpx;
  47. color: #292C33;
  48. background-color: #F5F6FA;
  49. }
  50. view,
  51. label,
  52. scroll-view {
  53. box-sizing: border-box;
  54. }
  55. // 底部固定的按钮
  56. .fixed-buttom-btn {
  57. position: fixed;
  58. left: 0;
  59. bottom: 0;
  60. display: flex;
  61. justify-content: center;
  62. align-items: center;
  63. margin-top: 12.5rpx;
  64. width: 100%;
  65. height: 75rpx;
  66. background-color: #3377FF;
  67. .btn-text {
  68. flex: 1;
  69. font-size: 22.5rpx;
  70. color: #fff;
  71. text-align: center;
  72. }
  73. .btn-text.cancle {
  74. line-height: 76.25rpx;
  75. background-color: #FFFFFF;
  76. color: #3377FF;
  77. }
  78. }
  79. // 新建情境样式start
  80. .creatingSituations {
  81. .title {
  82. padding-bottom: 35rpx;
  83. padding-left: 25rpx;
  84. font-size: 30rpx;
  85. line-height: 45rpx;
  86. color: #292C33;
  87. }
  88. }
  89. // 新建情境样式end
  90. // 查核地图列表样式start
  91. .check-map-list {
  92. overflow: hidden;
  93. padding: 0 25rpx;
  94. .item {
  95. position: relative;
  96. overflow: hidden;
  97. margin-bottom: 25rpx;
  98. border-radius: 5rpx;
  99. padding-top: 16.25rpx;
  100. padding-bottom: 0;
  101. width: 100%;
  102. background-color: #fff;
  103. box-shadow: 0 3.75rpx 12.5rpx 0 rgba(0, 13, 51, 0.1);
  104. .title-wrap {
  105. display: flex;
  106. flex-direction: row;
  107. align-items: center;
  108. padding: 0 25rpx;
  109. >text {
  110. font-size: 35rpx;
  111. line-height: 52.5rpx;
  112. color: #292C33;
  113. }
  114. >view {
  115. display: flex;
  116. flex-direction: row;
  117. align-items: center;
  118. margin-left: 20rpx;
  119. border-radius: 17.5rpx;
  120. height: 35rpx;
  121. font-size: 17.5rpx;
  122. line-height: 35rpx;
  123. color: #8F9BB3;
  124. background-color: #EDF2FA;
  125. image {
  126. width: 35rpx;
  127. height: 35rpx;
  128. }
  129. text {
  130. padding-left: 10rpx;
  131. padding-right: 20rpx;
  132. }
  133. }
  134. }
  135. .content {
  136. display: flex;
  137. flex-direction: column;
  138. padding: 11.25rpx 25rpx 20rpx;
  139. >text {
  140. overflow: hidden;
  141. white-space: nowrap;
  142. text-overflow: ellipsis;
  143. font-size: 20rpx;
  144. line-height: 30rpx;
  145. color: #666F80;
  146. &:first-child {
  147. margin-bottom: 5rpx;
  148. font-weight: bold;
  149. color: #292C33;
  150. }
  151. }
  152. }
  153. }
  154. }
  155. // 查核地图列表样式end
  156. </style>