12345678910111213141516171819202122232425 |
- 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);
- }
- });
|