🐞 fix(立即购买): 修复立即购买点击没反应的问题
This commit is contained in:
parent
33705db7ab
commit
8201099a43
@ -13,6 +13,7 @@ interface PropsType {
|
||||
onShowModalChange?: (val: boolean) => void
|
||||
onCancel?: () => void
|
||||
onConfirm?: (val: string) => void
|
||||
zIndex?: number
|
||||
}
|
||||
const OrganizationNameModal = (props: PropsType) => {
|
||||
const {
|
||||
@ -21,6 +22,7 @@ const OrganizationNameModal = (props: PropsType) => {
|
||||
onShowModalChange,
|
||||
onCancel,
|
||||
onConfirm,
|
||||
zIndex = 9999,
|
||||
} = props
|
||||
|
||||
const handleClose = () => {
|
||||
@ -78,7 +80,7 @@ const OrganizationNameModal = (props: PropsType) => {
|
||||
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_title}>请设置您的组织昵称</View>
|
||||
<View className={styles.organizationNameModal_content}>
|
||||
|
||||
@ -228,11 +228,12 @@ const OrderCount = ({ show = false, onClose, title = '', productId = 0, is_first
|
||||
})
|
||||
return false
|
||||
}
|
||||
setShowModal(true)
|
||||
return
|
||||
// 检测是否修改过组织昵称
|
||||
if (userInfo.adminUserInfo.first_change_name) {
|
||||
setShowModal(true)
|
||||
return
|
||||
}
|
||||
// if (userInfo.adminUserInfo.first_change_name) {
|
||||
// return
|
||||
// }
|
||||
Taro.navigateTo({
|
||||
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>
|
||||
<LabAndImgShow value={labImageValue} show={showLabImage} onClose={closeLabImgShow} />
|
||||
</View>
|
||||
<OrganizationNameModal showModal={showModal} onClose={handleClose} onShowModalChange={handleShowChange} onConfirm={handleOrganizationNameModalConfirm} />
|
||||
<OrganizationNameModal zIndex={99999} showModal={showModal} onClose={handleClose} onShowModalChange={handleShowChange} onConfirm={handleOrganizationNameModalConfirm} />
|
||||
|
||||
</View>
|
||||
)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user