diff --git a/.gitignore b/.gitignore
index a5b0a74..6287089 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,5 +1,6 @@
api_docs/
.idea/
+.wechatide/
res/
docs/
pandocs
diff --git a/changelog.md b/changelog.md
index ac2800b..52767a2 100644
--- a/changelog.md
+++ b/changelog.md
@@ -1,3 +1,8 @@
+## v0.15.0
+ * A 实训关卡黑暗模式
+ * A 学生管理模块
+ * A 教师管理模块
+
## v0.14.5
* A 接入内容安全接口
* A 添加EduCoder云网推荐链接
diff --git a/miniprogram/account/pages/change_password/change_password.wxml b/miniprogram/account/pages/change_password/change_password.wxml
index b9a8e61..8efbcee 100644
--- a/miniprogram/account/pages/change_password/change_password.wxml
+++ b/miniprogram/account/pages/change_password/change_password.wxml
@@ -1,7 +1,7 @@
\ No newline at end of file
diff --git a/miniprogram/course/modules/exercise/exercise_item/exercise_item.wxss b/miniprogram/course/modules/exercise/exercise_item/exercise_item.wxss
index c32c7c3..50af311 100644
--- a/miniprogram/course/modules/exercise/exercise_item/exercise_item.wxss
+++ b/miniprogram/course/modules/exercise/exercise_item/exercise_item.wxss
@@ -7,10 +7,13 @@
.title{
font-weight: bold;
}
-.left-time{
+.status{
font-size: 12px;
color: gray;
}
+.author{
+ margin-right: 12px;
+}
.tip{
font-size: 12px;
border-radius: 36px;
diff --git a/miniprogram/course/modules/students/student-item/student-item.js b/miniprogram/course/modules/students/student-item/student-item.js
new file mode 100644
index 0000000..af02083
--- /dev/null
+++ b/miniprogram/course/modules/students/student-item/student-item.js
@@ -0,0 +1,43 @@
+const app = getApp();
+Component({
+ properties: {
+ data:Object,
+ ext:Object
+ },
+
+ data: {
+ eduImgDir: global.config.eduImgDir,
+ buttons:[{text:"删除", type:"warn"}]
+ },
+
+ methods: {
+ delete(){
+ let {course_id} = this.data.ext;
+ let {course_member_id} = this.data.data;
+ //console.log(course_id, course_member_id);
+ let students = [{course_member_id}];
+ app.api("courses.delete_from_course")({course_id,students})
+ .then(res=>{
+ this.triggerEvent("delete",{},{bubbles:true,composed:true});
+ //console.log(res);
+ //res.message='删除成功';
+ app.showMsg(res);
+ }).catch(e=>{
+ app.showError(e);
+ })
+ },
+ onButtonTap(e){
+ //console.log(e,this.data);
+ wx.showModal({
+ title:"提示",
+ content:"确认删除所选学生吗?",
+ success:res=>{
+ if(res.confirm){
+ this.delete();
+ }
+ }
+ })
+
+ }
+ }
+})
diff --git a/miniprogram/course/modules/students/student-item/student-item.json b/miniprogram/course/modules/students/student-item/student-item.json
new file mode 100644
index 0000000..cbf84d2
--- /dev/null
+++ b/miniprogram/course/modules/students/student-item/student-item.json
@@ -0,0 +1,6 @@
+{
+ "component": true,
+ "usingComponents": {
+ "mp-slideview": "/weui-miniprogram/slideview/slideview"
+ }
+}
\ No newline at end of file
diff --git a/miniprogram/course/modules/students/student-item/student-item.wxml b/miniprogram/course/modules/students/student-item/student-item.wxml
new file mode 100644
index 0000000..78ee377
--- /dev/null
+++ b/miniprogram/course/modules/students/student-item/student-item.wxml
@@ -0,0 +1,9 @@
+
+
+
+
+ {{data.name}}
+ 学号:{{data.student_id}}
+
+
+
\ No newline at end of file
diff --git a/miniprogram/course/modules/students/student-item/student-item.wxss b/miniprogram/course/modules/students/student-item/student-item.wxss
new file mode 100644
index 0000000..21da322
--- /dev/null
+++ b/miniprogram/course/modules/students/student-item/student-item.wxss
@@ -0,0 +1,40 @@
+.student{
+ padding: 12px;
+ display: flex;
+ background: white;
+}
+.thin-border-bottom {
+ position: relative
+}
+
+.thin-border-bottom::after {
+ content: "";
+ position: absolute;
+ left: 0;
+ bottom: 0;
+ right: 0;
+ height: 1px;
+ border-bottom: 1px solid #EAEAEA;
+ color: #e5e5e5;
+ -webkit-transform-origin: 0 0;
+ transform-origin: 0 0;
+ -webkit-transform: scaleY(.5);
+ transform: scaleY(.5);
+ z-index: 2
+}
+
+.student.thin-border-bottom::after{
+ left: 60px;
+}
+.detail{
+ margin-left: 12px;
+}
+.avatar{
+ border-radius: 50%;
+ width: 45px;
+ height: 45px;
+}
+.student-id{
+ color: dimgray;
+ font-size: 14px;
+}
\ No newline at end of file
diff --git a/miniprogram/course/modules/students/students.js b/miniprogram/course/modules/students/students.js
new file mode 100644
index 0000000..3fbc133
--- /dev/null
+++ b/miniprogram/course/modules/students/students.js
@@ -0,0 +1,42 @@
+const app = getApp();
+Component({
+ properties: {
+ course_id: Number,
+ id_: Number,
+ course_identity:Number,
+ refresh: {
+ type: Number,
+ observer: function (r) {
+ if (r) {
+ console.log("observer refresh")
+ this.refresh();
+ this.setData({ refresh: false });
+ }
+ }
+ }
+ },
+
+ data: {
+
+ },
+ attached(){
+ let {course_id, course_identity} = this.data;
+ let ext = {course_id, course_identity};
+ this.setData({ext});
+ this.refresh();
+ },
+
+ methods: {
+ onChoose(e){
+ console.log(e);
+ },
+ refresh(){
+ let {course_id} = this.data;
+ app.api("weapps.courses.students")({course_id,limit:1000}).then(res=>{
+ console.log(res);
+ let {students,students_count} = res;
+ this.setData({students,students_count});
+ })
+ }
+ }
+})
diff --git a/miniprogram/course/modules/students/students.json b/miniprogram/course/modules/students/students.json
new file mode 100644
index 0000000..1fc8cfc
--- /dev/null
+++ b/miniprogram/course/modules/students/students.json
@@ -0,0 +1,7 @@
+{
+ "component": true,
+ "usingComponents": {
+ "mp-index-list":"../../components/index-list/index-list",
+ "student-item":"./student-item/student-item"
+ }
+}
\ No newline at end of file
diff --git a/miniprogram/course/modules/students/students.wxml b/miniprogram/course/modules/students/students.wxml
new file mode 100644
index 0000000..f274c7b
--- /dev/null
+++ b/miniprogram/course/modules/students/students.wxml
@@ -0,0 +1,12 @@
+
+
+
+
+
+
diff --git a/miniprogram/course/modules/students/students.wxss b/miniprogram/course/modules/students/students.wxss
new file mode 100644
index 0000000..28418f2
--- /dev/null
+++ b/miniprogram/course/modules/students/students.wxss
@@ -0,0 +1,14 @@
+.student-list-wrap{
+ flex:auto;
+}
+
+.header{
+ background: white;
+ padding: 12px;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+}
+.invite-button{
+ margin: 0;
+}
\ No newline at end of file
diff --git a/miniprogram/course/modules/teachers/teacher-item/teacher-item.js b/miniprogram/course/modules/teachers/teacher-item/teacher-item.js
new file mode 100644
index 0000000..74b98f5
--- /dev/null
+++ b/miniprogram/course/modules/teachers/teacher-item/teacher-item.js
@@ -0,0 +1,31 @@
+const app = getApp();
+Component({
+ properties: {
+ data:Object,
+ ext:Object
+ },
+
+ data: {
+ eduImgDir: global.config.eduImgDir,
+ buttons:[{text:"删除", type:"warn"}]
+ },
+
+ methods: {
+ delete(e){
+ console.log(e,this.data);
+ let {course_id} = this.data.ext;
+ let {course_member_id} = this.data.data;
+ console.log(course_id, course_member_id);
+ let students = [{course_member_id}];
+ app.api("courses.delete_from_course")({course_id,students})
+ .then(res=>{
+ this.triggerEvent("delete",{},{bubbles:true,composed:true});
+ //console.log(res);
+ //res.message='删除成功';
+ app.showMsg(res);
+ }).catch(e=>{
+ app.showError(e);
+ })
+ }
+ }
+})
diff --git a/miniprogram/course/modules/teachers/teacher-item/teacher-item.json b/miniprogram/course/modules/teachers/teacher-item/teacher-item.json
new file mode 100644
index 0000000..e8cfaaf
--- /dev/null
+++ b/miniprogram/course/modules/teachers/teacher-item/teacher-item.json
@@ -0,0 +1,4 @@
+{
+ "component": true,
+ "usingComponents": {}
+}
\ No newline at end of file
diff --git a/miniprogram/course/modules/teachers/teacher-item/teacher-item.wxml b/miniprogram/course/modules/teachers/teacher-item/teacher-item.wxml
new file mode 100644
index 0000000..313ba8b
--- /dev/null
+++ b/miniprogram/course/modules/teachers/teacher-item/teacher-item.wxml
@@ -0,0 +1,7 @@
+
+
+
+ {{data.name}}
+ {{data.school}}
+
+
\ No newline at end of file
diff --git a/miniprogram/course/modules/teachers/teacher-item/teacher-item.wxss b/miniprogram/course/modules/teachers/teacher-item/teacher-item.wxss
new file mode 100644
index 0000000..6883ae5
--- /dev/null
+++ b/miniprogram/course/modules/teachers/teacher-item/teacher-item.wxss
@@ -0,0 +1,40 @@
+.teacher{
+ padding: 12px;
+ display: flex;
+ background: white;
+}
+.thin-border-bottom {
+ position: relative
+}
+
+.thin-border-bottom::after {
+ content: "";
+ position: absolute;
+ left: 0;
+ bottom: 0;
+ right: 0;
+ height: 1px;
+ border-bottom: 1px solid #EAEAEA;
+ color: #e5e5e5;
+ -webkit-transform-origin: 0 0;
+ transform-origin: 0 0;
+ -webkit-transform: scaleY(.5);
+ transform: scaleY(.5);
+ z-index: 2
+}
+
+.teacher.thin-border-bottom::after{
+ left: 60px;
+}
+.detail{
+ margin-left: 12px;
+}
+.avatar{
+ border-radius: 50%;
+ width: 45px;
+ height: 45px;
+}
+.school{
+ color: dimgray;
+ font-size: 14px;
+}
\ No newline at end of file
diff --git a/miniprogram/course/modules/teachers/teachers.js b/miniprogram/course/modules/teachers/teachers.js
new file mode 100644
index 0000000..51b6da2
--- /dev/null
+++ b/miniprogram/course/modules/teachers/teachers.js
@@ -0,0 +1,42 @@
+const app = getApp();
+Component({
+ properties: {
+ course_id: Number,
+ id_: Number,
+ course_identity:Number,
+ refresh: {
+ type: Number,
+ observer: function (r) {
+ if (r) {
+ console.log("observer refresh")
+ this.refresh();
+ this.setData({ refresh: false });
+ }
+ }
+ }
+ },
+
+ data: {
+
+ },
+ attached(){
+ let {course_id, course_identity} = this.data;
+ let ext = {course_id, course_identity};
+ this.setData({ext});
+ this.refresh();
+ },
+
+ methods: {
+ onChoose(e){
+ console.log(e);
+ },
+ refresh(){
+ let {course_id} = this.data;
+ app.api("weapps.courses.teachers")({course_id,limit:1000}).then(res=>{
+ console.log(res);
+ let {teacher_list:teachers,teacher_list_size:teachers_count} = res;
+ this.setData({teachers,teachers_count});
+ })
+ }
+ }
+})
diff --git a/miniprogram/course/modules/teachers/teachers.json b/miniprogram/course/modules/teachers/teachers.json
new file mode 100644
index 0000000..3f6bbb5
--- /dev/null
+++ b/miniprogram/course/modules/teachers/teachers.json
@@ -0,0 +1,7 @@
+{
+ "component": true,
+ "usingComponents": {
+ "mp-index-list":"../../components/index-list/index-list",
+ "teacher-item":"./teacher-item/teacher-item"
+ }
+}
\ No newline at end of file
diff --git a/miniprogram/course/modules/teachers/teachers.wxml b/miniprogram/course/modules/teachers/teachers.wxml
new file mode 100644
index 0000000..a85937d
--- /dev/null
+++ b/miniprogram/course/modules/teachers/teachers.wxml
@@ -0,0 +1,11 @@
+
+
+
+
+
+
diff --git a/miniprogram/course/modules/teachers/teachers.wxss b/miniprogram/course/modules/teachers/teachers.wxss
new file mode 100644
index 0000000..8c91318
--- /dev/null
+++ b/miniprogram/course/modules/teachers/teachers.wxss
@@ -0,0 +1,11 @@
+.teacher-list-wrap{
+ flex:auto;
+}
+
+.header{
+ background: white;
+ padding: 12px;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+}
diff --git a/miniprogram/course/pages/course/course.js b/miniprogram/course/pages/course/course.js
index c8a93ea..323a201 100644
--- a/miniprogram/course/pages/course/course.js
+++ b/miniprogram/course/pages/course/course.js
@@ -4,7 +4,11 @@ const defaultModules = [{
type: "activity",
name: "课堂动态"
}];
-const supportModules = ["activity", "attachment", "exercise", "shixun_homework", "attendance"];
+const defaultModulesEnd = [
+ {type:"students",name:"学生管理"},
+ {type:"teachers",name:"教师管理"}
+]
+const supportModules = ["activity", "attachment", "exercise", "shixun_homework", "attendance","students","teachers"];
const nosupportMsgs = {
video:"请使用网页版EduCoder"
};
@@ -14,6 +18,7 @@ Component({
course_id: Number,
module_type: {
type: String,
+ value:'activity',
observer: function (module) {
//this.setModule(module,0);
}
@@ -25,8 +30,6 @@ Component({
nav_type: "back",
current:0,
module: {
- type: "activity",
- name: "课堂动态"
},
tabbar_show:1,
course: {},
@@ -78,6 +81,9 @@ Component({
});
},
setModule({type,showToast = 1}) {
+ if(type==this.data.module.type)
+ return false;
+ var flag = false;
for (var module of this.data.course_modules) {
if (module.type == type) {
if (supportModules.indexOf(type) == -1) {
@@ -92,8 +98,11 @@ Component({
this.setData({
module
});
+ flag = true;
}
}
+ if(!flag)
+ return flag;
for (var i = 0; i < this.data.list.length; i++) {
if (this.data.list[i].type == type) {
this.setData({
@@ -158,15 +167,9 @@ Component({
let {
course_id
} = this.data;
- let course = await app.api("courses.top_banner")({
- course_id
- });
- this.setData({
- course
- });
- return {
- course
- };
+ let course = await app.api("courses.top_banner")({ course_id });
+ this.setData({ course });
+ return { course };
},
async pullModules() {
let {
@@ -175,7 +178,7 @@ Component({
let data = await app.api("courses.left_banner")({
course_id
});
- let course_modules = defaultModules.concat(data.course_modules);
+ let course_modules = defaultModules.concat(data.course_modules).concat(defaultModulesEnd);
course_modules = course_modules.filter(i=>supportModules.indexOf(i.type)>-1);
this.setData({
course_modules
@@ -183,6 +186,11 @@ Component({
this.setTabbar({
course_modules
});
+ if(this.data.module_type){
+ if(!this.setModule({type:this.data.module_type,showModal:0}))
+ this.setModule({type:course_modules[0].type,showModal:0})
+ this.setData({module_type: ""});
+ }
return course_modules;
},
setTabbar({course_modules}) {
@@ -198,7 +206,7 @@ Component({
})
} else {
var list = [];
- for (var i = 0; i < 5; i++) {
+ for (var i = 0; i < 4; i++) {
if (i == 2)
list.push({
type: "more",
@@ -206,15 +214,14 @@ Component({
selectedIconPath: base + "module_select.svg",
iconPath: base + "module.svg"
});
- else {
- var m = course_modules[i];
- list.push({
- type: m.type,
- text: m.name,
- selectedIconPath: base + m.type + "_select.svg",
- iconPath: base + m.type + ".svg"
- });
- }
+
+ var m = course_modules[i];
+ list.push({
+ type: m.type,
+ text: m.name,
+ selectedIconPath: base + m.type + "_select.svg",
+ iconPath: base + m.type + ".svg"
+ });
}
}
this.setData({
@@ -311,7 +318,10 @@ Component({
this.refresh();
},
onShareAppMessage: function () {
-
+ return app.shareApp({
+ title: this.data.name,
+ path: "/"+this.route+`?course_id=${this.data.course_id}&module_type=${this.data.module.type}`
+ })
}
}
})
\ No newline at end of file
diff --git a/miniprogram/course/pages/course/course.json b/miniprogram/course/pages/course/course.json
index 0d02d0b..4f14f34 100644
--- a/miniprogram/course/pages/course/course.json
+++ b/miniprogram/course/pages/course/course.json
@@ -7,6 +7,8 @@
"shixun-homework": "/course/modules/shixun_homework/shixun_homework",
"activity":"/course/modules/activity/activity",
"attendance":"/course/modules/attendance/attendance",
+ "students":"/course/modules/students/students",
+ "teachers":"/course/modules/teachers/teachers",
"join-course":"/components/modal/join-course/join-course",
"error-page":"/components/error-page/error-page",
"mp-tabbar": "weui-miniprogram/tabbar/tabbar",
diff --git a/miniprogram/course/pages/course/course.wxml b/miniprogram/course/pages/course/course.wxml
index 2a12a93..d640d4d 100644
--- a/miniprogram/course/pages/course/course.wxml
+++ b/miniprogram/course/pages/course/course.wxml
@@ -55,6 +55,8 @@
+
+
diff --git a/miniprogram/js/apiConfig.js b/miniprogram/js/apiConfig.js
index 88343e3..5013a76 100644
--- a/miniprogram/js/apiConfig.js
+++ b/miniprogram/js/apiConfig.js
@@ -14,16 +14,19 @@ accounts:{
valid_email_and_phone: { query,form: {login: null, type: 1 } },
},
-add_department_applies:{config, query, form:{school_id:null, name:null, remarks:void 0}},
+add_department_applies:{config, query, form:{school_id:null, name:null, remarks:void 0},disp:"新增子单位"},
attachments:{url:{_:1,DELETE:'*/{attachment_id}',uploadFile:"*"},query,form:{_:1,uploadFile:{file:null},DELETE:{}},config:{method:"uploadFile", name:"file"}},
courses:{ url:{_:"*", DELETE:"*/{course_id}",PUT:"*/{course_id}"},query, form:{_:1,GET:{search:"",limit:20, page:1, order:"all"}, POST:{course_list_name:null,name:null,school: null,end_date: null,class_period:null,credit:null,course_module_types:["shixun_homework","common_homework","group_homework","exercise","attachment","course_group"],authentication:null,professional_certification:null},PUT:{course_list_name:null,name:null,school: null,end_date: null,class_period:null,credit:null,course_module_types:["shixun_homework","common_homework","group_homework","exercise","attachment","course_group"],authentication:null,professional_certification:null}},
act_score:{url:"{course_id}/*", query},
all_course_groups:{url:"{course_id}/*", query},
+ apply_teachers:{url:"{course_id}/*",query,disp:"获取正在申请教师的列表"},
apply_to_join_course:{query,form:{invite_code:null, professor:void 0,assistant_professor:void 0,student:void 0}, config},
attendances:{url:"{course_id}/*",query, form:{page:1, limit:10, history:void 0}},
calculate_all_shixun_scores:{url:"{course_id}/*", query},
+ delete_course_teacher:{url:"{course_id}/*",query,config,form:{course_member_id:null}},
+ delete_from_course:{url:"{course_id}/*", query, config, form:{students:null},data:{students:{course_member_id:121}}, disp:"删除学生"},
exercises:{url:"{course_id}/*", query, form:{_:1, GET:{page:1,limit:15},POST:{exercise_name:null, exercise_description:""}},
publish:{url:"../{course_id}/exercises/*",query,form:{check_ids: null, end_time:null},config},
},
@@ -38,6 +41,7 @@ courses:{ url:{_:"*", DELETE:"*/{course_id}",PUT:"*/{course_id}"},query, form:{_
switch_to_assistant: { url: "{course_id}/*", query ,config},
switch_to_student:{url:"{course_id}/*",query, config},
switch_to_teacher:{url:"{course_id}/*",query, config},
+ teacher_application_review:{url:"{course_id}/*",config, query, form:{application_id:null, approval:null,user_id:null},data:{approval:{2:"拒绝",1:"同意"}},disp:"审批教师申请"},
work_score:{url:"{course_id}/*",query, form:{limit:20, page:1, sort:"desc"}},
},
@@ -146,7 +150,7 @@ users:{
shixuns: { url: "{login}/*", query, form: {sort_by:"updated_at" ,page:1, sort_direction:"desc",per_page:16}},
system_update:{query:query},
/*{"system_update":true,"system_score":"为了给大家提供更优质的体验,平台将于2020年3月24日13:20开始对系统进行升级。升级期间系统响应会有一定的延迟。系统拟于2020年3月24日13:30恢复正常。\r\n请大家知悉,并提前做好教学安排。带来不便,敬请谅解。","subject":" educoder升级服务通知","start_time":"2020-03-24T13:20:00.000+08:00","end_time":"2020-03-24T13:30:00.000+08:00"}*/
- tidings: {query, form:{type:"",page:1,per_page:10}, data:"type:course,project,interaction,apply,notice"},
+ tidings: {query, form:{type:void 0,page:1,per_page:10}, data:"type:course,project,interaction,apply,notice"},
unread_message_info:{url:"{login}/*", query},
watch:{url:"{user_id}/*",query,config,disp:"关注用户,delete取消关注"}
},
@@ -160,6 +164,9 @@ weapps:{
},
basic_info:{url:"{course_id}/*",query,disp:"课堂基本信息"},
course_activities:{url:"{course_id}/*",query,form:{page:1, limit:20}},
+ delete_course_teachers:{url:"{course_id}/*",query, form:{course_member_id:null},config:{method:"DELETE"}},
+ students: {url:"{course_id}/*", query, form:{page:1, limit: void 0}},
+ teachers: {url:"{course_id}/*", query, form:{page:1, limit: void 0}},
},
course_member_attendances:{query, form:{_:1, GET:{page:1, limit: 10},POST:{attendance_id:null, attendance_mode:null, code:void 0}}, config, disp:"课堂成员签到",
update_status:{query, config, form:{attendance_id:null, attendance_status:null, course_id:null, user_id:null}}
diff --git a/miniprogram/task/pages/task/task.js b/miniprogram/task/pages/task/task.js
index 2ae5ba9..5742e05 100644
--- a/miniprogram/task/pages/task/task.js
+++ b/miniprogram/task/pages/task/task.js
@@ -1,11 +1,28 @@
const app = getApp();
Page({
data: {
+ theme: 'light',
current: 0,
content:"加载中...",
titles: ["任务描述", "代码文件", "测评结果"],
can_use_editor:wx.canIUse("editor")
},
+ initTheme(){
+ let {theme} = this.data;
+ if(theme=='dark'){
+ wx.setNavigationBarColor({backgroundColor:"#333333",frontColor:"#ffffff",animation:'linear'});
+ }else{
+ wx.setNavigationBarColor({backgroundColor:"#fbfbfb",frontColor:"#000000",animation:"linear"});
+ }
+ },
+ switchTheme({detail}){
+ console.log(detail);
+ let {value} = detail;
+ let theme = value?'dark':'light';
+ this.setData({theme});
+ this.initTheme();
+ wx.setStorageSync('config-task-theme', theme);
+ },
enterTask(e){
var {target:{dataset:{identifier}}} = e;
console.log(e);
@@ -185,6 +202,9 @@ Page({
},
onLoad: function (options) {
//console.log("onload")
+ let theme = wx.getStorageSync('config-task-theme');
+ this.setData({theme});
+ this.initTheme();
let {identifier} = options;
this.setData({identifier});
this.pullTask();
diff --git a/miniprogram/task/pages/task/task.wxml b/miniprogram/task/pages/task/task.wxml
index 090cad6..e2648a8 100644
--- a/miniprogram/task/pages/task/task.wxml
+++ b/miniprogram/task/pages/task/task.wxml
@@ -3,9 +3,12 @@
-
- 第{{challenge.position}}关:{{challenge.subject}}
-
+
+
+ 第{{challenge.position}}关:{{challenge.subject}}
+ 黑暗模式(测试功能)
+
+
diff --git a/miniprogram/task/pages/task/task.wxss b/miniprogram/task/pages/task/task.wxss
index b846915..7ea9fd0 100644
--- a/miniprogram/task/pages/task/task.wxss
+++ b/miniprogram/task/pages/task/task.wxss
@@ -1,6 +1,18 @@
.body{
height: 100vh;
}
+.dark{
+ background: black!important;
+ color: white;
+ opacity: 0.8;
+}
+.switch-wrap{
+ text-align: right;
+ font-size: 12px;
+}
+.theme-switch{
+ transform: scale(0.6);
+}
.challenge-body{
height: 100%;
background: white;
diff --git a/project.config.json b/project.config.json
index a159a15..5ab61a0 100644
--- a/project.config.json
+++ b/project.config.json
@@ -109,7 +109,7 @@
"id": 6,
"name": "course/pages/course/course",
"pathName": "course/pages/course/course",
- "query": "course_id=5876",
+ "query": "course_id=5141&module_type=teachers",
"scene": null
},
{