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
35afbd47
Commit
35afbd47
authored
Oct 25, 2021
by
杨梦雪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
111
parent
f48358b7
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
30 additions
and
24 deletions
+30
-24
src/components/index/SignUp/referInfo.vue
src/components/index/SignUp/referInfo.vue
+4
-1
src/views/index/camp/SignUp.vue
src/views/index/camp/SignUp.vue
+4
-7
src/views/index/login/Register.vue
src/views/index/login/Register.vue
+16
-10
src/views/index/login/Reset.vue
src/views/index/login/Reset.vue
+6
-6
No files found.
src/components/index/SignUp/referInfo.vue
View file @
35afbd47
...
...
@@ -306,7 +306,7 @@
</el-upload>
</div>
<el-dialog
:visible.sync=
"dialogVisible"
>
<el-dialog
:visible.sync=
"dialogVisible"
>
<img
width=
"100%"
:src=
"resultPicture"
alt=
""
/>
</el-dialog>
</div>
...
...
@@ -934,6 +934,9 @@ export default {
//去除upload组件过渡效果 css
.el-upload-list__item
{
transition
:
none
!
important
;
div
{
height
:
100%
;
}
}
.el-upload--picture-card
{
display
:
inline-block
;
...
...
src/views/index/camp/SignUp.vue
View file @
35afbd47
...
...
@@ -77,7 +77,6 @@ export default {
statuss
(
val
)
{
console
.
log
(
val
,
"
val
"
);
// this.statuss = val;
// this.signUpInit();
},
signUpInit
()
{
...
...
@@ -88,7 +87,6 @@ export default {
return
this
.
$message
.
error
(
res
.
data
.
message
);
}
this
.
status
=
res
.
data
.
status
;
// doubt_code,doubt_info,doubt_check。0为不填写,1为填写
if
(
this
.
status
==
0
)
{
this
.
type
=
"
examInfo
"
;
...
...
@@ -99,7 +97,7 @@ export default {
this
.
status
=
2
;
}
else
{
this
.
type
=
"
invitation
"
;
// this.status =
2
;
// this.status =
1
;
}
}
else
if
(
this
.
status
==
2
)
{
// 是否填写个人资料
...
...
@@ -107,8 +105,8 @@ export default {
this
.
type
=
"
check
"
;
this
.
status
=
3
;
}
else
{
this
.
type
=
"
referInfo
"
;
// this.status = 2;
}
}
else
if
(
this
.
status
==
3
)
{
// 是否审核个人资料
...
...
@@ -142,7 +140,6 @@ export default {
//订单支付金额
window
.
localStorage
.
setItem
(
"
has_amount
"
,
res
.
data
.
has_amount
);
window
.
localStorage
.
setItem
(
"
campsite_id
"
,
res
.
data
.
campsite_id
);
window
.
localStorage
.
setItem
(
"
order_no
"
,
res
.
data
.
order_no
);
});
...
...
src/views/index/login/Register.vue
View file @
35afbd47
...
...
@@ -178,11 +178,11 @@ export default {
};
},
created
()
{
const
endTime
=
window
.
localStorage
.
getItem
(
'
register_code_time
'
);
const
phone
=
window
.
localStorage
.
getItem
(
'
register_code_phone
'
);
if
(
endTime
&&
Number
(
endTime
)
>
new
Date
().
getTime
())
{
const
endTime
=
window
.
localStorage
.
getItem
(
"
register_code_time
"
);
const
phone
=
window
.
localStorage
.
getItem
(
"
register_code_phone
"
);
if
(
endTime
&&
Number
(
endTime
)
>
new
Date
().
getTime
())
{
this
.
registerForm
.
phone
=
phone
;
this
.
intervalHandle
(
new
Date
(),
Number
(
endTime
));
this
.
intervalHandle
(
new
Date
(),
Number
(
endTime
));
}
},
methods
:
{
...
...
@@ -195,10 +195,10 @@ export default {
this
.
isShowPwd
=
!
this
.
isShowPwd
;
},
// 定时器倒计时
intervalHandle
(
startTime
,
endTime
){
intervalHandle
(
startTime
,
endTime
)
{
// 时间差
const
timeLag
=
intervalTime
(
startTime
,
endTime
);
console
.
log
(
timeLag
)
console
.
log
(
timeLag
)
;
if
(
!
this
.
timer
)
{
this
.
count
=
timeLag
;
this
.
show
=
false
;
...
...
@@ -227,9 +227,15 @@ export default {
return
this
.
$message
.
error
(
res
.
data
.
message
);
}
this
.
$message
.
success
(
res
.
data
.
message
);
window
.
localStorage
.
setItem
(
'
register_code_time
'
,
res
.
data
.
data
.
now
*
1000
);
window
.
localStorage
.
setItem
(
'
register_code_phone
'
,
this
.
registerForm
.
phone
);
this
.
intervalHandle
(
new
Date
(),
res
.
data
.
data
.
now
*
1000
);
window
.
localStorage
.
setItem
(
"
register_code_time
"
,
res
.
data
.
data
.
now
*
1000
);
window
.
localStorage
.
setItem
(
"
register_code_phone
"
,
this
.
registerForm
.
phone
);
this
.
intervalHandle
(
new
Date
(),
res
.
data
.
data
.
now
*
1000
);
});
},
...
...
src/views/index/login/Reset.vue
View file @
35afbd47
...
...
@@ -179,10 +179,10 @@ export default {
};
},
created
()
{
const
endTime
=
window
.
localStorage
.
getItem
(
"
re
gister
_code_time
"
);
const
phone
=
window
.
localStorage
.
getItem
(
"
re
gister
_code_phone
"
);
const
endTime
=
window
.
localStorage
.
getItem
(
"
re
stet
_code_time
"
);
const
phone
=
window
.
localStorage
.
getItem
(
"
re
stet
_code_phone
"
);
if
(
endTime
&&
Number
(
endTime
)
>
new
Date
().
getTime
())
{
this
.
re
gister
Form
.
phone
=
phone
;
this
.
re
set
Form
.
phone
=
phone
;
this
.
intervalHandle
(
new
Date
(),
Number
(
endTime
));
}
},
...
...
@@ -231,12 +231,12 @@ export default {
// this.codeTime = parseTime(res.data.data.now);
this
.
codeTime
=
res
.
data
.
data
.
now
*
1000
;
window
.
localStorage
.
setItem
(
"
re
gister
_code_time
"
,
"
re
stet
_code_time
"
,
res
.
data
.
data
.
now
*
1000
);
window
.
localStorage
.
setItem
(
"
re
gister
_code_phone
"
,
this
.
re
gister
Form
.
phone
"
re
stet
_code_phone
"
,
this
.
re
set
Form
.
phone
);
this
.
intervalHandle
(
new
Date
(),
res
.
data
.
data
.
now
*
1000
);
});
...
...
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