🐞 fix(立即购买): 修复立即购买点击没反应的问题
This commit is contained in:
parent
33705db7ab
commit
8201099a43
@ -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}>
|
||||||
|
|||||||
@ -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>
|
||||||
)
|
)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user