elderlyDetail.vue 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  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" v-if="appletType==1">
  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. //小程序审核状态
  62. appletType:0,
  63. dataDetail:{}
  64. }
  65. },
  66. onShow() {
  67. this.appletType= uni.getStorageSync('appletType')
  68. this.dataDetail=app.globalData.elderlyDetail
  69. },
  70. methods: {
  71. previewImg(img){
  72. let imgs=[]
  73. imgs.push(img)
  74. uni.previewImage({
  75. urls:imgs
  76. })
  77. }
  78. }
  79. }
  80. </script>
  81. <style lang="scss">
  82. page{
  83. background-color: #FFFFFF;
  84. }
  85. .content{
  86. padding:60rpx;
  87. .item{
  88. padding: 22rpx 0;
  89. }
  90. }
  91. </style>