Преглед изворни кода

💄 style(index): 更新默认头像和欢迎页图标

- 替换默认头像占位图为真实用户头像图片
- 更新欢迎页LOGO图片为更美观的图像
- 注释掉可能导致图片变形的aspectFit模式
yourname пре 4 месеци
родитељ
комит
b1d3644ee6
1 измењених фајлова са 3 додато и 3 уклоњено
  1. 3 3
      mini/src/pages/index/index.tsx

+ 3 - 3
mini/src/pages/index/index.tsx

@@ -64,7 +64,7 @@ export default function Index() {
               <View className="user-avatar">
                 <Image
                   className="avatar-image"
-                  src={user.avatar || 'https://via.placeholder.com/160x160'}
+                  src={user.avatar || 'https://images.unsplash.com/photo-1494790108755-2616b612b786?w=160&h=160&fit=crop&crop=face'}
                   mode="aspectFill"
                 />
               </View>
@@ -125,8 +125,8 @@ export default function Index() {
           <View className="welcome-header">
             <Image
               className="welcome-icon"
-              src="https://via.placeholder.com/192x192/1890ff/ffffff?text=LOGO"
-              mode="aspectFit"
+              src="https://images.unsplash.com/photo-1551650975-87deedd944c3?w=192&h=192&fit=crop"
+              // mode="aspectFit"
             />
             <Text className="welcome-title">欢迎使用小程序</Text>
             <Text className="welcome-subtitle">请先登录以使用完整功能</Text>