detail.vue 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <template>
  2. <view class="content">
  3. <!-- 第一个信息框 -->
  4. <view class="base-info-box">
  5. <info-item isFirst="true" label="检测类型" :value="baseInfo.kqmc" />
  6. <info-item label="检测时间" :value="baseInfo.dwmc" />
  7. <info-item label="粮食品种" :value="baseInfo.tyxydm" />
  8. <info-item label="粮食等级" :value="baseInfo.qyxz" />
  9. <info-item label="检测人员姓名" :value="baseInfo.jtdz" />
  10. <info-item isImage="true" label="质检码单照片" :value="baseInfo.resid" />
  11. </view>
  12. </view>
  13. </template>
  14. <script setup>
  15. import { ref } from 'vue';
  16. import { onLoad } from '@dcloudio/uni-app';
  17. import InfoItem from "@/pages/components/InfoItem.vue";
  18. const props = defineProps(['baseInfo']);
  19. const baseInfo = ref({})
  20. onLoad(async (options) => {
  21. if (options) {
  22. baseInfo.value = options
  23. }
  24. });
  25. </script>
  26. <style lang="scss" scoped>
  27. .content {
  28. padding: 20rpx;
  29. }
  30. .base-info-box {
  31. background: #ffffff;
  32. border-radius: 20rpx;
  33. margin-bottom: 40rpx;
  34. padding: 20rpx;
  35. }
  36. </style>