Commit 4a6e42ad authored by wangxuelai's avatar wangxuelai

'点名页面我也要布置作业跳转页面修改'

parent 3f709be6
...@@ -1212,7 +1212,6 @@ Page({ ...@@ -1212,7 +1212,6 @@ Page({
id: this.data.circleInfo.id, id: this.data.circleInfo.id,
title: this.data.circleInfo.title title: this.data.circleInfo.title
}]) }])
console.log(classes, 'classes');
url = `/business/pages/themeeditor/index?tid=0&sid=${this.data.sid}&classes=${encodeURIComponent(classes)}&editType=${createtype}`; url = `/business/pages/themeeditor/index?tid=0&sid=${this.data.sid}&classes=${encodeURIComponent(classes)}&editType=${createtype}`;
wx.navigateTo({ wx.navigateTo({
url: `${url}` url: `${url}`
......
...@@ -110,27 +110,48 @@ Page({ ...@@ -110,27 +110,48 @@ Page({
}) })
}, },
createRiliTheme() { createRiliTheme() {
const classes = JSON.stringify([{
id: this.data.schedulesDetail.class_id,
title: this.data.schedulesDetail.class.title
}])
url = `/business/pages/themeeditor/index?tid=0&sid=${this.data.sid}&classes=${encodeURIComponent(classes)}&editType=2`;
wx.navigateTo({ wx.navigateTo({
url: `/business/pages/calendarthemeeditor/index?id=${this.data.schedulesDetail.class_id}&tid=0&sid=${this.data.sid}` url: `${url}`
}) });
this.setData({ this.setData({
modalshow: false, modalshow: false,
modelHideClass: false modelHideClass: false
}) })
}, },
createNormalTheme() { createNormalTheme() {
// wx.navigateTo({
// url: `/business/pages/themeeditor/index?id=${this.data.schedulesDetail.class_id}&tid=0&sid=${this.data.sid}`
// })
const classes = JSON.stringify([{
id: this.data.schedulesDetail.class_id,
title: this.data.schedulesDetail.class.title
}])
url = `/business/pages/themeeditor/index?tid=0&sid=${this.data.sid}&classes=${encodeURIComponent(classes)}&editType=1`;
wx.navigateTo({ wx.navigateTo({
url: `/business/pages/themeeditor/index?id=${this.data.schedulesDetail.class_id}&tid=0&sid=${this.data.sid}` url: `${url}`
}) });
this.setData({ this.setData({
modalshow: false, modalshow: false,
modelHideClass: false modelHideClass: false
}) })
}, },
createUnlockTheme() { createUnlockTheme() {
// wx.navigateTo({
// url: `/business/pages/themeeditorlock/index?id=${this.data.schedulesDetail.class_id}&tid=0&sid=${this.data.sid}`
// })
const classes = JSON.stringify([{
id: this.data.schedulesDetail.class_id,
title: this.data.schedulesDetail.class.title
}])
url = `/business/pages/themeeditor/index?tid=0&sid=${this.data.sid}&classes=${encodeURIComponent(classes)}&editType=3`;
wx.navigateTo({ wx.navigateTo({
url: `/business/pages/themeeditorlock/index?id=${this.data.schedulesDetail.class_id}&tid=0&sid=${this.data.sid}` url: `${url}`
}) });
this.setData({ this.setData({
modalshow: false, modalshow: false,
modelHideClass: false modelHideClass: false
......
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