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
4ee16a30
authored
2024-04-16 13:46:24 +0800
by
杨炀
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
no message
1 parent
4829bac4
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
18 deletions
src/viewsPc/match/chooseProject.vue
src/viewsPc/match/components/addWdsf.vue
src/viewsPc/saiC/index.vue
src/viewsPc/match/chooseProject.vue
View file @
4ee16a3
...
...
@@ -17,8 +17,10 @@
<h3
class=
"panel-title"
v-else
>
My Information
</h3>
</div>
<div
class=
"panel-body"
>
<div
v-if=
"form.danceMate"
>
<div
class=
"text-danger fontsize14 mb10"
v-if=
"language==0"
>
*报名双人项目请勾选您的舞伴
</div>
<div
class=
"text-danger fontsize14 mb10"
v-else
>
*Please select your dance mate if you are signing up for a double event
</div>
</div>
<div
class=
"chooseForm"
style=
"display: flex;flex-wrap: wrap;"
>
<div
@
click=
"editPerson"
class=
"mb20"
style=
"width: 50%;text-align: center;"
>
<el-avatar
fit=
"cover"
v-if=
"form.picUrl"
:size=
"60"
:src=
"fillImgUrl(form.picUrl)"
/>
...
...
@@ -56,15 +58,15 @@
</el-checkbox>
</el-checkbox-group>
</div>
<div
style=
"min-width:50%;"
v-else
@
click=
"addMate"
>
<div
class=
"addBttn"
style=
"margin: 0 auto"
>
+
</div
>
<div
class=
"text-center mt10 text-primary text-sm"
>
Please add your partner
<el-icon
>
<Edit/
>
</el-icon
>
</div
>
</div
>
<!--
<div
style=
"min-width:50%;"
v-else
@
click=
"addMate"
hidden
>
--
>
<!--
<div
class=
"addBttn"
style=
"margin: 0 auto"
>
+
</div>
--
>
<!--
<div
class=
"text-center mt10 text-primary text-sm"
>
--
>
<!-- Please add your partner-->
<!--
<el-icon>
--
>
<!--
<Edit/>
--
>
<!--
</el-icon>
--
>
<!--
</div>
--
>
<!--
</div>
--
>
</div>
</div>
</div>
...
...
src/viewsPc/match/components/addWdsf.vue
View file @
4ee16a3
...
...
@@ -254,25 +254,32 @@ function submitForm() {
if
(
Array
.
isArray
(
form
.
value
.
passportUrl
))
{
form
.
value
.
passportUrl
=
form
.
value
.
passportUrl
[
0
].
url
}
if
(
groupId
==
'0'
){
if
(
groupId
==
'0'
||!
groupId
){
addPersonal
()
}
else
{
if
(
groupId
){
addGroupMember
()
}
}
}
}
}
function
addPersonal
()
{
match
.
savePersonForMyPerson
(
form
.
value
).
then
(
res
=>
{
ElMessage
.
success
(
'保存成功'
)
show
.
value
=
false
emit
(
'submitForm'
,
res
.
data
)
})
}
else
{
}
function
addGroupMember
()
{
form
.
value
.
groupId
=
groupId
match
.
savePersonForMyGroup
(
form
.
value
).
then
(
res
=>
{
ElMessage
.
success
(
language
.
value
==
0
?
'保存成功'
:
'Save successful'
)
show
.
value
=
false
emit
(
'submitForm'
)
})
}
}
}
}
function
cancel
()
{
show
.
value
=
false
showVcode
.
value
=
false
...
...
src/viewsPc/saiC/index.vue
View file @
4ee16a3
...
...
@@ -10,8 +10,7 @@
<el-calendar
v-model=
"calendarValue"
>
<template
#
date-cell=
"data"
>
<div
v-if=
"data.data.day.slice(8,10)==22"
class=
"primaryDate date"
>
22
</div>
<div
v-else
class=
"date"
>
<div
class=
"date"
:class=
"data.data.day==calendarValue?'primaryDate':''"
@
click=
"selectDate(data.data.day)"
>
{{
data
.
data
.
day
.
slice
(
8
,
10
)
}}
</div>
...
...
@@ -85,7 +84,7 @@ const ztxPlanList = ref([])
const
planList
=
ref
([])
const
schList
=
ref
([])
const
loading
=
ref
(
false
)
const
calendarValue
=
ref
(
'2024-07-22'
)
const
calendarValue
=
ref
(
new
Date
()
)
// onMounted(() => {
...
...
@@ -101,6 +100,10 @@ const calendarValue = ref('2024-07-22')
// }
// })
function
selectDate
(
date
)
{
console
.
log
(
date
,
calendarValue
.
value
)
}
function
getPlanList
()
{
loading
.
value
=
true
...
...
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