Skip to content

Commit

Permalink
feat: update
Browse files Browse the repository at this point in the history
  • Loading branch information
jiazengp committed Sep 3, 2023
1 parent 4cea4b9 commit 08b6315
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 5 deletions.
29 changes: 24 additions & 5 deletions src/download-client.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,33 @@ theme: medium
```

<script setup>
import { useUrlSearchParams } from '@vueuse/core'
import { onMounted } from 'vue'
import { isNumber } from '../.vitepress/theme/utils'

const params = useUrlSearchParams('history')
const downloadMethod = [
{ name: '加入社区', target: '_self', link: './community', icon: '/imgs/logo_256.png' },
{ name: '百度网盘', target: '_black', link: 'https://pan.baidu.com/s/1mrU_bkqcpcdjeKPUCzMNDQ?pwd=kyjg', icon: '/svg/baidu-drive.svg'
{ id:'sq', name: '加入社区', target: '_self', link: './community', icon: '/imgs/logo_256.png' },
{ id:'bd', name: '百度网盘', target: '_black', link: 'https://pan.baidu.com/s/1mrU_bkqcpcdjeKPUCzMNDQ?pwd=kyjg', icon: '/svg/baidu-drive.svg'
},
{ name: '夸克网盘', target: '_black', link: 'https://pan.quark.cn/s/fe8bb34c77bc', icon: '/svg/quark-drive.svg'
{ id: 'kk', name: '夸克网盘', target: '_black', link: 'https://pan.quark.cn/s/fe8bb34c77bc', icon: '/svg/quark-drive.svg'
},
{ name: '天翼云盘', secondary: '访问码:exn0', target: '_black', link: 'https://cloud.189.cn/t/YF7Fj2zIRVbi', icon: '/svg/tianyi-drive.svg'
{ id: 'ty', name: '天翼云盘', secondary: '访问码:exn0', target: '_black', link: 'https://cloud.189.cn/t/YF7Fj2zIRVbi', icon: '/svg/tianyi-drive.svg'
},
{ name: 'Google Drive', target: '_black', link: 'https://drive.google.com/drive/folders/1ade5zOu14oMIJlwaJd0qf-S_xdH9pkSa?usp=sharing', icon: 'i-logos-google-drive' }
{ id:'gd', name: 'Google Drive', target: '_black', link: 'https://drive.google.com/drive/folders/1ade5zOu14oMIJlwaJd0qf-S_xdH9pkSa?usp=sharing', icon: 'i-logos-google-drive' }
]

function jump() {
const target = String(params.q).toLocaleLowerCase()

downloadMethod.forEach((val) => {
if (val.id === target) {
location.href = val.link
}
})
}

onMounted(()=> {
jump()
})
</script>
26 changes: 26 additions & 0 deletions src/join.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,32 @@ description: 加入我们
1. 数学系相关专业研究生及以上学历。
:::

<script setup>
import { useUrlSearchParams } from '@vueuse/core'
import { onMounted } from 'vue'
import { isNumber } from '../.vitepress/theme/utils'

const params = useUrlSearchParams('history')
const group = [
{id: 'dd', link: 'http://qm.qq.com/cgi-bin/qm/qr?_wv=1027&k=-HGS3II1no-AEcWHYdrhsJCN2IfKQeji&authKey=qbjuuv5VygEdFUAZSCCr2kim3V0lYvLvRjJwM7nv8KplMKjVAO4m2FuDovmcx%2FJP&noverify=0&group_code=522563995 '},
{id: 'kf', link: 'https://qm.qq.com/cgi-bin/qm/qr?k=jkbGpnEQlZ-1J2W0_RpWJXDkqD49Z-8N&jump_from=webapi' }
]

function jump() {
const target = String(params.q).toLocaleLowerCase()

group.forEach((val) => {
if (val.id === target) {
location.href = val.link
}
})
}

onMounted(()=> {
jump()
})
</script>

<style lang="scss" scoped>

.vp-raw {
Expand Down

0 comments on commit 08b6315

Please sign in to comment.