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
99d7ed2b
Commit
99d7ed2b
authored
Nov 24, 2021
by
杨梦雪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
11
parent
b5fbbd00
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
29 additions
and
15 deletions
+29
-15
src/components/index/SignUp/confirm.vue
src/components/index/SignUp/confirm.vue
+3
-0
src/components/index/SignUp/invitation.vue
src/components/index/SignUp/invitation.vue
+15
-4
src/components/index/SignUp/pass.vue
src/components/index/SignUp/pass.vue
+1
-2
src/views/index/camp/SignUp.vue
src/views/index/camp/SignUp.vue
+10
-9
No files found.
src/components/index/SignUp/confirm.vue
View file @
99d7ed2b
...
@@ -73,6 +73,9 @@ export default {
...
@@ -73,6 +73,9 @@ export default {
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
@import
"a/scss/btn"
;
@import
"a/scss/btn"
;
.btn
{
padding-bottom
:
34px
;
}
.confirm
{
.confirm
{
padding
:
0
50px
60px
;
padding
:
0
50px
60px
;
.line
{
.line
{
...
...
src/components/index/SignUp/invitation.vue
View file @
99d7ed2b
...
@@ -62,6 +62,7 @@
...
@@ -62,6 +62,7 @@
import
{
setInviteCode
}
from
"
r/index/signUp
"
;
import
{
setInviteCode
}
from
"
r/index/signUp
"
;
export
default
{
export
default
{
name
:
"
Invitation
"
,
name
:
"
Invitation
"
,
props
:
{
invitation_code
:
String
},
data
()
{
data
()
{
return
{
return
{
invatation1
:
""
,
invatation1
:
""
,
...
@@ -71,6 +72,16 @@ export default {
...
@@ -71,6 +72,16 @@ export default {
inputFlag
:
true
,
inputFlag
:
true
,
};
};
},
},
created
()
{
if
(
this
.
invitation_code
)
{
let
a
=
this
.
invitation_code
.
split
(
"
-
"
);
this
.
invatation1
=
a
[
0
];
this
.
invatation2
=
a
[
1
];
this
.
invatation3
=
a
[
2
];
this
.
invatation4
=
a
[
3
];
// console.log(a[0])
}
},
watch
:
{
watch
:
{
invatation1
:
function
()
{
invatation1
:
function
()
{
// /\n/g(删除制表符 /t的正则)
// /\n/g(删除制表符 /t的正则)
...
@@ -106,9 +117,9 @@ export default {
...
@@ -106,9 +117,9 @@ export default {
// },
// },
//第一个输入框
//第一个输入框
changeValue1
(
e
)
{
changeValue1
(
e
)
{
const
code
=
e
.
trim
()
const
code
=
e
.
trim
()
;
console
.
log
(
code
,
"
输入111
"
)
console
.
log
(
code
,
"
输入111
"
)
;
if
(
code
.
indexOf
(
"
-
"
)
!==
-
1
)
{
if
(
code
.
indexOf
(
"
-
"
)
!==
-
1
)
{
//如果是复制过来的带'-'邀请码
//如果是复制过来的带'-'邀请码
let
copyCode
=
code
.
split
(
"
-
"
);
let
copyCode
=
code
.
split
(
"
-
"
);
console
.
log
(
copyCode
,
"
输入222
"
);
console
.
log
(
copyCode
,
"
输入222
"
);
...
...
src/components/index/SignUp/pass.vue
View file @
99d7ed2b
...
@@ -136,8 +136,7 @@ export default {
...
@@ -136,8 +136,7 @@ export default {
this
.
type
=
"
success
"
;
this
.
type
=
"
success
"
;
}
}
this
.
$emit
(
"
getStatus
"
,
this
.
type
);
this
.
$emit
(
"
getStatus
"
,
this
.
type
);
// this.getExamine = res.data.examine_status;
// console.log(res.data.examine_status, "res.data.examine_status");
const
code
=
this
.
$store
.
state
.
indexIdentity
;
const
code
=
this
.
$store
.
state
.
indexIdentity
;
//订单支付金额
//订单支付金额
window
.
localStorage
.
setItem
(
"
has_amount
"
+
code
,
res
.
data
.
has_amount
);
window
.
localStorage
.
setItem
(
"
has_amount
"
+
code
,
res
.
data
.
has_amount
);
...
...
src/views/index/camp/SignUp.vue
View file @
99d7ed2b
...
@@ -5,6 +5,7 @@
...
@@ -5,6 +5,7 @@
<div
<div
class=
"lastBtn"
class=
"lastBtn"
v-show=
"
v-show=
"
this.status == 1 ||
this.status == 2 ||
this.status == 2 ||
this.status == 3 ||
this.status == 3 ||
this.status == 4 ||
this.status == 4 ||
...
@@ -25,9 +26,14 @@
...
@@ -25,9 +26,14 @@
<Invitation
<Invitation
v-else-if=
"type == 'invitation'"
v-else-if=
"type == 'invitation'"
@
getstatus=
"statuss"
@
getstatus=
"statuss"
:invitation_code=
"invitation_code"
></Invitation>
></Invitation>
<ReferInfo
v-else-if=
"type == 'referInfo'"
@
getstatus=
"statuss"
></ReferInfo>
<ReferInfo
v-else-if=
"type == 'referInfo'"
@
getstatus=
"statuss"
></ReferInfo>
<Pass
v-else-if=
"type == 'check'"
@
is_next=
"is_nextevent"
@
getstatus=
"statuss"
></Pass>
<Pass
v-else-if=
"type == 'check'"
@
is_next=
"is_nextevent"
@
getstatus=
"statuss"
></Pass>
<Paying
v-else-if=
"type == 'pay'"
@
getstatus=
"statuss"
></Paying>
<Paying
v-else-if=
"type == 'pay'"
@
getstatus=
"statuss"
></Paying>
<Success
v-else-if=
"type == 'success'"
@
getstatus=
"statuss"
></Success>
<Success
v-else-if=
"type == 'success'"
@
getstatus=
"statuss"
></Success>
</div>
</div>
...
@@ -72,6 +78,7 @@ export default {
...
@@ -72,6 +78,7 @@ export default {
getExamine
:
""
,
getExamine
:
""
,
isNexts
:
""
,
isNexts
:
""
,
signBackStatus
:
""
,
signBackStatus
:
""
,
invitation_code
:
""
,
//邀请码
};
};
},
},
created
()
{
created
()
{
...
@@ -107,12 +114,6 @@ export default {
...
@@ -107,12 +114,6 @@ export default {
console
.
log
(
res
.
data
.
status
,
"
signBack.status
"
);
console
.
log
(
res
.
data
.
status
,
"
signBack.status
"
);
this
.
signBackStatus
=
res
.
data
.
status
;
this
.
signBackStatus
=
res
.
data
.
status
;
this
.
signUpInit
(
this
.
signBackStatus
);
this
.
signUpInit
(
this
.
signBackStatus
);
// if (this.signBackStatus == 2) {
// return this.signUpInit(1);
// } else {
// this.signUpInit(this.signBackStatus);
// }
this
.
$message
.
success
(
res
.
data
.
message
);
this
.
$message
.
success
(
res
.
data
.
message
);
});
});
},
},
...
@@ -207,7 +208,7 @@ export default {
...
@@ -207,7 +208,7 @@ export default {
this
.
$emit
(
"
getStatus
"
,
this
.
type
);
this
.
$emit
(
"
getStatus
"
,
this
.
type
);
// this.getExamine = res.data.examine_status;
// this.getExamine = res.data.examine_status;
// console.log(res.data.examine_status, "res.data.examine_status");
// console.log(res.data.examine_status, "res.data.examine_status");
this
.
invitation_code
=
res
.
data
.
invitation_code
;
//填写的邀请码回显需要
//订单支付金额
//订单支付金额
let
code
=
this
.
$store
.
state
.
indexIdentity
;
let
code
=
this
.
$store
.
state
.
indexIdentity
;
window
.
localStorage
.
setItem
(
"
has_amount
"
+
code
,
res
.
data
.
has_amount
);
window
.
localStorage
.
setItem
(
"
has_amount
"
+
code
,
res
.
data
.
has_amount
);
...
...
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