fix submit logic of repair page
parent
2f6b98b43f
commit
b243fc5e4c
|
|
@ -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 {
|
||||||
|
|
|
||||||
|
|
@ -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: '预填写工单',
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue