fix submit logic of repair page

yhy
Dawn1Ocean 2024-03-12 19:15:49 +08:00
parent 2f6b98b43f
commit b243fc5e4c
2 changed files with 15 additions and 8 deletions

View File

@ -40,9 +40,18 @@ export default class RepairPage extends Component<{}, RepairPageState> {
phone: '', phone: '',
description: '', description: '',
isLoading: false, isLoading: false,
isDisable: false, isDisable: true,
checkedList: [0], checkedList: [0],
}; };
componentDidMount(): void {
setTimeout(() => {
this.setState({
isDisable: false,
});
}, submitInterval);
}
// 以下是TabBar相关 // 以下是TabBar相关
pageCtx = Taro.getCurrentInstance().page; pageCtx = Taro.getCurrentInstance().page;
componentDidShow() { componentDidShow() {
@ -130,11 +139,9 @@ export default class RepairPage extends Component<{}, RepairPageState> {
isDisable: true, isDisable: true,
}); });
submitTicket(this); submitTicket(this);
setTimeout(() => { Taro.reLaunch({
this.setState({ url: '/pages/repair/repair',
isDisable: false, });
});
}, submitInterval);
} }
render(): ReactNode { render(): ReactNode {

View File

@ -76,7 +76,7 @@ export const repairPageZhCn: RepairPageText = {
}, },
cardText: { cardText: {
note: '工单描述请尽量简短哦!', note: '工单描述请尽量简短哦!',
title: '新建预填写工单', title: '预填写工单',
}, },
}; };
@ -117,6 +117,6 @@ export const repairPageEnUs: RepairPageText = {
}, },
cardText: { cardText: {
note: '工单描述请尽量简短哦!', note: '工单描述请尽量简短哦!',
title: '新建预填写工单', title: '预填写工单',
}, },
}; };