Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
杨炀
/
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
9dc18f50
authored
2024-05-27 17:58:43 +0800
by
杨炀
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
大师课
1 parent
c1726908
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
76 additions
and
21 deletions
src/apiPc/common.js
src/viewsPc/components/masterClass.vue
src/viewsPc/home.vue
src/viewsPc/index.vue
src/viewsPc/index_en.vue
vite.config.js
src/apiPc/common.js
View file @
9dc18f5
...
...
@@ -47,6 +47,7 @@ export function newbilllist(query) {
params
:
query
})
}
export
function
vistorRegister
(
data
)
{
return
request
({
url
:
`/pcSimpleRegister`
,
...
...
@@ -68,3 +69,40 @@ export function upgradeTeam(data) {
data
:
data
})
}
export
function
submitMasterApply
(
data
)
{
return
request
({
url
:
`/league/courseUser`
,
method
:
'post'
,
data
:
data
})
}
export
function
masterClassList
(
query
)
{
return
request
({
url
:
`/league/courseItem/list`
,
method
:
'get'
,
params
:
query
})
}
export
function
getByCard
(
query
)
{
return
request
({
url
:
`/league/courseUser/getByCard`
,
method
:
'get'
,
params
:
query
})
}
export
function
getMasterApply
(
query
)
{
return
request
({
url
:
`/league/courseUser/getCourseByUser`
,
method
:
'get'
,
params
:
query
})
}
export
function
delByCard
(
card
)
{
return
request
({
url
:
`/league/courseUser/delByCard?card=
${
card
}
`
,
method
:
'delete'
})
}
...
...
src/viewsPc/components/masterClass.vue
View file @
9dc18f5
This diff is collapsed.
Click to expand it.
src/viewsPc/home.vue
View file @
9dc18f5
<
template
>
<div>
<index-Ch
v-if=
"language ==0"
/>
<index-En
v-else
/>
<index-Ch
v-if=
"language ==0"
@
pop=
"openMaster"
/>
<index-En
v-else
@
pop=
"openMaster"
/>
<div
v-if=
"showgg"
class=
"fixed_gg"
>
<!--天气-->
<el-icon
class=
"cclose"
@
click
.
stop=
"showgg=false"
><circle-close
/></el-icon>
...
...
@@ -59,6 +59,8 @@
</div>
</el-dialog>
</div>
<dialog-master-class
ref=
"masterClassRef"
/>
</div>
</
template
>
...
...
@@ -67,10 +69,12 @@
import
IndexCh
from
'/src/viewsPc/index'
import
IndexEn
from
'/src/viewsPc/index_en'
import
WeatherIcon
from
'@/viewsPc/components/weatherIcon'
import
DialogMasterClass
from
'@/viewsPc/components/masterClass'
import
{
useStorage
}
from
"@vueuse/core/index"
;
import
{
ref
}
from
"vue"
;
import
{
getWeather
}
from
"@/apiPc/webSite"
;
import
{
getCurrentInstance
}
from
"@vue/runtime-core"
;
const
{
proxy
}
=
getCurrentInstance
()
const
showgg
=
ref
(
true
)
const
language
=
useStorage
(
'language'
,
0
)
...
...
@@ -91,7 +95,14 @@ function init(){
const
popWeather
=
()
=>
{
weatherdialog
.
value
=
true
}
const
openMaster
=
(
params
)
=>
{
console
.
log
(
params
)
var
obj
=
{
title
:
'大师课申请'
,
cptId
:
params
.
cptId
}
proxy
.
$refs
[
'masterClassRef'
].
open
(
obj
)
}
</
script
>
<
style
scoped
lang=
"scss"
>
...
...
src/viewsPc/index.vue
View file @
9dc18f5
...
...
@@ -94,7 +94,7 @@
</el-icon>
</a>
<el-button>
大师公益课报名
</el-button>
<el-button
class=
"zn-btn ml20"
@
click=
"popMaster"
>
大师公益课报名
</el-button>
</div>
</el-col>
<el-col
:sm=
"24"
:lg=
"14"
>
...
...
@@ -361,7 +361,7 @@ import HomeQuick from '@/viewsPc/components/homeQuick'
import
HomeCalendar
from
'@/viewsPc/components/homeCalendar'
import
{
ref
,
nextTick
,
onMounted
,
watch
}
from
'vue'
import
{
getCurrentInstance
}
from
'@vue/runtime-core'
import
{
getHomePage
,
getNewsListById
,
getNewsList
,
getWeather
}
from
'@/apiPc/webSite'
import
{
getHomePage
,
getNewsListById
,
getNewsList
}
from
'@/apiPc/webSite'
import
{
useRouter
}
from
'vue-router'
import
{
rankList
}
from
'@/assets/js/data'
import
_
from
'lodash'
...
...
@@ -377,14 +377,7 @@ const navigationPic = ref({
})
const
router
=
useRouter
()
const
{
proxy
}
=
getCurrentInstance
()
const
bannerVideo
=
ref
(
null
)
const
isPlay
=
ref
(
false
)
const
canPrev
=
ref
(
false
)
const
canNext
=
ref
(
false
)
const
activeRankName
=
ref
(
0
)
const
weatherObj
=
ref
({
forecast
:[]
})
const
emit
=
defineEmits
([
'pop'
])
const
time
=
ref
(
0
)
const
personList
=
ref
([
{
name
:
'Wolfgang Eliasch'
,
pp
:
'拉丁舞裁判长 奥地利'
,
src
:
'/img/1.png'
},
...
...
@@ -402,12 +395,10 @@ const news = ref([])
const
notice
=
ref
([])
const
display
=
ref
([])
const
scores
=
ref
([])
const
nowscores
=
ref
([])
const
livelist
=
ref
([])
const
matchData
=
ref
({})
const
maList
=
ref
([])
const
loading
=
ref
(
false
)
const
weatherdialog
=
ref
(
false
)
const
picList
=
ref
([])
onMounted
(()
=>
{
...
...
@@ -493,9 +484,6 @@ const goMatch = (n) => {
path
:
`/match/list/
${
n
.
id
}
`
})
}
const
popWeather
=
()
=>
{
weatherdialog
.
value
=
true
}
const
goGuide
=
()
=>
{
router
.
push
({
...
...
@@ -505,6 +493,13 @@ const goGuide = () => {
}
})
}
const
popMaster
=
()
=>
{
var
params
=
{
cptId
:
matchData
.
value
.
id
}
emit
(
'pop'
,
params
)
}
</
script
>
<
style
scoped
lang=
"scss"
>
...
...
src/viewsPc/index_en.vue
View file @
9dc18f5
...
...
@@ -89,6 +89,10 @@
GUIDELINE
<el-icon><download
/></el-icon>
</a>
<a
@
click=
"popMaster"
>
</a>
</div>
</el-col>
<el-col
:sm=
"24"
:lg=
"14"
>
...
...
@@ -385,6 +389,7 @@ const navigationPic = ref({
})
const
router
=
useRouter
()
const
{
proxy
}
=
getCurrentInstance
()
const
emit
=
defineEmits
([
'pop'
])
const
time
=
ref
(
0
)
const
personList
=
ref
([
...
...
@@ -498,6 +503,12 @@ const goGuide = () => {
}
})
}
const
popMaster
=
()
=>
{
var
params
=
{
cptId
:
matchData
.
value
.
id
}
emit
(
'pop'
,
params
)
}
</
script
>
<
style
scoped
lang=
"scss"
>
...
...
vite.config.js
View file @
9dc18f5
...
...
@@ -82,9 +82,9 @@ export default defineConfig(({ mode, command }) => {
rewrite
:
(
p
)
=>
p
.
replace
(
/^
\/
dev-api
\/
ztx-webSite/
,
''
)
},
'/dev-api'
:
{
// target: 'http://192.168.1.118:8081/',
target
:
'http://192.168.1.118:8081/'
,
// target: 'https://jijin.wtwuxicenter.com/stage-api',
// target: 'https://jijin.wtwuxicenter.com/stage-api',
target
:
'https://jijin.wtwuxicenter.com/stage-api'
,
changeOrigin
:
true
,
rewrite
:
(
p
)
=>
p
.
replace
(
/^
\/
dev-api/
,
''
)
}
...
...
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