Commit 95618b43 authored by lvtz's avatar lvtz

fizx

parent 5d0038c6
......@@ -307,32 +307,38 @@ Page({
course_id: this.data.courseSelect.id,
teacher_id: this.data.teacher_id
})).then((res) => {
wx.hideLoading();
formIdCreate({
formId
})
if (res.code == 200) {
formIdCreate({
formId
})
// this.getMemberMeInfo(this.data.sid)//班级操作后查看是否还有老师身份
let pages = getCurrentPages();
let currPage = null; //当前页面
let prevPage = null; //上一个页面
if (pages.length >= 2) {
currPage = pages[pages.length - 1]; //当前页面
prevPage = pages[pages.length - 2]; //上一个页面
if(this.data.id!=0 || this.data.from == 'classdetail'){
let pages = getCurrentPages();
let currPage = null; //当前页面
let prevPage = null; //上一个页面
if (pages.length >= 2) {
currPage = pages[pages.length - 1]; //当前页面
prevPage = pages[pages.length - 2]; //上一个页面
}
prevPage.setData({
showRefresh: true
});
wx.navigateBack({
delta: 1, // 回退前 delta(默认为1) 页面
})
}else if(this.data.from == 2){
wx.redirectTo({
url: `/business/pages/circleindex/index?id=${res.data.id}&sid=${this.data.sid}&from=2`
})
}else{
wx.redirectTo({
url: `/business/pages/classservice/classdetail?id=${res.data.id}&sid=${this.data.sid}`
})
}
prevPage.setData({
showRefresh: true
});
wx.navigateBack({
delta: 1, // 回退前 delta(默认为1) 页面
})
wx.hideLoading();
} else {
this.setData({
submit: false
})
wx.hideLoading();
}
this.setData({
submit: false
})
}).catch(() => {
wx.hideLoading();
this.setData({
......
......@@ -206,7 +206,7 @@ Page({
})
}
wx.navigateTo({
url: `/business/pages/circleeditor/index?sid=${this.data.sid}&id=0`
url: `/business/pages/circleeditor/index?sid=${this.data.sid}&id=0&from=2`
})
},
// 班级主页
......
......@@ -761,7 +761,7 @@ Page({
modalExchangeClassTip: false
})
wx.navigateTo({
url: `/business/pages/circleeditor/index?sid=${this.data.sid}&id=0`
url: `/business/pages/circleeditor/index?sid=${this.data.sid}&id=0&from='classdetail'`
})
}
})
export default {
imageRoot: 'https://cdn.img.shangjiadao.cn/qingxiao/daka/images/',
host: 'https://qxapi.qingxiao.online/daka',
host2: 'https://wx.m.shangjiadao.cn',
// host: 'https://qxapi.qingxiao.online/daka',
// host2: 'https://wx.m.shangjiadao.cn',
storageVersion: '4.0',
imageVersion: '20191104',
// host: 'https://clock.wp53.cn',
// host2: 'https://test.wp53.cn',
host: 'https://clock.wp53.cn',
host2: 'https://test.wp53.cn',
appId: 'wxc1246ea029394785',
miniProgram: {
clock: 'wxdeee20e52a1fd7ee'
......
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