提交 100c2655 作者: 余乾开

Merge branch 'feature/chuck' into develop

...@@ -18,4 +18,4 @@ patches: ...@@ -18,4 +18,4 @@ patches:
images: images:
- name: REGISTRY/NAMESPACE/IMAGE:TAG - name: REGISTRY/NAMESPACE/IMAGE:TAG
newName: mmc-registry.cn-shenzhen.cr.aliyuncs.com/sharefly/web newName: mmc-registry.cn-shenzhen.cr.aliyuncs.com/sharefly/web
newTag: 18a408695e671822e9b91f298e42cdb52a870360 newTag: bfd86338f2723db513e880683b5e4281a1b047b8
/** @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://www.iuav.shop/: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);
}; };
......
...@@ -8,8 +8,8 @@ export default function RotationChart() { ...@@ -8,8 +8,8 @@ export default function RotationChart() {
'https://pad-video-x.oss-cn-shenzhen.aliyuncs.com/file/1(1).jpg', 'https://pad-video-x.oss-cn-shenzhen.aliyuncs.com/file/1(1).jpg',
'https://pad-video-x.oss-cn-shenzhen.aliyuncs.com/file/2(1).jpg', 'https://pad-video-x.oss-cn-shenzhen.aliyuncs.com/file/2(1).jpg',
'https://pad-video-x.oss-cn-shenzhen.aliyuncs.com/file/3(1).jpg', 'https://pad-video-x.oss-cn-shenzhen.aliyuncs.com/file/3(1).jpg',
'https://pad-video-x.oss-cn-shenzhen.aliyuncs.com/file/4(1).jpg', 'https://pad-video-x.oss-cn-shenzhen.aliyuncs.com/file/a0dc9062-cef8-44ce-bbba-ee82a0d5fe80.jpg',
'https://pad-video-x.oss-cn-shenzhen.aliyuncs.com/file/5(1).jpg', 'https://pad-video-x.oss-cn-shenzhen.aliyuncs.com/file/95843a99-e8bf-4156-b47a-cf3720f4a885.jpg',
]; ];
return ( return (
<Box> <Box>
......
...@@ -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 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论