card.vue 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. <template>
  2. <view class="history">
  3. <u-time-line>
  4. <u-time-line-item nodeTop="2" v-for="(item,index) in list" :key="index">
  5. <template v-slot:node>
  6. <view class="u-node bg-white" >
  7. <u-icon name="clock-fill" color="#5064eb" :size="28"></u-icon>
  8. </view>
  9. </template>
  10. <template v-slot:content>
  11. <view>
  12. <view class="">{{item.openTime}}</view>
  13. <view style="width: 636rpx;">
  14. <view class="content">
  15. <view class="flex justify-between">
  16. <view class="">
  17. <view class="nav-title">
  18. <text class="">人员姓名:</text>
  19. <text class="">{{item.userName}}</text>
  20. </view>
  21. <view v-if="item.temperature" class="nav-title">
  22. <text >测量体温:</text>
  23. <text class="text-red">{{item.temperature}} ℃</text>
  24. </view>
  25. <view class="nav-title">
  26. <text >所属企业:</text>
  27. <text>{{item.enterpriseName}}</text>
  28. </view>
  29. <!-- <view class="nav-title">
  30. <text >开门地址:</text>
  31. <text>{{item.deviceAddress}}</text>
  32. </view> -->
  33. </view>
  34. <view class="" v-if="item.faceUrl">
  35. <image @click="$util.preview(item.faceUrl)" :src="item.faceUrl" style="width: 110rpx;height: 110rpx;border-radius: 10rpx;" mode=""></image>
  36. </view>
  37. </view>
  38. <view class="nav-title">
  39. <text >开门方式:</text>
  40. <text v-if="item.openType==1">人脸识别开门</text>
  41. <text v-if="item.openType==2">小程序一键开门</text>
  42. </view>
  43. </view>
  44. </view>
  45. </view>
  46. </template>
  47. </u-time-line-item>
  48. </u-time-line>
  49. </view>
  50. </template>
  51. <script>
  52. export default {
  53. props:{
  54. list:{
  55. type:Array
  56. }
  57. },
  58. data() {
  59. return {
  60. };
  61. },
  62. onLoad() {
  63. },
  64. methods:{
  65. }
  66. };
  67. </script>
  68. <style lang="scss" scoped>
  69. page{
  70. background-color: #FFFFFF;
  71. }
  72. .nav-title {
  73. font-size: 28upx;
  74. font-weight: 300;
  75. padding-top: 20rpx;
  76. }
  77. .history{
  78. box-sizing: border-box;
  79. padding: 40rpx 20rpx 20rpx 50rpx;
  80. }
  81. .content{
  82. box-shadow: 0 8rpx 10rpx rgba(234, 234, 234, 0.5),8rpx 0rpx 10rpx rgba(234, 234, 234,.5),-8rpx 0rpx 10rpx rgba(234, 234, 234,.5);
  83. background-color: #FFFFFF;
  84. padding: 20rpx;
  85. border-radius: 10rpx;
  86. margin: 20rpx 0;
  87. }
  88. </style>