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
96888dd1
Commit
96888dd1
authored
Jun 16, 2023
by
raca
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 联调
parent
c3d86c0c
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
14 additions
and
7 deletions
+14
-7
app.config.ts.tpl
scripts/app.config.ts.tpl
+1
-1
index.tsx
src/pages/battles/index.tsx
+1
-2
chapter.tsx
src/pages/main/main-underground/chapter.tsx
+2
-2
create-pk.tsx
src/pages/main/main-underground/create-pk.tsx
+2
-2
rename-card.png
src/pages/market/assets/rename-card.png
+0
-0
index.tsx
src/pages/market/index.tsx
+8
-0
No files found.
scripts/app.config.ts.tpl
View file @
96888dd1
...
@@ -6,12 +6,12 @@
...
@@ -6,12 +6,12 @@
export default {
export default {
pages: [
pages: [
'pages/market/index',
'pages/main/main',
'pages/main/main',
'pages/accept-pk/index',
'pages/accept-pk/index',
'pages/battles/index',
'pages/battles/index',
'pages/prepare/index',
'pages/prepare/index',
'pages/group/index',
'pages/group/index',
'pages/market/index',
'pages/game/play/index',
'pages/game/play/index',
'pages/game/wrong/index',
'pages/game/wrong/index',
'pages/game/complete/index',
'pages/game/complete/index',
...
...
src/pages/battles/index.tsx
View file @
96888dd1
...
@@ -12,7 +12,6 @@ import styles from './index.module.scss'
...
@@ -12,7 +12,6 @@ import styles from './index.module.scss'
const
Battles
=
()
=>
{
const
Battles
=
()
=>
{
const
nav
=
useMemo
(
getMenuButtonBoundingClientRect
,
[])
const
nav
=
useMemo
(
getMenuButtonBoundingClientRect
,
[])
const
payload
=
{
stageId
:
1
}
const
records
=
useStoreState
((
state
)
=>
state
.
battlesModel
.
records
)
const
records
=
useStoreState
((
state
)
=>
state
.
battlesModel
.
records
)
const
fetchUserDetails
=
useStoreActions
(
const
fetchUserDetails
=
useStoreActions
(
...
@@ -23,7 +22,7 @@ const Battles = () => {
...
@@ -23,7 +22,7 @@ const Battles = () => {
)
)
useDidShow
(()
=>
{
useDidShow
(()
=>
{
Promise
.
allSettled
([
fetchUserDetails
(
payload
),
fetchUserRecords
(
payload
)])
Promise
.
allSettled
([
fetchUserDetails
(
{}),
fetchUserRecords
({}
)])
})
})
return
(
return
(
...
...
src/pages/main/main-underground/chapter.tsx
View file @
96888dd1
import
{
View
,
Text
,
Image
}
from
'@tarojs/components'
import
{
View
,
Text
,
Image
}
from
'@tarojs/components'
import
assetsMainNext
from
'@/assets/oss/assets-main-next'
import
assetsMainNext
from
'@/assets/oss/assets-main-next'
import
{
getMenuButtonBoundingClientRect
,
getSystemInfoSync
}
from
'@tarojs/taro'
import
{
getMenuButtonBoundingClientRect
,
getSystemInfoSync
,
navigateTo
}
from
'@tarojs/taro'
import
{
useMemo
}
from
'react'
import
{
useMemo
}
from
'react'
import
styles
from
'./chapter.module.scss'
import
styles
from
'./chapter.module.scss'
...
@@ -42,7 +42,7 @@ const MainHeader = () => {
...
@@ -42,7 +42,7 @@ const MainHeader = () => {
</
View
>
</
View
>
</
View
>
</
View
>
<
View
className=
{
styles
.
pk
}
>
<
View
className=
{
styles
.
pk
}
onClick=
{
()
=>
navigateTo
({
url
:
'/pages/battles/index'
})
}
>
<
View
className=
{
styles
.
dot
}
></
View
>
<
View
className=
{
styles
.
dot
}
></
View
>
<
Image
src=
{
assetsMainNext
[
'pk-btn.png'
].
u
}
className=
{
styles
.
pkIcon
}
></
Image
>
<
Image
src=
{
assetsMainNext
[
'pk-btn.png'
].
u
}
className=
{
styles
.
pkIcon
}
></
Image
>
</
View
>
</
View
>
...
...
src/pages/main/main-underground/create-pk.tsx
View file @
96888dd1
import
{
View
,
Image
,
Button
}
from
'@tarojs/components'
import
{
View
,
Image
,
Button
}
from
'@tarojs/components'
import
assetsPk
from
'@/assets/oss/assets-pk'
import
assetsPk
from
'@/assets/oss/assets-pk'
import
{
useMemo
}
from
'react'
import
{
useMemo
}
from
'react'
import
{
getMenuButtonBoundingClientRect
}
from
'@tarojs/taro'
import
{
getMenuButtonBoundingClientRect
,
navigateTo
}
from
'@tarojs/taro'
import
classNames
from
'classnames'
import
classNames
from
'classnames'
import
assetsMainNext
from
'@/assets/oss/assets-main-next'
import
assetsMainNext
from
'@/assets/oss/assets-main-next'
import
{
cs
}
from
'@/styles'
import
{
cs
}
from
'@/styles'
...
@@ -46,7 +46,7 @@ const CreatePk = (props: CreatePkProps) => {
...
@@ -46,7 +46,7 @@ const CreatePk = (props: CreatePkProps) => {
<
View
className=
{
classNames
(
styles
.
top
,
visible
&&
styles
.
is_show
)
}
>
<
View
className=
{
classNames
(
styles
.
top
,
visible
&&
styles
.
is_show
)
}
>
<
Image
src=
{
assetsMainNext
[
'pk-top.png'
].
u
}
className=
{
styles
.
bg_top
}
mode=
"widthFix"
></
Image
>
<
Image
src=
{
assetsMainNext
[
'pk-top.png'
].
u
}
className=
{
styles
.
bg_top
}
mode=
"widthFix"
></
Image
>
<
View
className=
{
styles
.
top_content
}
>
<
View
className=
{
styles
.
top_content
}
>
<
View
className=
{
styles
.
pk_history
}
style=
{
historyStyle
}
>
<
View
className=
{
styles
.
pk_history
}
style=
{
historyStyle
}
onClick=
{
()
=>
navigateTo
({
url
:
'/pages/battles/index'
})
}
>
PK记录
<
Image
src=
{
assetsMainNext
[
'pk-history-arrow.png'
].
u
}
className=
{
styles
.
pk_history_arrow
}
/>
PK记录
<
Image
src=
{
assetsMainNext
[
'pk-history-arrow.png'
].
u
}
className=
{
styles
.
pk_history_arrow
}
/>
</
View
>
</
View
>
<
Image
src=
{
assetsMainNext
[
'challenge-avatar.png'
].
u
}
className=
{
styles
.
challenge_2
}
mode=
"heightFix"
/>
<
Image
src=
{
assetsMainNext
[
'challenge-avatar.png'
].
u
}
className=
{
styles
.
challenge_2
}
mode=
"heightFix"
/>
...
...
src/pages/market/assets/rename-card.png
0 → 100644
View file @
96888dd1
6.6 KB
src/pages/market/index.tsx
View file @
96888dd1
...
@@ -111,6 +111,14 @@ const StudyMarket = () => {
...
@@ -111,6 +111,14 @@ const StudyMarket = () => {
isGuideCard
:
true
,
isGuideCard
:
true
,
img
:
assets
[
'tool-1.png'
].
u
,
img
:
assets
[
'tool-1.png'
].
u
,
},
},
{
subTitle
:
'改名卡'
,
description
:
'用于更改个人角色名称'
,
price
:
100
,
stock
:
null
,
isGuideCard
:
true
,
img
:
assets
[
'tool-1.png'
].
u
,
},
...
itemList
...
itemList
]
]
},
[
setting
])
},
[
setting
])
...
...
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