<wxs module="_">
  module.exports.getClassName = function (active) {
    return active ? '' : 'disabled';
  }
</wxs>
<!--module/chats/components/guide/guide.wxml-->
<view class="chat-card left steward-wrapper">
  <view class="chat-card__avatar ">
    <image src="../../assets/robot.png" mode="aspectFill" />
  </view>
  <view class="chat-card__content">
    <t-cell t-class="cell-border-gradient">
      <view slot="title" class="title">
        <text>请点击以下内容</text>
        <image class="icon" src="../../assets/finger.png" mode="aspectFit" />
      </view>
    </t-cell>
    <t-cell t-class="cell-border-gradient {{_.getClassName(active)}}" title="1、健康分析" hover="{{active}}" bind:tap="handleA"></t-cell>
    <t-cell t-class="cell-border-gradient {{_.getClassName(active)}}" title="2、指标信息管理" hover="{{active}}" bind:tap="handleB"></t-cell>
    <t-cell t-class="cell-border-gradient {{_.getClassName(active)}}" title="3、健康信息管理" hover="{{active}}" bind:tap="handleC"></t-cell>
    <t-cell t-class="{{_.getClassName(active)}}" title="4、返回首页" bordered="{{false}}" hover="{{active}}" bind:tap="handleD"></t-cell>
  </view>
</view>

<block wx:if="{{result.length}}">
  <view class="chat-card right">
    <view class="chat-card__avatar ">
      <user-avatar></user-avatar>
    </view>
    <view class="chat-card__content">
      <t-cell bordered="{{false}}">
        <view slot="title">
          <div wx:for="{{result}}" wx:key="*this">{{item}}</div>
        </view>
      </t-cell>
    </view>
  </view>
  <view class="chat-card left">
    <view class="chat-card__avatar ">
      <image src="../../assets/robot.png" mode="aspectFill" />
    </view>
    <view class="chat-card__content">
      <t-cell bordered="{{false}}" title="好的，我们已更新了相关指标数据。"></t-cell>
    </view>
  </view>
</block>

<block wx:if="{{result2}}">
  <!-- <view class="chat-card right">
    <view class="chat-card__avatar ">
      <user-avatar></user-avatar>
    </view>
    <view class="chat-card__content">
      <t-cell bordered="{{false}}">
        <view slot="title">
          <div wx:for="{{result}}" wx:key="*this">{{item}}</div>
        </view>
      </t-cell>
    </view>
  </view> -->
  <view class="chat-card left">
    <view class="chat-card__avatar ">
      <image src="../../assets/robot.png" mode="aspectFill" />
    </view>
    <view class="chat-card__content">
      <t-cell bordered="{{false}}" title="好的，我们已更新了您的健康信息相关数据。"></t-cell>
    </view>
  </view>
</block>