Commit 91226d02 authored by hewenhao's avatar hewenhao

Merge branch 'feature/2023-06-12-v1.1' of…

Merge branch 'feature/2023-06-12-v1.1' of dev.jiuaoedu.com:hewenhao/GeekLearnMathWeapp into feature/2023-06-12-v1.1
parents ac87eddd ba41deda
...@@ -118,5 +118,17 @@ ...@@ -118,5 +118,17 @@
"w": 200, "w": 200,
"h": 300, "h": 300,
"ossName": "/pk-math/2kSynNrNPPyZCzys49Bs9yVkqCr/200x300" "ossName": "/pk-math/2kSynNrNPPyZCzys49Bs9yVkqCr/200x300"
},
"modal-bg-3.png": {
"u": "https://cdn.jkwljy.com/pk-math/3FFa37jYQJhunPqyTzjBbYtjM5J4/690x260",
"w": 690,
"h": 260,
"ossName": "/pk-math/3FFa37jYQJhunPqyTzjBbYtjM5J4/690x260"
},
"continue-arrow-2.png": {
"u": "https://cdn.jkwljy.com/pk-math/2sgRT58CiBp3iWJXzdVqH2Nfgta8/28x28",
"w": 28,
"h": 28,
"ossName": "/pk-math/2sgRT58CiBp3iWJXzdVqH2Nfgta8/28x28"
} }
} }
...@@ -100,5 +100,15 @@ export default { ...@@ -100,5 +100,15 @@ export default {
"u": "https://cdn.jkwljy.com/pk-math/2kSynNrNPPyZCzys49Bs9yVkqCr/200x300", "u": "https://cdn.jkwljy.com/pk-math/2kSynNrNPPyZCzys49Bs9yVkqCr/200x300",
"w": 200, "w": 200,
"h": 300 "h": 300
},
"modal-bg-3.png": {
"u": "https://cdn.jkwljy.com/pk-math/3FFa37jYQJhunPqyTzjBbYtjM5J4/690x260",
"w": 690,
"h": 260
},
"continue-arrow-2.png": {
"u": "https://cdn.jkwljy.com/pk-math/2sgRT58CiBp3iWJXzdVqH2Nfgta8/28x28",
"w": 28,
"h": 28
} }
} as const } as const
...@@ -9,6 +9,7 @@ import { badgeImages } from '../battles/const' ...@@ -9,6 +9,7 @@ import { badgeImages } from '../battles/const'
import styles from './index.module.scss' import styles from './index.module.scss'
import TopHeader from './components/top-header' import TopHeader from './components/top-header'
import ModalName from './components/modal-name' import ModalName from './components/modal-name'
import { rankTranslate } from '../battles/utils'
const AcceptPk = () => { const AcceptPk = () => {
const [isVisible, { setTrue, setFalse }] = useBoolean(false) const [isVisible, { setTrue, setFalse }] = useBoolean(false)
...@@ -110,7 +111,7 @@ const AcceptPk = () => { ...@@ -110,7 +111,7 @@ const AcceptPk = () => {
className={styles.badgeIcon} className={styles.badgeIcon}
/> />
<Text className={styles.rankText}> <Text className={styles.rankText}>
{details?.userRanks.level} {rankTranslate(details?.userRanks.level)}
</Text> </Text>
</View> </View>
<Text> <Text>
......
.mask {
position: fixed;
z-index: 9999;
left: 0;
top: 0;
right: 0;
bottom: 0;
background: rgba(0,0,0,0.7);
}
.guide {
position: absolute;
bottom: 40%;
left: 0;
right: 0;
}
.cart {
width: 300px;
height: 300px;
position: absolute;
left: 0;
}
.guideText {
font-size: 28px;
font-weight: 500;
color: #465164;
line-height: 44px;
}
.guideMain {
position: relative;
top: 210px;
z-index: 1;
background: url('https://cdn.jkwljy.com/pk-math/3FFa37jYQJhunPqyTzjBbYtjM5J4/690x260') no-repeat;
background-size: 100% 100%;
height: 260px;
margin: 0 30px;
}
.inner {
height: 100%;
padding: 44px 48px;
box-sizing: border-box;
display: flex;
flex-direction: column;
justify-content: space-between;
}
.mark {
color: #FF8137;
}
.continue {
font-size: 28px;
font-weight: 500;
color: #6B54BE;
display: flex;
align-items: center;
gap: 2px;
justify-content: flex-end;
}
\ No newline at end of file
import { View, Image, Text } from '@tarojs/components'
import assets from '@/assets/oss/assets-tutorial'
import styles from './scene-1.module.scss'
const Scene = () => {
return (
<View className={styles.mask}>
<View className={styles.guide}>
<Image src={assets['cat-4.png'].u} className={styles.cart} />
<View className={styles.guideMain}>
<View className={styles.inner}>
<View className={styles.guideText}>
你的表现不错哦,看来已经可以进入<Text className={styles.mark}>竞技场</Text>了!
什么是竞技场?来给我一起去看看~
</View>
<View className={styles.continue}>
<Text>继续</Text>
<Image
style={{ width: 14, height: 14 }}
src={assets['continue-arrow-2.png'].u}
/>
</View>
</View>
</View>
</View>
</View>
)
}
export default Scene
...@@ -20,6 +20,7 @@ import tutorialAssets from '@/assets/oss/assets-tutorial' ...@@ -20,6 +20,7 @@ import tutorialAssets from '@/assets/oss/assets-tutorial'
import Tabs, { type TabItem } from './components/tabs' import Tabs, { type TabItem } from './components/tabs'
import TopBar from './components/top-bar' import TopBar from './components/top-bar'
import MainHeader from './components/main-header' import MainHeader from './components/main-header'
import PkGuide from './guide/pk/scene-1'
import AnswerCardModal from './components/answer-card-modal' import AnswerCardModal from './components/answer-card-modal'
import PkGuideScene from './guide/pk/scene' import PkGuideScene from './guide/pk/scene'
import { renderTribePage, RankList } from './render' import { renderTribePage, RankList } from './render'
...@@ -250,6 +251,7 @@ const Prepare = () => { ...@@ -250,6 +251,7 @@ const Prepare = () => {
return ( return (
<EyeProtectionView className={styles.wrapper}> <EyeProtectionView className={styles.wrapper}>
<TopBar isFirstStage={isFirstStage} /> <TopBar isFirstStage={isFirstStage} />
{/* <PkGuide /> */}
<View className={styles.inner} style={innerStyle}> <View className={styles.inner} style={innerStyle}>
<MainHeader isFirstStage={isFirstStage} /> <MainHeader isFirstStage={isFirstStage} />
......
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