提交 100c2655 作者: 余乾开

Merge branch 'feature/chuck' into develop

......@@ -18,4 +18,4 @@ patches:
images:
- name: REGISTRY/NAMESPACE/IMAGE:TAG
newName: mmc-registry.cn-shenzhen.cr.aliyuncs.com/sharefly/web
newTag: 18a408695e671822e9b91f298e42cdb52a870360
newTag: bfd86338f2723db513e880683b5e4281a1b047b8
/** @type {import('next').NextConfig} */
let distDir = '.dev' //默认输出目录
let distDir = '.dev'; //默认输出目录
if (process.env.NODE_ENV === 'production') {
//生产环境用另一个目录构建,防止与dev冲突
distDir = '.next'
distDir = '.next';
}
const nextConfig = {
......@@ -21,16 +21,16 @@ const nextConfig = {
destination: '/home',
permanent: true,
},
]
];
},
async rewrites() {
return [
{
source: '/local/:path*',
//destination: "https://iuav.mmcuav.cn/:path*",
destination: 'https://test.iuav.shop/:path*',
destination: 'https://www.iuav.shop/:path*',
// destination: 'https://test.iuav.shop/:path*',
},
]
];
},
images: {
remotePatterns: [
......@@ -45,6 +45,6 @@ const nextConfig = {
],
},
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) {
}, [abort]);
const onFilterChange = (filterResult: FilterResult, adapterFilterResult: AdapterResult) => {
console.log('filterResult', filterResult, adapterFilterResult);
setPageParams({
...pageParams,
pageNo: 1,
});
adapterFilterResult.categoryId = adapterFilterResult.categoryId?.map((item) => item.id);
setFilterResult(adapterFilterResult);
};
......
......@@ -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/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/4(1).jpg',
'https://pad-video-x.oss-cn-shenzhen.aliyuncs.com/file/5(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/95843a99-e8bf-4156-b47a-cf3720f4a885.jpg',
];
return (
<Box>
......
......@@ -32,6 +32,9 @@ export const Box = styled.div`
font-weight: bold;
color: #333333;
line-height: 24px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
}
&-right {
......
......@@ -70,7 +70,10 @@ export default function Mall(props: Props) {
}, []);
const onFilterChange = (filterResult: FilterResult, adapterFilterResult: AdapterResult) => {
console.log('filterResult', filterResult, adapterFilterResult);
setPageParams({
...pageParams,
pageNo: 1,
});
adapterFilterResult.categoryId = adapterFilterResult.categoryId?.map((item) => item.id);
setFilterResult(adapterFilterResult);
};
......@@ -103,8 +106,6 @@ export default function Mall(props: Props) {
alt=''
src={item.images}
className={styles.img}
width={116}
height={116}
preview={false}
></Image>
</div>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论