import Api from "../../model/api"; import {getDataSet} from "../../utils/utils"; import Route from "../../model/route"; import {htmlTypes} from "../../model/enum"; Page({ data: { list: [], teamId: '' }, onLoad: async function (options) { const {teamId} = options; this.data.teamId = teamId; let res = await Api.getBook({ teamId: this.data.teamId }, true); this.setData({ list: res.rows, teamId }) }, click(e) { let index = getDataSet(e, "index"); Route.toStudentBook(htmlTypes.STUDENT_BOOK, "ć­Šć‘˜æ‰‹ć†Œ", this.data.teamId, index); } });