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

136 lines
5.0 KiB

6 days ago
6 days ago
6 days ago
6 days ago
6 days ago
6 days ago
6 days ago
6 days ago
6 days ago
6 days ago
6 days ago
6 days ago
  1. <wxs module="tool" src="../../utils/tool.wxs"></wxs>
  2. <view class="home-container">
  3. <view class="box">
  4. <!-- 定位 -->
  5. <view class="orientation">
  6. <image src="/pages/images/dw.png" mode="" />
  7. <view>{{county}}</view>
  8. </view>
  9. <!-- AI问诊 -->
  10. <view class="Aidiagnosis" bind:tap="bindAI">
  11. <image src="/pages/images/aiwz.png" mode=""/>
  12. </view>
  13. <!-- 轮播图区域 -->
  14. <view class="swiper-container">
  15. <swiper class="custom-swiper" indicator-dots="{{false}}" indicator-color="rgba(255,255,255,0.4)" indicator-active-color="#4CAF50" autoplay="{{true}}" interval="5000" duration="500" circular="{{true}}" current="{{currentSwiper}}" bindchange="onSwiperChange" style="height: 360rpx;">
  16. <block wx:for="{{swiperList}}" wx:key="id">
  17. <swiper-item>
  18. <view class="swiper-item {{item.isActive ? 'active' : ''}}" data-value="{{item}}" catchtap="onSwiperTap">
  19. <image src="{{baseUr+item.imageUrl}}" class="swiper-image" mode="aspectFill" />
  20. <view class="swiper-mask"></view>
  21. <view class="swiper-content">
  22. <text class="swiper-tag">{{item.adsType}}</text>
  23. <text class="swiper-title">{{item.title}}</text>
  24. <text class="swiper-desc">{{item.subtitle}}</text>
  25. </view>
  26. <view class="swiper-gradient"></view>
  27. </view>
  28. </swiper-item>
  29. </block>
  30. </swiper>
  31. <!-- 自定义指示器 -->
  32. <view class="custom-indicator">
  33. <block wx:for="{{swiperList}}" wx:key="id">
  34. <view class="indicator-dot {{currentSwiper === index ? 'active' : ''}}" data-index="{{index}}" bindtap="onIndicatorTap"></view>
  35. </block>
  36. </view>
  37. </view>
  38. <view class="kap">
  39. <!-- 卡片类型 -->
  40. <view class="card">
  41. <view class="card2">
  42. <view>问兽医</view>
  43. <view class="card2_1">智能匹配医生</view>
  44. <view class="card2_1">平均5分钟恢复</view>
  45. </view>
  46. <view class="card3">
  47. <view class="card3_1 card3_kp">
  48. <view>找专家</view>
  49. <view>智能匹配医生</view>
  50. </view>
  51. <view class="card3_2 card3_kp">
  52. <view>去买药</view>
  53. <view>制定专业的治疗方案</view>
  54. </view>
  55. </view>
  56. </view>
  57. <!-- 知识库 -->
  58. <view class="repository">
  59. <view class="repository1_1 zsk">
  60. <view>养殖知识库</view>
  61. <view>快速查询养殖知识</view>
  62. </view>
  63. <view class="repository1_2 zsk">
  64. <view>在线培训</view>
  65. <view>提高养殖技能</view>
  66. </view>
  67. <view class="repository1_3 zsk">
  68. <view>政策解读</view>
  69. <view>提供政策指导</view>
  70. </view>
  71. </view>
  72. </view>
  73. <!-- 通知公告区域 -->
  74. <view class="notice-section">
  75. <view class="notice-content">
  76. <swiper class="notice-swiper" vertical="{{true}}" autoplay="{{true}}" interval="4000" duration="800" circular="{{true}}" style="height: 200rpx;">
  77. <block wx:for="{{noticeList}}" wx:key="id">
  78. <swiper-item>
  79. <view class="notice-item {{index === currentNotice ? 'highlight' : ''}}" data-id="{{item.id}}" catchtap="onNoticeTap">
  80. <view class="notice-item-header">
  81. <text class="notice-type {{tool.type(item.warningLevel)}}">{{item.warningLevel}}</text>
  82. <text class="notice-time">{{item.createdTime}}</text>
  83. </view>
  84. <text class="notice-text">{{item.title}}</text>
  85. </view>
  86. </swiper-item>
  87. </block>
  88. </swiper>
  89. </view>
  90. </view>
  91. <!-- 用户提问板块 -->
  92. <view class="user-question-section">
  93. <!-- 标题区域 -->
  94. <view class="question-header">
  95. <view class="question-title">
  96. <view class="title-text">用户提问</view>
  97. <view class="title-sub">看看其他养殖户遇到的问题</view>
  98. </view>
  99. <view class="view-all" bindtap="viewAllQuestions">
  100. 查看全部
  101. </view>
  102. </view>
  103. <!-- 问题列表 -->
  104. <view class="question-card placeholder">
  105. <view class="question-meta">
  106. <view class="question-tag">
  107. <text class="tag-icon">【羊】</text>
  108. <text class="tag-text">发烧、流鼻涕、越来越瘦是什么原因?应该怎么治疗?</text>
  109. </view>
  110. </view>
  111. <view class="question-info">
  112. <view class="user-info">
  113. <image src="/pages/images/tx.png" class="user-avatar"></image>
  114. <view class="user-detail">
  115. <view class="user-name">内蒙古养殖户</view>
  116. <view class="user-location">
  117. <text>内蒙古阿拉善左旗</text>
  118. </view>
  119. </view>
  120. </view>
  121. <view class="time-info">
  122. 2025-12-25
  123. </view>
  124. </view>
  125. </view>
  126. </view>
  127. </view>
  128. </view>