|
@@ -1,12 +1,11 @@
|
1
|
1
|
<template>
|
2
|
2
|
<view class="page">
|
3
|
3
|
<cu-custom :isBack="true" title="课堂操作"></cu-custom>
|
4
|
|
- <scroll-view scroll-y="true" :style="[{height:'calc(100vh - '+ topHeader+'px)'}]">
|
|
4
|
+ <scroll-view scroll-y="true" :style="[{ height: 'calc(100vh - ' + topHeader + 'px)' }]">
|
5
|
5
|
<view class="content">
|
6
|
6
|
<view class="course-img">
|
7
|
|
- <swiper class="swiper" :indicator-dots="swiper.indicatorDots" :autoplay="swiper.autoplay"
|
8
|
|
- :interval="swiper.interval" :duration="swiper.duration">
|
9
|
|
- <swiper-item v-for="(item,index) in detail.course_data.image" :key="index">
|
|
7
|
+ <swiper class="swiper" :indicator-dots="swiper.indicatorDots" :autoplay="swiper.autoplay" :interval="swiper.interval" :duration="swiper.duration">
|
|
8
|
+ <swiper-item v-for="(item, index) in detail.course_data.image" :key="index">
|
10
|
9
|
<view class="swiper-item">
|
11
|
10
|
<image :src="item" mode="widthFix"></image>
|
12
|
11
|
</view>
|
|
@@ -14,30 +13,30 @@
|
14
|
13
|
</swiper>
|
15
|
14
|
</view>
|
16
|
15
|
<view class="detail bg-white padding">
|
17
|
|
- <view class="detail-title">{{detail.course_data.attend_name}}</view>
|
|
16
|
+ <view class="detail-title">{{ detail.course_data.attend_name }}</view>
|
18
|
17
|
<view class="detail-item">
|
19
|
18
|
<text class="cuIcon-title text-student"></text>
|
20
|
19
|
<text class="text-gray">周期</text>
|
21
|
|
- <text class="text-black margin-left-xs">{{detail.course_data.start_at}}</text>
|
|
20
|
+ <text class="text-black margin-left-xs">{{ detail.course_data.start_at }}</text>
|
22
|
21
|
</view>
|
23
|
22
|
<view class="detail-item flex">
|
24
|
|
- <text class="text-gray" style="width:40px;"></text>
|
25
|
|
- <text class="text-black margin-left-xs">{{detail.course_data.end_at}}</text>
|
|
23
|
+ <text class="text-gray" style="width: 40px;"></text>
|
|
24
|
+ <text class="text-black margin-left-xs">{{ detail.course_data.end_at }}</text>
|
26
|
25
|
</view>
|
27
|
26
|
<view class="detail-item margin-top-xs">
|
28
|
27
|
<text class="cuIcon-title text-student"></text>
|
29
|
28
|
<text class="text-gray">年级</text>
|
30
|
|
- <text class="text-black margin-left-xs">{{detail.course_data.grade}}</text>
|
|
29
|
+ <text class="text-black margin-left-xs">{{ detail.course_data.grade }}</text>
|
31
|
30
|
</view>
|
32
|
31
|
</view>
|
33
|
32
|
<view class="teacher flex bg-white padding margin-tb-sm">
|
34
|
33
|
<image mode="scaleToFill" :src="teacher_avatar" class="avatar lg"></image>
|
35
|
34
|
<view class="flex-sub margin-left">
|
36
|
|
- <view class="teacher-title">{{detail.teacher.username||''}}老师授课</view>
|
37
|
|
- <view class="teacher-item">所属机构:{{detail.teacher.agency_name||''}}</view>
|
|
35
|
+ <view class="teacher-title">{{ detail.teacher.username || '' }}老师授课</view>
|
|
36
|
+ <view class="teacher-item">所属机构:{{ detail.teacher.agency_name || '' }}</view>
|
38
|
37
|
<view class="teacher-exp flex">
|
39
|
|
- <view class="exp-item">{{detail.teacher.honor||''}}</view>
|
40
|
|
- <view class="exp-item">{{detail.teacher.introduce||''}}</view>
|
|
38
|
+ <view class="exp-item">{{ detail.teacher.honor || '' }}</view>
|
|
39
|
+ <view class="exp-item">{{ detail.teacher.introduce || '' }}</view>
|
41
|
40
|
</view>
|
42
|
41
|
</view>
|
43
|
42
|
</view>
|
|
@@ -46,23 +45,40 @@
|
46
|
45
|
<view class="cu-item">
|
47
|
46
|
<view class="cu-content time-item flex justify-between">
|
48
|
47
|
<view class="time-left text-black flex-sub">评价</view>
|
49
|
|
- <view class="time-right text-student" v-if="detail.teacher&&detail.teacher.username"
|
50
|
|
- @tap="check('studentEvaluate')">
|
|
48
|
+ <view class="time-right text-student" v-if="detail.teacher && detail.teacher.username" @tap="check('studentEvaluate')">
|
51
|
49
|
查看
|
52
|
50
|
</view>
|
53
|
51
|
</view>
|
54
|
52
|
</view>
|
55
|
53
|
<view class="cu-item">
|
56
|
54
|
<view class="cu-content time-item flex justify-between">
|
57
|
|
- <view class="time-left text-black flex-sub">上课时间
|
58
|
|
- <view>{{detail.course_data.start_at}}</view>
|
|
55
|
+ <view class="time-left text-black flex-sub"
|
|
56
|
+ >上课时间
|
|
57
|
+ <view>{{ detail.course_data.start_at }}</view>
|
59
|
58
|
</view>
|
60
|
59
|
</view>
|
61
|
60
|
</view>
|
62
|
61
|
<view class="cu-item">
|
63
|
62
|
<view class="cu-content time-item flex justify-between">
|
64
|
|
- <view class="time-left text-black flex-sub">课堂签到
|
65
|
|
- <view>{{detail.call_status.title}}</view>
|
|
63
|
+ <view class="time-left text-black flex-sub"
|
|
64
|
+ >课堂签到
|
|
65
|
+ <view>{{ detail.call_status.title }}</view>
|
|
66
|
+ </view>
|
|
67
|
+ </view>
|
|
68
|
+ </view>
|
|
69
|
+ <view class="cu-item">
|
|
70
|
+ <view class="cu-content time-item flex justify-between">
|
|
71
|
+ <view class="time-left text-black flex-sub">教学目标</view>
|
|
72
|
+ <view class="time-right text-student" @tap="globalNavigateTo('teachAims', { type: 'aims' })" v-show="detail.teach_aims.data">
|
|
73
|
+ 查看
|
|
74
|
+ </view>
|
|
75
|
+ </view>
|
|
76
|
+ </view>
|
|
77
|
+ <view class="cu-item">
|
|
78
|
+ <view class="cu-content time-item flex justify-between">
|
|
79
|
+ <view class="time-left text-black flex-sub">教学任务</view>
|
|
80
|
+ <view class="time-right text-student" @tap="globalNavigateTo('teachAims', { type: 'task' })" v-show="detail.teach_task.data">
|
|
81
|
+ 查看
|
66
|
82
|
</view>
|
67
|
83
|
</view>
|
68
|
84
|
</view>
|
|
@@ -84,8 +100,9 @@
|
84
|
100
|
</view>
|
85
|
101
|
<view class="cu-item">
|
86
|
102
|
<view class="cu-content time-item flex justify-between">
|
87
|
|
- <view class="time-left text-black flex-sub">下课时间
|
88
|
|
- <view>{{detail.course_data.end_at}}</view>
|
|
103
|
+ <view class="time-left text-black flex-sub"
|
|
104
|
+ >下课时间
|
|
105
|
+ <view>{{ detail.course_data.end_at }}</view>
|
89
|
106
|
</view>
|
90
|
107
|
</view>
|
91
|
108
|
</view>
|
|
@@ -106,7 +123,7 @@
|
106
|
123
|
<script>
|
107
|
124
|
import { _dailiClass } from '@/api/course'
|
108
|
125
|
export default {
|
109
|
|
- data () {
|
|
126
|
+ data() {
|
110
|
127
|
return {
|
111
|
128
|
topHeader: this.globalCustomBarHeight,
|
112
|
129
|
plan_id: 0,
|
|
@@ -120,17 +137,17 @@ export default {
|
120
|
137
|
teacher_avatar: '/static/imgs/class/logo0.png'
|
121
|
138
|
}
|
122
|
139
|
},
|
123
|
|
- onLoad (options) {
|
|
140
|
+ onLoad(options) {
|
124
|
141
|
const id = decodeURIComponent(options.id)
|
125
|
142
|
if (!id) uni.navigateBack()
|
126
|
143
|
this.plan_id = id
|
127
|
144
|
this.init()
|
128
|
145
|
},
|
129
|
146
|
methods: {
|
130
|
|
- check (page) {
|
|
147
|
+ check(page) {
|
131
|
148
|
this.globalNavigateTo(page, { plan_id: this.plan_id })
|
132
|
149
|
},
|
133
|
|
- init () {
|
|
150
|
+ init() {
|
134
|
151
|
_dailiClass({ plan_id: this.plan_id }).then(res => {
|
135
|
152
|
this.detail = res.data
|
136
|
153
|
uni.setStorage({
|