From a9abe435bdc23bda340c84f45deb363eccf907a7 Mon Sep 17 00:00:00 2001
From: litian <C21AF165>
Date: 星期二, 02 四月 2024 10:06:17 +0800
Subject: [PATCH] 个人中心

---
 packageDomain/pages/teacherCertification/index.js |   17 ++++++++++++++++-
 1 files changed, 16 insertions(+), 1 deletions(-)

diff --git a/packageDomain/pages/teacherCertification/index.js b/packageDomain/pages/teacherCertification/index.js
index 9ed9576..afaf20a 100644
--- a/packageDomain/pages/teacherCertification/index.js
+++ b/packageDomain/pages/teacherCertification/index.js
@@ -45,6 +45,7 @@
     editState: true,
     reasonTxt: "",
     reasonTxtShow: false,
+    skeletonLoding: true,
   },
 
   /**
@@ -99,7 +100,8 @@
       if (res) {
         this.getType()
         this.setData({
-          userId: res.userId
+          userId: res.userId,
+          skeletonLoding: true,
         })
         let nickNameData = res.infoList.find((item) => item.type == 'nickName')
         let teacherRole = res.roleLinks.find((item) => item.role.refCode == 'teacher')
@@ -185,6 +187,7 @@
             topicId: resData.id,
             topicMessageList: resData.cmsItemDataList,
             teachText: info.positionalTitle,
+            skeletonLoding: false,
           })
           if (resData.feedBack != null) {
             that.setData({
@@ -222,6 +225,10 @@
             }
           }
 
+        } else {
+          that.setData({
+            skeletonLoding: false,
+          });
         }
       } catch (error) {}
     })
@@ -355,6 +362,14 @@
   // 涓婁紶鍥剧墖浜嬩欢
   chooseImg(e) {
     var that = this;
+    if (that.data.imgPics.length == 4) {
+      wx.showToast({
+        title: "宸ヤ綔璇佹枃浠朵笉瓒呰繃5涓紒",
+        icon: 'none',
+        duration: 1000,
+      })
+      return
+    }
     wx.chooseMedia({
       count: 1,
       sizeType: ['original', 'compressed'], // 鍙互鎸囧畾鏄師鍥捐繕鏄帇缂╁浘锛岄粯璁や簩鑰呴兘鏈�

--
Gitblit v1.9.1