|
@@ -126,9 +126,9 @@ Page({
|
|
subject_item2: subject_item[2]
|
|
subject_item2: subject_item[2]
|
|
},
|
|
},
|
|
success: res => {
|
|
success: res => {
|
|
- let class_ = 0;
|
|
|
|
|
|
+ let class_ = 0, classes=[];
|
|
if (res.data.data.length>0){
|
|
if (res.data.data.length>0){
|
|
- let classes = res.data.data[0].classes;
|
|
|
|
|
|
+ classes = res.data.data[0].classes;
|
|
for(let i=0;i<classes.length;i++){
|
|
for(let i=0;i<classes.length;i++){
|
|
if (classes[i].cid == data.class_id){
|
|
if (classes[i].cid == data.class_id){
|
|
class_=i
|
|
class_=i
|