This commit is contained in:
李瑞
2026-02-07 01:00:17 +08:00

View File

@@ -184,12 +184,20 @@ const ListContainer = (props) => {
return ( return (
<View <View
key={item.id || `banner-${index}`} key={item.id || `banner-${index}`}
onClick={() => {
const target = item.banner_detail_url;
if (target) {
(Taro as any).navigateTo({
url: `/other_pages/bannerDetail/index?img=${encodeURIComponent(target)}`,
});
}
}}
style={{ style={{
height: "100px", height: "100px",
overflow: "hidden", overflow: "hidden",
borderRadius: "12px", borderRadius: "12px",
backgroundImage: `url(${item.banner_image_url})`, backgroundImage: `url(${item.banner_image_url})`,
backgroundSize: "contain", backgroundSize: "cover",
backgroundPosition: "center", backgroundPosition: "center",
backgroundRepeat: "no-repeat", backgroundRepeat: "no-repeat",
}} }}