feat: partner enrty
This commit is contained in:
3
src/pages/partner/index.config.ts
Normal file
3
src/pages/partner/index.config.ts
Normal file
@ -0,0 +1,3 @@
|
||||
export default definePageConfig({
|
||||
navigationBarTitleText: '合伙人',
|
||||
});
|
10
src/pages/partner/index.less
Normal file
10
src/pages/partner/index.less
Normal file
@ -0,0 +1,10 @@
|
||||
@import '@/styles/common.less';
|
||||
@import '@/styles/variables.less';
|
||||
|
||||
.partner {
|
||||
&__tabs {
|
||||
--tabs-active-color: @blHighlightColor;
|
||||
--tabs-nav-background-color: #fff;
|
||||
--tabs-wrap-height: 98px;
|
||||
}
|
||||
}
|
23
src/pages/partner/index.tsx
Normal file
23
src/pages/partner/index.tsx
Normal file
@ -0,0 +1,23 @@
|
||||
import { Tabs } from '@taroify/core';
|
||||
|
||||
import './index.less';
|
||||
|
||||
const PREFIX = 'partner';
|
||||
|
||||
export default function Partner() {
|
||||
return (
|
||||
<div className={PREFIX}>
|
||||
<Tabs swipeable className={`${PREFIX}__tabs`}>
|
||||
<Tabs.TabPane value={0} title="简介">
|
||||
简介
|
||||
</Tabs.TabPane>
|
||||
<Tabs.TabPane value={1} title="邀请名单">
|
||||
邀请名单
|
||||
</Tabs.TabPane>
|
||||
<Tabs.TabPane value={2} title="我的收益">
|
||||
我的收益
|
||||
</Tabs.TabPane>
|
||||
</Tabs>
|
||||
</div>
|
||||
);
|
||||
}
|
@ -6,6 +6,7 @@ import { useCallback } from 'react';
|
||||
import CustomNavigationBar from '@/components/custom-navigation-bar';
|
||||
import HomePage from '@/components/home-page';
|
||||
import LoginButton from '@/components/login-button';
|
||||
import PartnerEntry from '@/components/partner-entry';
|
||||
import Slogan from '@/components/slogan';
|
||||
import SwitchBar from '@/components/switch-bar';
|
||||
import { RoleType, PageUrl } from '@/constants/app';
|
||||
@ -68,6 +69,7 @@ export default function User() {
|
||||
/>
|
||||
</Button>
|
||||
</div>
|
||||
<PartnerEntry />
|
||||
{roleType === RoleType.Anchor && <AnchorFragment />}
|
||||
{roleType === RoleType.Company && <CompanyFragment />}
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user