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
e942d41c
Commit
e942d41c
authored
Sep 27, 2023
by
wuwangwolihui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
营地2.0-修改
parent
8fc92e99
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
47 additions
and
44 deletions
+47
-44
src/components/index/SignUp/referInfo.vue
src/components/index/SignUp/referInfo.vue
+39
-38
src/store/time.js
src/store/time.js
+8
-6
No files found.
src/components/index/SignUp/referInfo.vue
View file @
e942d41c
...
...
@@ -2009,117 +2009,118 @@
}
let
_this
=
this
;
let
obj
=
{};
if
(
this
.
configJson
.
name
==
1
)
{
if
(
_
this
.
configJson
.
name
==
1
)
{
obj
.
name
=
_this
.
referForm
.
name
;
}
if
(
this
.
configJson
.
gender
==
1
)
{
if
(
_
this
.
configJson
.
gender
==
1
)
{
obj
.
gender
=
_this
.
referForm
.
gender
;
}
if
(
this
.
configJson
.
idCard
==
1
)
{
if
(
_
this
.
configJson
.
idCard
==
1
)
{
obj
.
id_card
=
_this
.
referForm
.
id_card
;
}
if
(
this
.
configJson
.
age
==
1
)
{
if
(
_
this
.
configJson
.
age
==
1
)
{
obj
.
age
=
_this
.
referForm
.
age
;
}
if
(
this
.
configJson
.
education
==
1
)
{
if
(
_
this
.
configJson
.
education
==
1
)
{
obj
.
education
=
_this
.
referForm
.
education
;
}
if
(
this
.
configJson
.
postAddress
==
1
)
{
if
(
_
this
.
configJson
.
postAddress
==
1
)
{
obj
.
address
=
_this
.
referForm
.
address
;
}
if
(
this
.
configJson
.
country
==
1
)
{
if
(
_
this
.
configJson
.
country
==
1
)
{
obj
.
country
=
_this
.
referForm
.
country
;
}
if
(
this
.
configJson
.
nation
==
1
)
{
if
(
_
this
.
configJson
.
nation
==
1
)
{
obj
.
nation
=
_this
.
referForm
.
nation
;
}
if
(
this
.
configJson
.
startSchoolDate
==
1
)
{
if
(
_
this
.
configJson
.
startSchoolDate
==
1
)
{
obj
.
start_school_date
=
_this
.
start_year
;
}
if
(
this
.
configJson
.
politicalStatus
==
1
)
{
if
(
_
this
.
configJson
.
politicalStatus
==
1
)
{
obj
.
political_status
=
_this
.
referForm
.
political_status
;
}
if
(
this
.
configJson
.
phone
==
1
)
{
if
(
_
this
.
configJson
.
phone
==
1
)
{
obj
.
phone
=
_this
.
referForm
.
phone
;
}
if
(
this
.
configJson
.
grade
==
1
)
{
if
(
_
this
.
configJson
.
grade
==
1
)
{
obj
.
grade
=
_this
.
referForm
.
grade
;
}
if
(
this
.
configJson
.
unitandIdentity
==
1
)
{
if
(
_
this
.
configJson
.
unitandIdentity
==
1
)
{
obj
.
unit_and_identity
=
_this
.
referForm
.
unit_and_identity
;
}
if
(
this
.
configJson
.
email
==
1
)
{
if
(
_
this
.
configJson
.
email
==
1
)
{
obj
.
email
=
_this
.
referForm
.
email
;
}
if
(
this
.
configJson
.
jiguanCity
==
1
)
{
if
(
_
this
.
configJson
.
jiguanCity
==
1
)
{
obj
.
jiguan_code
=
_this
.
referForm
.
jiguan_code
;
}
if
(
this
.
configJson
.
recommend
==
1
)
{
if
(
_
this
.
configJson
.
recommend
==
1
)
{
obj
.
recommend
=
_this
.
referForm
.
recommend
;
}
if
(
this
.
configJson
.
start_school_date
==
1
)
{
if
(
_
this
.
configJson
.
start_school_date
==
1
)
{
obj
.
start_school_date
=
_this
.
referForm
.
start_school_date
;
}
if
(
this
.
configJson
.
birthday
==
1
)
{
if
(
_
this
.
configJson
.
birthday
==
1
)
{
obj
.
birthday
=
_this
.
referForm
.
birthday
;
}
if
(
this
.
configJson
.
electSubjectSituation
==
1
)
{
if
(
_
this
.
configJson
.
electSubjectSituation
==
1
)
{
obj
.
elect_subject_situation
=
_this
.
elect_subject_situation
;
}
if
(
this
.
configJson
.
pastMedicalHistory
==
1
)
{
if
(
_
this
.
configJson
.
pastMedicalHistory
==
1
)
{
obj
.
past_medical_history
=
_this
.
referForm
.
past_medical_history
;
}
if
(
this
.
configJson
.
noteOther
==
1
)
{
if
(
_
this
.
configJson
.
noteOther
==
1
)
{
obj
.
note_other
=
_this
.
referForm
.
note_other
;
}
if
(
this
.
configJson
.
emergency
==
1
)
{
if
(
_
this
.
configJson
.
emergency
==
1
)
{
obj
.
emergency
=
_this
.
referForm
.
emergency
;
}
if
(
this
.
configJson
.
emergencyPhone
==
1
)
{
if
(
_
this
.
configJson
.
emergencyPhone
==
1
)
{
obj
.
emergency_phone
=
_this
.
referForm
.
emergency_phone
;
}
//衣服尺码
if
(
this
.
configJson
.
clothesSize
==
1
)
{
if
(
_
this
.
configJson
.
clothesSize
==
1
)
{
obj
.
clothes_size
=
_this
.
referForm
.
clothes_size
;
}
//自我介绍
if
(
this
.
configJson
.
introduceMyself
==
1
)
{
if
(
_
this
.
configJson
.
introduceMyself
==
1
)
{
obj
.
introduce
=
_this
.
referForm
.
introduce
;
}
if
(
this
.
configJson
.
school
==
1
)
{
if
(
_
this
.
configJson
.
school
==
1
)
{
obj
.
school_province
=
_this
.
referForm
.
school_province
;
obj
.
school_city
=
_this
.
referForm
.
school_city
;
obj
.
school
=
_this
.
referForm
.
school
;
}
if
(
this
.
configJson
.
schoolContacts
==
1
)
{
if
(
_
this
.
configJson
.
schoolContacts
==
1
)
{
obj
.
school_contacts
=
_this
.
referForm
.
school_contacts
;
}
if
(
this
.
configJson
.
schoolPhone
==
1
)
{
if
(
_
this
.
configJson
.
schoolPhone
==
1
)
{
obj
.
school_phone
=
_this
.
referForm
.
school_phone
;
}
//是否需要填写邀请码
// if (
this.doubt_code == 1 &&
this.code != '') {
if
(
this
.
configJson
.
code
==
1
)
{
// if (
_this.doubt_code == 1 && _
this.code != '') {
if
(
_
this
.
configJson
.
code
==
1
)
{
obj
.
code
=
_this
.
referForm
.
code
;
}
setAccount
(
obj
).
then
((
res
)
=>
{
console
.
log
(
res
)
if
(
res
.
data
.
code
!=
200
)
{
if
(
res
.
data
.
code
==
400068
)
{
this
.
$parent
.
statuss
();
return
this
.
$message
.
error
(
res
.
data
.
msg
);
_
this
.
$parent
.
statuss
();
return
_
this
.
$message
.
error
(
res
.
data
.
msg
);
}
return
this
.
$message
.
error
(
res
.
data
.
msg
);
return
_
this
.
$message
.
error
(
res
.
data
.
msg
);
}
if
(
res
.
data
.
code
==
4000346
||
res
.
data
.
code
==
4000347
)
{
this
.
dialogVisible
=
true
;
this
.
msg
=
res
.
data
.
msg
_
this
.
dialogVisible
=
true
;
_
this
.
msg
=
res
.
data
.
msg
return
;
}
this
.
$emit
(
"
getstatus
"
,
res
.
data
.
status
);
this
.
$message
.
success
(
res
.
data
.
msg
);
this
.
referForm
=
res
.
data
.
data
;
_
this
.
$emit
(
"
getstatus
"
,
res
.
data
.
status
);
_
this
.
$message
.
success
(
res
.
data
.
msg
);
// _
this.referForm = res.data.data;
});
});
...
...
src/store/time.js
View file @
e942d41c
...
...
@@ -4,9 +4,10 @@
export
function
add0
(
m
)
{
return
m
<
10
?
"
0
"
+
m
:
m
;
}
// 倒计时
export
function
djTime
(
data
)
{
return
add0
(
parseInt
(
data
/
60
))
+
'
:
'
+
add0
(
data
%
60
);
return
add0
(
parseInt
(
data
/
60
))
+
'
:
'
+
add0
(
data
%
60
);
}
export
function
formatTime
(
data
)
{
...
...
@@ -19,12 +20,13 @@ export function formatTime(data) {
let
ss
=
time
.
getSeconds
();
return
(
y
+
"
-
"
+
add0
(
m
)
+
"
-
"
+
add0
(
d
)
+
"
"
+
add0
(
h
)
+
"
:
"
+
add0
(
mm
)
+
"
:
"
+
add0
(
ss
));
}
//计算两个时间之间的时间差-多少秒
export
function
intervalTime
(
startTime
,
endTime
)
{
let
stime
=
new
Date
(
startTime
);
let
etime
=
new
Date
(
endTime
);
if
(
stime
>
etime
)
{
return
add0
(
0
)
+
'
:
'
+
add0
(
0
)
if
(
stime
>
etime
)
{
return
add0
(
0
)
+
'
:
'
+
add0
(
0
)
}
let
y
=
etime
.
getFullYear
()
-
stime
.
getFullYear
();
let
m
=
etime
.
getMonth
()
+
1
-
(
stime
.
getMonth
()
+
1
);
...
...
@@ -32,7 +34,7 @@ export function intervalTime(startTime, endTime) {
let
h
=
etime
.
getHours
()
-
stime
.
getHours
();
let
mm
=
etime
.
getMinutes
()
-
stime
.
getMinutes
();
let
ss
=
etime
.
getSeconds
()
-
stime
.
getSeconds
();
let
time
=
y
*
365
*
24
*
60
*
60
+
m
*
30
*
24
*
60
*
60
+
d
*
24
*
60
*
60
+
h
*
60
*
60
+
mm
*
60
+
ss
let
time
=
y
*
365
*
24
*
60
*
60
+
m
*
30
*
24
*
60
*
60
+
d
*
24
*
60
*
60
+
h
*
60
*
60
+
mm
*
60
+
ss
return
time
;
}
...
...
@@ -45,12 +47,12 @@ export function formatYMD(data) {
return
(
y
+
"
-
"
+
add0
(
m
)
+
"
-
"
+
add0
(
d
));
}
// 2023年1月1日
// 2023年1月1日
1点
export
function
formatYMDChina
(
data
)
{
let
time
=
new
Date
(
data
);
let
y
=
time
.
getFullYear
();
let
m
=
time
.
getMonth
()
+
1
;
let
d
=
time
.
getDate
();
let
h
=
time
.
getHours
();
return
(
y
+
"
年
"
+
m
+
"
月
"
+
d
+
"
日
"
);
return
(
y
+
"
年
"
+
m
+
"
月
"
+
d
+
"
日
"
+
h
+
"
点
"
);
}
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