From dd8ef90009ff67a7379b50e2861f917579f0f855 Mon Sep 17 00:00:00 2001
From: litian <C21AF165>
Date: 星期一, 18 三月 2024 15:07:52 +0800
Subject: [PATCH] jiaoshi

---
 packageDomain/pages/teacherCertification/index.js |   29 ++++++++++++++++++++++-------
 1 files changed, 22 insertions(+), 7 deletions(-)

diff --git a/packageDomain/pages/teacherCertification/index.js b/packageDomain/pages/teacherCertification/index.js
index af25488..36ec30f 100644
--- a/packageDomain/pages/teacherCertification/index.js
+++ b/packageDomain/pages/teacherCertification/index.js
@@ -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() {
-
   },
 
   /**

--
Gitblit v1.9.1