| | |
| | | const app = getApp(); |
| | | import tool from "../../assets/js/toolClass.js"; |
| | | import { getTopicMsgCmsItemFile } from '../../assets/js/middleGround/tool.js' |
| | | import tool from "../../../assets/js/toolClass.js"; |
| | | import { getTopicMsgCmsItemFile } from '../../../assets/js/middleGround/tool.js' |
| | | Page({ |
| | | |
| | | /** |
| | |
| | | userId: '', |
| | | fileList: [], |
| | | protocolTxt: '', //教师协议 |
| | | protocolShow: false, |
| | | editState: true, |
| | | reasonTxt: "" |
| | | }, |
| | |
| | | /** |
| | | * 生命周期函数--监听页面加载 |
| | | */ |
| | | onLoad(options) { |
| | | console.log(options, 111); |
| | | onLoad() { |
| | | this.getpositionalTitle(); |
| | | this.getAgreement(); |
| | | |
| | | if (wx.getStorageSync(app.config.tokenKey)) { |
| | | this.getUserRole() |
| | | } |
| | |
| | | getUserRole() { |
| | | app.MG.identity.getCurrentAppUser().then((res) => { |
| | | if (res) { |
| | | |
| | | this.getType() |
| | | this.setData({ |
| | | userId: res.userId |
| | |
| | | }) |
| | | }, |
| | | getType() { |
| | | const data = { |
| | | app.MG.resource.getCmsTypeByRefCode({ |
| | | refCodes: ['jsek_teacherCertification'] |
| | | } |
| | | app.MG.resource.getCmsTypeByRefCode(data).then((res) => { |
| | | }).then((res) => { |
| | | console.log(res) |
| | | this.setData({ |
| | | worksInfo: res[0].cmsTypeLinks[0].children, |
| | | }) |
| | |
| | | } |
| | | }) |
| | | }, |
| | | |
| | | //选择职称 |
| | | onTeachPicker() { |
| | | this.setData({ teachVisible: true }); |
| | |
| | | fileList, |
| | | }); |
| | | }, |
| | | onChange() { |
| | | |
| | | }, |
| | | //查看教师认证服务 |
| | | viewContent() { |
| | | this.setData({ |
| | | protocolShow: true, |
| | | }); |
| | | }, |
| | | onVisibleChange(e) { |
| | | this.setData({ |
| | | protocolShow: e.detail.visible, |
| | | }); |
| | | |
| | | }, |
| | | |
| | | /** |
| | | * 页面相关事件处理函数--监听用户下拉动作 |
| | | */ |
| | | onPullDownRefresh() { |
| | | |
| | | }, |
| | | |
| | | /** |