Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
K
Kindergarten
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
张杰
Kindergarten
Commits
3ee6f818
Commit
3ee6f818
authored
Dec 29, 2018
by
张杰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
f9b785b5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
3 deletions
+8
-3
app.json
app.json
+2
-2
index.js
pages/add_record/index.js
+1
-0
index.js
pages/home/teacher/index.js
+5
-1
No files found.
app.json
View file @
3ee6f818
{
"pages"
:[
"pages/home/teacher/index"
,
"pages/home/reviewer/index"
,
"pages/home/teacher/index"
,
"pages/home/sign/index"
,
"pages/home/parents/index"
,
...
...
pages/add_record/index.js
View file @
3ee6f818
...
...
@@ -238,6 +238,7 @@ Page({
onLoad
:
function
(
options
)
{
this
.
data
.
studentIds
=
JSON
.
parse
(
options
.
studentIds
)
console
.
log
(
this
.
data
.
studentIds
)
// onLoad 比 onReady 更早调用,后者为选中时屏幕闪动一下
this
.
clazzStatus
();
...
...
pages/home/teacher/index.js
View file @
3ee6f818
...
...
@@ -24,8 +24,12 @@ Page({
operateTap
:
function
(
event
)
{
console
.
log
(
event
.
_relatedInfo
.
anchorTargetText
)
var
studentIds
=
[]
for
(
var
i
=
0
;
i
<
this
.
data
.
records
.
length
;
i
++
)
{
studentIds
.
push
(
this
.
data
.
records
[
i
].
id
)
}
wx
.
navigateTo
({
url
:
'/pages/add_record/index
'
,
url
:
'/pages/add_record/index
?studentIds='
+
JSON
.
stringify
(
studentIds
)
,
})
},
...
...
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