deatil.vue 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. <template>
  2. <view class="content ">
  3. <view class="flex flex-direction ">
  4. <view class="flex justify-between">
  5. <view class="">
  6. <view class="item">
  7. <text class="cuIcon-peoplefill text-blue margin-right-10"></text>
  8. <text class="text-bold padding-right-10">姓名:</text>
  9. <text >{{dataDetail.personName}}</text>
  10. </view>
  11. <view class="item">
  12. <text class="cuIcon-male text-blue margin-right-10"></text>
  13. <text class="text-bold padding-right-10">性别:</text>
  14. <text v-text="dataDetail.gender==0?'男':'女'"></text>
  15. </view>
  16. <view class="item">
  17. <text class="cuIcon-hotfill text-blue margin-right-10"></text>
  18. <text class="text-bold padding-right-10">体温:</text>
  19. <text>{{dataDetail.temperature}} ℃</text>
  20. </view>
  21. <view class="item">
  22. <text class="cuIcon-activityfill text-blue margin-right-10"></text>
  23. <text class="text-bold padding-right-10">相机名称:</text>
  24. <text>{{dataDetail.cameraName}}</text>
  25. </view>
  26. </view>
  27. <view class="padding-top-20">
  28. <image @click="previewImg(dataDetail.faceUrl)" style="width: 220rpx;height: 250rpx;border-radius: 12rpx;" :src="dataDetail.faceUrl"></image>
  29. </view>
  30. </view>
  31. <view class="item">
  32. <text class="cuIcon-mobilefill text-blue margin-right-10"></text>
  33. <text class="text-bold padding-right-10">手机号:</text>
  34. <text>{{dataDetail.phone}}</text>
  35. </view>
  36. <view class="item">
  37. <text class="cuIcon-timefill text-blue margin-right-10"></text>
  38. <text class="text-bold padding-right-10">测温时间:</text>
  39. <text>{{dataDetail.recogTime}}</text>
  40. </view>
  41. <view class="item">
  42. <text class="cuIcon-locationfill text-blue margin-right-10"></text>
  43. <text class="text-bold padding-right-10">安装位置:</text>
  44. <text>{{dataDetail.address?dataDetail.address:'未知'}}</text>
  45. </view>
  46. </view>
  47. </view>
  48. </template>
  49. <script>
  50. var app=getApp()
  51. export default {
  52. data() {
  53. return {
  54. dataDetail:{}
  55. }
  56. },
  57. onShow() {
  58. this.dataDetail=getApp().globalData.staffTemperature
  59. },
  60. methods: {
  61. previewImg(img){
  62. let imgs=[]
  63. imgs.push(img)
  64. uni.previewImage({
  65. urls:imgs
  66. })
  67. }
  68. }
  69. }
  70. </script>
  71. <style lang="scss">
  72. page{
  73. background-color: #FFFFFF;
  74. }
  75. .content{
  76. padding:60rpx;
  77. .item{
  78. padding: 22rpx 0;
  79. }
  80. }
  81. </style>