urinometer.vue 3.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. <template>
  2. <view class="urinometer">
  3. <view class="content">
  4. <img class="bg_picture" style="" src="@/static/urinometer/1.png" alt="" />
  5. <view class="content_top" style="">
  6. <view class="top_text">
  7. <text>已连接</text>/
  8. <text>未连接</text>
  9. </view>
  10. <view class="top_box" style="">
  11. <img class="top_box_img" style="" src="@/static/urinometer/3.png" alt="" />
  12. </view>
  13. <view class="top_center" @click="result_click">
  14. 扫码查看结果
  15. </view>
  16. <view class="top_time" style="">
  17. 最新检测记录:2024-08-01 8:29:00
  18. </view>
  19. </view>
  20. <view class="content_bottom" >
  21. <view class="bottom_box" v-for="(item, index) in contentarr" :key="index" @click="network_click(item.id)">
  22. <view class="bottom_img-box">
  23. <img class='bottom_img' style="" :src="item.url" alt="" />
  24. </view>
  25. <view class="bottom_text-box">
  26. <view class="">{{item.title}}</view>
  27. <view class="bottom_text">{{item.text}}</view>
  28. </view>
  29. </view>
  30. <!-- <view class="" style="display:flex;background: ghostwhite;padding: 10px;border-bottom: 1px solid gainsboro;">
  31. <view class="" style="width: 20%;">
  32. <img style="width: 84rpx;height: 84rpx;" src="@/static/urinometer/9.png" alt="" />
  33. </view>
  34. <view class="" style="width: 79%;">
  35. <view class="">健康工具</view>
  36. <view class="">肾小球滤过率计算器,尿毒症风险预测等</view>
  37. </view>
  38. </view> -->
  39. </view>
  40. </view>
  41. </view>
  42. </template>
  43. <script>
  44. export default {
  45. data() {
  46. return {
  47. contentarr:[{id:1,url:'../../static/urinometer/8.png',title:'检测记录',text:'查看历史检测记录及趋势'},
  48. {id:2,url:'../../static/urinometer/9.png',title:'健康工具',text:'肾小球滤过率计算器,尿毒症风险预测等'},
  49. {id:3,url:'../../static/urinometer/10.png',title:'购买设备',text:'购买设备和试纸'},
  50. {id:4,url:'../../static/urinometer/11.png',title:'设备配网',text:'为设备配置网络连接'},
  51. {id:5,url:'../../static/urinometer/12.png',title:'操作手册',text:'设备操作步骤说明'},
  52. {id:6,url:'../../static/urinometer/13.png',title:'检测项目',text:'尿检试纸检测项目说明'},
  53. {id:7,url:'../../static/urinometer/14.png',title:'删除设备',text:'解绑该账号与设备的关联'},
  54. ]
  55. }
  56. },
  57. methods: {
  58. result_click(){
  59. },
  60. getBluetoothAdapterState() {
  61. },
  62. network_click(val){
  63. if(val == 4){
  64. wx.navigateTo({
  65. // Health_monitor/components/network
  66. url:"/pages/Health_monitor/components/network"
  67. })
  68. }
  69. }
  70. }
  71. }
  72. </script>
  73. <style lang="scss" scoped>
  74. .urinometer{
  75. .content{
  76. .bg_picture{
  77. width: 100%;
  78. }
  79. .content_top{
  80. width: 80%;
  81. height: 440rpx;
  82. background:white;
  83. position: absolute;
  84. top: 40rpx;
  85. left:10%;
  86. margin: 0 auto;
  87. text-align: center;
  88. padding: 10rpx;
  89. border-radius: 20rpx;
  90. .top_text{
  91. line-height: 60rpx;
  92. }
  93. .top_box{
  94. margin: 20rpx 0;
  95. line-height: 100rpx;
  96. .top_box_img{
  97. width: 95rpx;
  98. height: 93rpx;
  99. }
  100. }
  101. .top_center{
  102. line-height: 60rpx;
  103. font-size: 14px;
  104. color: gray;
  105. }
  106. .top_time{
  107. margin: 20rpx 0;
  108. line-height: 30px;
  109. background: ghostwhite;
  110. border-radius: 50rpx;
  111. font-size: 12px;
  112. }
  113. }
  114. .content_bottom{
  115. margin-top: 20rpx;
  116. .bottom_box{
  117. display:flex;
  118. background: ghostwhite;
  119. padding: 20rpx;
  120. border-bottom: 2rpx solid gainsboro;
  121. .bottom_img-box{
  122. width: 20%;text-align: center;
  123. .bottom_img{
  124. width: 84rpx;
  125. height: 84rpx;
  126. }
  127. }
  128. .bottom_text-box{
  129. width: 79%;
  130. .bottom_text{
  131. font-size: 24rpx;
  132. color: gray;
  133. }
  134. }
  135. }
  136. }
  137. }
  138. }
  139. </style>