Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
jijin
/
dance-pc
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
2d773c53
authored
2025-06-13 16:30:15 +0800
by
zhangmeng
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
参赛指南
1 parent
c284720d
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
25 additions
and
24 deletions
src/layoutPc/components/AppHeader.vue
src/store/modules/user.js
src/viewsPc/guide/index.vue
src/viewsPc/index.vue
src/viewsPc/index_en.vue
src/layoutPc/components/AppHeader.vue
View file @
2d773c5
...
...
@@ -13,7 +13,7 @@
>
<el-menu-item
index=
"/"
>
{{
language
==
0
?
'首页'
:
'HOME'
}}
</el-menu-item>
<el-menu-item
index=
"/news"
>
{{
language
==
0
?
'新闻资讯'
:
'NEWS'
}}
</el-menu-item>
<el-menu-item
:index=
"`/guide/index?index=8&cptId=$
{cptId}`
">
{{
<el-menu-item
index=
"/guide/index
"
>
{{
language
==
0
?
'参赛指南'
:
'GUIDELINE'
}}
</el-menu-item>
...
...
@@ -36,7 +36,7 @@
>
<el-menu-item
index=
"/"
>
{{ language == 0 ? '首页' : 'HOME' }}
</el-menu-item>
<el-menu-item
index=
"/news"
>
{{ language == 0 ? '新闻资讯' : 'NEWS' }}
</el-menu-item>
<el-menu-item
:index=
"`/guide/index?index=8&cptId=${cptId}`
"
>
{{
<el-menu-item
index=
"/guide/index
"
>
{{
language == 0 ? '参赛指南' : 'GUIDELINE'
}}
</el-menu-item>
...
...
@@ -191,8 +191,6 @@ import CaptchaSms from './captchaSms'
import
cache
from
'@/plugins/cache'
import
{
useStorage
}
from
'@vueuse/core'
const
cptId
=
computed
(()
=>
useUserStore
().
nowMatch
)
const
router
=
useRouter
()
const
route
=
useRoute
()
const
{
proxy
}
=
getCurrentInstance
()
...
...
src/store/modules/user.js
View file @
2d773c5
...
...
@@ -34,8 +34,7 @@ const useUserStore = defineStore(
reLogin
:
{
show
:
false
,
query
:
{}},
visitor
:
false
,
language
:
0
,
activeName
:
'5'
,
nowMatch
:
''
activeName
:
'5'
}),
actions
:
{
// 登录
...
...
@@ -191,9 +190,6 @@ const useUserStore = defineStore(
},
updataActiveName
(
v
)
{
this
.
activeName
=
v
},
updateNowMatch
(
v
)
{
this
.
nowMatch
=
v
}
}
})
...
...
src/viewsPc/guide/index.vue
View file @
2d773c5
...
...
@@ -34,7 +34,13 @@
<label>
{{ language === 0 ? '点击下载' : 'DownLoad' }}:
</label>
<div
v-if=
"fileList.length>0"
>
<div
v-for=
"f in fileList"
:key=
"f"
>
<a
:href=
"fillImgUrl(f.url) "
class=
"text-primary"
target=
"_blank"
>
<a
v-if=
"route.query.cptId"
:href=
"fillImgUrl(f.url) "
class=
"text-primary"
target=
"_blank"
>
<el-icon
style=
"position: relative;top: 2px"
>
<download
/>
</el-icon>
{{ f.name }}
</a>
<a
v-else
:href=
"fillImgUrl(f.fileUrl) "
class=
"text-primary"
target=
"_blank"
>
<el-icon
style=
"position: relative;top: 2px"
>
<download
/>
</el-icon>
...
...
@@ -125,18 +131,21 @@ const changeTab = (n) => {
activeName
.
value
=
n
if
(
n
==
8
)
{
getMatch
()
// var obj = { sortId: 30000009, language: 1 }
// if (language.value == 1) {
// obj.language = 2
// }
// getZNList(obj).then(res => {
// fileList.value = res.rows
// for (const f of fileList.value) {
// f.fileUrl = JSON.parse(f.picUrl)[0].url
// }
// console.log(fileList.value)
// })
if
(
route
.
query
.
cptId
)
{
getMatch
()
}
else
{
var
obj
=
{
sortId
:
30000009
,
language
:
1
}
if
(
language
.
value
==
1
)
{
obj
.
language
=
2
}
getZNList
(
obj
).
then
(
res
=>
{
fileList
.
value
=
res
.
rows
for
(
const
f
of
fileList
.
value
)
{
f
.
fileUrl
=
JSON
.
parse
(
f
.
picUrl
)[
0
].
url
}
console
.
log
(
fileList
.
value
)
})
}
}
else
{
loading
.
value
=
true
getppInfo
(
list
.
value
[
n
].
code
).
then
(
res
=>
{
...
...
src/viewsPc/index.vue
View file @
2d773c5
...
...
@@ -545,7 +545,6 @@ const init = () => {
}
}
matchData
.
value
=
maList
.
value
[
0
]
useUserStore
().
updateNowMatch
(
matchData
.
value
.
id
)
})
getpartners
()
}
...
...
src/viewsPc/index_en.vue
View file @
2d773c5
...
...
@@ -526,7 +526,6 @@ const init = () => {
}
}
matchData
.
value
=
maList
.
value
[
0
]
useUserStore
().
updateNowMatch
(
matchData
.
value
.
id
)
})
getpartners
()
}
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
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 post a comment