소스 검색

Merge branch 'farmer' of http://www.sysuimars.cn:3000/feiniao/feiniao-farm-h5 into farmer

wangsisi 2 일 전
부모
커밋
b49546a736
1개의 변경된 파일7개의 추가작업 그리고 0개의 파일을 삭제
  1. 7 0
      src/views/old_mini/growth_report/index.vue

+ 7 - 0
src/views/old_mini/growth_report/index.vue

@@ -235,7 +235,14 @@ const closeSwipeGuide = () => {
     showSwipeGuide.value = false;
 };
 
+const userInfo = localStorage.getItem("localUserInfo");
+const userInfoObj = userInfo ? JSON.parse(userInfo) : {};
+
 const handleLockClick = () => {
+    if (userInfoObj.tel) {
+        router.push(`/create_farm?from=growth_report`);
+        return;
+    }
     wx.miniProgram.navigateTo({
         url: '/pages/subPages/phone_auth/index',
     });