zs 1 년 전
부모
커밋
39008875fa
1개의 변경된 파일7개의 추가작업 그리고 2개의 파일을 삭제
  1. 7 2
      pagesMy/team/index.js

+ 7 - 2
pagesMy/team/index.js

@@ -25,8 +25,13 @@ Page({
     },
     // 查看
     toView(e) {
-        let item = e.currentTarget.dataset.item
-        wx.navigateTo({ url: '/pagesTeam/apply/index?id=' + item._id })
+        const that = this;
+        if (that.data.user.name) {
+            let item = e.currentTarget.dataset.item
+            wx.navigateTo({ url: '/pagesTeam/apply/index?id=' + item._id })
+        } else {
+            wx.showToast({ title: `请维护基础信息`, icon: 'none' });
+        }
     },
     // 审核
     toExam(e) {