Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
W
wechatapp.shangjiadao.com
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangxuelai
wechatapp.shangjiadao.com
Commits
95618b43
Commit
95618b43
authored
Dec 25, 2019
by
lvtz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fizx
parent
5d0038c6
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
35 additions
and
29 deletions
+35
-29
index.js
business/pages/circleeditor/index.js
+29
-23
index.js
business/pages/classmgt/index.js
+1
-1
classdetail.js
business/pages/classservice/classdetail.js
+1
-1
constants.js
constants/constants.js
+4
-4
No files found.
business/pages/circleeditor/index.js
View file @
95618b43
...
...
@@ -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
({
...
...
business/pages/classmgt/index.js
View file @
95618b43
...
...
@@ -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
`
})
},
// 班级主页
...
...
business/pages/classservice/classdetail.js
View file @
95618b43
...
...
@@ -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'
`
})
}
})
constants/constants.js
View file @
95618b43
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'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment