🦄 styles(首页): 当屏幕过小时加入购物车模块添加sticky贴顶

This commit is contained in:
xuan 2022-10-25 17:26:40 +08:00
parent 7500d060d2
commit d98898e513

View File

@ -145,6 +145,7 @@ export default memo(forwardRef((props: prosObj, ref) => {
) )
})} })}
</View> </View>
<View style={{position: 'sticky', top: 0, background: 'white',zIndex: '9999'}}>
<Divider direction='horizontal' customStyles={{ margin: '12px 0' }}></Divider> <Divider direction='horizontal' customStyles={{ margin: '12px 0' }}></Divider>
<View className={styles.flexFonts}> <View className={styles.flexFonts}>
<View className={styles.kingFont}>({goodList?.length})</View> <View className={styles.kingFont}>({goodList?.length})</View>
@ -162,6 +163,7 @@ export default memo(forwardRef((props: prosObj, ref) => {
adjustPosition={true} adjustPosition={true}
/> />
</View> </View>
</View>
{goodList.length > 0 && ( {goodList.length > 0 && (
<> <>
<View className={styles.scrollviewBig}> <View className={styles.scrollviewBig}>