闫增涛
2024-03-19 33615d230f898d8dc48c3baed0570f51aef26330
packageDomain/pages/teacherCertification/index.js
@@ -1,6 +1,6 @@
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({
  /**
@@ -32,6 +32,7 @@
    userId: '',
    fileList: [],
    protocolTxt: '', //教师协议
    protocolShow: false,
    editState: true,
    reasonTxt: ""
  },
@@ -39,10 +40,10 @@
  /**
   * 生命周期函数--监听页面加载
   */
  onLoad(options) {
    console.log(options, 111);
  onLoad() {
    this.getpositionalTitle();
    this.getAgreement();
    if (wx.getStorageSync(app.config.tokenKey)) {
      this.getUserRole()
    }
@@ -78,7 +79,6 @@
  getUserRole() {
    app.MG.identity.getCurrentAppUser().then((res) => {
      if (res) {
        this.getType()
        this.setData({
          userId: res.userId
@@ -128,10 +128,10 @@
    })
  },
  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,
      })
@@ -253,6 +253,7 @@
      }
    })
  },
  //选择职称
  onTeachPicker() {
    this.setData({ teachVisible: true });
@@ -359,12 +360,26 @@
      fileList,
    });
  },
  onChange() {
  },
  //查看教师认证服务
  viewContent() {
    this.setData({
      protocolShow: true,
    });
  },
  onVisibleChange(e) {
    this.setData({
      protocolShow: e.detail.visible,
    });
  },
  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh() {
  },
  /**