You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
1.4 KiB

<!--pages/class_manage/class_manage.wxml-->
<view class="bg">
<image src="/pages/images/class_manage.png" mode="aspectFill"></image>
</view>
<view class="container">
<text class="class_list">班级列表</text>
<button class="add" bindtap="showModal1">添加班级</button>
<view class="list">
<view class="class_item" wx:for="{{classList}}" wx:key="index" bindtap="showAndGet" data-index="{{index}}">
<text>{{item.name}}</text>
<image class="arrow-icon" src="/pages/images/arrow_icon.png"/>
</view>
</view>
<modal hidden="{{!showModal1}}" title="添加班级" bindcancel="hideModal1" bindconfirm="addClass">
<view class="modal-input">
<input placeholder="输入班级名称" bindinput="inputChange" class="first_modal"/>
</view>
</modal>
<modal hidden="{{!showModal2}}" title="修改班级名称" bindcancel="hideModal2" bindconfirm="change_name">
<view class="modal-input">
<input placeholder="输入班级名称" bindinput="inputChange" class="first_modal"/>
</view>
</modal>
<view class="hide" wx:if="{{showElement}}">
<button class="hide_item" bindtap="goToadd_stu">添加学生</button>
<button class="hide_item" bindtap="goToclass_message">查看详情</button>
<button class="hide_item" bindtap="delete_class">删除班级</button>
<button class="hide_item" bindtap="showModal2">修改班级名称</button>
</view>
</view>