style: css

This commit is contained in:
菜菜酱 2025-09-12 16:11:39 +08:00
parent 170dc6e244
commit e6f83fa1ca
9 changed files with 30 additions and 13 deletions

View File

@ -35,6 +35,10 @@ export default defineConfig<'vite'>(async (merge) => {
}, },
copy: { copy: {
patterns: [ patterns: [
{
from: 'src/assets/icons/',
to: 'assets/icons/'
}
], ],
options: { options: {
} }

BIN
src/assets/icons/cloud.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

BIN
src/assets/icons/funnel.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

BIN
src/assets/icons/logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

View File

@ -58,11 +58,18 @@
opacity: 0.8; opacity: 0.8;
} }
.empty-icon-image {
width: 110px;
height:110px;
display: block;
margin: 0 auto;
}
.empty-text { .empty-text {
font-size: 24px; font-size: 24px;
color: #B9B9B9; color: #B9B9B9;
display: block; display: block;
margin-bottom: 16px; margin-top: 32px;
} }
.history-item { .history-item {

View File

@ -3,7 +3,6 @@ import Taro, { navigateTo } from '@tarojs/taro';
import { useEffect, useState } from 'react'; import { useEffect, useState } from 'react';
import { useServerSdk } from '../../hooks/index'; import { useServerSdk } from '../../hooks/index';
import './index.css'; import './index.css';
export default function History() { export default function History() {
const [records, setRecords] = useState<any[]>([]); const [records, setRecords] = useState<any[]>([]);
const [refreshing, setRefreshing] = useState(false); const [refreshing, setRefreshing] = useState(false);
@ -137,7 +136,7 @@ export default function History() {
</View> </View>
) : records.length === 0 ? ( ) : records.length === 0 ? (
<View className="empty-state"> <View className="empty-state">
<Text className="empty-icon"></Text> <Image className="empty-icon-image" src="/assets/icons/cloud.png" />
<Text className="empty-text"></Text> <Text className="empty-text"></Text>
</View> </View>
) : ( ) : (

View File

@ -1,8 +1,8 @@
export default definePageConfig({ export default definePageConfig({
navigationBarTitleText: '游乐场', navigationBarTitleText: '游乐场',
navigationBarBackgroundColor: '#ffffff', navigationBarBackgroundColor: '#F5F6F8',
navigationBarTextStyle: 'black', navigationBarTextStyle: 'black',
backgroundColorTop: '#ffffff', backgroundColorTop: '#F5F6F8',
backgroundColorBottom: '#ffffff', backgroundColorBottom: '#F5F6F8',
backgroundColor: '#ffffff' backgroundColor: '#F5F6F8'
}) })

View File

@ -1,4 +1,4 @@
import { Image, View } from '@tarojs/components'; import { Image, View,Text } from '@tarojs/components';
import { navigateBack } from '@tarojs/taro'; import { navigateBack } from '@tarojs/taro';
import { useEffect, useState } from 'react'; import { useEffect, useState } from 'react';
@ -80,7 +80,10 @@ const GeneratingComponent: React.FC<GeneratingComponentProps> = ({ task }) => {
{/* 状态文本 */} {/* 状态文本 */}
<View className="status-section"> <View className="status-section">
<View className="status-title">...</View> <View className="status-title">
<Image className="status-icon-image" src="/assets/icons/funnel.png" />
<Text className="status-title-text">...</Text>
</View>
<View className="status-subtitle"></View> <View className="status-subtitle"></View>
</View> </View>

View File

@ -264,16 +264,20 @@
margin-bottom: 80px; margin-bottom: 80px;
} }
.status-icon { .status-icon-image {
font-size: 40px; width: 44px;
margin-bottom: 16px; height: 44px;
margin-right: 8px;
} }
.status-title { .status-title {
display: flex;
align-items: center;
justify-content: center;
font-size: 40px; font-size: 40px;
font-weight: 500; font-weight: 500;
color: #1D1F22; color: #1D1F22;
margin-bottom: 12px; margin-bottom: 24px;
} }
.status-subtitle { .status-subtitle {