diff --git a/config/prod.ts b/config/prod.ts index 448eecb..1b8e569 100644 --- a/config/prod.ts +++ b/config/prod.ts @@ -1,35 +1,9 @@ -import type { UserConfigExport } from "@tarojs/cli" +import type { UserConfigExport } from '@tarojs/cli'; export default { mini: {}, h5: { // 确保产物为 es5 legacy: true, - /** - * WebpackChain 插件配置 - * @docs https://github.com/neutrinojs/webpack-chain - */ - // webpackChain (chain) { - // /** - // * 如果 h5 端编译后体积过大,可以使用 webpack-bundle-analyzer 插件对打包体积进行分析。 - // * @docs https://github.com/webpack-contrib/webpack-bundle-analyzer - // */ - // chain.plugin('analyzer') - // .use(require('webpack-bundle-analyzer').BundleAnalyzerPlugin, []) - // /** - // * 如果 h5 端首屏加载时间过长,可以使用 prerender-spa-plugin 插件预加载首页。 - // * @docs https://github.com/chrisvfritz/prerender-spa-plugin - // */ - // const path = require('path') - // const Prerender = require('prerender-spa-plugin') - // const staticDir = path.join(__dirname, '..', 'dist') - // chain - // .plugin('prerender') - // .use(new Prerender({ - // staticDir, - // routes: [ '/pages/index/index' ], - // postProcess: (context) => ({ ...context, outputPath: path.join(staticDir, 'index.html') }) - // })) - // } - } -} satisfies UserConfigExport<'vite'> + }, +} satisfies UserConfigExport<'vite'>; diff --git a/src/app.config.ts b/src/app.config.ts index 1020ac7..1fb83e9 100644 --- a/src/app.config.ts +++ b/src/app.config.ts @@ -1,40 +1,39 @@ - export default defineAppConfig({ pages: [ - 'pages/home/index', // 新的模板卡片首页 - 'pages/history/index', // 历史记录页面 - 'pages/generate/index', // 生成处理页面 - 'pages/result/index' + 'pages/home/index', // 新的模板卡片首页 + 'pages/history/index', // 历史记录页面 + 'pages/generate/index', // 生成处理页面 + 'pages/result/index', ], tabBar: { - color: '#999999', - selectedColor: '#FFD67A', + color: '#8E9BAE', + selectedColor: '#1D1F22', backgroundColor: '#FFFFFF', borderStyle: 'black', list: [ { pagePath: 'pages/home/index', text: '首页', - iconPath: 'assets/icons/default/shouye-weixuanzhong.png', - selectedIconPath: 'assets/icons/activate/shouye.png' + iconPath: 'assets/icons/playground.png', + selectedIconPath: 'assets/icons/playground-selected.png', }, { pagePath: 'pages/history/index', text: '历史记录', - iconPath: 'assets/icons/default/fuwuzixun-weixuanzhong.png', - selectedIconPath: 'assets/icons/activate/shoulijindu.png' - } - ] + iconPath: 'assets/icons/user.png', + selectedIconPath: 'assets/icons/user-selected.png', + }, + ], }, window: { backgroundTextStyle: 'light', navigationBarBackgroundColor: '#fff', navigationBarTitleText: '图生视频', - navigationBarTextStyle: 'black' + navigationBarTextStyle: 'black', }, permission: { 'scope.album': { - desc: '用于保存生成的图片和视频到相册' - } + desc: '用于保存生成的图片和视频到相册', + }, }, -}) +}); diff --git a/src/assets/icons/default/shouye-weixuanzhong.png b/src/assets/icons/default/shouye-weixuanzhong.png deleted file mode 100644 index 6e7291a..0000000 Binary files a/src/assets/icons/default/shouye-weixuanzhong.png and /dev/null differ diff --git a/src/assets/icons/default/shouye.png b/src/assets/icons/default/shouye.png deleted file mode 100644 index 3bcc91e..0000000 Binary files a/src/assets/icons/default/shouye.png and /dev/null differ diff --git a/src/assets/icons/playground-selected.png b/src/assets/icons/playground-selected.png new file mode 100644 index 0000000..6966da7 Binary files /dev/null and b/src/assets/icons/playground-selected.png differ diff --git a/src/assets/icons/playground.png b/src/assets/icons/playground.png new file mode 100644 index 0000000..2705273 Binary files /dev/null and b/src/assets/icons/playground.png differ diff --git a/src/assets/icons/user-selected.png b/src/assets/icons/user-selected.png new file mode 100644 index 0000000..283e80a Binary files /dev/null and b/src/assets/icons/user-selected.png differ diff --git a/src/assets/icons/user.png b/src/assets/icons/user.png new file mode 100644 index 0000000..25d9fac Binary files /dev/null and b/src/assets/icons/user.png differ