Commit 3ee6f818 authored by 张杰's avatar 张杰

no message

parent f9b785b5
{ {
"pages":[ "pages":[
"pages/home/teacher/index",
"pages/home/reviewer/index", "pages/home/reviewer/index",
"pages/home/teacher/index",
"pages/home/sign/index", "pages/home/sign/index",
"pages/home/parents/index", "pages/home/parents/index",
......
...@@ -238,6 +238,7 @@ Page({ ...@@ -238,6 +238,7 @@ Page({
onLoad: function(options) { onLoad: function(options) {
this.data.studentIds = JSON.parse(options.studentIds) this.data.studentIds = JSON.parse(options.studentIds)
console.log(this.data.studentIds)
// onLoad 比 onReady 更早调用,后者为选中时屏幕闪动一下 // onLoad 比 onReady 更早调用,后者为选中时屏幕闪动一下
this.clazzStatus(); this.clazzStatus();
......
...@@ -24,8 +24,12 @@ Page({ ...@@ -24,8 +24,12 @@ Page({
operateTap: function(event) { operateTap: function(event) {
console.log(event._relatedInfo.anchorTargetText) 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({ wx.navigateTo({
url: '/pages/add_record/index', url: '/pages/add_record/index?studentIds=' + JSON.stringify(studentIds),
}) })
}, },
......
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