From 33615d230f898d8dc48c3baed0570f51aef26330 Mon Sep 17 00:00:00 2001
From: 闫增涛 <1829501689@qq.com>
Date: 星期二, 19 三月 2024 09:39:29 +0800
Subject: [PATCH] 组卷购买

---
 packageDomain/pages/teacherCertification/index.js |   33 ++++++++++++++++++++++++---------
 1 files changed, 24 insertions(+), 9 deletions(-)

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

--
Gitblit v1.9.1