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

View File

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