分享添加
This commit is contained in:
@@ -68,7 +68,7 @@ const model: Model = {
|
||||
if (confirm !== newPwd) return message.warn(formatMessage({ id: 'check.msgConfirm' }));
|
||||
yield put({ type: 'onUpdateState', submitting: true });
|
||||
try {
|
||||
yield call(changeFundPwd, newPwd, originVisible ? undefined : origin);
|
||||
yield call(changeFundPwd, newPwd, originVisible ? origin : undefined);
|
||||
yield put(routerRedux.goBack());
|
||||
message.success(formatMessage({ id: 'fundpwd.success' }));
|
||||
} catch (e) {
|
||||
|
||||
@@ -43,7 +43,7 @@ const CommunityPage: React.FC<HomeCommunityModelState & DispatchProp> = ({
|
||||
<div className="bg" />
|
||||
<span className="title">{formatMessage({ id: 'home.community.total' })}</span>
|
||||
<span className="content">
|
||||
<span className="large">+{info ? info.rewardAll : 0} USDT</span>
|
||||
<span className="large">+{info ? info.reward : 0} USDT</span>
|
||||
</span>
|
||||
<div className={styles.card}>
|
||||
<div className="left">
|
||||
@@ -51,14 +51,14 @@ const CommunityPage: React.FC<HomeCommunityModelState & DispatchProp> = ({
|
||||
{formatMessage({
|
||||
id: 'home.community.totalInvited',
|
||||
}, {
|
||||
num: info ? info.followerNumber : 0,
|
||||
num: info ? info.follower : 0,
|
||||
})}
|
||||
</span>
|
||||
<span className="line">
|
||||
{formatMessage({
|
||||
id: 'home.community.totalAll',
|
||||
}, {
|
||||
num: info ? info.communeNumber : 0,
|
||||
num: info ? info.groupScale : 0,
|
||||
})}
|
||||
</span>
|
||||
</div>
|
||||
|
||||
@@ -6,7 +6,7 @@ export async function getCommunityBasic(): Promise<CommunityBasic> {
|
||||
ok,
|
||||
data,
|
||||
msg,
|
||||
} = await http.get<CommunityBasic>('/commune/basic');
|
||||
} = await http.get<CommunityBasic>('/community/basic');
|
||||
if (ok && data) {
|
||||
return data;
|
||||
}
|
||||
@@ -18,7 +18,7 @@ export async function getCommunityList(pageIndex: number, pageSize: number): Pro
|
||||
ok,
|
||||
data,
|
||||
msg,
|
||||
} = await http.get<Inviters>('/commune/list', {
|
||||
} = await http.get<Inviters>('/community/list', {
|
||||
pageIndex,
|
||||
pageSize,
|
||||
});
|
||||
|
||||
@@ -15,6 +15,7 @@ import Header from '@/components/Header';
|
||||
import styles from './style.less';
|
||||
import { UserModelState } from '@/models/user';
|
||||
import { generateInviteHref } from './service';
|
||||
import { isApp, share } from '@/utils/h5plus';
|
||||
|
||||
const InvitePage: React.FC<DispatchProp & InviteModelState & UserModelState> = ({
|
||||
dispatch,
|
||||
@@ -59,9 +60,14 @@ const InvitePage: React.FC<DispatchProp & InviteModelState & UserModelState> = (
|
||||
<Icon type="copy" theme="filled" />
|
||||
</Clipboard>
|
||||
</div>
|
||||
<Button type="primary">
|
||||
{formatMessage({ id: 'invite.btn' })}
|
||||
</Button>
|
||||
{isApp() && (
|
||||
<Button
|
||||
type="primary"
|
||||
onClick={() => share(href)}
|
||||
>
|
||||
{formatMessage({ id: 'invite.btn' })}
|
||||
</Button>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user