card.vue 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. <template>
  2. <view class="">
  3. <view v-for="(item,index) in list" :key="index" @click="showDetail(item)" class="mine_order_statue" >
  4. <view class="flex justify-between" style="padding: 10rpx 0 10rpx 10rpx ;">
  5. <view class="flex">
  6. <image :src="item.faceUrl" ></image>
  7. <view class="flex flex-direction justify-around padding-left-30">
  8. <view class="">
  9. <text class="text-bold">姓名:</text>
  10. <text>{{item.personName}}</text>
  11. </view>
  12. <view class="">
  13. <text class="text-bold">温度:</text>
  14. <text>{{item.temperature}} ℃ </text>
  15. </view>
  16. <view class="">
  17. <text class="text-bold">测温时间:</text>
  18. <text>{{item.recogTime}}</text>
  19. </view>
  20. </view>
  21. </view>
  22. <view class="flex align-center justify-center">
  23. <text class="cuIcon-right"></text>
  24. </view>
  25. </view>
  26. </view>
  27. </view>
  28. </template>
  29. <script>
  30. export default {
  31. props:{
  32. list:Array
  33. },
  34. data() {
  35. return {
  36. };
  37. },
  38. onLoad() {
  39. },
  40. methods:{
  41. showDetail(item){
  42. getApp().globalData.staffTemperature=item
  43. uni.navigateTo({
  44. url:"/pages/index/staff-temperature/detail"
  45. })
  46. },
  47. previewImg(img){
  48. let imgs=[]
  49. imgs.push(img)
  50. uni.previewImage({
  51. urls:imgs
  52. })
  53. },
  54. goDetail(item){
  55. getApp().globalData.staffTemperature=item
  56. uni.navigateTo({
  57. url:"/pages/index/staff-temperature/detail"
  58. })
  59. },
  60. }
  61. };
  62. </script>
  63. <style lang="scss">
  64. .mine_order_statue {
  65. margin: 18upx 14upx 0;
  66. background: #fff;
  67. padding: 10upx 20upx;
  68. border-radius: 20rpx;
  69. image{
  70. background-color: #FFFFFF;
  71. width: 160rpx;
  72. height: 160rpx;
  73. }
  74. }
  75. </style>