Commit 6db8159d authored by wangxuelai's avatar wangxuelai

''

parent 62464282
......@@ -262,18 +262,24 @@ Page({
});
if (tid == 0) {
const currentclasses = classes ? JSON.parse(decodeURIComponent(classes)) : [];
this.setData({
classes: currentclasses,
'params.join_rule_type': currentclasses.length > 0 ? 4 : 1
})
console.log(currentclasses, ';currentclasses');
if (editType == 1) {
wx.setNavigationBarTitle({
title: '新建作业打卡'
})
this.setData({
classes: currentclasses,
'params.join_rule_type': currentclasses.length > 0 ? 4 : 1
})
} else if (editType == 2) {
wx.setNavigationBarTitle({
title: '新建日历打卡'
})
this.setData({
classes: currentclasses,
'calendarparams.join_rule_type': currentclasses.length > 0 ? 4 : 1
})
} else if (editType == 3) {
wx.setNavigationBarTitle({
title: '新建闯关打卡'
......@@ -281,6 +287,10 @@ Page({
this.setData({
lockSubjectLists: this.data.lockSubjects.slice(that.data.currentSortIndex * 10, that.data.currentSortIndex * 10 + 10),
})
this.setData({
classes: currentclasses,
'lockparams.join_rule_type': currentclasses.length > 0 ? 4 : 1
})
this.getSubjectSort();
}
} else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment