guide.wxml 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  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、健康分析(剩余{{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、指标信息管理"
  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、健康信息管理"
  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. t-class="cell-border-gradient no-border {{_.getClassName(active)}}"
  52. t-class-hover="custom-cell-hover"
  53. t-class-title="health-analysis-title"
  54. title="4、在线咨询"
  55. hover="{{active}}"
  56. bind:tap="handleE"
  57. style="--td-cell-hover-color: #F5F5F5;"
  58. >
  59. <t-icon name="chevron-right" color="#CCCCCC" size="40rpx" slot="note" />
  60. </t-cell>
  61. <!--
  62. <t-cell
  63. t-class="{{_.getClassName(active)}}"
  64. t-class-hover="custom-cell-hover"
  65. t-class-title="health-analysis-title"
  66. title="4、返回首页"
  67. bordered="{{false}}"
  68. hover="{{active}}"
  69. bind:tap="handleD"
  70. style="--td-cell-hover-color: #F5F5F5;"
  71. >
  72. <t-icon name="chevron-right" color="#CCCCCC" size="40rpx" slot="note" />
  73. </t-cell>
  74. -->
  75. </view>
  76. </view>
  77. <block wx:if="{{result.length}}">
  78. <view class="chat-card right">
  79. <view class="chat-card__avatar ">
  80. <user-avatar></user-avatar>
  81. </view>
  82. <view class="chat-card__content">
  83. <t-cell bordered="{{false}}">
  84. <view slot="title">
  85. <div wx:for="{{result}}" wx:key="*this">{{item}}</div>
  86. </view>
  87. </t-cell>
  88. </view>
  89. </view>
  90. <view class="chat-card left">
  91. <view class="chat-card__avatar ">
  92. <image src="../../assets/robot.png" mode="aspectFill" />
  93. </view>
  94. <view class="chat-card__content">
  95. <t-cell bordered="{{false}}" title="好的,我们已更新了相关指标数据。"></t-cell>
  96. </view>
  97. </view>
  98. </block>
  99. <block wx:if="{{result2}}">
  100. <!-- <view class="chat-card right">
  101. <view class="chat-card__avatar ">
  102. <user-avatar></user-avatar>
  103. </view>
  104. <view class="chat-card__content">
  105. <t-cell bordered="{{false}}">
  106. <view slot="title">
  107. <div wx:for="{{result}}" wx:key="*this">{{item}}</div>
  108. </view>
  109. </t-cell>
  110. </view>
  111. </view> -->
  112. <view class="chat-card left">
  113. <view class="chat-card__avatar ">
  114. <image src="../../assets/robot.png" mode="aspectFill" />
  115. </view>
  116. <view class="chat-card__content">
  117. <t-cell bordered="{{false}}" title="好的,我们已更新了您的健康信息相关数据。"></t-cell>
  118. </view>
  119. </view>
  120. </block>