Commit 486b7398 authored by hewenhao's avatar hewenhao

feat: 增加资料领取二维码

parent f71dcc9f
...@@ -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"
} }
} }
...@@ -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
...@@ -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 {
......
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>
</> </>
) )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment