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.

89 lines
4.5 KiB

<view>
<!-- Tab布局 -->
<view class="header">
<text class="title">逍 摇 人</text>
<image class="logo" src="cloud://yz-7g23c92hf3223f1d.797a-yz-7g23c92hf3223f1d-1330140432/pictures/7.png" mode="aspectFit"></image>
</view>
<view class='navBox'>
<view class='titleBox' bindtap='titleClick' data-idx='0'>
<text class="{{0 == currentIndex ? 'fontColorBox' : ''}}">课程信息</text>
<hr class="{{0 == currentIndex ? 'lineBox' : 'notLineBox'}}" />
</view>
<view class='titleBox' bindtap='titleClick' data-idx='1'>
<text class="{{1 == currentIndex ? 'fontColorBox1' : ''}}">上传名单</text>
<hr class="{{1 == currentIndex ? 'lineBox' : 'notLineBox'}} " />
</view>
</view>
<!-- 内容布局 -->
<swiper class='swiperTtemBox' bindchange='pagechange' current='{{currentIndex}}'>
<!-- 课程信息 -->
<swiper-item class='swiperTtemBox'>
<!-- 课程名称 -->
<view class="setting-part">
<view class="label-title">课程名称</view>
<view class="input-container" >
<input class="input-box" placeholder="请输入要点名的课程名称" bindinput="getCourse" />
<image class="fimage" src="cloud://yz-7g23c92hf3223f1d.797a-yz-7g23c92hf3223f1d-1330140432/pictures/6.png" mode="aspectFit"></image>
</view>
</view>
<!-- 任课老师 -->
<view class="setting-part">
<view class="label-title">任课老师</view>
<view class="input-container" >
<input class="input-box" placeholder="请输入该课程的任课老师" bindinput="getTeacher" />
<image class="oimage" src="cloud://yz-7g23c92hf3223f1d.797a-yz-7g23c92hf3223f1d-1330140432/pictures/2.png" mode="aspectFit"></image>
</view>
</view>
<!-- 日期 -->
<view class="setting-part">
<view class="label-title">上课日期</view>
<view class="input-container" >
<text class="text-box">{{date}}</text>
<image class="timage" src="cloud://yz-7g23c92hf3223f1d.797a-yz-7g23c92hf3223f1d-1330140432/pictures/5.png" mode="aspectFit"></image>
</view>
</view>
<!-- 节数 -->
<view class="setting-part">
<view class="label-title">上课节数</view>
<view class="input-container" >
<picker class="input-box" mode="multiSelector" bindchange="bindMultiPickerChange" bindcolumnchange="getStartEnd" value="{{multiIndex}}" range="{{multiArray}}">
{{multiArray[0][multiIndex[0]]}} 到 {{multiArray[1][multiIndex[1]]}}
</picker>
<image class="thimage" src="cloud://yz-7g23c92hf3223f1d.797a-yz-7g23c92hf3223f1d-1330140432/pictures/8.png" mode="aspectFit"></image>
</view>
</view>
</swiper-item>
<!-- 上传名单 -->
<swiper-item class='swiperTtemBox'>
<!-- <button bindtap="generate_list"> 生成名单 </button> -->
<!-- <view class="container">
<view class="map">
<view wx:for="{{previewData}}">
{{item.name}}
</view>
</view>
</view> -->
<view class="last">
<view class ="container1">
<image class="fiimage" src="cloud://yz-7g23c92hf3223f1d.797a-yz-7g23c92hf3223f1d-1330140432/pictures/35.png" mode="aspectFit"></image>
<view class="form-title">学生名单</view>
</view>
</view>
<view class="preview-form">
<scroll-view scroll-y="{{true}}" style="height: 40vh;" >
<view class="form-subitem" wx:for="{{previewData}}" wx:key="student_ID">
<text class="form-number">{{item.student_ID}}</text>
<text class="form-name">{{item.name}}</text>
</view>
</scroll-view>
</view>
<button bindtap="add_excel_file" style="top:3%;"> 上传excel文件 </button>
</swiper-item>
<!-- 点名选项 -->
</swiper>
<view class="bottom-bar" id="buttonContainer">
<button class="{{complete ? 'disabled-button' : 'enabled-button'}}" disabled="{{complete}}" style="width: 100%" bindtap="gotocard">开始点名</button>
</view>
</view>