浏览代码

📦 按要求修改志愿者、村落默认图片

快乐的梦鱼 1 月之前
父节点
当前提交
13cdd7d8a1

+ 1 - 0
src/pages/home/components/VillageMyFollow.vue

@@ -9,6 +9,7 @@
             :key="i"
             backgroundColor="transparent"
             :src="item.image"
+            defaultImage="https://xy.wenlvti.net/app_static/images/village/PlaceholderVillage.png"
             :title="item.name"
             :desc="item.address"
             :imageRadius="15"

+ 8 - 1
src/pages/home/components/VillageRankList.vue

@@ -12,7 +12,14 @@
       direction="column"
       @click="handleGoDetails(item)"
     >
-      <Image :src="item.image" width="100%" :height="280" mode="aspectFill" radius="radius.md" />
+      <Image 
+        :src="item.image" 
+        width="100%" 
+        :height="280" 
+        mode="aspectFill" 
+        radius="radius.md" 
+        defaultImage="https://xy.wenlvti.net/app_static/images/village/PlaceholderVillage.jpg"
+      />
       <FlexRow
         position="absolute"
         :left="0"

+ 4 - 1
src/pages/home/components/VillageUserRankList.vue

@@ -22,7 +22,10 @@
         :bottom="item.rank == 1 ? 66 : 40"
         center
       >
-        <Avatar :url="item.image" :size="item.rank == 1 ? 100 : 90" mode="aspectFill" radius="radius.md" />
+        <Avatar 
+          :url="item.image" :size="item.rank == 1 ? 100 : 90" mode="aspectFill" radius="radius.md" 
+          defaultAvatar="https://xy.wenlvti.net/app_static/images/village/PlaceholderVolunteer.png"
+        />
         <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]" />

+ 1 - 0
src/pages/home/village/rank/village.vue

@@ -35,6 +35,7 @@
             </BackgroundBox>
             <Image 
               :src="item.image" 
+              defaultImage="https://xy.wenlvti.net/app_static/images/village/PlaceholderVillage.jpg"
               width="170rpx"
               height="120rpx"
               mode="aspectFill"

+ 1 - 0
src/pages/home/village/rank/volunteer.vue

@@ -33,6 +33,7 @@
           </BackgroundBox>
           <Avatar 
             :url="item.image" 
+            defaultAvatar="https://xy.wenlvti.net/app_static/images/village/PlaceholderVolunteer.png"
             :size="70" 
             mode="aspectFill" 
             radius="radius.md"