fix submit logic of repair page
parent
2f6b98b43f
commit
b243fc5e4c
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -76,7 +76,7 @@ export const repairPageZhCn: RepairPageText = {
|
|||
},
|
||||
cardText: {
|
||||
note: '工单描述请尽量简短哦!',
|
||||
title: '新建预填写工单',
|
||||
title: '预填写工单',
|
||||
},
|
||||
};
|
||||
|
||||
|
|
@ -117,6 +117,6 @@ export const repairPageEnUs: RepairPageText = {
|
|||
},
|
||||
cardText: {
|
||||
note: '工单描述请尽量简短哦!',
|
||||
title: '新建预填写工单',
|
||||
title: '预填写工单',
|
||||
},
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue