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
07759a09
Commit
07759a09
authored
Mar 30, 2023
by
666
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: update
parent
0f55888f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
members.tsx
src/pages/group/components/members.tsx
+7
-6
No files found.
src/pages/group/components/members.tsx
View file @
07759a09
import
{
useMemo
,
useState
,
useEffect
}
from
'react'
import
{
useMemo
,
useState
,
useEffect
}
from
'react'
import
{
getSystemInfoSync
,
createSelectorQuery
}
from
'@tarojs/taro'
import
{
getSystemInfoSync
,
createSelectorQuery
}
from
'@tarojs/taro'
import
{
View
,
Button
,
Text
,
ScrollView
}
from
'@tarojs/components'
import
{
View
,
Button
,
Text
,
ScrollView
}
from
'@tarojs/components'
import
classNames
from
'classnames'
import
{
useBoolean
}
from
'@/hooks/use-boolean'
import
{
useBoolean
}
from
'@/hooks/use-boolean'
import
styles
from
'./members.module.scss'
import
styles
from
'./members.module.scss'
const
screenHeight
=
getSystemInfoSync
().
windowHeight
const
screenHeight
=
getSystemInfoSync
().
windowHeight
const
id
=
'_members_header
_'
const
membersCls
=
'_members_const
_'
const
Members
=
({
tabBarHeight
}:
{
tabBarHeight
:
number
})
=>
{
const
Members
=
({
tabBarHeight
}:
{
tabBarHeight
:
number
})
=>
{
const
[
isRefresh
,
{
setTrue
,
setFalse
}]
=
useBoolean
(
false
)
const
[
isRefresh
,
{
setTrue
,
setFalse
}]
=
useBoolean
(
false
)
...
@@ -22,22 +23,22 @@ const Members = ({ tabBarHeight }: { tabBarHeight: number }) => {
...
@@ -22,22 +23,22 @@ const Members = ({ tabBarHeight }: { tabBarHeight: number }) => {
useEffect
(()
=>
{
useEffect
(()
=>
{
const
query
=
createSelectorQuery
()
const
query
=
createSelectorQuery
()
query
.
select
(
`#
${
id
}
`
)
query
.
select
All
(
`.
${
membersCls
}
`
)
.
boundingClientRect
()
.
boundingClientRect
()
.
exec
((
res
)
=>
{
.
exec
((
res
)
=>
{
if
(
res
[
0
])
{
if
(
res
[
0
])
{
setHeight
(
res
[
0
]
.
height
)
setHeight
(
res
[
0
]
[
0
].
height
+
res
[
0
][
1
].
height
*
1.2
)
}
}
})
})
},
[])
},
[])
const
scrollHeight
=
useMemo
(()
=>
{
const
scrollHeight
=
useMemo
(()
=>
{
return
`
${
screenHeight
-
tabBarHeight
-
height
-
20
0
}
px`
return
`
${
screenHeight
-
tabBarHeight
-
height
-
6
0
}
px`
},
[
screenHeight
,
tabBarHeight
,
height
])
},
[
screenHeight
,
tabBarHeight
,
height
])
return
(
return
(
<
View
className=
{
styles
.
container
}
>
<
View
className=
{
styles
.
container
}
>
<
View
className=
{
styles
.
header
}
id=
{
id
}
>
<
View
className=
{
classNames
(
styles
.
header
,
membersCls
)
}
>
<
Text
className=
{
styles
.
title
}
>
阳光学习帮
</
Text
>
<
Text
className=
{
styles
.
title
}
>
阳光学习帮
</
Text
>
<
View
className=
{
styles
.
sign_in
}
>
<
View
className=
{
styles
.
sign_in
}
>
<
Text
className=
{
styles
.
sign_in_today
}
>
今日部落津贴 +2
</
Text
>
<
Text
className=
{
styles
.
sign_in_today
}
>
今日部落津贴 +2
</
Text
>
...
@@ -80,7 +81,7 @@ const Members = ({ tabBarHeight }: { tabBarHeight: number }) => {
...
@@ -80,7 +81,7 @@ const Members = ({ tabBarHeight }: { tabBarHeight: number }) => {
</
View
>
</
View
>
</
ScrollView
>
</
ScrollView
>
<
View
className=
{
styles
.
invite_members
}
>
<
View
className=
{
classNames
(
styles
.
invite_members
,
membersCls
)
}
>
<
Button
className=
{
styles
.
invite_members_btn
}
>
邀请人加入部落 +5答题卡
</
Button
>
<
Button
className=
{
styles
.
invite_members_btn
}
>
邀请人加入部落 +5答题卡
</
Button
>
<
Text
>
赠送朋友5张答题卡,一起来进击
</
Text
>
<
Text
>
赠送朋友5张答题卡,一起来进击
</
Text
>
<
Text
>
好友进入小程序通关1关+5
</
Text
>
<
Text
>
好友进入小程序通关1关+5
</
Text
>
...
...
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