1.2.0版本

This commit is contained in:
2026-08-04 11:07:38 +08:00
parent a091664cee
commit bf8ce482e4
78 changed files with 1998 additions and 863 deletions
+2 -4
View File
@@ -3,7 +3,6 @@ import Taro from '@tarojs/taro'
import { useState } from 'react'
import './index.scss'
import { CATEGORIES } from '../../utils/productConfig'
import ThemeToggle from '../../components/ThemeToggle'
import { useThemeContext } from '../../context/ThemeContext'
// 成品展示配图(从 img 里取对应实物图)
@@ -26,7 +25,7 @@ const PRODUCT_IMG_MAP: Record<string, string> = {
}
export default function Index() {
const { theme } = useThemeContext()
const { theme, resolvedTheme } = useThemeContext()
const [searchKey, setSearchKey] = useState('')
const navigateToProduct = (categoryId: string) => {
@@ -44,9 +43,8 @@ export default function Index() {
}
return (
<View className={`theme-${theme}`}>
<View className={`theme-${resolvedTheme}`}>
<View className='index-page'>
<ThemeToggle />
{/* 顶部标题栏 */}
<View className='header-bar'>