fix submit logic of repair page

This commit is contained in:
Dawn1Ocean
2024-03-12 19:15:49 +08:00
parent 2f6b98b43f
commit b243fc5e4c
2 changed files with 15 additions and 8 deletions
+12 -5
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,
Taro.reLaunch({
url: '/pages/repair/repair',
});
}, submitInterval);
}
render(): ReactNode {
+2 -2
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: '预填写工单',
},
};