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
486b7398
Commit
486b7398
authored
May 11, 2024
by
hewenhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 增加资料领取二维码
parent
f71dcc9f
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
38 additions
and
6 deletions
+38
-6
.oss
assets/main-next/.oss
+6
-0
join-group.png
assets/main-next/join-group.png
+0
-0
assets-main-next.ts
src/assets/oss/assets-main-next.ts
+5
-0
chapter.module.scss
src/pages/main/main-underground/chapter.module.scss
+13
-5
chapter.tsx
src/pages/main/main-underground/chapter.tsx
+14
-1
No files found.
assets/main-next/.oss
View file @
486b7398
...
@@ -208,5 +208,11 @@
...
@@ -208,5 +208,11 @@
"w": 80,
"w": 80,
"h": 80,
"h": 80,
"ossName": "/pk-math/hKPvXfVYCPjrLcH5FdY3kUZM35m/80x80"
"ossName": "/pk-math/hKPvXfVYCPjrLcH5FdY3kUZM35m/80x80"
},
"join-group.png": {
"u": "https://cdn.jkwljy.com/pk-math/4GtpwYctLpQuUkyaXYq9YYyUADWL/132x132",
"w": 132,
"h": 132,
"ossName": "/pk-math/4GtpwYctLpQuUkyaXYq9YYyUADWL/132x132"
}
}
}
}
assets/main-next/join-group.png
0 → 100644
View file @
486b7398
8.68 KB
src/assets/oss/assets-main-next.ts
View file @
486b7398
...
@@ -175,5 +175,10 @@ export default {
...
@@ -175,5 +175,10 @@ export default {
"u"
:
"https://cdn.jkwljy.com/pk-math/hKPvXfVYCPjrLcH5FdY3kUZM35m/80x80"
,
"u"
:
"https://cdn.jkwljy.com/pk-math/hKPvXfVYCPjrLcH5FdY3kUZM35m/80x80"
,
"w"
:
80
,
"w"
:
80
,
"h"
:
80
"h"
:
80
},
"join-group.png"
:
{
"u"
:
"https://cdn.jkwljy.com/pk-math/4GtpwYctLpQuUkyaXYq9YYyUADWL/132x132"
,
"w"
:
132
,
"h"
:
132
}
}
}
as
const
}
as
const
src/pages/main/main-underground/chapter.module.scss
View file @
486b7398
...
@@ -20,6 +20,13 @@
...
@@ -20,6 +20,13 @@
}
}
}
}
.joinGroup
{
position
:
absolute
;
bottom
:
-272px
;
right
:
16px
;
z-index
:
3000
;
}
.pk
{
.pk
{
position
:
absolute
;
position
:
absolute
;
bottom
:
-132px
;
bottom
:
-132px
;
...
@@ -36,11 +43,12 @@
...
@@ -36,11 +43,12 @@
border
:
2px
solid
#FFFFFF
;
border
:
2px
solid
#FFFFFF
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
}
}
.pkIcon
{
}
width
:
132px
;
height
:
132px
;
.pkIcon
{
display
:
block
;
width
:
132px
;
}
height
:
132px
;
display
:
block
;
}
}
.guide
{
.guide
{
...
...
src/pages/main/main-underground/chapter.tsx
View file @
486b7398
import
{
View
,
Image
}
from
'@tarojs/components'
import
{
View
,
Image
}
from
'@tarojs/components'
import
assetsMainNext
from
'@/assets/oss/assets-main-next'
import
assetsMainNext
from
'@/assets/oss/assets-main-next'
import
{
getMenuButtonBoundingClientRect
,
getSystemInfoSync
,
navigateTo
}
from
'@tarojs/taro'
import
{
getMenuButtonBoundingClientRect
,
getSystemInfoSync
,
navigateTo
,
previewImage
}
from
'@tarojs/taro'
import
{
useStoreActions
,
useStoreState
}
from
'@/store/hooks'
import
{
useStoreActions
,
useStoreState
}
from
'@/store/hooks'
import
{
useMemo
}
from
'react'
import
{
useMemo
}
from
'react'
import
styles
from
'./chapter.module.scss'
import
styles
from
'./chapter.module.scss'
const
qrCodeUrl
=
'https://frontend-bkt-1257124244.cos.ap-chengdu.myqcloud.com/pk-math/qrcode-expire-in-7.png'
const
showGroupQrcode
=
()
=>
{
previewImage
({
current
:
qrCodeUrl
,
urls
:
[
qrCodeUrl
]
})
}
const
MainHeader
=
()
=>
{
const
MainHeader
=
()
=>
{
const
nav
=
useMemo
(
getMenuButtonBoundingClientRect
,
[])
const
nav
=
useMemo
(
getMenuButtonBoundingClientRect
,
[])
const
sys
=
useMemo
(
getSystemInfoSync
,
[])
const
sys
=
useMemo
(
getSystemInfoSync
,
[])
...
@@ -51,6 +60,10 @@ const MainHeader = () => {
...
@@ -51,6 +60,10 @@ const MainHeader = () => {
{
/* <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
>
<
View
className=
{
styles
.
joinGroup
}
onClick=
{
showGroupQrcode
}
>
{
/* <View className={styles.dot}></View> */
}
<
Image
src=
{
assetsMainNext
[
'join-group.png'
].
u
}
className=
{
styles
.
pkIcon
}
></
Image
>
</
View
>
</
View
>
</
View
>
</>
</>
)
)
...
...
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