Commit 218aa7e7 authored by raca's avatar raca

feat: update

parent 00c1f076
...@@ -66,22 +66,22 @@ ...@@ -66,22 +66,22 @@
"ossName": "/pk-math/FTry1vELFAFKP1j3j1Yx8LYs6bX/750x448" "ossName": "/pk-math/FTry1vELFAFKP1j3j1Yx8LYs6bX/750x448"
}, },
"rank-1.png": { "rank-1.png": {
"u": "https://cdn.jkwljy.com/pk-math/KEkg6Z1jVC559Kj7BvdYJMi54ns/60x60", "u": "https://cdn.jkwljy.com/pk-math/3KkwpzY8yXfa7ZS32hV9HdukdX4P/80x80",
"w": 60, "w": 80,
"h": 60, "h": 80,
"ossName": "/pk-math/KEkg6Z1jVC559Kj7BvdYJMi54ns/60x60" "ossName": "/pk-math/3KkwpzY8yXfa7ZS32hV9HdukdX4P/80x80"
}, },
"rank-2.png": { "rank-2.png": {
"u": "https://cdn.jkwljy.com/pk-math/24PjZnp3JYhKaUqwAddYWaFToau/60x60", "u": "https://cdn.jkwljy.com/pk-math/uswdqE15BvXfBMcXRzfBqErgVyX/80x80",
"w": 60, "w": 80,
"h": 60, "h": 80,
"ossName": "/pk-math/24PjZnp3JYhKaUqwAddYWaFToau/60x60" "ossName": "/pk-math/uswdqE15BvXfBMcXRzfBqErgVyX/80x80"
}, },
"rank-3.png": { "rank-3.png": {
"u": "https://cdn.jkwljy.com/pk-math/4SbmGm14XhfAnLRT1E5CobhghcY2/60x60", "u": "https://cdn.jkwljy.com/pk-math/4Zfh7m6cW2uxQ3QKD7h2cdoZ384y/80x80",
"w": 60, "w": 80,
"h": 60, "h": 80,
"ossName": "/pk-math/4SbmGm14XhfAnLRT1E5CobhghcY2/60x60" "ossName": "/pk-math/4Zfh7m6cW2uxQ3QKD7h2cdoZ384y/80x80"
}, },
"refresh.png": { "refresh.png": {
"u": "https://cdn.jkwljy.com/pk-math/3pnS7iY6y6rJi5bb4yGv4Y2mPhyd/60x60", "u": "https://cdn.jkwljy.com/pk-math/3pnS7iY6y6rJi5bb4yGv4Y2mPhyd/60x60",
......
assets/group/rank-1.png

2.14 KB | W: | H:

assets/group/rank-1.png

2.96 KB | W: | H:

assets/group/rank-1.png
assets/group/rank-1.png
assets/group/rank-1.png
assets/group/rank-1.png
  • 2-up
  • Swipe
  • Onion skin
assets/group/rank-2.png

2.61 KB | W: | H:

assets/group/rank-2.png

3.63 KB | W: | H:

assets/group/rank-2.png
assets/group/rank-2.png
assets/group/rank-2.png
assets/group/rank-2.png
  • 2-up
  • Swipe
  • Onion skin
assets/group/rank-3.png

2.54 KB | W: | H:

assets/group/rank-3.png

3.47 KB | W: | H:

assets/group/rank-3.png
assets/group/rank-3.png
assets/group/rank-3.png
assets/group/rank-3.png
  • 2-up
  • Swipe
  • Onion skin
...@@ -57,19 +57,19 @@ export default { ...@@ -57,19 +57,19 @@ export default {
"h": 448 "h": 448
}, },
"rank-1.png": { "rank-1.png": {
"u": "https://cdn.jkwljy.com/pk-math/KEkg6Z1jVC559Kj7BvdYJMi54ns/60x60", "u": "https://cdn.jkwljy.com/pk-math/3KkwpzY8yXfa7ZS32hV9HdukdX4P/80x80",
"w": 60, "w": 80,
"h": 60 "h": 80
}, },
"rank-2.png": { "rank-2.png": {
"u": "https://cdn.jkwljy.com/pk-math/24PjZnp3JYhKaUqwAddYWaFToau/60x60", "u": "https://cdn.jkwljy.com/pk-math/uswdqE15BvXfBMcXRzfBqErgVyX/80x80",
"w": 60, "w": 80,
"h": 60 "h": 80
}, },
"rank-3.png": { "rank-3.png": {
"u": "https://cdn.jkwljy.com/pk-math/4SbmGm14XhfAnLRT1E5CobhghcY2/60x60", "u": "https://cdn.jkwljy.com/pk-math/4Zfh7m6cW2uxQ3QKD7h2cdoZ384y/80x80",
"w": 60, "w": 80,
"h": 60 "h": 80
}, },
"refresh.png": { "refresh.png": {
"u": "https://cdn.jkwljy.com/pk-math/3pnS7iY6y6rJi5bb4yGv4Y2mPhyd/60x60", "u": "https://cdn.jkwljy.com/pk-math/3pnS7iY6y6rJi5bb4yGv4Y2mPhyd/60x60",
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
&_rank { &_rank {
text-align: center; text-align: center;
width: 60px; width: 80px;
} }
&_username { &_username {
...@@ -59,8 +59,8 @@ ...@@ -59,8 +59,8 @@
&_rank { &_rank {
&_icon { &_icon {
width: 60px; width: 80px;
height: 60px; height: 80px;
} }
&_number { &_number {
font-size: 36px; font-size: 36px;
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
.title { .title {
font-weight: bold; font-weight: bold;
margin: 40px 0 20px; margin: 50px 0 20px;
font-size: 52px; font-size: 52px;
font-weight: 600; font-weight: 600;
color: #FFFFFF; color: #FFFFFF;
......
...@@ -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: 60px; width: 80px;
padding-left: 3PX; padding-left: 3PX;
margin-right: 23PX; margin-right: 23PX;
} }
......
...@@ -5,6 +5,9 @@ ...@@ -5,6 +5,9 @@
top: 0; top: 0;
right: 0; right: 0;
z-index: 999; z-index: 999;
display: flex;
// justify-content: center;
align-items: center;
background-image: url(../assets/head-bg.png); background-image: url(../assets/head-bg.png);
&_bg { &_bg {
...@@ -31,3 +34,25 @@ ...@@ -31,3 +34,25 @@
} }
} }
} }
.score {
display: flex;
align-items: center;
margin-right: 40PX;
margin-left: 58PX;
.icon {
width: 32PX;
height: 32PX;
margin-right: 4PX;
}
}
.ph {
display: flex;
align-items: center;
.icon {
width: 32PX;
height: 32PX;
margin-right: 4PX;
}
}
\ No newline at end of file
import { View, Image } from '@tarojs/components' import { View, Image, Text } from '@tarojs/components'
import { useMemo } from 'react' import { useMemo } from 'react'
import { getMenuButtonBoundingClientRect, navigateBack, getSystemInfoSync } from '@tarojs/taro' import { navigateTo, getMenuButtonBoundingClientRect, navigateBack, getSystemInfoSync } from '@tarojs/taro'
import { useStoreState } from '@/store/hooks'
import styles from './top-bar.module.scss' import styles from './top-bar.module.scss'
const goStore = () => {
navigateTo({
url: '/pages/market/index'
})
}
export default () => { export default () => {
const nav = useMemo(getMenuButtonBoundingClientRect, []) const nav = useMemo(getMenuButtonBoundingClientRect, [])
const sys = useMemo(getSystemInfoSync, []) const sys = useMemo(getSystemInfoSync, [])
const cardNum = useStoreState(state => state.userModel.cardNum)
const point = useStoreState(state => state.userModel.point)
const topBarStyle = useMemo(() => { const topBarStyle = useMemo(() => {
return { return {
...@@ -19,6 +28,14 @@ export default () => { ...@@ -19,6 +28,14 @@ export default () => {
<View className={styles.topBar} style={topBarStyle}> <View className={styles.topBar} style={topBarStyle}>
<View className={styles.inner}> <View className={styles.inner}>
<Image className={styles.back_icon} src={require('../assets/back.png')} mode="widthFix" onClick={() => navigateBack()} /> <Image className={styles.back_icon} src={require('../assets/back.png')} mode="widthFix" onClick={() => navigateBack()} />
<View className={styles.score} onClick={goStore}>
<Image src={require('@/pages/main/assets/score.png')} className={styles.icon} />
<Text>{point}</Text>
</View>
<View className={styles.ph} onClick={goStore}>
<Image src={require('@/pages/main/assets/ph.png')} className={styles.icon} />
<Text>{cardNum}</Text>
</View>
</View> </View>
</View> </View>
) )
......
...@@ -67,8 +67,8 @@ ...@@ -67,8 +67,8 @@
@include flexLayout(row, center); @include flexLayout(row, center);
&_icon { &_icon {
width: 60px; width: 80px;
height: 60px; height: 80px;
} }
&_index { &_index {
...@@ -125,6 +125,29 @@ ...@@ -125,6 +125,29 @@
padding: 16PX 0 24PX; padding: 16PX 0 24PX;
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2); box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
.members_tip {
position: absolute;
right: -20PX;
top: -32PX;
background-image: url('https://cdn.jkwljy.com/pk-math/3AjpAsK2ptqUz8hZLR6qre7LWUbR/186x84');
background-size: 100% 100%;
width: 186px;
height: 80px;
@include flexLayout(row, center, center);
padding-bottom: 12px;
&_icon {
height: 52px;
width: 52px;
}
&_text {
font-size: 32px;
font-weight: 500;
color: #fff;
}
}
.tribe_share { .tribe_share {
border-radius: 10PX; border-radius: 10PX;
margin: 0 80px; margin: 0 80px;
......
...@@ -191,6 +191,10 @@ const Prepare = () => { ...@@ -191,6 +191,10 @@ const Prepare = () => {
<View className={styles.footer_bar}> <View className={styles.footer_bar}>
{currentTab === 1 && tribeInfo && tribeInfo.id && <ShareView> {currentTab === 1 && tribeInfo && tribeInfo.id && <ShareView>
{/* <View className={styles.members_tip}>
<Image className={styles.members_tip_icon} src={require('@/pages/main/assets/score.png')} />
<Text className={styles.members_tip_text}>+100</Text>
</View> */}
<View className={styles.tribe_share}> <View className={styles.tribe_share}>
<Image style={{ width: 32, height: 32 }} src={assetsGroup['invite-small.png'].u} /> <Image style={{ width: 32, height: 32 }} src={assetsGroup['invite-small.png'].u} />
<Text style={{ color: '#FF7A18', fontSize: 16 }}>邀请更多好友加入学习部落</Text> <Text style={{ color: '#FF7A18', fontSize: 16 }}>邀请更多好友加入学习部落</Text>
......
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