claimRecord.vue 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. <template>
  2. <view class="claimRecord">
  3. <view class="content">
  4. <view class="title">理赔记录</view>
  5. <view>
  6. <claim-item :isShow="false" :detail="detailData"></claim-item>
  7. </view>
  8. </view>
  9. </view>
  10. </template>
  11. <script lang="ts" setup>
  12. import { ref } from "vue";
  13. import { onLoad } from "@dcloudio/uni-app";
  14. import ClaimItem from "../record/components/claimItem.vue";
  15. import { quickclaimsDetail } from "@/services/claim";
  16. const openid = uni.getStorageSync("openid");
  17. const detailData = ref({} as any);
  18. const getDetail = async (id: string) => {
  19. const res: any = await quickclaimsDetail({ openid, id });
  20. try {
  21. if (res.code === 200) {
  22. detailData.value = res.data;
  23. detailData.value.paymentBillImageArr =
  24. res.data.paymentBillImage.split(",");
  25. detailData.value.receiptImageArr = res.data.receiptImage.split(",");
  26. }
  27. } catch (error) {
  28. console.log(error);
  29. }
  30. };
  31. onLoad((options: any) => {
  32. getDetail(options.id);
  33. });
  34. </script>
  35. <style lang="scss" scoped>
  36. .claimRecord {
  37. background: #f7f8f9;
  38. min-height: 100vh;
  39. .title {
  40. color: #000;
  41. font-weight: bold;
  42. font-size: 32rpx;
  43. position: relative;
  44. margin-left: 16rpx;
  45. margin-bottom: 16rpx;
  46. &::before {
  47. content: " ";
  48. display: inline-block;
  49. width: 6rpx;
  50. height: 30rpx;
  51. background-color: #296041;
  52. margin-right: 16rpx;
  53. position: absolute;
  54. border-radius: 200rpx;
  55. left: -16rpx;
  56. top: 0;
  57. bottom: 0;
  58. margin: auto;
  59. }
  60. }
  61. .content {
  62. // margin: 32rpx;
  63. padding: 22rpx;
  64. box-sizing: border-box;
  65. }
  66. }
  67. </style>