index.wxml 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. <!--index.wxml-->
  2. <view class="container">
  3. <!-- 轮播图 -->
  4. <swiper class="banner-swiper" indicator-dots="true" autoplay="true" interval="3000" duration="500">
  5. <swiper-item wx:for="{{banners}}" wx:key="id">
  6. <view class="banner-item">
  7. <image class="banner-image" src="{{item.image}}" mode="aspectFill"></image>
  8. <view class="banner-content">
  9. <text class="banner-title">{{item.title}}</text>
  10. <text class="banner-desc">{{item.description}}</text>
  11. </view>
  12. </view>
  13. </swiper-item>
  14. </swiper>
  15. <!-- 功能入口 -->
  16. <view class="feature-section">
  17. <view class="feature-title">
  18. <text>快速服务入口</text>
  19. </view>
  20. <view class="feature-grid">
  21. <view class="feature-item" bindtap="navigateToOrder">
  22. <image class="feature-icon" src="/images/order-icon.png"></image>
  23. <text class="feature-text">下单</text>
  24. </view>
  25. <view class="feature-item" bindtap="navigateToDiagnosis">
  26. <image class="feature-icon" src="/images/diagnosis-icon.png"></image>
  27. <text class="feature-text">智能诊断</text>
  28. </view>
  29. <view class="feature-item" bindtap="navigateToProfile">
  30. <image class="feature-icon" src="/images/profile-icon.png"></image>
  31. <text class="feature-text">我的</text>
  32. </view>
  33. </view>
  34. </view>
  35. <!-- 平台介绍 -->
  36. <view class="intro-section">
  37. <view class="intro-title">
  38. <text>无人机药品配送服务</text>
  39. </view>
  40. <view class="intro-content">
  41. <view class="intro-item">
  42. <image class="intro-icon" src="/images/fast-icon.png"></image>
  43. <view class="intro-text">
  44. <text class="intro-subtitle">快速配送</text>
  45. <text class="intro-desc">无人机配送,平均30分钟送达</text>
  46. </view>
  47. </view>
  48. <view class="intro-item">
  49. <image class="intro-icon" src="/images/safe-icon.png"></image>
  50. <view class="intro-text">
  51. <text class="intro-subtitle">安全可靠</text>
  52. <text class="intro-desc">专业医疗包装,全程温控监控</text>
  53. </view>
  54. </view>
  55. <view class="intro-item">
  56. <image class="intro-icon" src="/images/ai-icon.png"></image>
  57. <view class="intro-text">
  58. <text class="intro-subtitle">AI智能诊断</text>
  59. <text class="intro-desc">专业AI医生为您提供初步诊断建议</text>
  60. </view>
  61. </view>
  62. <view class="intro-item">
  63. <image class="intro-icon" src="/images/price-icon.png"></image>
  64. <view class="intro-text">
  65. <text class="intro-subtitle">药品比价</text>
  66. <text class="intro-desc">多家医院药品价格对比,帮您省钱</text>
  67. </view>
  68. </view>
  69. </view>
  70. </view>
  71. <!-- 合作医院展示 -->
  72. <view class="hospital-section">
  73. <view class="hospital-title">
  74. <text>合作医院</text>
  75. <text class="hospital-more" bindtap="navigateToOrder">查看更多 ></text>
  76. </view>
  77. <scroll-view class="hospital-scroll" scroll-x="true">
  78. <view class="hospital-list">
  79. <view class="hospital-item" wx:for="{{hospitals}}" wx:key="id" bindtap="navigateToHospital" data-hospital="{{item}}">
  80. <image class="hospital-image" src="{{item.image}}" mode="aspectFill"></image>
  81. <view class="hospital-info">
  82. <text class="hospital-name">{{item.name}}</text>
  83. <text class="hospital-address">{{item.address}}</text>
  84. <view class="hospital-rating">
  85. <text class="rating-text">{{item.rating}}分</text>
  86. <text class="distance-text">{{item.distance}}</text>
  87. </view>
  88. </view>
  89. </view>
  90. </view>
  91. </scroll-view>
  92. </view>
  93. </view>