(ID1001127跳转到螺纹面料详情页):

This commit is contained in:
czm 2023-01-12 18:16:39 +08:00
parent dbcd906a9a
commit e6d489ec0d

View File

@ -20,6 +20,7 @@ import LabAndImg from '@/components/LabAndImg'
import useCommonData from '@/use/useCommonData' import useCommonData from '@/use/useCommonData'
import LabAndImgShow from '@/components/LabAndImgShow' import LabAndImgShow from '@/components/LabAndImgShow'
import IconFont from '@/components/iconfont/iconfont' import IconFont from '@/components/iconfont/iconfont'
import { goLink } from '@/common/common'
interface param { interface param {
show?: true | false show?: true | false
@ -328,12 +329,16 @@ const OrderCount = ({ show = false, onClose, title = '', productId = 0, is_first
} }
}, [show]) }, [show])
const onNavigator = () => {
if (recommendStatus) { goLink('/pages/details/index', { id: productId }) }
}
return ( return (
<View className={styles.shop_cart_main}> <View className={styles.shop_cart_main}>
<Popup showTitle={false} show={showPopup} onClose={() => closePopup()}> <Popup showTitle={false} show={showPopup} onClose={() => closePopup()}>
<View className={styles.popup_con}> <View className={styles.popup_con}>
<View className={styles.header}> <View className={styles.header}>
<View className={styles.header_title}> <View className={styles.header_title} onClick={onNavigator}>
<Text>{recommendStatus ? recom_title : title}</Text> <Text>{recommendStatus ? recom_title : title}</Text>
<IconFont name="icon-rukou" color="#000000FF" /> <IconFont name="icon-rukou" color="#000000FF" />
</View> </View>