Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
campSite
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
杨梦雪
campSite
Commits
069917c7
Commit
069917c7
authored
Apr 26, 2023
by
杨梦雪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
多形式报名
parent
9ad2103d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
33 deletions
+17
-33
src/components/index/SignUp/confirm.vue
src/components/index/SignUp/confirm.vue
+13
-29
src/components/index/SignUp/referInfo.vue
src/components/index/SignUp/referInfo.vue
+4
-4
No files found.
src/components/index/SignUp/confirm.vue
View file @
069917c7
...
@@ -9,7 +9,6 @@
...
@@ -9,7 +9,6 @@
class=
"checkForm"
class=
"checkForm"
:rules=
"referInfoRules"
:rules=
"referInfoRules"
>
>
<el-form-item
v-if=
"is_multiform == 1"
<el-form-item
v-if=
"is_multiform == 1"
label=
"活动形式"
label=
"活动形式"
prop=
"multiform"
prop=
"multiform"
...
@@ -19,7 +18,6 @@
...
@@ -19,7 +18,6 @@
is_multiform == 1 ? referInfoRules.multiform : [
{ required: false }]
is_multiform == 1 ? referInfoRules.multiform : [
{ required: false }]
"
"
>
>
<el-radio-group
ref=
"multiform"
v-model=
"referForm.multiform"
>
<el-radio-group
ref=
"multiform"
v-model=
"referForm.multiform"
>
<div
v-for=
"item in multiform"
:key=
"item.id"
>
<div
v-for=
"item in multiform"
:key=
"item.id"
>
<el-radio
:label=
"item.id.toString()"
>
{{
item
.
multiform_name
}}
</el-radio>
<el-radio
:label=
"item.id.toString()"
>
{{
item
.
multiform_name
}}
</el-radio>
...
@@ -88,38 +86,24 @@
...
@@ -88,38 +86,24 @@
,
,
methods
:
{
methods
:
{
next
()
{
next
()
{
// console.log(this.checked);
if
(
this
.
referForm
.
multiform
==
0
)
{
this
.
$refs
[
"
referRef
"
].
validate
((
valid
,
object
)
=>
{
return
this
.
$message
.
error
(
'
请选择活动形式
'
)
if
(
!
valid
)
{
this
.
scrollView
(
object
);
return
false
;
}
}
let
_this
=
this
;
let
_this
=
this
;
let
obj
=
{};
let
obj
=
{};
//是否选择活动形式
//是否选择活动形式
if
(
this
.
is_multiform
==
1
)
{
obj
.
multiform_id
=
_this
.
referForm
.
multiform
;
obj
.
multiform_id
=
_this
.
referForm
.
multiform
;
}
setSignShould
(
obj
).
then
((
res
)
=>
{
setSignShould
(
obj
).
then
((
res
)
=>
{
// console.log(res, "setSignShould");
if
(
res
.
data
.
code
!==
200
)
return
this
.
$message
.
error
(
res
.
data
.
message
);
if
(
res
.
data
.
code
!==
200
)
return
this
.
$message
.
error
(
res
.
data
.
message
);
this
.
$emit
(
"
getstatus
"
,
res
.
data
.
status
);
this
.
$emit
(
"
getstatus
"
,
res
.
data
.
status
);
this
.
$message
.
success
(
res
.
data
.
message
);
this
.
$message
.
success
(
res
.
data
.
message
);
// let code = this.$store.state.indexIdentity;
// this.$router.push("/signUp/invitation?code="+code);
});
});
},
})
}
,
getCams
()
{
getCams
()
{
getCam
(
this
.
$store
.
state
.
indexIdentity
).
then
((
res
)
=>
{
getCam
(
this
.
$store
.
state
.
indexIdentity
).
then
((
res
)
=>
{
// console.log(res, "res");
if
(
res
.
data
.
code
!=
200
)
{
if
(
res
.
data
.
code
!=
200
)
{
return
this
.
$message
.
error
(
res
.
data
.
message
);
return
this
.
$message
.
error
(
res
.
data
.
message
);
}
}
// this.$message.success(res.data.message);
this
.
info
=
res
.
data
;
this
.
info
=
res
.
data
;
});
});
}
}
...
...
src/components/index/SignUp/referInfo.vue
View file @
069917c7
...
@@ -56,7 +56,7 @@
...
@@ -56,7 +56,7 @@
<el-form-item
<el-form-item
label=
"年龄"
label=
"年龄"
prop=
"age"
prop=
"age"
style=
"height: 7
3
px"
style=
"height: 7
0
px"
:rules=
"
:rules=
"
configJson.age == 1 ? referInfoRules.age : [
{ required: false }]
configJson.age == 1 ? referInfoRules.age : [
{ required: false }]
"
"
...
@@ -75,7 +75,7 @@
...
@@ -75,7 +75,7 @@
<el-form-item
<el-form-item
label=
"国籍"
label=
"国籍"
prop=
"country"
prop=
"country"
style=
"height: 7
3
px"
style=
"height: 7
0
px"
:rules=
"
:rules=
"
configJson.country == 1
configJson.country == 1
? referInfoRules.country
? referInfoRules.country
...
@@ -144,7 +144,7 @@
...
@@ -144,7 +144,7 @@
<el-form-item
<el-form-item
label=
"身份证号"
label=
"身份证号"
prop=
"id_card"
prop=
"id_card"
style=
"height: 7
3
px"
style=
"height: 7
0
px"
:rules=
"
:rules=
"
configJson.idCard == 1
configJson.idCard == 1
? referInfoRules.idCard
? referInfoRules.idCard
...
@@ -164,7 +164,7 @@
...
@@ -164,7 +164,7 @@
<el-col
:span=
"12"
v-show=
"configJson.phone == 1"
>
<el-col
:span=
"12"
v-show=
"configJson.phone == 1"
>
<el-form-item
<el-form-item
label=
"手机号"
label=
"手机号"
style=
"height: 7
3
px"
style=
"height: 7
0
px"
:rules=
"
:rules=
"
configJson.phone == 1
configJson.phone == 1
? referInfoRules.phone
? referInfoRules.phone
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment