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
02a336a0
Commit
02a336a0
authored
May 23, 2023
by
杨梦雪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
多形式活动-邀请码
parent
b8a7d420
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
296 additions
and
212 deletions
+296
-212
src/components/index/SignUp/invitation.vue
src/components/index/SignUp/invitation.vue
+221
-202
src/components/index/SignUp/referInfo.vue
src/components/index/SignUp/referInfo.vue
+11
-4
src/components/index/cueDialog.vue
src/components/index/cueDialog.vue
+58
-0
src/views/index/recruit/Index.vue
src/views/index/recruit/Index.vue
+6
-6
No files found.
src/components/index/SignUp/invitation.vue
View file @
02a336a0
This diff is collapsed.
Click to expand it.
src/components/index/SignUp/referInfo.vue
View file @
02a336a0
...
@@ -929,6 +929,8 @@
...
@@ -929,6 +929,8 @@
<el-button
@
click=
"confirm"
>
提交资料
</el-button>
<el-button
@
click=
"confirm"
>
提交资料
</el-button>
</div>
</div>
</el-form>
</el-form>
<!-- 多形式报名邀请码报错弹框 -->
<cueDialog
:dialogVisible=
"cueDialogVisible"
:msg=
"msg"
></cueDialog>
</div>
</div>
</
template
>
</
template
>
...
@@ -946,10 +948,12 @@
...
@@ -946,10 +948,12 @@
import
{
upload
}
from
"
r/index/network
"
;
import
{
upload
}
from
"
r/index/network
"
;
import
validator
from
"
common/validator
"
;
import
validator
from
"
common/validator
"
;
import
area
from
"
config/area
"
;
import
area
from
"
config/area
"
;
import
cueDialog
from
"
c/index/cueDialog
"
;
export
default
{
export
default
{
name
:
"
referInfo
"
,
name
:
"
referInfo
"
,
props
:
{
invitation_code
:
String
},
props
:
{
invitation_code
:
String
},
components
:{
cueDialog
},
data
()
{
data
()
{
const
validateContent
=
(
rule
,
value
,
callback
)
=>
{
const
validateContent
=
(
rule
,
value
,
callback
)
=>
{
if
(
!
this
.
referForm
.
birthday
)
{
if
(
!
this
.
referForm
.
birthday
)
{
...
@@ -973,6 +977,8 @@
...
@@ -973,6 +977,8 @@
}
}
};
};
return
{
return
{
cueDialogVisible
:
false
,
msg
:
null
,
configJson
:
{},
configJson
:
{},
isUploading
:
false
,
// 图片上传蒙层
isUploading
:
false
,
// 图片上传蒙层
isCode
:
false
,
// 邀请码是否禁用
isCode
:
false
,
// 邀请码是否禁用
...
@@ -2005,7 +2011,6 @@
...
@@ -2005,7 +2011,6 @@
obj
.
code
=
_this
.
referForm
.
code
;
obj
.
code
=
_this
.
referForm
.
code
;
}
}
setAccount
(
obj
).
then
((
res
)
=>
{
setAccount
(
obj
).
then
((
res
)
=>
{
// console.log(res, "setAccount");
if
(
res
.
data
.
code
!=
200
)
{
if
(
res
.
data
.
code
!=
200
)
{
if
(
res
.
data
.
code
==
400068
)
{
if
(
res
.
data
.
code
==
400068
)
{
this
.
$parent
.
statuss
();
this
.
$parent
.
statuss
();
...
@@ -2013,11 +2018,13 @@
...
@@ -2013,11 +2018,13 @@
}
}
return
this
.
$message
.
error
(
res
.
data
.
message
);
return
this
.
$message
.
error
(
res
.
data
.
message
);
}
}
// console.log(3333);
if
(
res
.
data
.
code
==
4000346
||
res
.
data
.
code
==
4000347
)
{
this
.
dialogVisible
=
true
;
this
.
msg
=
res
.
data
.
message
return
;
}
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/check?code=" + code);
this
.
referForm
=
res
.
data
.
data
;
this
.
referForm
=
res
.
data
.
data
;
});
});
...
...
src/components/index/cueDialog.vue
0 → 100644
View file @
02a336a0
<
template
>
<el-dialog
:visible.sync=
"dialogVisibleFU"
width=
"30%"
:before-close=
"handleClose"
>
<div
class=
"multiform"
>
<img
src=
"../../assets/img/cue.png"
/>
<span>
{{
msgFU
}}
</span>
</div>
</el-dialog>
</
template
>
<
script
>
export
default
{
name
:
"
cueDialog
"
,
props
:
{
dialogVisible
:
Boolean
,
msg
:
String
,},
data
()
{
return
{
dialogVisibleFU
:
this
.
dialogVisible
,
msgFU
:
this
.
msg
,
};
},
methods
:
{
handleClose
(
done
)
{
done
();
},
},
watch
:
{
dialogVisible
()
{
this
.
dialogVisibleFU
=
this
.
dialogVisible
;
},
signTitle
()
{
this
.
msgFU
=
this
.
msg
;
},
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.multiform
{
display
:
flex
;
flex-direction
:
column
;
align-items
:
center
;
img
{
width
:
35px
;
height
:
35px
;
margin-bottom
:
16px
;
}
}
::v-deep
.el-dialog__body
{
padding
:
10px
30px
35px
30px
;
}
</
style
>
src/views/index/recruit/Index.vue
View file @
02a336a0
...
@@ -2,12 +2,12 @@
...
@@ -2,12 +2,12 @@
<div
class=
"recruit"
>
<div
class=
"recruit"
>
<el-header
height=
"104px"
>
<el-header
height=
"104px"
>
<Header></Header>
<Header></Header>
<div
class=
"notify flex"
>
<!--
<div
class=
"notify flex"
>
--
>
<div
class=
"flex"
>
<!--
<div
class=
"flex"
>
--
>
<img
class=
"notify_img"
src=
"../../../assets/img/notify.png"
alt=
""
/
>
<!--
<img
class=
"notify_img"
src=
"../../../assets/img/notify.png"
alt=
""
/>
--
>
</div
>
<!--
</div>
--
>
<div>
注意:本次活动报名有人数限制,当前共有
{{
info
.
order_num
}}
人申请,剩余名额为
{{
info
.
student_num
}}
人
</div
>
<!--
<div>
注意:本次活动报名有人数限制,当前共有
{{
info
.
order_num
}}
人申请,剩余名额为
{{
info
.
student_num
}}
人
</div>
--
>
</div
>
<!--
</div>
--
>
<div
class=
"bg-top"
></div>
<div
class=
"bg-top"
></div>
</el-header>
</el-header>
...
...
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