scheme.wxml 1.4 KB

1234567891011121314151617181920212223242526272829303132
  1. <!--module/health/pages/scheme/scheme.wxml-->
  2. <t-navbar title="调理方案" left-arrow />
  3. <scroll-view class="page-scroll__container" type="list" scroll-y style="{{containerStyle}}">
  4. <view class="card-wrapper">
  5. <t-cell t-class="card-header" bordered="{{false}}">
  6. <view slot="title">方案日期:{{dataset.reportTime}}</view>
  7. <form-button slot="right-icon" index="1" bind:tap="toReportPage">健康分析报告</form-button>
  8. </t-cell>
  9. </view>
  10. <view class="card-wrapper" wx:for="{{dataset.types}}" wx:key="*this">
  11. <t-cell wx:if="{{item.type}}" t-class="card-header cell-border-gradient" title="{{item.type}}" />
  12. <view class="card-body">
  13. <view class="scheme-wrapper" wx:for="{{item.groups}}" wx:key="*this">
  14. <view class="name">{{item.name}}</view>
  15. <view class="media-container">
  16. <view class="media" wx:for="{{item.media}}" wx:key="*this">
  17. <view class="name">{{item.name}}</view>
  18. <image wx:if="{{item.type==='picture'}}" src="{{item.mediaUrl}}" mode="aspectFit"></image>
  19. <video wx:elif="{{item.type==='video'}}" src="{{item.mediaUrl}}" poster="{{item.imgUrl}}"></video>
  20. <view class="description">{{item.description}}</view>
  21. </view>
  22. </view>
  23. <view class="description" wx:for="{{item.descriptions}}" wx:key="*this">{{item}}</view>
  24. </view>
  25. </view>
  26. </view>
  27. </scroll-view>
  28. <t-message id="{{$messageId}}"></t-message>