detail.vue 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <template>
  2. <view class="page">
  3. <view style="padding: 20rpx 5rpx 10rpx;">
  4. <view class="flex justify-between padding-right-10">
  5. <view class="bg-blue" style="width: 65%;">
  6. <u-cell-group :border="false">
  7. <u-cell-item :icon-style="iconStyle" :arrow="false" icon="account-fill" title="姓名: " :value="detailData.personName || '未知'"></u-cell-item>
  8. <u-cell-item :icon-style="iconStyle" :arrow="false" icon="phone-fill" title="手机号: " :value="detailData.phone || '未知'"></u-cell-item>
  9. <u-cell-item :icon-style="iconStyle" :arrow="false" icon="info-circle-fill" title="体温: " :value="detailData.temperature+' ℃'"></u-cell-item>
  10. </u-cell-group>
  11. </view>
  12. <image @click="previewImg(detailData.faceUrl)" :src="detailData.faceUrl" mode="scaleToFill" style="width: 240rpx;height: 240rpx;"></image>
  13. </view>
  14. <u-cell-group :border="false">
  15. <u-cell-item :value-style="detailData.isException==0?titleStyle0:titleStyle1" :icon-style="iconStyle" :arrow="false" icon="question-circle-fill" title="是否异常:" :value="detailData.isException==0?'否':'异常'"></u-cell-item>
  16. <u-cell-item :icon-style="iconStyle" :arrow="false" icon="bookmark-fill" title="设备名称:" :value="detailData.cameraName"></u-cell-item>
  17. <u-cell-item :icon-style="iconStyle" :arrow="false" icon="clock-fill" title="测温时间:" :value="detailData.recogTime"></u-cell-item>
  18. <u-cell-item :icon-style="iconStyle" :arrow="false" icon="map-fill" title="安装位置:" :value="detailData.address || '未知'"></u-cell-item>
  19. </u-cell-group>
  20. </view>
  21. </view>
  22. </template>
  23. <script>
  24. export default {
  25. name: '',
  26. data() {
  27. return {
  28. detailData:{},
  29. iconStyle:{
  30. color:"#59a5f0"
  31. },
  32. titleStyle0:{
  33. color:"#19be6b"
  34. },
  35. titleStyle1:{
  36. color:"#fa3534"
  37. },
  38. };
  39. },
  40. onLoad() {
  41. },
  42. onShow() {
  43. this.detailData=getApp().globalData.staffTemperature
  44. },
  45. methods:{
  46. previewImg(img){
  47. let imgs=[]
  48. imgs.push(img)
  49. uni.previewImage({
  50. urls:imgs
  51. })
  52. }
  53. }
  54. };
  55. </script>
  56. <style lang="scss" scoped>
  57. .page{
  58. background-color: #FFFFFF;
  59. min-height: 100vh;
  60. }
  61. </style>