guide.wxml 3.4 KB

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