开发:剩余天数超过35天才可以加入售后群

pull/1475/head
ChenX 4 years ago
parent 1aa6e93d36
commit e15e21d87c

@ -47,6 +47,8 @@ export function saveLoginInfos(data: IResponseData)
intent: Intent.WARNING
});
}
(TopPanelStore.GetInstance() as TopPanelStore).canJoinGroup = retDate > 35;
}

@ -108,6 +108,8 @@ export class TopPanel extends React.Component<{ store?: TopPanelStore; }, {}>
this.setState({ isCollapse: !this.state.isCollapse });
}}
/>
{
this.props.store.canJoinGroup &&
<Button
style={MarginStyle}
small={true}
@ -116,6 +118,7 @@ export class TopPanel extends React.Component<{ store?: TopPanelStore; }, {}>
intent={Intent.PRIMARY}
onClick={() => window.open("https://jq.qq.com/?_wv=1027&k=5o7IHKm")}
/>
}
<Button
style={MarginStyle}
small={true}

@ -34,6 +34,7 @@ export class TopPanelStore extends Singleton
@observable m_FileManageOpen: boolean = false;
@observable m_FileList: IFileInfo[] = [];
@observable canJoinGroup = false;//能加入售后群
@observable isLogin = false;
@observable openRegist = false;
@observable openMain = true;

Loading…
Cancel
Save