add relaunch after change inDutyCnt
parent
599166e603
commit
2ef04b96a1
|
|
@ -1,6 +1,13 @@
|
|||
import { View } from '@tarojs/components';
|
||||
import { Component, ReactNode } from 'react';
|
||||
import { AtAccordion, AtButton, AtCard, AtInputNumber, AtList } from 'taro-ui';
|
||||
import {
|
||||
AtAccordion,
|
||||
AtButton,
|
||||
AtCard,
|
||||
AtInputNumber,
|
||||
AtList,
|
||||
AtMessage,
|
||||
} from 'taro-ui';
|
||||
import Taro from '@tarojs/taro';
|
||||
import pt from '@/plain-text';
|
||||
import { getUncompletedTicketList } from '@/service/uncompletedTicket';
|
||||
|
|
@ -149,6 +156,7 @@ export default class MemberPage extends Component<{}, MemberPageState> {
|
|||
const fixListRenderer = this.state.fixList.map((item) => item.render());
|
||||
return (
|
||||
<View>
|
||||
<AtMessage />
|
||||
<MemberTitleCard />
|
||||
<View style={{ width: '94%', marginLeft: '3%' }}>
|
||||
<View style={{ marginTop: '60rpx' }}>
|
||||
|
|
|
|||
|
|
@ -3,6 +3,8 @@ import Taro from '@tarojs/taro';
|
|||
import pt from '@/plain-text';
|
||||
import { getUrl } from '.';
|
||||
|
||||
const reLaunchInterval = 1000;
|
||||
|
||||
export function changeDutyCnt(that: MemberPage) {
|
||||
that.setState({
|
||||
isLoading: true,
|
||||
|
|
@ -24,6 +26,11 @@ export function changeDutyCnt(that: MemberPage) {
|
|||
message: pt.get().button.submitText.success,
|
||||
type: 'success',
|
||||
});
|
||||
setTimeout(() => {
|
||||
Taro.reLaunch({
|
||||
url: '/pages/member/member',
|
||||
});
|
||||
}, reLaunchInterval);
|
||||
})
|
||||
.catch((err) => {
|
||||
console.log(err);
|
||||
|
|
|
|||
Loading…
Reference in New Issue