elderlyDetail.vue 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. <template>
  2. <view class="content ">
  3. <view class="flex">
  4. <view class="flex flex-direction ">
  5. <view class="flex justify-between">
  6. <view class="">
  7. <view class="item">
  8. <text class="cuIcon-people text-blue margin-right-10"></text>
  9. <text class="text-bold padding-right-10">姓名:</text>
  10. <text >{{dataDetail.name}}</text>
  11. </view>
  12. <view class="item">
  13. <text class="cuIcon-male text-blue margin-right-10"></text>
  14. <text class="text-bold padding-right-10">性别:</text>
  15. <text>{{dataDetail.sex}}</text>
  16. </view>
  17. <view class="item">
  18. <text class="cuIcon-peoplelist text-blue margin-right-10"></text>
  19. <text class="text-bold padding-right-10">年龄:</text>
  20. <text>{{dataDetail.age}}岁</text>
  21. </view>
  22. <view class="item">
  23. <text class="cuIcon-hot text-blue margin-right-10"></text>
  24. <text class="text-bold padding-right-10">体温:</text>
  25. <text>{{dataDetail.temperature}} ℃</text>
  26. </view>
  27. </view>
  28. <view class="padding-top-20">
  29. <image @click="previewImg(dataDetail.image)" style="width: 250rpx;height: 280rpx;border-radius: 12rpx;" mode="scaleToFill" :src="dataDetail.image"></image>
  30. </view>
  31. </view>
  32. <view class="item">
  33. <text class="cuIcon-news text-blue margin-right-10"></text>
  34. <text class="text-bold padding-right-10">身份证号:</text>
  35. <text>{{dataDetail.idCard}}</text>
  36. </view>
  37. <view class="item">
  38. <text class="cuIcon-home text-blue margin-right-10"></text>
  39. <text class="text-bold padding-right-10">抓拍小区:</text>
  40. <text>{{dataDetail.plotName}}</text>
  41. </view>
  42. <view class="item">
  43. <text class="cuIcon-focus text-blue margin-right-10"></text>
  44. <text class="text-bold padding-right-10">抓拍设备:</text>
  45. <text>{{dataDetail.device}}</text>
  46. </view>
  47. <view class="item">
  48. <text class="cuIcon-time text-blue margin-right-10"></text>
  49. <text class="text-bold padding-right-10">抓拍时间:</text>
  50. <text>{{dataDetail.time}}</text>
  51. </view>
  52. </view>
  53. </view>
  54. </view>
  55. </template>
  56. <script>
  57. var app=getApp()
  58. export default {
  59. data() {
  60. return {
  61. dataDetail:{}
  62. }
  63. },
  64. onShow() {
  65. this.dataDetail=app.globalData.elderlyDetail
  66. },
  67. methods: {
  68. previewImg(img){
  69. let imgs=[]
  70. imgs.push(img)
  71. uni.previewImage({
  72. urls:imgs
  73. })
  74. }
  75. }
  76. }
  77. </script>
  78. <style lang="scss">
  79. page{
  80. background-color: #FFFFFF;
  81. }
  82. .content{
  83. padding:60rpx;
  84. .item{
  85. padding: 22rpx 0;
  86. }
  87. }
  88. </style>