style: css

This commit is contained in:
菜菜酱 2025-09-12 14:19:30 +08:00
parent a1d286f08b
commit 170dc6e244
4 changed files with 20 additions and 19 deletions

View File

@ -159,7 +159,9 @@ export default function TemplateCard({ template, onClick }: TemplateCardProps) {
{/* 模板名称悬浮 - 图片底部 */} {/* 模板名称悬浮 - 图片底部 */}
<View className="name-overlay"> <View className="name-overlay">
<Text className="name-badge">{template.name}</Text> <Text className="name-badge">{template.name}</Text>
</View>
<View className='watermark'>
<Text className="watermark-text">AI生成</Text> <Text className="watermark-text">AI生成</Text>
</View> </View>
</View> </View>

View File

@ -1,5 +1,5 @@
export default definePageConfig({ export default definePageConfig({
navigationBarTitleText: '我的作品', navigationBarTitleText: '',
navigationBarBackgroundColor: '#ffffff', navigationBarBackgroundColor: '#ffffff',
navigationBarTextStyle: 'black', navigationBarTextStyle: 'black',
backgroundColorTop: '#ffffff', backgroundColorTop: '#ffffff',

View File

@ -4,7 +4,15 @@
display: flex; display: flex;
flex-direction: column; flex-direction: column;
} }
.history-header {
padding: 32px 0;
}
.history-title {
font-size: 48px;
font-weight: 500;
color: #1D1F22;
padding: 0 32px;
}
.history-list { .history-list {
height: 100vh; height: 100vh;
padding: 0; padding: 0;
@ -57,20 +65,9 @@
margin-bottom: 16px; margin-bottom: 16px;
} }
.empty-desc {
font-size: 28px;
color: #666;
display: block;
opacity: 0.8;
line-height: 1.6;
white-space: pre-line;
text-align: center;
}
.history-item { .history-item {
background: #fff;
border-radius: 12px; border-radius: 12px;
padding: 20px; padding: 8px 20px;
margin-bottom: 8px; margin-bottom: 8px;
display: flex; display: flex;
align-items: center; align-items: center;
@ -137,7 +134,7 @@
.item-title { .item-title {
font-size: 28px; font-size: 28px;
font-weight: 600; font-weight: 600;
color: #333; color: #1D1F22;
flex: 1; flex: 1;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
@ -236,7 +233,7 @@
.item-time { .item-time {
font-size: 22px; font-size: 22px;
color: #999; color: #B9B9B9;
font-weight: 400; font-weight: 400;
opacity: 0.7; opacity: 0.7;
} }

View File

@ -118,6 +118,9 @@ export default function History() {
return ( return (
<View className="history"> <View className="history">
{/* <View className="history-header">
<Text className="history-title"></Text>
</View> */}
<ScrollView <ScrollView
className="history-list" className="history-list"
scrollY scrollY
@ -141,7 +144,6 @@ export default function History() {
records.map(record => { records.map(record => {
const progress = calculateProgress(record); const progress = calculateProgress(record);
const isGenerating = record.status === 'processing'; const isGenerating = record.status === 'processing';
return ( return (
<View key={record.id} className="history-item" onClick={() => handleItemClick(record)}> <View key={record.id} className="history-item" onClick={() => handleItemClick(record)}>
<View className="item-thumbnail"> <View className="item-thumbnail">
@ -156,7 +158,7 @@ export default function History() {
<View className="thumbnail-glassmorphism" /> <View className="thumbnail-glassmorphism" />
<View className="thumbnail-progress"> <View className="thumbnail-progress">
<View className="thumbnail-progress-circle"> <View className="thumbnail-progress-circle">
<View <View
className="thumbnail-progress-fill" className="thumbnail-progress-fill"
style={{ style={{
background: `conic-gradient(#ff9500 ${progress * 3.6}deg, transparent 0deg)`, background: `conic-gradient(#ff9500 ${progress * 3.6}deg, transparent 0deg)`,