diff --git a/pages/Mystudent/addclass.vue b/pages/Mystudent/addclass.vue index c9767c1..9bdfab7 100644 --- a/pages/Mystudent/addclass.vue +++ b/pages/Mystudent/addclass.vue @@ -26,8 +26,8 @@ - - + {{ checkindex == "0" ? "创建班级" : '添加学生' }} + + + {{ checkindex == "0" ? "创建班级" : '添加学生' }} @@ -181,6 +181,53 @@ 确定添加(1) + + + + 创建班级 + + + 班级头像 + + + + + + + + + + 班级名称 + + + + + + + 班级标签 + + + + + + + + 班级学生 + 点击头像选择班级学员 + + + + + + + 班级老师 + 点击头像选择班级老师 + + + + 添加 + + @@ -189,6 +236,12 @@ export default { data() { return { title: '添加班级', + // 班级名称数据绑定 + designation:'', + // 班级标签数据绑定 + labels:'', + // 弹出层的变量 + show: false, bgc: { backgroundColor: "#F6F9FC", }, @@ -196,12 +249,28 @@ export default { } }, methods: { + // 创建班级点击事件 + create(){ + this.show = !this.show + console.log('111') + } } } - +} +.pop-up{ + padding: 30rpx 32rpx; + .caption{ + font-size: 36rpx; + text-align: center; + font-weight: 800; + color: #2E4975; + padding-top: 20rpx; + } + .caption_top{ + font-size: 28rpx; + font-family: 'PingFang'; + color: #2E4975; + margin-top: 40rpx; + } + .dashboard{ + position: absolute; + width: 40rpx; + height: 40rpx; + bottom: 0; + right: 0; + } + .caption_input{ + border-radius: 20rpx 20rpx 20rpx 20rpx; + border: 2rpx solid #DDE2EE; + margin-top: 16rpx; + padding: 0 20rpx; + } + .caption_top_links{ + font-size: 20rpx; + font-family: 'PingFang'; + font-weight: 500; + color: #2D7CE6; + } + .element.style{ + background-color: red; + } + .u-list-item u-add-wrap { + width: 62rpx !important; + } + .caption_add{ + width: 93.1%; + background: #2D7CE6; + border-radius: 20rpx 20rpx 20rpx 20rpx; + text-align: center; + margin: 0 auto; + padding: 24rpx 0; + color: #fff; + margin-top: 40rpx; + } + .caption_class{ + margin-top: 40rpx; + } +} + diff --git a/pages_teacher/teacher_teachers/components/audiology.vue b/pages_teacher/teacher_teachers/components/audiology.vue index de2af31..7116cfa 100644 --- a/pages_teacher/teacher_teachers/components/audiology.vue +++ b/pages_teacher/teacher_teachers/components/audiology.vue @@ -9,14 +9,14 @@ - + {{TextItem.name}} - + @@ -71,16 +71,23 @@ methods: { // 听力调取接口渲染 hearing() { - this.$u.get('https://api.admin-v2.langsi.online/admin-api/ielts/paper/list', {classify: 1}).then(res => { + this.$u.get('https://api.admin-v2.langsi.online/admin-api/ielts/paper/list', { + classify: 1 + }).then(res => { this.listHearing = res.data - + let activeindex = {} + let arr = res.data + for (let parper of arr) { + let test = parper.tests[0] + activeindex[parper.id] = 0 + } + this.itemActive = activeindex }) }, // 听力test点击事件 Bages_addActive(TextIndex, id) { - this.itemActive[id] = TextIndex + this.itemActive[id] = TextIndex this.$forceUpdate() - }, // 点击变化图表 icon(id) { @@ -98,7 +105,6 @@ if (index !== -1) { this.checked.splice(index, 1); } - } console.log(this.checked) this.$forceUpdate() @@ -135,7 +141,7 @@ background: #FFFFFF; border-radius: 12rpx 12rpx 12rpx 12rpx; } - + } diff --git a/pages_teacher/teacher_teachers/components/slander.vue b/pages_teacher/teacher_teachers/components/slander.vue index b34c522..ebf080e 100644 --- a/pages_teacher/teacher_teachers/components/slander.vue +++ b/pages_teacher/teacher_teachers/components/slander.vue @@ -9,31 +9,27 @@ {{item.name}} - - {{categorize}} - - - {{item.name}} - - - {{selectedOption}} {{item.label}} - - 串题 - 跟读 - 模考 - + + - - {{items.topicEn}} + + {{items.topicEn}} + + 串题 + 跟读 + 模考 + + + @@ -74,16 +70,6 @@ name:'Part2' } ], - options2:[ - { - id:1, - name:'环境类' - }, - { - id:2, - name:'学习类' - } - ], } }, created() { @@ -123,15 +109,7 @@ this.getList() } }) - }, - // 下拉然后更新里面的值 - Classification(id){ - this.options2.forEach(item=>{ - if(item.id == id){ - this.categorize =item.name - } - }) - }, + } } } @@ -165,36 +143,6 @@ color: #2E4975; margin-right: 20rpx; - } - .slander_for { - background: #FFFFFF; - border-radius: 20rpx 20rpx 20rpx 20rpx; - padding: 0 30rpx; - } - .slander_behavior { - - padding: 20rpx 0rpx; - border-bottom: 2rpx solid #F2F2F2; - } - .slander_left { - - } - .pull_DownTow{ - width: 150rpx; - position: absolute; - bottom: -133rpx; - left: 50%; - margin-left: -72rpx; - box-shadow: 0rpx 4rpx 10rpx 0rpx rgba(0,0,0,0.25); - border-radius: 20rpx 20rpx 20rpx 20rpx; - background: #FFFFFF; - border-bottom: 2rpx solid #F2F2F2; - text-align: center; - view { - padding: 15rpx 0rpx; - border-bottom: 2rpx solid #F2F2F2; - } - } .pull_Down { position: absolute; @@ -233,4 +181,23 @@ background: rgba(45,124,230,0.1); color: #2D7CE6; } + .slander_for{ + display: flex; + align-items: center; + justify-content: space-between; + background-color: #fff; + } + .textual{ + width: 290rpx; + height: 80rpx; + display: -webkit-box; + -webkit-box-orient: vertical; + overflow: hidden; + -webkit-line-clamp: 2; + + } + .bottom_one{ + display: flex; + + } diff --git a/pages_teacher/teacher_teachers/teacher_writeadd.vue b/pages_teacher/teacher_teachers/teacher_writeadd.vue index f5fa67f..688e1cb 100644 --- a/pages_teacher/teacher_teachers/teacher_writeadd.vue +++ b/pages_teacher/teacher_teachers/teacher_writeadd.vue @@ -19,127 +19,8 @@ - - - {{item.examName}} - test1 - test2 - test3 - test4 - - - - - - Test 1 - - 曲线图 - 政府 - - - - - - - - - - Test 1 - - 曲线图 - 政府 - - - - - - - - - - - - Test 2 - - 曲线图 - 政府 - - - - - - - - - - Test 2 - - 曲线图 - 政府 - - - - - - - - - - - - Test 3 - - 曲线图 - 政府 - - - - - - - - - - Test 3 - - 曲线图 - 政府 - - - - - - - - - - - - Test 4 - - 曲线图 - 政府 - - - - - - - - - - Test 4 - - 曲线图 - 政府 - - - - - - - - + + @@ -166,6 +47,7 @@ import audiology from './components/audiology.vue' import reading from './components/reading.vue' import slander from './components/slander.vue' + import compose from './components/compose.vue' export default { data() { return { @@ -202,7 +84,8 @@ components:{ audiology, reading, - slander + slander, + compose }, methods: { upType(index, num) {