🐞 fix(立即购买): 修复立即购买点击没反应的问题

This commit is contained in:
xuan 2023-03-06 17:45:45 +08:00
parent 33705db7ab
commit 8201099a43
2 changed files with 9 additions and 6 deletions

View File

@ -13,6 +13,7 @@ interface PropsType {
onShowModalChange?: (val: boolean) => void onShowModalChange?: (val: boolean) => void
onCancel?: () => void onCancel?: () => void
onConfirm?: (val: string) => void onConfirm?: (val: string) => void
zIndex?: number
} }
const OrganizationNameModal = (props: PropsType) => { const OrganizationNameModal = (props: PropsType) => {
const { const {
@ -21,6 +22,7 @@ const OrganizationNameModal = (props: PropsType) => {
onShowModalChange, onShowModalChange,
onCancel, onCancel,
onConfirm, onConfirm,
zIndex = 9999,
} = props } = props
const handleClose = () => { const handleClose = () => {
@ -78,7 +80,7 @@ const OrganizationNameModal = (props: PropsType) => {
setInputStyles(() => []) setInputStyles(() => [])
} }
return <Dialog show={showModal} customStyles={{ zIndex: '9999' }} onClose={handleClose} onChange={onShowModalChange}> return <Dialog show={showModal} customStyles={{ zIndex }} onClose={handleClose} onChange={onShowModalChange}>
<View className={styles.organizationNameModal}> <View className={styles.organizationNameModal}>
<View className={styles.organizationNameModal_title}></View> <View className={styles.organizationNameModal_title}></View>
<View className={styles.organizationNameModal_content}> <View className={styles.organizationNameModal_content}>

View File

@ -228,11 +228,12 @@ const OrderCount = ({ show = false, onClose, title = '', productId = 0, is_first
}) })
return false return false
} }
setShowModal(true)
return
// 检测是否修改过组织昵称 // 检测是否修改过组织昵称
if (userInfo.adminUserInfo.first_change_name) { // if (userInfo.adminUserInfo.first_change_name) {
setShowModal(true) // return
return // }
}
Taro.navigateTo({ Taro.navigateTo({
url: `/pages/order/speedComfirm?sale_mode=${Number(selectIndex)}&buyList=${JSON.stringify(selectCount.color_list)}`, url: `/pages/order/speedComfirm?sale_mode=${Number(selectIndex)}&buyList=${JSON.stringify(selectCount.color_list)}`,
}) })
@ -499,7 +500,7 @@ const OrderCount = ({ show = false, onClose, title = '', productId = 0, is_first
<View> <View>
<LabAndImgShow value={labImageValue} show={showLabImage} onClose={closeLabImgShow} /> <LabAndImgShow value={labImageValue} show={showLabImage} onClose={closeLabImgShow} />
</View> </View>
<OrganizationNameModal showModal={showModal} onClose={handleClose} onShowModalChange={handleShowChange} onConfirm={handleOrganizationNameModalConfirm} /> <OrganizationNameModal zIndex={99999} showModal={showModal} onClose={handleClose} onShowModalChange={handleShowChange} onConfirm={handleOrganizationNameModalConfirm} />
</View> </View>
) )