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.

85 lines
4.0 KiB

<view>
<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 class='titleBox' bindtap='titleClick' data-idx='2'>
<text class="{{2 == currentIndex ? 'fontColorBox2' : ''}}">排行榜</text>
<hr class="{{2 == currentIndex ? 'lineBox' : 'notLineBox'}}" />
</view>
</view>
<view wx:if="{{currentIndex == 0}}" class="content-container">
<!-- 居中显示的图片 -->
<image class="picture47" src="cloud://yz-7g23c92hf3223f1d.797a-yz-7g23c92hf3223f1d-1330140432/pictures/47.png" mode="aspectFit"></image>
<view class="toggle-row">
<text class="toggle-label">是否全点</text>
<switch class="toggle-switch" checked="{{isAllSpot}}" bindchange="switch1Change"></switch>
</view>
<image class="picture10" src="cloud://yz-7g23c92hf3223f1d.797a-yz-7g23c92hf3223f1d-1330140432/pictures/10.png" mode="aspectFit"></image>
<view class="center-button"></view>
<button class="inner-content" bindtap="beginfront">开始点名</button>
</view>
<view wx:if="{{currentIndex == 1}}" class="content-container">
<view wx:if="{{!showSolidMode}}">
<image class="picture101" src="cloud://yz-7g23c92hf3223f1d.797a-yz-7g23c92hf3223f1d-1330140432/pictures/10.png" mode="aspectFit"></image>
<view class="random-button"></view>
<button class="random-content" bindtap="beginrandom">随机点名</button>
<image class="picture26" src="cloud://yz-7g23c92hf3223f1d.797a-yz-7g23c92hf3223f1d-1330140432/pictures/26.png" mode="aspectFit"></image>
<view class="solid-button"></view>
<button class="solid-content" bindtap="beginsolid">固定点名</button>
</view>
<view wx:if="{{showSolidMode}}">
<image class="picture44" src="cloud://yz-7g23c92hf3223f1d.797a-yz-7g23c92hf3223f1d-1330140432/pictures/44.gif" mode="aspectFit"></image>
<text class="picture44-text">选择提问学生</text>
<picker mode="selector" range="{{students}}" range-key="displayText" bindchange="selectStudent">
<view class="pickerback"></view>
<view class="picker">
{{selectedStudent.displayText || '请选择学生'}}
</view>
</picker>
<view class="check-button"></view>
<button class="check-content" bindtap="beginsolidgo">确认</button>
<button class="return1" bindtap="retrun1">返回</button>
</view>
</view>
<view wx:if="{{currentIndex == 2}}" class="content-container">
<view class="ranking-top">排行榜</view>
<view class="ranking-list">
<view class="headerr">
<text class="ranking-header">排名</text>
<text class="ranking-header">学号</text>
<text class="ranking-header">姓名</text>
<text class="ranking-header">积分</text>
</view>
<view wx:for="{{rankings}}" wx:key="rank" wx:for-item="item">
<view class="ranking-item">
<text class="ranking-text1">{{item.rank}}</text>
<text class="ranking-text2">{{item.student_ID}}</text>
<text class="ranking-text3">{{item.name}}</text>
<text class="ranking-text4">{{item.score}}</text>
</view>
</view>
</view>
<image src="cloud://yz-7g23c92hf3223f1d.797a-yz-7g23c92hf3223f1d-1330140432/pictures/daochu.png" mode="aspectFit" class="image-btn" bindtap="handleTap"></image>
</view>
</view>