提交 51d723a4 作者: 龚洪江

修复:产品商城,租赁筛选

上级 a5279896
/** @type {import('next').NextConfig} */ /** @type {import('next').NextConfig} */
let distDir = '.dev' //默认输出目录 let distDir = '.dev'; //默认输出目录
if (process.env.NODE_ENV === 'production') { if (process.env.NODE_ENV === 'production') {
//生产环境用另一个目录构建,防止与dev冲突 //生产环境用另一个目录构建,防止与dev冲突
distDir = '.next' distDir = '.next';
} }
const nextConfig = { const nextConfig = {
...@@ -21,16 +21,16 @@ const nextConfig = { ...@@ -21,16 +21,16 @@ const nextConfig = {
destination: '/home', destination: '/home',
permanent: true, permanent: true,
}, },
] ];
}, },
async rewrites() { async rewrites() {
return [ return [
{ {
source: '/local/:path*', source: '/local/:path*',
//destination: "https://iuav.mmcuav.cn/:path*", // destination: 'https://iuav.mmcuav.cn/:path*',
destination: 'https://test.iuav.shop/:path*', destination: 'https://test.iuav.shop/:path*',
}, },
] ];
}, },
images: { images: {
remotePatterns: [ remotePatterns: [
...@@ -45,6 +45,6 @@ const nextConfig = { ...@@ -45,6 +45,6 @@ const nextConfig = {
], ],
}, },
pageExtensions: ['page.tsx', 'page.ts', 'page.jsx', 'page.js'], pageExtensions: ['page.tsx', 'page.ts', 'page.jsx', 'page.js'],
} };
module.exports = nextConfig module.exports = nextConfig;
...@@ -112,7 +112,10 @@ export default function EquipmentLeasing(props: Props) { ...@@ -112,7 +112,10 @@ export default function EquipmentLeasing(props: Props) {
}, [abort]); }, [abort]);
const onFilterChange = (filterResult: FilterResult, adapterFilterResult: AdapterResult) => { const onFilterChange = (filterResult: FilterResult, adapterFilterResult: AdapterResult) => {
console.log('filterResult', filterResult, adapterFilterResult); setPageParams({
...pageParams,
pageNo: 1,
});
adapterFilterResult.categoryId = adapterFilterResult.categoryId?.map((item) => item.id); adapterFilterResult.categoryId = adapterFilterResult.categoryId?.map((item) => item.id);
setFilterResult(adapterFilterResult); setFilterResult(adapterFilterResult);
}; };
......
...@@ -32,6 +32,9 @@ export const Box = styled.div` ...@@ -32,6 +32,9 @@ export const Box = styled.div`
font-weight: bold; font-weight: bold;
color: #333333; color: #333333;
line-height: 24px; line-height: 24px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
} }
} }
&-right { &-right {
......
...@@ -70,7 +70,10 @@ export default function Mall(props: Props) { ...@@ -70,7 +70,10 @@ export default function Mall(props: Props) {
}, []); }, []);
const onFilterChange = (filterResult: FilterResult, adapterFilterResult: AdapterResult) => { const onFilterChange = (filterResult: FilterResult, adapterFilterResult: AdapterResult) => {
console.log('filterResult', filterResult, adapterFilterResult); setPageParams({
...pageParams,
pageNo: 1,
});
adapterFilterResult.categoryId = adapterFilterResult.categoryId?.map((item) => item.id); adapterFilterResult.categoryId = adapterFilterResult.categoryId?.map((item) => item.id);
setFilterResult(adapterFilterResult); setFilterResult(adapterFilterResult);
}; };
...@@ -103,8 +106,6 @@ export default function Mall(props: Props) { ...@@ -103,8 +106,6 @@ export default function Mall(props: Props) {
alt='' alt=''
src={item.images} src={item.images}
className={styles.img} className={styles.img}
width={116}
height={116}
preview={false} preview={false}
></Image> ></Image>
</div> </div>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论