guide.wxml 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. <wxs module="_">
  2. module.exports.getClassName = function (active) {
  3. return active ? '' : 'disabled';
  4. }
  5. </wxs>
  6. <!--module/chats/components/guide/guide.wxml-->
  7. <view class="chat-card left steward-wrapper">
  8. <view class="chat-card__avatar ">
  9. <image src="../../assets/robot.png" mode="aspectFill" />
  10. </view>
  11. <view class="chat-card__content">
  12. <t-cell t-class="cell-border-gradient" bordered="{{true}}" >
  13. <view slot="title" class="title">
  14. <text>请选择想要操作的业务</text>
  15. </view>
  16. </t-cell>
  17. <t-cell
  18. t-class="cell-border-gradient {{_.getClassName(active)}}"
  19. t-class-hover="custom-cell-hover"
  20. t-class-title="health-analysis-title"
  21. title="1、{{i18n.chats.analysis}}(剩余{{analysisCount}}次)"
  22. hover="{{active}}"
  23. bind:tap="handleA"
  24. style="--td-cell-hover-color: #F5F5F5;"
  25. >
  26. <t-icon name="chevron-right" color="#CCCCCC" size="40rpx" slot="note" />
  27. </t-cell>
  28. <t-cell
  29. t-class="cell-border-gradient {{_.getClassName(active)}}"
  30. t-class-hover="custom-cell-hover"
  31. t-class-title="health-analysis-title"
  32. title="2、{{i18n.chats.healthIndex}}"
  33. hover="{{active}}"
  34. bind:tap="handleB"
  35. style="--td-cell-hover-color: #F5F5F5;"
  36. >
  37. <t-icon name="chevron-right" color="#CCCCCC" size="40rpx" slot="note" />
  38. </t-cell>
  39. <t-cell
  40. t-class="cell-border-gradient {{_.getClassName(active)}}"
  41. t-class-hover="custom-cell-hover"
  42. t-class-title="health-analysis-title"
  43. title="3、{{i18n.chats.healthData}}"
  44. hover="{{active}}"
  45. bind:tap="handleC"
  46. style="--td-cell-hover-color: #F5F5F5;"
  47. >
  48. <t-icon name="chevron-right" color="#CCCCCC" size="40rpx" slot="note" />
  49. </t-cell>
  50. <t-cell
  51. wx:if="{{i18n.chats.consult}}"
  52. t-class="cell-border-gradient no-border {{_.getClassName(active)}}"
  53. t-class-hover="custom-cell-hover"
  54. t-class-title="health-analysis-title"
  55. title="4、{{i18n.chats.consult}}"
  56. hover="{{active}}"
  57. bind:tap="handleE"
  58. style="--td-cell-hover-color: #F5F5F5;"
  59. >
  60. <t-icon name="chevron-right" color="#CCCCCC" size="40rpx" slot="note" />
  61. </t-cell>
  62. <!--
  63. <t-cell
  64. t-class="{{_.getClassName(active)}}"
  65. t-class-hover="custom-cell-hover"
  66. t-class-title="health-analysis-title"
  67. title="4、返回首页"
  68. bordered="{{false}}"
  69. hover="{{active}}"
  70. bind:tap="handleD"
  71. style="--td-cell-hover-color: #F5F5F5;"
  72. >
  73. <t-icon name="chevron-right" color="#CCCCCC" size="40rpx" slot="note" />
  74. </t-cell>
  75. -->
  76. </view>
  77. </view>
  78. <block wx:if="{{result.length}}">
  79. <view class="chat-card right">
  80. <view class="chat-card__avatar ">
  81. <user-avatar></user-avatar>
  82. </view>
  83. <view class="chat-card__content">
  84. <t-cell bordered="{{false}}">
  85. <view slot="title">
  86. <div wx:for="{{result}}" wx:key="*this">{{item}}</div>
  87. </view>
  88. </t-cell>
  89. </view>
  90. </view>
  91. <view class="chat-card left">
  92. <view class="chat-card__avatar ">
  93. <image src="../../assets/robot.png" mode="aspectFill" />
  94. </view>
  95. <view class="chat-card__content">
  96. <t-cell bordered="{{false}}" title="好的,我们已更新了相关指标数据。"></t-cell>
  97. </view>
  98. </view>
  99. </block>
  100. <block wx:if="{{result2}}">
  101. <!-- <view class="chat-card right">
  102. <view class="chat-card__avatar ">
  103. <user-avatar></user-avatar>
  104. </view>
  105. <view class="chat-card__content">
  106. <t-cell bordered="{{false}}">
  107. <view slot="title">
  108. <div wx:for="{{result}}" wx:key="*this">{{item}}</div>
  109. </view>
  110. </t-cell>
  111. </view>
  112. </view> -->
  113. <view class="chat-card left">
  114. <view class="chat-card__avatar ">
  115. <image src="../../assets/robot.png" mode="aspectFill" />
  116. </view>
  117. <view class="chat-card__content">
  118. <t-cell bordered="{{false}}" title="好的,我们已更新了您的健康信息相关数据。"></t-cell>
  119. </view>
  120. </view>
  121. </block>