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

94 lines
3.2 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 wx:for="{{diagnosisList}}" wx:key="id" class="record-card" bindtap="viewDetail" data-value="{{item}}">
  26. <!-- 卡片头部:用户信息 + 状态 -->
  27. <view class="card-header">
  28. <view class="user-section">
  29. <image class="user-avatar" src="{{item.userInfo.avatar || '/pages/images/tx.png'}}"></image>
  30. <text class="user-name">{{item.farmerName || '用户'}}</text>
  31. </view>
  32. <view class="status-tag {{item.status === '已回复' ? 'status-replied' : 'status-pending'}}">
  33. {{item.status}}
  34. </view>
  35. </view>
  36. <!-- 牲畜信息 -->
  37. <view class="livestock-section">
  38. <view class="livestock-title-wrapper">
  39. <view class="livestock-title-line"></view>
  40. <view class="livestock-title-content">
  41. <text class="livestock-title-text">牲畜信息</text>
  42. </view>
  43. <view class="livestock-title-line"></view>
  44. </view>
  45. <view class="livestock-tags">
  46. <view class="livestock-tag type-tag">
  47. <text class="tag-text">{{item.animalType}}</text>
  48. </view>
  49. <view class="livestock-tag age-tag">
  50. <text class="tag-text">{{item.animalAge}}</text>
  51. </view>
  52. <view class="livestock-tag gender-tag">
  53. <text class="tag-text">{{item.animalGender}}</text>
  54. </view>
  55. </view>
  56. </view>
  57. <!-- 症状描述 -->
  58. <view class="symptom-section">
  59. <view class="symptom-content">
  60. <text class="symptom-text">{{item.description}}</text>
  61. </view>
  62. </view>
  63. <!-- 卡片底部 -->
  64. <view class="card-footer">
  65. <view class="footer-left">
  66. <view class="time-info">
  67. <text class="time-text">{{item.createdTime}}</text>
  68. </view>
  69. </view>
  70. <view class="footer-right">
  71. <view class="reply-info">
  72. <text class="reply-count">制定方案</text>
  73. </view>
  74. </view>
  75. </view>
  76. </view>
  77. </view>
  78. <!-- 列表底部提示 -->
  79. <view wx:if="{{diagnosisList.length > 0}}" class="list-footer">
  80. <text class="footer-text">已显示全部记录</text>
  81. </view>
  82. </scroll-view>
  83. </view>