504 lines
10 KiB
Vue
504 lines
10 KiB
Vue
<template>
|
|
<view class="view_body">
|
|
<u-navbar :is-back="false"
|
|
title='学生管理'
|
|
title-color="#2E4975"
|
|
:border-bottom="false"
|
|
:background="true"
|
|
id="navbar">
|
|
</u-navbar>
|
|
|
|
<view class="student_page">
|
|
<view class="student_page_top">
|
|
|
|
<view class="topimg">
|
|
<image src="https://file.langsi.online/yasiimg/web/static/uYxU6LOMT6N2hQAQMDty"></image>
|
|
</view>
|
|
<view class="search_box">
|
|
<view class="check_search">
|
|
学生
|
|
<view class="iconfont icon-arow_down"></view>
|
|
</view>
|
|
<view class="serchbox">
|
|
<view class="serchimg">
|
|
<image src="https://file.langsi.online/yasiimg/web/static/uVMACkynkipOxuTYDqm0"
|
|
mode="scaleToFill">
|
|
|
|
</image>
|
|
</view>
|
|
<input type="text"
|
|
placeholder="搜索相关内容..."
|
|
class="input"
|
|
placeholder-style="color:#C7CDD3 ">
|
|
</view>
|
|
</view>
|
|
|
|
<view class="info_box">
|
|
<view class="info_cont">
|
|
<view class="info_cont_top">
|
|
学生人数
|
|
</view>
|
|
<view class="info_cont_bot">
|
|
21
|
|
</view>
|
|
</view>
|
|
<view class="info_cont"
|
|
style="width: 120rpx;">
|
|
<view class="info_cont_top">
|
|
今日新增学生
|
|
</view>
|
|
<view class="info_cont_bot">
|
|
4300
|
|
</view>
|
|
</view>
|
|
<view class="info_cont">
|
|
<view class="info_cont_top">
|
|
今日完成度
|
|
</view>
|
|
<view class="info_cont_bot">
|
|
43
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="chekbox">
|
|
<view class="check"
|
|
:class="checkindex == 0 ? 'act1' : ''"
|
|
@click="checkindex = 0">
|
|
学生
|
|
</view>
|
|
<view class="check"
|
|
:class="checkindex == 1 ? 'act1' : ''"
|
|
@click="checkindex = 1">
|
|
班级
|
|
</view>
|
|
<view class="add">
|
|
+ 添加
|
|
</view>
|
|
</view>
|
|
|
|
</view>
|
|
<view class="class_box"
|
|
v-if="checkindex == 1">
|
|
<view class="class_box_top">
|
|
<view class="class_box_top_cont">
|
|
时间排序
|
|
<view class="iconfont icon-arow_down"></view>
|
|
</view>
|
|
<view class="class_box_top_cont">
|
|
班级人数
|
|
<view class="iconfont icon-arow_down"></view>
|
|
</view>
|
|
<view class="class_box_top_cont">
|
|
文字文字
|
|
<view class="iconfont icon-arow_down"></view>
|
|
</view>
|
|
<view class="class_box_top_cont">
|
|
文字文字
|
|
<view class="iconfont icon-arow_down"></view>
|
|
</view>
|
|
</view>
|
|
<view class="class_card">
|
|
<view class="class_card_top">
|
|
<view class="class_card_left">
|
|
<image src=" https://file.langsi.online/yasiimg/web/static/udWNTRG6GulmTtgPRQ49"></image>
|
|
</view>
|
|
<view class="class_card_right">
|
|
<view class="class_card_right_top">
|
|
雅思1班
|
|
</view>
|
|
<view class="class_card_right_bot">
|
|
标签文字
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="class_infobox">
|
|
<view class="class_info"
|
|
style="width: 100rpx;">
|
|
<view class="class_info_top">
|
|
班级人数
|
|
</view>
|
|
<view class="class_info_bot">
|
|
21
|
|
</view>
|
|
</view>
|
|
<view class="class_info"
|
|
style="width: 120rpx;">
|
|
<view class="class_info_top">
|
|
平均成绩/分
|
|
</view>
|
|
<view class="class_info_bot">
|
|
21
|
|
</view>
|
|
</view>
|
|
<view class="class_info">
|
|
<view class="class_info_top">
|
|
作业完成度
|
|
</view>
|
|
<view class="class_info_bot">
|
|
80%
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="class_card">
|
|
<view class="class_card_top">
|
|
<view class="class_card_left">
|
|
<image src=" https://file.langsi.online/yasiimg/web/static/udWNTRG6GulmTtgPRQ49"></image>
|
|
</view>
|
|
<view class="class_card_right">
|
|
<view class="class_card_right_top">
|
|
雅思1班
|
|
</view>
|
|
<view class="class_card_right_bot">
|
|
标签文字
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="class_infobox">
|
|
<view class="class_info"
|
|
style="width: 100rpx;">
|
|
<view class="class_info_top">
|
|
班级人数
|
|
</view>
|
|
<view class="class_info_bot">
|
|
21
|
|
</view>
|
|
</view>
|
|
<view class="class_info"
|
|
style="width: 120rpx;">
|
|
<view class="class_info_top">
|
|
平均成绩/分
|
|
</view>
|
|
<view class="class_info_bot">
|
|
21
|
|
</view>
|
|
</view>
|
|
<view class="class_info">
|
|
<view class="class_info_top">
|
|
作业完成度
|
|
</view>
|
|
<view class="class_info_bot">
|
|
80%
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
<indexlist v-show="checkindex == 0" />
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
import indexlist from "../compoents/indexList.vue"
|
|
export default {
|
|
components: {
|
|
indexlist
|
|
},
|
|
data() {
|
|
return {
|
|
|
|
checkindex: 1,
|
|
}
|
|
},
|
|
onLoad(option) {
|
|
|
|
},
|
|
|
|
methods: {
|
|
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style lang="scss" >
|
|
page {
|
|
background: linear-gradient(180deg, #E1EEFF 0%, #FFFFFF 100%);
|
|
}
|
|
|
|
.view_body {
|
|
width: 750rpx;
|
|
|
|
.student_page {
|
|
|
|
.student_page_top {
|
|
padding: 32rpx;
|
|
position: relative;
|
|
|
|
.topimg {
|
|
position: absolute;
|
|
left: 40rpx;
|
|
top: 0;
|
|
width: 671.79rpx;
|
|
height: 290rpx;
|
|
z-index: 0;
|
|
}
|
|
|
|
.search_box {
|
|
position: relative;
|
|
width: 686rpx;
|
|
height: 88rpx;
|
|
background: #FFFFFF;
|
|
border-radius: 20rpx 20rpx 20rpx 20rpx;
|
|
display: flex;
|
|
flex-wrap: nowrap;
|
|
z-index: 999;
|
|
|
|
.check_search {
|
|
display: flex;
|
|
flex-wrap: nowrap;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 148rpx;
|
|
height: 88rpx;
|
|
background: #FFF2E4;
|
|
border-radius: 20rpx 0rpx 0rpx 20rpx;
|
|
font-size: 28rpx;
|
|
font-family: 'PingFang', 'PingFang';
|
|
font-weight: 500;
|
|
color: #F39852;
|
|
|
|
.icon-arow_down {
|
|
margin-left: 8rpx;
|
|
font-size: 20rpx;
|
|
}
|
|
}
|
|
|
|
.serchbox {
|
|
// padding: 0 32rpx;
|
|
display: flex;
|
|
flex-wrap: nowrap;
|
|
// margin-top: 30rpx;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
width: 538rpx;
|
|
height: 88rpx;
|
|
background: #FFFFFF;
|
|
border-radius: 20rpx 20rpx 20rpx 20rpx;
|
|
|
|
.serchimg {
|
|
margin-left: 32rpx;
|
|
|
|
width: 32rpx;
|
|
height: 32rpx;
|
|
|
|
}
|
|
|
|
.input {
|
|
// margin-left: 24rpx;
|
|
width: 452rpx;
|
|
height: 88rpx;
|
|
// border-radius: 30rpx;
|
|
// background-color: #f5f8fc;
|
|
// display: flex;
|
|
// justify-content: center;
|
|
// align-items: center;
|
|
// text-align: center;
|
|
font-size: 28rpx;
|
|
font-family: Source Han Sans CN, Source Han Sans CN-Light;
|
|
font-weight: 300;
|
|
text-align: left;
|
|
color: #a7b9cd;
|
|
letter-spacing: 1.2rpx;
|
|
line-height: 36rpx;
|
|
// padding: 0 100rpx;
|
|
// padding-right: 135rpx;
|
|
box-sizing: border-box;
|
|
|
|
}
|
|
}
|
|
}
|
|
|
|
.info_box {
|
|
position: relative;
|
|
display: flex;
|
|
flex-wrap: nowrap;
|
|
align-items: center;
|
|
justify-content: space-around;
|
|
margin-top: 20rpx;
|
|
width: 686rpx;
|
|
height: 154rpx;
|
|
background: linear-gradient(0deg, #FFFFFF 0%, rgba(255, 255, 255, 0.22) 100%);
|
|
border-radius: 20rpx 20rpx 20rpx 20rpx;
|
|
opacity: 1;
|
|
border: 2rpx solid #FFFFFF;
|
|
|
|
.info_cont {
|
|
width: 110rpx;
|
|
display: flex;
|
|
justify-content: center;
|
|
flex-wrap: wrap;
|
|
|
|
.info_cont_top {
|
|
font-size: 20rpx;
|
|
font-family: 'PingFang';
|
|
font-weight: 500;
|
|
color: rgba(7, 47, 90, 0.5);
|
|
|
|
}
|
|
|
|
.info_cont_bot {
|
|
margin-top: 12rpx;
|
|
font-size: 36rpx;
|
|
font-family: 'PingFang';
|
|
font-weight: 800;
|
|
color: #2E4975;
|
|
}
|
|
}
|
|
}
|
|
|
|
.chekbox {
|
|
position: relative;
|
|
margin-top: 32rpx;
|
|
display: flex;
|
|
flex-wrap: nowrap;
|
|
align-items: center;
|
|
|
|
.check {
|
|
margin-right: 84rpx;
|
|
font-size: 28rpx;
|
|
font-family: 'PingFang', 'PingFang';
|
|
font-weight: 500;
|
|
color: rgba(7, 47, 90, 0.6);
|
|
}
|
|
|
|
.act1 {
|
|
font-size: 32rpx;
|
|
font-family: 'PingFang', 'PingFang';
|
|
font-weight: 800;
|
|
color: #2D7CE6;
|
|
}
|
|
|
|
.add {
|
|
margin-left: auto;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 138rpx;
|
|
height: 52rpx;
|
|
background: #FFF2E4;
|
|
border-radius: 26rpx 26rpx 26rpx 26rpx;
|
|
|
|
font-size: 24rpx;
|
|
font-family: 'PingFang', 'PingFang';
|
|
font-weight: 500;
|
|
color: #F18F21;
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
.class_box {
|
|
padding: 0 32rpx;
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
|
|
.class_box_top {
|
|
width: 100%;
|
|
display: flex;
|
|
flex-wrap: nowrap;
|
|
align-items: center;
|
|
justify-content: space-around;
|
|
|
|
.class_box_top_cont {
|
|
display: flex;
|
|
flex-wrap: nowrap;
|
|
background: #FFFFFF;
|
|
border-radius: 20rpx 20rpx 20rpx 20rpx;
|
|
padding: 14rpx 30rpx;
|
|
font-size: 20rpx;
|
|
font-family: 'PingFang', 'PingFang';
|
|
font-weight: 500;
|
|
color: rgba(7, 47, 90, 0.6);
|
|
|
|
.icon-arow_down {
|
|
margin-left: 8rpx;
|
|
font-size: 18rpx;
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
.class_card {
|
|
margin-top: 20rpx;
|
|
width: 686rpx;
|
|
height: 296rpx;
|
|
background: #FFFFFF;
|
|
border-radius: 20rpx 20rpx 20rpx 20rpx;
|
|
padding: 32rpx;
|
|
|
|
.class_card_top {
|
|
display: flex;
|
|
flex-wrap: nowrap;
|
|
align-items: center;
|
|
|
|
.class_card_left {
|
|
width: 84rpx;
|
|
height: 84rpx;
|
|
}
|
|
|
|
.class_card_right {
|
|
margin-left: 12rpx;
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
|
|
.class_card_right_top {
|
|
width: 100%;
|
|
font-size: 32rpx;
|
|
font-family: 'PingFang', 'PingFang';
|
|
font-weight: bold;
|
|
color: #072F5A;
|
|
}
|
|
|
|
.class_card_right_bot {
|
|
margin-top: 8rpx;
|
|
background: #EBF3FF;
|
|
border-radius: 4rpx 4rpx 4rpx 4rpx;
|
|
padding: 10rpx 20rpx;
|
|
font-size: 20rpx;
|
|
font-family: 'PingFang', 'PingFang';
|
|
font-weight: 500;
|
|
color: #2D7CE6;
|
|
}
|
|
}
|
|
}
|
|
|
|
.class_infobox {
|
|
margin-top: 20rpx;
|
|
display: flex;
|
|
flex-wrap: nowrap;
|
|
align-items: center;
|
|
justify-content: space-around;
|
|
width: 622rpx;
|
|
height: 128rpx;
|
|
background: #F9F9F9;
|
|
border-radius: 20rpx 20rpx 20rpx 20rpx;
|
|
|
|
.class_info {
|
|
width: 110rpx;
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
justify-content: center;
|
|
|
|
.class_info_top {
|
|
font-size: 20rpx;
|
|
font-family: 'PingFang', 'PingFang';
|
|
font-weight: 500;
|
|
color: rgba(7, 47, 90, 0.5);
|
|
}
|
|
|
|
.class_info_bot {
|
|
margin-top: 12rpx;
|
|
font-size: 28rpx;
|
|
font-family: 'PingFang', 'PingFang';
|
|
font-weight: 800;
|
|
color: #2D7CE6;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}</style>
|