Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
GeekLearnMathWeapp
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
frontend
GeekLearnMathWeapp
Commits
2156b032
Commit
2156b032
authored
Jun 19, 2023
by
raca
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 优化
parent
929d0da6
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
118 additions
and
0 deletions
+118
-0
.oss
assets/tutorial/.oss
+12
-0
continue-arrow-2.png
assets/tutorial/continue-arrow-2.png
+0
-0
modal-bg-3.png
assets/tutorial/modal-bg-3.png
+0
-0
assets-tutorial.ts
src/assets/oss/assets-tutorial.ts
+10
-0
scene-1.module.scss
src/pages/prepare/guide/pk/scene-1.module.scss
+64
-0
scene-1.tsx
src/pages/prepare/guide/pk/scene-1.tsx
+30
-0
index.tsx
src/pages/prepare/index.tsx
+2
-0
No files found.
assets/tutorial/.oss
View file @
2156b032
...
@@ -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"
}
}
}
}
assets/tutorial/continue-arrow-2.png
0 → 100644
View file @
2156b032
493 Bytes
assets/tutorial/modal-bg-3.png
0 → 100644
View file @
2156b032
37.1 KB
src/assets/oss/assets-tutorial.ts
View file @
2156b032
...
@@ -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
src/pages/prepare/guide/pk/scene-1.module.scss
0 → 100644
View file @
2156b032
.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
src/pages/prepare/guide/pk/scene-1.tsx
0 → 100644
View file @
2156b032
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
src/pages/prepare/index.tsx
View file @
2156b032
...
@@ -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
{
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 />
<TopBar />
{/* <PkGuide /> */}
<View className={styles.inner} style={innerStyle}>
<View className={styles.inner} style={innerStyle}>
<MainHeader />
<MainHeader />
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment