|
@@ -177,6 +177,8 @@
|
|
|
}
|
|
|
},
|
|
|
onLoad(){
|
|
|
+ this.getClassroomList();
|
|
|
+
|
|
|
let teacher_id = this.teacher.id;
|
|
|
this.$api.sendRequest({
|
|
|
url: `/mobile/teacher/draw`,
|
|
@@ -190,11 +192,6 @@
|
|
|
|
|
|
}
|
|
|
})
|
|
|
- },
|
|
|
- created() {
|
|
|
- this.getClassroomList();
|
|
|
- },
|
|
|
- mounted() {
|
|
|
},
|
|
|
methods: {
|
|
|
debug() {
|
|
@@ -206,10 +203,14 @@
|
|
|
})
|
|
|
},
|
|
|
getLevelIcon(item) {
|
|
|
+ let url = '//zhxy.obs.cn-hz1.ctyun.cn:443/static/';
|
|
|
+ if(item.score_total == 0){
|
|
|
+ return url + 'tag_level/0.png'
|
|
|
+ }
|
|
|
let val = ~~((item.score_total) / 10);
|
|
|
val = (val <= 0 ? 1 : val);
|
|
|
val = (val >= 16 ? 16 : val);
|
|
|
- return '../../static/level_icon/' + val + '.png';
|
|
|
+ return url + 'tag_level/' + val + '.png';
|
|
|
},
|
|
|
// change(e) {
|
|
|
// this.type = e == 0 ? 1 : 2
|
|
@@ -221,7 +222,7 @@
|
|
|
},
|
|
|
loginOut() {
|
|
|
uni.setStorageSync("token", '')
|
|
|
- uni.navigateTo({
|
|
|
+ uni.reLaunch({
|
|
|
url: "/pages/login/login"
|
|
|
})
|
|
|
},
|
|
@@ -252,7 +253,10 @@
|
|
|
data: {
|
|
|
teacher_id: teacher_id
|
|
|
},
|
|
|
- success: res => {
|
|
|
+ fali : res => {
|
|
|
+ console.log(res);
|
|
|
+ },
|
|
|
+ success: res => {
|
|
|
this.classesList = res.data;
|
|
|
if (res.data.length) {
|
|
|
let value = uni.getStorageSync('lastClasses')
|
|
@@ -287,7 +291,7 @@
|
|
|
setSeatMove(value) {
|
|
|
if(value){
|
|
|
this.setMulti(false);
|
|
|
- this.listCopy = uni.$u.deepClone(this.list);
|
|
|
+ this.listCopy = uni.$u.deepClone(this.list);
|
|
|
}else{
|
|
|
this.list = uni.$u.deepClone(this.listCopy);
|
|
|
}
|
|
@@ -338,7 +342,9 @@
|
|
|
success: res => {
|
|
|
uni.showToast({
|
|
|
title: res.msg,
|
|
|
- })
|
|
|
+ });
|
|
|
+ this.seatMove = false;
|
|
|
+ // this.setSeatMove(true);
|
|
|
}
|
|
|
})
|
|
|
},
|