Commit a6f9870c authored by m's avatar m

feat: update

parent 2b8b0a21
......@@ -58,6 +58,7 @@ export type StageRank = {
no: number;
secondName: string;
userId: number;
identity?: 'LEADER' | 'NORMAL';
}
export type NextStep = {
......
......@@ -10,7 +10,7 @@
.title {
font-weight: bold;
margin: 40px 0 20px;
font-size: 26PX;
font-size: 52px;
font-weight: 600;
color: #FFFFFF;
}
......@@ -86,9 +86,9 @@
@include flexLayout(row, center);
.badge {
width: 42PX;
height: 42PX;
margin-right: 16PX;
width: 84px;
height: 84px;
margin-right: 32px;
}
.center {
......@@ -116,7 +116,7 @@
background: #0084FF;
border-radius: 14px;
font-size: 10PX;
width: 36PX;
width: 72px;
padding: 1PX 6PX;
}
}
......
......@@ -57,7 +57,6 @@
background-color: #fff;
position: relative;
top: -40PX;
margin-bottom: -40PX;
.tabPane {
height: auto;
......
......@@ -8,7 +8,7 @@
color: rgba(70,81,100,0.5);
&_index {
width: 30PX;
width: 60px;
padding-left: 3PX;
margin-right: 23PX;
}
......@@ -26,7 +26,7 @@
color: rgba(70,81,100,0.7);
&_best {
font-size: 14PX;
font-size: 32px;
font-weight: 600;
color: #FE9B45;
}
......
@import '@/styles/mixins.scss';
.wrapper {
padding-bottom: 80PX;
padding-bottom: 105px;
.inner {
position: relative;
......@@ -67,14 +67,14 @@
@include flexLayout(row, center);
&_icon {
width: 30PX;
height: 30PX;
width: 60px;
height: 60px;
}
&_index {
display: block;
text-align: center;
width: 30PX;
width: 60px;
font-size: 36px;
font-weight: 500;
color: rgba(70,81,100,0.5);
......@@ -108,7 +108,7 @@
gap: 6PX;
color: rgba(70,81,100,0.7);
&_best {
font-size: 16PX;
font-size: 32px;
font-weight: 600;
color: #FE9B45;
}
......@@ -126,9 +126,9 @@
.tribe_share {
border-radius: 10PX;
margin: 0 40PX;
margin: 0 80px;
margin-bottom: 56px;
height: 44PX;
height: 88px;
border: 2PX solid #465164;
gap: 8PX;
@include flexLayout(row, center, center);
......
......@@ -10,12 +10,6 @@ import Thead from './components/thead'
import styles from './index.module.scss'
export const formatTime = (time: number) => {
const minutes = Math.floor(time / 60)
const seconds = time % 60
return `${minutes}分${seconds}秒`
}
export const renderList = (list: StageRank[]) => {
const isEmpty = list.length < 1
const user = list.find(item => item.me)
......@@ -43,7 +37,7 @@ export const renderItem = (item: StageRank) => {
{item.nickName || '-'}
{item.me && <Text>(你)</Text>}
</Text>
<Image className={styles.item_username_crown} src={assetsGroup['crown-small.png'].u} />
{item.identity === 'LEADER' && <Image className={styles.item_username_crown} src={assetsGroup['crown-small.png'].u} />}
</View>
<View className={styles.item_result}>
<Text className={styles.item_result_first}>{item.firstResultTime}s</Text>
......@@ -73,7 +67,7 @@ const renderTribeList = (list: StageRank[]) => (
export const renderTribePage = (list: StageRank[] = []) => {
return (
<View className={styles.tribe}>
{[{}].length > 0 ? renderTribeList(list) : renderEmptyTribe()}
{list.length > 0 ? renderTribeList(list) : renderEmptyTribe()}
</View>
)
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment