Explorar el Código

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

wangsisi hace 2 días
padre
commit
b49546a736
Se han modificado 1 ficheros con 7 adiciones y 0 borrados
  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',
     });