与牧同行-小程序用户端
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.

103 lines
3.7 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="/pagesA/images/kzt.png" mode="widthFix"></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-value="{{item}}">
  30. <!-- 卡片头部:用户信息 + 状态 -->
  31. <view class="card-header">
  32. <view class="user-section">
  33. <image class="user-avatar" src="{{item.userInfo.avatar || '/pages/images/tx.png'}}"></image>
  34. <text class="user-name">{{item.farmerName || '用户'}}</text>
  35. </view>
  36. <view class="status-tag {{item.status === '已回复' ? 'status-replied' : 'status-pending'}}">
  37. {{item.status}}
  38. </view>
  39. </view>
  40. <!-- 牲畜信息 -->
  41. <view class="livestock-section">
  42. <view class="livestock-title-wrapper">
  43. <view class="livestock-title-line"></view>
  44. <view class="livestock-title-content">
  45. <text class="livestock-title-text">牲畜信息</text>
  46. </view>
  47. <view class="livestock-title-line"></view>
  48. </view>
  49. <view class="livestock-tags">
  50. <view class="livestock-tag type-tag">
  51. <text class="tag-text">{{item.animalType}}</text>
  52. </view>
  53. <view class="livestock-tag age-tag">
  54. <text class="tag-text">{{item.animalAge}}</text>
  55. </view>
  56. <view class="livestock-tag gender-tag">
  57. <text class="tag-text">{{item.animalGender}}</text>
  58. </view>
  59. </view>
  60. </view>
  61. <!-- 症状描述 -->
  62. <view class="symptom-section">
  63. <view class="symptom-content">
  64. <text class="symptom-text">{{item.description}}</text>
  65. </view>
  66. </view>
  67. <!-- 卡片底部 -->
  68. <view class="card-footer">
  69. <view class="footer-left">
  70. <view class="time-info">
  71. <text class="time-text">{{item.createdTime}}</text>
  72. </view>
  73. </view>
  74. <view class="footer-right">
  75. <view class="reply-info">
  76. <text class="reply-count">{{item.replyCount}}条回复</text>
  77. </view>
  78. </view>
  79. </view>
  80. </view>
  81. </view>
  82. <!-- 列表底部提示 -->
  83. <view wx:if="{{diagnosisList.length > 0}}" class="list-footer">
  84. <text class="footer-text">已显示全部记录</text>
  85. </view>
  86. </scroll-view>
  87. <!-- 新增问诊按钮 -->
  88. <view class="create-btn-container">
  89. <view class="create-btn" bindtap="showCreateModal">
  90. <image class="btn-icon" src="/pagesA/images/jh.png"></image>
  91. <text class="btn-text">问诊单</text>
  92. </view>
  93. </view>
  94. </view>