Ver Fonte

feat:隐藏小程序部分页面

wangsisi há 12 horas atrás
pai
commit
0656001ea5

+ 2 - 2
src/App.vue

@@ -25,7 +25,7 @@
     <Tabbar class="tabbar" route fixed v-show="showTab" active-color="#2199F8" inactive-color="#898989">
         <!-- 托管农户:首页、农情档案、农事记录 -->
         <!-- <template v-if="userType == 2"> -->
-            <tabbar-item replace to="/growth_report">
+            <!-- <tabbar-item replace to="/growth_report">
                 <span>{{ t("tabbar.growthReport") }}</span>
                 <template #icon="props">
                     <img
@@ -48,7 +48,7 @@
                         "
                     />
                 </template>
-            </tabbar-item>
+            </tabbar-item> -->
             <tabbar-item replace to="/agri_record">
                 <span>{{ t("tabbar.agriRecord") }}</span>
                 <template #icon="props">

+ 3 - 1
src/components/pageComponents/ArchivesFarmTimeLine.vue

@@ -565,7 +565,9 @@ const getFarmWorkPlan = () => {
     const params = {
         farm_id: props.farmId,
         is_suyuan: props.activeFarmWorkTab,
-        crop_variety: JSON.parse(localStorage.getItem("selectedFarmData")).farm_variety,
+        crop_variety: Number(props.farmId) === 329
+            ? 4
+            : JSON.parse(localStorage.getItem("selectedFarmData")).farm_variety,
     };
     VE_API.monitor.getPhenologyList(params)
         .then(({ data, code }) => {

+ 2 - 2
src/components/weatherInfo.vue

@@ -64,7 +64,7 @@
                     </div>
                 </div>
 
-                <div v-if="!hasWeather" class="report-tabs">
+                <!-- <div v-if="!hasWeather" class="report-tabs">
                     <div
                         v-for="(item, index) in reportTabs"
                         :key="item.key"
@@ -74,7 +74,7 @@
                         <img class="report-tab-icon" :src="getReportTabIcon(index)" alt="" />
                         <span class="report-tab-label">{{ getReportTabLabel(item) }}</span>
                     </div>
-                </div>
+                </div> -->
             </div>
             <!-- <div class="weather-icon" v-else>
                 <img :src="`https://birdseye-img.sysuimars.com/weather/${currentWeather.iconDay}.svg`" alt="" />

+ 2 - 1
src/views/old_mini/agri_record/index.vue

@@ -230,7 +230,8 @@ const changeGarden = (data) => {
         position: relative;
         height: 100%;
         padding: 12px;
-        padding-top: 100px;
+        // padding-top: 100px;
+        padding-top: 53px;
         display: flex;
         flex-direction: column;
         min-height: 0;

+ 1 - 1
src/views/old_mini/dev_login.vue

@@ -16,7 +16,7 @@ let userId = route.query.userId;
 
 onMounted(async () => {
     const token = route.query.token
-    let targetUrl = route.query.targetUrl ? route.query.targetUrl : '/growth_report';
+    let targetUrl = route.query.targetUrl ? route.query.targetUrl : '/agri_record';
     
     // 先从 session 获取保存的角色
     let savedRole = null;