1
This commit is contained in:
@@ -167,12 +167,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: "122px",
|
height: "122px",
|
||||||
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",
|
||||||
}}
|
}}
|
||||||
|
|||||||
Reference in New Issue
Block a user