Quellcode durchsuchen

🎨 优化地图显示细节

快乐的梦鱼 vor 2 Wochen
Ursprung
Commit
4810c8a16d

+ 1 - 1
src/pages/home/components/VillageMiniMap.vue

@@ -75,7 +75,7 @@ const props = withDefaults(defineProps<{
 });
 
 const isValidLonlat = computed(() => {
-  return (!isValidLonLat(props.lonlat));
+  return (isValidLonLat(props.lonlat));
 });
 
 const themeContext = useTheme();

+ 1 - 1
src/pages/home/village/rank/components/RankVillageItem.vue

@@ -43,7 +43,7 @@
           width="100"
         >
           <Image src="https://xy.wenlvti.net/app_static/images/village/IconLight.png" width="30rpx" height="30rpx" mode="aspectFill" />
-          <Text :text="points" fontConfig="contentText" />
+          <Text :text="points || 0" fontConfig="contentText" />
         </BackgroundBox>
       </FlexRow>
     </Touchable>

+ 2 - 2
src/pages/home/village/rank/village.vue

@@ -55,8 +55,8 @@ async function handleGoDetails(item: { id: number }) {
   const details = await LightVillageApi.getVillageDetails(item.id);
   villageStore.setCurrentVillage(details);
   await waitTimeOut(100);
-  backAndCallOnPageBack('villageRank', {
-    type: 'goVillage'
+  backAndCallOnPageBack('goVillage', {
+    id: item.id,
   })
 }
 </script>

+ 2 - 2
src/pages/home/village/volunteer/detail.vue

@@ -19,7 +19,7 @@
             <H3>{{ infoLoader.content.value.name }}</H3>
             <FlexRow align="center" gap="gap.md">
               <Text text="个人等级" fontConfig="contentText" />
-              <Tag :text="infoLoader.content.value.level + '级'" />
+              <Tag :text="(infoLoader.content.value.level || 0) + '级'" />
             </FlexRow>
             <FlexRow align="center" gap="gap.md">
               <Text text="加入村社" fontConfig="contentText" />
@@ -28,7 +28,7 @@
             <Divider />
             <FlexRow align="center" gap="gap.md">
               <Text text="志愿者文化积分" fontConfig="contentText" />
-              <Text :text="infoLoader.content.value.points" fontConfig="lightGoldTitle" />
+              <Text :text="infoLoader.content.value.points || 0" fontConfig="lightGoldTitle" />
             </FlexRow>
 
           </FlexCol>