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
3a7e9f17
Commit
3a7e9f17
authored
Apr 28, 2023
by
hewenhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: receiv point
parent
94c1fa68
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
1 deletion
+15
-1
auth-phone-before.tsx
src/pages/market/components/tutorial/auth-phone-before.tsx
+14
-0
receive-point.tsx
src/pages/market/components/tutorial/receive-point.tsx
+1
-1
No files found.
src/pages/market/components/tutorial/auth-phone-before.tsx
View file @
3a7e9f17
import
{
View
,
RootPortal
,
Image
,
Text
}
from
'@tarojs/components'
import
{
useEffect
}
from
'react'
import
tutorialAssets
from
'@/assets/oss/assets-tutorial'
import
classNames
from
'classnames'
import
{
useStoreState
,
useStoreActions
}
from
'@/store/hooks'
import
styles
from
'./shared.module.scss'
type
ModalAuthPhoneBeforeProps
=
{
...
...
@@ -9,6 +11,18 @@ type ModalAuthPhoneBeforeProps = {
const
ModalAuthPhoneBefore
=
(
props
:
ModalAuthPhoneBeforeProps
)
=>
{
const
{
onConfirm
}
=
props
const
userInfo
=
useStoreState
(
state
=>
state
.
userModel
.
userInfo
)
const
nextStoreGuide
=
useStoreActions
(
actions
=>
actions
.
guideModel
.
nextStoreGuide
)
useEffect
(()
=>
{
if
(
userInfo
.
authPhone
===
'Y'
)
{
nextStoreGuide
()
}
},
[
userInfo
.
authPhone
,
nextStoreGuide
])
if
(
userInfo
.
authPhone
===
'Y'
)
{
return
null
}
return
(
<
RootPortal
>
...
...
src/pages/market/components/tutorial/receive-point.tsx
View file @
3a7e9f17
...
...
@@ -53,7 +53,7 @@ const ModalReceivePoint = (props: ReceivePointProps) => {
if
(
loading
)
return
loadingActions
.
setTrue
()
try
{
//
await receivePoint()
await
receivePoint
()
loadingActions
.
setFalse
()
onConfirm
&&
onConfirm
()
}
catch
(
err
)
{
...
...
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