|
|
|
@ -147,7 +147,7 @@ export default function SingleType() { |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}, [typeCode]) |
|
|
|
|
|
|
|
|
|
const handleChooseTypeType = (index: number) => { |
|
|
|
@ -164,48 +164,40 @@ export default function SingleType() { |
|
|
|
|
url: '/pages/ListenDetail/index?prdtId=' + prdtId |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return ( |
|
|
|
|
<View className='singleType_bg'> |
|
|
|
|
<View className='header'> |
|
|
|
|
<View
|
|
|
|
|
<View |
|
|
|
|
className='back' |
|
|
|
|
onClick={handleBack} |
|
|
|
|
></View> |
|
|
|
|
<View className='title'>{pageTitle}</View>
|
|
|
|
|
<View className='title'>{pageTitle}</View> |
|
|
|
|
</View> |
|
|
|
|
<View className='main_context'> |
|
|
|
|
<View className='type_container'> |
|
|
|
|
<ScrollView
|
|
|
|
|
<ScrollView |
|
|
|
|
className='typelist' |
|
|
|
|
scrollY |
|
|
|
|
scrollWithAnimation
|
|
|
|
|
>
|
|
|
|
|
scrollWithAnimation |
|
|
|
|
> |
|
|
|
|
{ |
|
|
|
|
typeList.map((item: any, index: number) => ( |
|
|
|
|
<View |
|
|
|
|
key={index} |
|
|
|
|
className='item' |
|
|
|
|
className={`item ${choooseTypeType === index ? 'active' : choooseTypeType === index + 1 ? 'active-prev' : choooseTypeType === index - 1 ? 'active-next' : ''}`} |
|
|
|
|
onClick={()=>handleChooseTypeType(index)} |
|
|
|
|
> |
|
|
|
|
{ |
|
|
|
|
choooseTypeType === index && <View className='line'></View> |
|
|
|
|
} |
|
|
|
|
<View
|
|
|
|
|
className='title' |
|
|
|
|
style={choooseTypeType === index? {color: '#3ba366'} : {}}
|
|
|
|
|
>{item.class_name}</View> |
|
|
|
|
</View> |
|
|
|
|
>{item.class_name}</View> |
|
|
|
|
)) |
|
|
|
|
} |
|
|
|
|
</ScrollView> |
|
|
|
|
</View> |
|
|
|
|
|
|
|
|
|
<View className='product_container'> |
|
|
|
|
<ScrollView
|
|
|
|
|
<ScrollView |
|
|
|
|
className='product' |
|
|
|
|
scrollY |
|
|
|
|
scrollWithAnimation
|
|
|
|
|
scrollWithAnimation |
|
|
|
|
> |
|
|
|
|
<View className='container'> |
|
|
|
|
{ |
|
|
|
@ -215,9 +207,9 @@ export default function SingleType() { |
|
|
|
|
className='item' |
|
|
|
|
onClick={()=>handleDetail(item.PrdtId)} |
|
|
|
|
> |
|
|
|
|
<Image
|
|
|
|
|
<Image |
|
|
|
|
className='icon' |
|
|
|
|
src={item.PrdtCover}
|
|
|
|
|
src={item.PrdtCover} |
|
|
|
|
lazyLoad |
|
|
|
|
></Image> |
|
|
|
|
<View className='title'>{item.PrdtTitle}</View> |
|
|
|
@ -227,8 +219,8 @@ export default function SingleType() { |
|
|
|
|
</View> |
|
|
|
|
</ScrollView> |
|
|
|
|
</View> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</View> |
|
|
|
|
</View> |
|
|
|
|
) |
|
|
|
|