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
7a677c8b
Commit
7a677c8b
authored
Jun 18, 2019
by
sujie@126.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dd
parent
9fea03fe
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
16 deletions
+24
-16
index.js
business/pages/officialwebmgt/index.js
+5
-2
index.wxml
business/pages/officialwebmgt/index.wxml
+2
-2
index.js
business/pages/officialwebstudentmgt/index.js
+11
-7
index.js
business/pages/officialwebteachermgt/index.js
+6
-5
No files found.
business/pages/officialwebmgt/index.js
View file @
7a677c8b
...
...
@@ -190,8 +190,9 @@ Page({
goofficialwebteachermgt
(
e
)
{
const
id
=
e
.
currentTarget
.
dataset
.
id
?
e
.
currentTarget
.
dataset
.
id
:
0
;
const
page
=
e
.
currentTarget
.
dataset
.
page
?
e
.
currentTarget
.
dataset
.
page
:
0
;
wx
.
navigateTo
({
url
:
`/business/pages/officialwebteachermgt/index?sid=
${
this
.
data
.
sid
}
&actIndex=
${
this
.
data
.
actIndex
}
&teacherId=
${
id
}
&page=
${
this
.
data
.
teacher
page
}
`
url
:
`/business/pages/officialwebteachermgt/index?sid=
${
this
.
data
.
sid
}
&actIndex=
${
this
.
data
.
actIndex
}
&teacherId=
${
id
}
&page=
${
page
}
`
})
},
gobannereditor
()
{
...
...
@@ -206,8 +207,10 @@ Page({
},
goofficialwebstudentmgt
(
e
)
{
const
id
=
e
.
currentTarget
.
dataset
.
id
?
e
.
currentTarget
.
dataset
.
id
:
0
;
const
page
=
e
.
currentTarget
.
dataset
.
page
?
e
.
currentTarget
.
dataset
.
page
:
0
;
console
.
log
(
page
,
'page'
)
wx
.
navigateTo
({
url
:
`/business/pages/officialwebstudentmgt/index?sid=
${
this
.
data
.
sid
}
&actIndex=
${
this
.
data
.
actIndex
}
&studentId=
${
id
}
&page=
${
this
.
data
.
student
page
}
`
url
:
`/business/pages/officialwebstudentmgt/index?sid=
${
this
.
data
.
sid
}
&actIndex=
${
this
.
data
.
actIndex
}
&studentId=
${
id
}
&page=
${
page
}
`
})
},
goofficialwebactitive
(
e
)
{
...
...
business/pages/officialwebmgt/index.wxml
View file @
7a677c8b
...
...
@@ -181,7 +181,7 @@
<view class="name-text" hover-class="none" hover-stop-propagation="false">{{item.name}}</view>
</view>
<view class="btn-box" hover-class="none" hover-stop-propagation="false">
<view class="btn" hover-class="none" hover-stop-propagation="false" bindtap="goofficialwebteachermgt" data-id="{{item.id?item.id:0}}">修改</view>
<view class="btn" hover-class="none" hover-stop-propagation="false" bindtap="goofficialwebteachermgt" data-id="{{item.id?item.id:0}}"
data-index="{{bigindex}}"
>修改</view>
<view class="btn" hover-class="none" hover-stop-propagation="false" bindtap="delTeacher" data-bigindex="{{bigindex}}" data-id="{{item.id}}" data-index="{{index}}">删除</view>
</view>
</view>
...
...
@@ -220,7 +220,7 @@
<view class="name-text" hover-class="none" hover-stop-propagation="false">{{item.nickname}}</view>
</view>
<view class="btn-box" hover-class="none" hover-stop-propagation="false">
<view class="btn" hover-class="none" hover-stop-propagation="false" data-id="{{item.id?item.id:0}}" bindtap="goofficialwebstudentmgt">修改</view>
<view class="btn" hover-class="none" hover-stop-propagation="false" data-id="{{item.id?item.id:0}}" bindtap="goofficialwebstudentmgt"
data-page="{{bigindex}}"
>修改</view>
<view class="btn" hover-class="none" hover-stop-propagation="false" data-bigindex="{{bigindex}}" data-id="{{item.id}}" data-index="{{index}}" bindtap="delTeacher">删除</view>
</view>
</view>
...
...
business/pages/officialwebstudentmgt/index.js
View file @
7a677c8b
...
...
@@ -65,13 +65,15 @@ Page({
sid
,
studentId
,
consumerid
,
name
name
,
page
}
=
options
;
this
.
setData
({
sid
,
id
:
studentId
,
consumerid
:
consumerid
||
''
,
name
:
name
||
''
name
:
name
||
''
,
page
})
if
(
Number
(
studentId
)){
this
.
studentDetail
()
...
...
@@ -474,13 +476,15 @@ Page({
currPage
=
pages
[
pages
.
length
-
1
];
//当前页面
prevPage
=
pages
[
pages
.
length
-
2
];
//上一个页面
}
const
{
studentpage
,
studentList
,
studentTotal
,
perPage
}
=
prevPage
.
data
;
const
{
studentpage
,
studentList
,
perPage
}
=
prevPage
.
data
;
let
studentTotal
=
prevPage
.
data
.
studentTotal
;
if
(
this
.
data
.
id
>
0
){
studentList
[
studentpage
-
1
].
filter
((
ele
)
=>
ele
.
id
==
this
.
data
.
id
)[
0
].
content
=
data
.
content
studentList
[
studentpage
-
1
].
filter
((
ele
)
=>
ele
.
id
==
this
.
data
.
id
)[
0
].
title
=
data
.
title
studentList
[
this
.
data
.
page
].
filter
((
ele
)
=>
ele
.
id
==
this
.
data
.
id
)[
0
].
cover
=
data
.
cover
;
studentList
[
this
.
data
.
page
].
filter
((
ele
)
=>
ele
.
id
==
this
.
data
.
id
)[
0
].
remark
=
data
.
remark
;
studentList
[
this
.
data
.
page
].
filter
((
ele
)
=>
ele
.
id
==
this
.
data
.
id
)[
0
].
nickname
=
data
.
nickname
;
}
else
{
studentList
[
studentpage
-
1
].
push
(
data
);
studentTotal
+
-
1
;
studentList
[
studentpage
].
push
(
data
);
studentTotal
+
=
1
;
}
prevPage
.
setData
({
studentList
:
studentList
,
...
...
business/pages/officialwebteachermgt/index.js
View file @
7a677c8b
...
...
@@ -59,11 +59,13 @@ Page({
this
.
innerAudioContext
=
wx
.
createInnerAudioContext
();
// 当前页面唯一的一个音频容器
const
{
sid
,
teacherId
teacherId
,
page
}
=
options
;
this
.
setData
({
sid
,
id
:
teacherId
||
0
id
:
teacherId
||
0
,
page
})
},
cropperload
(
e
)
{
...
...
@@ -433,11 +435,10 @@ Page({
})
const
{
teteacherpage
,
teteacherList
,
teteacherTotal
,
perPage
}
=
prevPage
.
data
;
if
(
this
.
data
.
id
>
0
){
teteacherList
[
t
eteacherpage
-
1
].
filter
((
ele
)
=>
ele
.
id
==
this
.
data
.
id
)[
0
].
content
=
data
.
content
teteacherList
[
t
eteacherpage
-
1
].
filter
((
ele
)
=>
ele
.
id
==
this
.
data
.
id
)[
0
].
title
=
data
.
title
teteacherList
[
t
his
.
data
.
page
].
filter
((
ele
)
=>
ele
.
id
==
this
.
data
.
id
)[
0
].
content
=
data
.
content
teteacherList
[
t
his
.
data
.
page
].
filter
((
ele
)
=>
ele
.
id
==
this
.
data
.
id
)[
0
].
title
=
data
.
title
}
else
{
teteacherList
[
teteacherpage
-
1
].
push
(
data
);
teteacherTotal
+-
1
;
}
prevPage
.
setData
({
teteacherList
:
teteacherList
,
...
...
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