searchClass.wxml 735 字节
<!--pages/searchClass/searchClass.wxml-->
<view class="search_container">
    <view class="searchInfo">
      班级号<input class="inputNum" type="number" confirm-type="done" bindinput="inputClassNum" placeholder-class="inputHolder" placeholder="请输入班级号"></input>
    </view>
    <view class="tips">小提示:班级号可通过老师索取</view>

    <view class="findCLass" bindtap="addClass">查找班级</view>
    <view class="classInfo" wx:if='{{classinfo}}'>
      <view class="class">
        <view class="className">{{classinfo.name}}</view>
        <view class="classId">班级号:{{classinfo.id}}</view>
      </view>
      <view class="add_btn" bindtap="joinClass">加入</view>
      
    </view>
</view>