report-health-index.wxml 1.8 KB

123456789101112131415161718192021222324252627282930313233343536
  1. <!--module/health/components/report-health-index/report-health-index.wxml-->
  2. <view class="card-wrapper">
  3. <t-cell t-class="card-header cell-border-gradient" t-class-title="card-header__title">
  4. <block slot="title">
  5. <text>指标信息</text>
  6. <t-loading wx:if="{{loading}}" theme="spinner" size="20px" class="loading" />
  7. <image wx:else class="icon" src="../../assets/icon/health-index.icon.png" mode="heightFix"></image>
  8. </block>
  9. <block slot="right-icon">
  10. <slot name="extra"></slot>
  11. </block>
  12. <view slot="description" wx:if="{{!loading && !dataset.length}}">暂无数据</view>
  13. </t-cell>
  14. <t-cell wx:for="{{dataset}}" t-class="card-body health-index cell-border-gradient" t-class-title="health-index__title" t-class-description="health-index__slider">
  15. <block slot="title">
  16. <text>{{item.name}}</text>
  17. <text style="font-size: 12px;">({{item.unit}})</text>
  18. </block>
  19. <block slot="description">
  20. <view class="value {{item.valueType}}" style="left: {{item.valueOffset}};">
  21. <text>{{item.value}}</text>
  22. <text class="description">{{item.description}}</text>
  23. </view>
  24. <view class="track track__bg"></view>
  25. <view class="track track__value" style="left: {{item.valueOffsetLeft}};right: {{item.valueOffsetRight}};"></view>
  26. <view class="track track__scope" style="left: {{item.scopeOffsetLeft}};right: {{item.scopeOffsetRight}};"></view>
  27. <view class="track track__point {{item.valueType}}" style="left: {{item.valueOffset}};"></view>
  28. <view class="point point__left" style="left: {{item.scopeOffsetLeft}};">{{item.min}}</view>
  29. <view class="point point__right" style="right: {{item.scopeOffsetRight}};">{{item.max}}</view>
  30. </block>
  31. </t-cell>
  32. <t-empty wx:if="{{message}}" t-class="empty-wrapper error" icon="info-circle" description="{{message}}" />
  33. </view>