| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130 |
- <wxs module="_">
- module.exports.getClassName = function (active) {
- return active ? '' : 'disabled';
- }
- module.exports.cellClass = function (active, isLast) {
- var cls = 'cell-border-gradient';
- if (!active) cls += ' disabled';
- if (isLast) cls += ' no-border';
- return cls;
- }
- </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" bordered="{{true}}" >
- <view slot="title" class="title">
- <text>请选择想要操作的业务</text>
- </view>
- </t-cell>
- <t-cell
- t-class="cell-border-gradient {{_.getClassName(active)}}"
- t-class-hover="custom-cell-hover"
- t-class-title="health-analysis-title"
- title="1、{{i18n.chats.analysis}}(剩余{{analysisCount}}次)"
- hover="{{active}}"
- bind:tap="handleA"
- style="--td-cell-hover-color: #F5F5F5;"
- >
- <t-icon name="chevron-right" color="#CCCCCC" size="40rpx" slot="note" />
- </t-cell>
- <t-cell
- t-class="cell-border-gradient {{_.getClassName(active)}}"
- t-class-hover="custom-cell-hover"
- t-class-title="health-analysis-title"
- title="2、{{i18n.chats.healthIndex}}"
- hover="{{active}}"
- bind:tap="handleB"
- style="--td-cell-hover-color: #F5F5F5;"
- >
- <t-icon name="chevron-right" color="#CCCCCC" size="40rpx" slot="note" />
- </t-cell>
- <t-cell
- t-class="{{_.cellClass(active, !i18n.chats.consult)}}"
- t-class-hover="custom-cell-hover"
- t-class-title="health-analysis-title"
- title="3、{{i18n.chats.healthData}}"
- hover="{{active}}"
- bind:tap="handleC"
- style="--td-cell-hover-color: #F5F5F5;"
- >
- <t-icon name="chevron-right" color="#CCCCCC" size="40rpx" slot="note" />
- </t-cell>
- <t-cell
- wx:if="{{i18n.chats.consult}}"
- t-class="{{_.cellClass(active, true)}}"
- t-class-hover="custom-cell-hover"
- t-class-title="health-analysis-title"
- title="4、{{i18n.chats.consult}}"
- hover="{{active}}"
- bind:tap="handleE"
- style="--td-cell-hover-color: #F5F5F5;"
- >
- <t-icon name="chevron-right" color="#CCCCCC" size="40rpx" slot="note" />
- </t-cell>
-
- <!--
- <t-cell
- t-class="{{_.getClassName(active)}}"
- t-class-hover="custom-cell-hover"
- t-class-title="health-analysis-title"
- title="4、返回首页"
- bordered="{{false}}"
- hover="{{active}}"
- bind:tap="handleD"
- style="--td-cell-hover-color: #F5F5F5;"
- >
- <t-icon name="chevron-right" color="#CCCCCC" size="40rpx" slot="note" />
- </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>
|