与牧同行-小程序用户端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

86 lines
3.1 KiB

  1. <view class="wzbox">
  2. <!-- 顶部标题栏 -->
  3. <view class="header">
  4. <view class="header-content">
  5. <view class="title-section">
  6. <text class="title">问诊</text>
  7. <text class="subtitle">专业兽医在线解答</text>
  8. </view>
  9. </view>
  10. <view class="header-decoration">
  11. <view class="decoration-circle circle-1"></view>
  12. <view class="decoration-circle circle-2"></view>
  13. </view>
  14. </view>
  15. <!-- 问诊记录列表 -->
  16. <scroll-view class="record-list" scroll-y enable-back-to-top>
  17. <!-- 空状态 -->
  18. <view wx:if="{{diagnosisList.length === 0}}" class="empty-state">
  19. <image class="empty-icon" src="/images/empty-icon.png"></image>
  20. <text class="empty-text">暂无问诊记录</text>
  21. <text class="empty-tip">开始您的第一次问诊吧</text>
  22. </view>
  23. <!-- 问诊记录卡片 -->
  24. <view wx:else class="records-container">
  25. <view class="section-header">
  26. <text class="section-title">问诊记录</text>
  27. <text class="section-count">{{diagnosisList.length}}条</text>
  28. </view>
  29. <view wx:for="{{diagnosisList}}" wx:key="id" class="record-card" bindtap="viewDetail" data-index="{{index}}">
  30. <!-- 卡片头部:用户信息 + 状态 -->
  31. <view class="card-header">
  32. <view class="user-info">
  33. <image class="user-avatar" src="{{item.userInfo.avatar || '/icons/default-avatar.svg'}}"></image>
  34. <view class="user-details">
  35. <text class="user-name">{{item.userInfo.nickName || '用户'}}</text>
  36. <text class="pet-info">{{item.petInfo.type}},{{item.petInfo.age}}岁,{{item.petInfo.gender}}</text>
  37. </view>
  38. </view>
  39. <view class="status-tag {{item.status === 'replied' ? 'status-replied' : 'status-pending'}}">
  40. {{item.status === 'replied' ? '已回复' : '待回复'}}
  41. </view>
  42. </view>
  43. <!-- 症状描述 -->
  44. <view class="symptom-section">
  45. <view class="section-title-row">
  46. <text class="section-title-text">症状描述</text>
  47. </view>
  48. <view class="symptom-content">
  49. <text class="symptom-text">{{item.description}}</text>
  50. </view>
  51. </view>
  52. <!-- 卡片底部 -->
  53. <view class="card-footer">
  54. <view class="footer-left">
  55. <view class="time-info">
  56. <text class="time-text">{{item.createdAt}}</text>
  57. </view>
  58. </view>
  59. <view class="footer-right">
  60. <view class="reply-info">
  61. <text class="reply-count">{{item.replies.length}}条回复</text>
  62. </view>
  63. </view>
  64. </view>
  65. </view>
  66. </view>
  67. <!-- 列表底部提示 -->
  68. <view wx:if="{{diagnosisList.length > 0}}" class="list-footer">
  69. <text class="footer-text">已显示全部记录</text>
  70. </view>
  71. </scroll-view>
  72. <!-- 新增问诊按钮 -->
  73. <view class="create-btn-container">
  74. <view class="create-btn" bindtap="showCreateModal">
  75. <image class="btn-icon" src="/pagesA/images/jh.png"></image>
  76. <text class="btn-text">问诊单</text>
  77. </view>
  78. </view>
  79. </view>