card-analysis-content.wxml 3.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. <!--module/health/components/card-analysis/card-analysis-content.wxml-->
  2. <view class="card-wrapper tongue-container" wx:if="{{tongue.result && i18n.analysis.__show__}}" mark:type="tongue" bind:tap="preview">
  3. <view wx:if="{{isShowType}}">
  4. <view class="togue-title">{{i18n.analysis.tongue}}</view>
  5. </view>
  6. <view class="card-title" wx:else>
  7. <view class="tongue-right">
  8. <view>
  9. <image src="../../assets/icon/icon_tongue@2x.png" class="icon-title" />
  10. </view>
  11. <view class="text-title">{{i18n.analysis.tongue}}{{i18n.analysis._}}</view>
  12. </view>
  13. <block wx:if="{{exception.tongue === false && tongue.exception.length}}">
  14. <view class="extra-warapper" slot="right-icon" mark:operation="exception-list">
  15. <text>详情</text>
  16. <t-icon t-class="icon" name="chevron-right-double-s" size="24px" />
  17. </view>
  18. </block>
  19. </view>
  20. <view class="card-body constitution-container">
  21. <view class="picture-container">
  22. <view style="position: relative;">
  23. <image src="../../assets/image/pic_tongue@2x.png" class="body-image" mode="widthFix" />
  24. <text class="tongue-label tongue-top">{{i18n.analysis.tongue_1}}</text>
  25. <text class="tongue-label tongue-bottom">{{i18n.analysis.tongue_2}}</text>
  26. </view>
  27. <view wx:if="{{tongue.cover.length}}" class="picture-wrapper">
  28. <image wx:for="{{tongue.cover}}" wx:key="*this" src="{{item}}" mode="aspectFill" />
  29. </view>
  30. </view>
  31. <block wx:if="{{i18n.analysis.__showContent__}}">
  32. <view wx:if="{{simple.tongue === false}}" class="talbel-wrapper">
  33. <view class="tr">
  34. <view wx:for="{{tongue.table.columns}}" wx:key="*this" class="th">{{item}}</view>
  35. </view>
  36. <view wx:for="{{tongue.table.data}}" wx:key="0" wx:for-item="data" class="tr {{data.exception ? 'exception': ''}} {{data.invalid ? 'invalid' : ''}}">
  37. <view wx:for="{{tongue.table.columns}}" wx:key="*this" wx:for-index="index" class="td">
  38. <rich-text nodes="{{data[index]}}"></rich-text>
  39. </view>
  40. </view>
  41. </view>
  42. <view wx:else>&emsp;&emsp;{{tongue.result}}</view>
  43. </block>
  44. </view>
  45. </view>
  46. <exception wx:if="{{tongueException.length}}" dataset="{{tongueException}}"></exception>
  47. <view class="card-wrapper tongue-container" wx:if="{{face.result && i18n.analysis.__show__}}" mark:type="face" bind:tap="preview">
  48. <view wx:if="{{isShowType}}">
  49. <view class="togue-title">{{i18n.analysis.face}}</view>
  50. </view>
  51. <view class="card-title" wx:else>
  52. <view class="tongue-right">
  53. <view>
  54. <image src="../../assets/icon/icon_face@2x.png" class="icon-title" />
  55. </view>
  56. <view class="text-title">{{i18n.analysis.face}}{{i18n.analysis._}}</view>
  57. </view>
  58. <block wx:if="{{exception.face === false && face.exception.length}}">
  59. <view class="extra-warapper" slot="right-icon" mark:operation="exception-group">
  60. <text>详情</text>
  61. <t-icon t-class="icon" name="chevron-right-double-s" size="24px" />
  62. </view>
  63. </block>
  64. </view>
  65. <view wx:if="{{i18n.analysis.__showContent__}}" class="card-body constitution-container">
  66. <view wx:if="{{simple.face === false}}" class="talbel-wrapper">
  67. <view class="tr">
  68. <view wx:for="{{face.table.columns}}" wx:key="*this" class="th">{{item}}</view>
  69. </view>
  70. <view wx:for="{{face.table.data}}" wx:key="0" wx:for-item="data" class="tr {{data.exception ? 'exception': ''}} {{data.invalid ? 'invalid' : ''}}">
  71. <view wx:for="{{face.table.columns}}" wx:key="*this" wx:for-index="index" class="td">
  72. <rich-text nodes="{{data[index]}}"></rich-text>
  73. </view>
  74. </view>
  75. </view>
  76. <view wx:else="">&emsp;&emsp;{{face.result}}</view>
  77. <view wx:if="{{face.cover.length}}" class="picture-wrapper">
  78. <image wx:for="{{face.cover}}" wx:key="*this" src="{{item}}" mode="aspectFit" />
  79. </view>
  80. </view>
  81. </view>
  82. <exception wx:if="{{faceException.length}}" dataset="{{faceException}}"></exception>