ASEMiniProgram/pages/robot/robot.wxml

50 lines
2.2 KiB
Plaintext
Raw Normal View History

<!--pages/my-student/my-students.wxml-->
<view class="page" data-weui-theme="{{theme}}">
<view class="page__hd" wx:if="{{!showAnswer}}">
<view class="page__title">机器人问答搜索</view>
<view class="page__desc">我关心的问题这里都有</view>
</view>
<view class="page__hd" wx:else>
<view class="page__title">{{targetAnswer.title}}</view>
<view class="page__desc">下面是相关问题的解释</view>
</view>
<view class="page__bd" wx:if="{{!showAnswer}}">
<view class="weui-search-bar {{inputShowed ? 'weui-search-bar_focusing' : ''}}" id="searchBar">
<form class="weui-search-bar__form">
<view class="weui-search-bar__box">
<i class="weui-icon-search"></i>
<input type="text" class="weui-search-bar__input" placeholder="搜索" value="{{inputVal}}" focus="{{inputShowed}}" bindinput="inputTyping" />
<span class="weui-icon-clear" wx:if="{{inputVal.length > 0}}" bindtap="clearInput"></span>
</view>
<label class="weui-search-bar__label" bindtap="showInput">
<i class="weui-icon-search"></i>
<span class="weui-search-bar__text">输入学号搜索</span>
</label>
</form>
<view class="weui-search-bar__cancel-btn" bindtap="hideInput">取消</view>
</view>
<view class="weui-cells searchbar-result" wx:if="{{inputVal.length > 0}}">
<view class="weui-cell weui-cell_active weui-cell_access" wx:for="{{searchStudentsList}}" wx:key="index" data-index="{{index}}" bindtap="onClickShowDocument">
<view class="weui-cell__bd weui-cell_primary">
<view>{{item.title}}</view>
</view>
</view>
</view>
</view>
<view wx:else>
<view class="page__bd">
<view class="weui-article">
<view class="weui-article__section">
<view class="weui-article__section">
<view class="weui-article__p">
{{targetAnswer.context}}
</view>
</view>
</view>
</view>
<a class="weui-btn weui-btn_primary" bindtap="onClickQuestion">留言</a>
<a class="weui-btn weui-btn_disabled weui-btn_default" bindtap="onClickBack">返回搜索</a>
</view>
</view>
</view>