zs hai 1 ano
pai
achega
39008875fa
Modificáronse 1 ficheiros con 7 adicións e 2 borrados
  1. 7 2
      pagesMy/team/index.js

+ 7 - 2
pagesMy/team/index.js

@@ -25,8 +25,13 @@ Page({
     },
     },
     // 查看
     // 查看
     toView(e) {
     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) {
     toExam(e) {