loading状态
This commit is contained in:
@@ -98,7 +98,7 @@ const AiImportPopup: React.FC<AiImportPopupProps> = ({
|
||||
if (Array.isArray(data) && data.length > 0) {
|
||||
setPublishData(data)
|
||||
initAiPopup()
|
||||
onClose()
|
||||
closePopupBefore()
|
||||
Taro.navigateTo({
|
||||
url: '/publish_pages/publishBall/index?type=ai'
|
||||
})
|
||||
@@ -179,6 +179,11 @@ const AiImportPopup: React.FC<AiImportPopupProps> = ({
|
||||
if (onManualPublish) {
|
||||
onManualPublish()
|
||||
}
|
||||
closePopupBefore()
|
||||
}
|
||||
|
||||
const closePopupBefore = () => {
|
||||
initLoading()
|
||||
onClose()
|
||||
}
|
||||
|
||||
@@ -190,7 +195,7 @@ const AiImportPopup: React.FC<AiImportPopupProps> = ({
|
||||
position="bottom"
|
||||
round={true}
|
||||
closeable={false}
|
||||
onClose={onClose}
|
||||
onClose={closePopupBefore}
|
||||
className={styles.aiImportPopup}
|
||||
style={{ paddingBottom: isKeyboardVisible ? `${keyboardHeight}px` : undefined }}
|
||||
>
|
||||
@@ -201,7 +206,7 @@ const AiImportPopup: React.FC<AiImportPopupProps> = ({
|
||||
<Image src={images.ICON_IMPORTANT_BLACK} className={styles.lightningIcon} />
|
||||
<Text className={styles.title}>智能导入球局信息</Text>
|
||||
</View>
|
||||
<View className={styles.closeButton} onClick={onClose}>
|
||||
<View className={styles.closeButton} onClick={closePopupBefore}>
|
||||
<Image src={images.ICON_CLOSE} className={styles.lightningIcon} />
|
||||
</View>
|
||||
</View>
|
||||
|
||||
Reference in New Issue
Block a user