Commit a6f9870c authored by m's avatar m

feat: update

parent 2b8b0a21
...@@ -58,6 +58,7 @@ export type StageRank = { ...@@ -58,6 +58,7 @@ export type StageRank = {
no: number; no: number;
secondName: string; secondName: string;
userId: number; userId: number;
identity?: 'LEADER' | 'NORMAL';
} }
export type NextStep = { export type NextStep = {
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
.title { .title {
font-weight: bold; font-weight: bold;
margin: 40px 0 20px; margin: 40px 0 20px;
font-size: 26PX; font-size: 52px;
font-weight: 600; font-weight: 600;
color: #FFFFFF; color: #FFFFFF;
} }
...@@ -86,9 +86,9 @@ ...@@ -86,9 +86,9 @@
@include flexLayout(row, center); @include flexLayout(row, center);
.badge { .badge {
width: 42PX; width: 84px;
height: 42PX; height: 84px;
margin-right: 16PX; margin-right: 32px;
} }
.center { .center {
...@@ -116,7 +116,7 @@ ...@@ -116,7 +116,7 @@
background: #0084FF; background: #0084FF;
border-radius: 14px; border-radius: 14px;
font-size: 10PX; font-size: 10PX;
width: 36PX; width: 72px;
padding: 1PX 6PX; padding: 1PX 6PX;
} }
} }
......
...@@ -57,7 +57,6 @@ ...@@ -57,7 +57,6 @@
background-color: #fff; background-color: #fff;
position: relative; position: relative;
top: -40PX; top: -40PX;
margin-bottom: -40PX;
.tabPane { .tabPane {
height: auto; height: auto;
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
color: rgba(70,81,100,0.5); color: rgba(70,81,100,0.5);
&_index { &_index {
width: 30PX; width: 60px;
padding-left: 3PX; padding-left: 3PX;
margin-right: 23PX; margin-right: 23PX;
} }
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
color: rgba(70,81,100,0.7); color: rgba(70,81,100,0.7);
&_best { &_best {
font-size: 14PX; font-size: 32px;
font-weight: 600; font-weight: 600;
color: #FE9B45; color: #FE9B45;
} }
......
@import '@/styles/mixins.scss'; @import '@/styles/mixins.scss';
.wrapper { .wrapper {
padding-bottom: 80PX; padding-bottom: 105px;
.inner { .inner {
position: relative; position: relative;
...@@ -67,14 +67,14 @@ ...@@ -67,14 +67,14 @@
@include flexLayout(row, center); @include flexLayout(row, center);
&_icon { &_icon {
width: 30PX; width: 60px;
height: 30PX; height: 60px;
} }
&_index { &_index {
display: block; display: block;
text-align: center; text-align: center;
width: 30PX; width: 60px;
font-size: 36px; font-size: 36px;
font-weight: 500; font-weight: 500;
color: rgba(70,81,100,0.5); color: rgba(70,81,100,0.5);
...@@ -108,7 +108,7 @@ ...@@ -108,7 +108,7 @@
gap: 6PX; gap: 6PX;
color: rgba(70,81,100,0.7); color: rgba(70,81,100,0.7);
&_best { &_best {
font-size: 16PX; font-size: 32px;
font-weight: 600; font-weight: 600;
color: #FE9B45; color: #FE9B45;
} }
...@@ -126,9 +126,9 @@ ...@@ -126,9 +126,9 @@
.tribe_share { .tribe_share {
border-radius: 10PX; border-radius: 10PX;
margin: 0 40PX; margin: 0 80px;
margin-bottom: 56px; margin-bottom: 56px;
height: 44PX; height: 88px;
border: 2PX solid #465164; border: 2PX solid #465164;
gap: 8PX; gap: 8PX;
@include flexLayout(row, center, center); @include flexLayout(row, center, center);
......
...@@ -10,12 +10,6 @@ import Thead from './components/thead' ...@@ -10,12 +10,6 @@ import Thead from './components/thead'
import styles from './index.module.scss' 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[]) => { export const renderList = (list: StageRank[]) => {
const isEmpty = list.length < 1 const isEmpty = list.length < 1
const user = list.find(item => item.me) const user = list.find(item => item.me)
...@@ -43,7 +37,7 @@ export const renderItem = (item: StageRank) => { ...@@ -43,7 +37,7 @@ export const renderItem = (item: StageRank) => {
{item.nickName || '-'} {item.nickName || '-'}
{item.me && <Text>(你)</Text>} {item.me && <Text>(你)</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>
<View className={styles.item_result}> <View className={styles.item_result}>
<Text className={styles.item_result_first}>{item.firstResultTime}s</Text> <Text className={styles.item_result_first}>{item.firstResultTime}s</Text>
...@@ -73,7 +67,7 @@ const renderTribeList = (list: StageRank[]) => ( ...@@ -73,7 +67,7 @@ const renderTribeList = (list: StageRank[]) => (
export const renderTribePage = (list: StageRank[] = []) => { export const renderTribePage = (list: StageRank[] = []) => {
return ( return (
<View className={styles.tribe}> <View className={styles.tribe}>
{[{}].length > 0 ? renderTribeList(list) : renderEmptyTribe()} {list.length > 0 ? renderTribeList(list) : renderEmptyTribe()}
</View> </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