card.vue 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <template>
  2. <view class="">
  3. <view v-for="(item,index) in list" :key="index" @click="goDetail(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. goDetail(item){
  42. getApp().globalData.staffTemperature=item
  43. uni.navigateTo({
  44. url:"/pages/index/staff-temperature/detail"
  45. })
  46. },
  47. }
  48. };
  49. </script>
  50. <style lang="scss">
  51. .mine_order_statue {
  52. margin: 18upx 14upx 0;
  53. background: #fff;
  54. padding: 10upx 20upx;
  55. border-radius: 20rpx;
  56. image{
  57. background-color: #FFFFFF;
  58. width: 160rpx;
  59. height: 160rpx;
  60. }
  61. }
  62. </style>