浏览代码

🎨 修改主页细节问题

快乐的梦鱼 1 月之前
父节点
当前提交
fa1b477e98
共有 3 个文件被更改,包括 17 次插入7 次删除
  1. 2 2
      src/pages/home/components/VillageUserRankList.vue
  2. 4 1
      src/pages/home/index.vue
  3. 11 4
      src/pages/home/village/introd/card.vue

+ 2 - 2
src/pages/home/components/VillageUserRankList.vue

@@ -21,7 +21,7 @@
         position="absolute"
         :left="15"
         :right="15"
-        :bottom="item.rank == 1 ? 66 : 40"
+        :bottom="item.rank == 1 ? 62 : 36"
         center
       >
         <Avatar 
@@ -30,7 +30,7 @@
         />
         <Height :height="item.rank == 1 ? 15 : 10" />
         <Text fontConfig="h4" :text="item.title" color="white" />
-        <Text fontConfig="h2" :text="item.score" :color="scoreColors[item.rank - 1]" />
+        <Text fontConfig="h2" :text="item.score" :color="scoreColors[item.rank - 1]" fontFamily="SongtiSCBlack" />
       </FlexCol>
     </Touchable>
   </FlexRow>

+ 4 - 1
src/pages/home/index.vue

@@ -138,7 +138,10 @@
       <HomeTitle title="志愿者排名" showMore :lightCount="3" @moreClicked="navTo('/pages/home/village/rank/volunteer', {
         regionId: currentRegion ?? undefined,
       })" />
-      <VillageUserRankList :list="villageUserRankListLoader.content.value ?? []" />
+      <VillageUserRankList 
+        :list="villageUserRankListLoader.content.value ?? []" 
+        @goDetails="navTo('/pages/home/village/volunteer/detail', { id: $event.id })"
+      />
 
       <HomeTitle title="精选记忆" />
     </FlexCol>

+ 11 - 4
src/pages/home/village/introd/card.vue

@@ -147,11 +147,18 @@
     </BackgroundBox>
 
     <!-- 排行榜 -->
-    <HomeTitle title="排行榜" showMore @moreClicked="navTo('/pages/home/village/rank/volunteer', {
-      villageId: villageStore.currentVillage?.id ?? undefined,
-    })" />
+    <HomeTitle 
+      title="排行榜" 
+      showMore 
+      @moreClicked="navTo('/pages/home/village/rank/volunteer', {
+        villageId: villageStore.currentVillage?.id ?? undefined,
+      })" 
+    />
     <RoundTags v-model:active="rankActiveTag" :tags="['乡源果', '志愿者', '乡源光']" />
-    <VillageUserRankList :list="villageUserRankListLoader.content.value ?? []" />
+    <VillageUserRankList 
+      :list="villageUserRankListLoader.content.value ?? []" 
+      @goDetails="navTo('../volunteer/detail', { id: $event.id })"
+    />
 
     <!-- 魅力乡源 -->
     <HomeTitle title="魅力乡源" showMore @moreClicked="handleGoCollect()">