deatil.vue 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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-people text-blue margin-right-10"></text>
  8. <text class="text-bold padding-right-10">姓名:</text>
  9. <text >{{dataDetail.name}}</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>{{dataDetail.sex}}</text>
  15. </view>
  16. <view class="item">
  17. <text class="cuIcon-hot 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-activity text-blue margin-right-10"></text>
  23. <text class="text-bold padding-right-10">所属企业:</text>
  24. <text>{{dataDetail.enterprise}}</text>
  25. </view>
  26. </view>
  27. <view class="padding-top-20">
  28. <image @click="previewImg(dataDetail.image)" style="width: 220rpx;height: 250rpx;border-radius: 12rpx;" :src="dataDetail.image"></image>
  29. </view>
  30. </view>
  31. <view class="item">
  32. <text class="cuIcon-news text-blue margin-right-10"></text>
  33. <text class="text-bold padding-right-10">身份证号:</text>
  34. <text>{{dataDetail.idCard}}</text>
  35. </view>
  36. <view class="item">
  37. <text class="cuIcon-time text-blue margin-right-10"></text>
  38. <text class="text-bold padding-right-10">测温时间:</text>
  39. <text>{{dataDetail.time}}</text>
  40. </view>
  41. </view>
  42. </view>
  43. </template>
  44. <script>
  45. var app=getApp()
  46. export default {
  47. data() {
  48. return {
  49. dataDetail:{
  50. 'name':'李德希',
  51. 'sex':'男',
  52. 'enterprise':'宁夏新金凰印刷有限公司',
  53. 'temperature':'35.5',
  54. 'image':'http://139.9.103.171:1888/miniofile/xlyq/del/cewen1.jpg',
  55. 'idCard':'440881199604264598',
  56. 'time':'2020-12-15 14:18:56'
  57. }
  58. }
  59. },
  60. onShow() {
  61. },
  62. methods: {
  63. previewImg(img){
  64. let imgs=[]
  65. imgs.push(img)
  66. uni.previewImage({
  67. urls:imgs
  68. })
  69. }
  70. }
  71. }
  72. </script>
  73. <style lang="scss">
  74. page{
  75. background-color: #FFFFFF;
  76. }
  77. .content{
  78. padding:60rpx;
  79. .item{
  80. padding: 22rpx 0;
  81. }
  82. }
  83. </style>