Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
jz_Travel
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhengke
jz_Travel
Commits
0864767c
Commit
0864767c
authored
Oct 23, 2023
by
18224442217
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
06a2ef54
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
21 deletions
+28
-21
index.vue
pages/airTicket/components/sign/index.vue
+28
-21
No files found.
pages/airTicket/components/sign/index.vue
View file @
0864767c
...
...
@@ -247,35 +247,18 @@ export default {
watch
:
{
priceList
:{
handler
(
newVal
,
oldval
)
{
this
.
userDefaultDate
=
this
.
defaultDate
;
uni
.
getSystemInfo
({
success
:
(
res
)
=>
{
this
.
dayWidth
=
res
.
windowWidth
;
},
});
this
.
setDate
();
var
dateTime
=
new
Date
();
dateTime
=
dateTime
.
setDate
(
dateTime
.
getDate
()
+
1
);
this
.
nowDay
=
new
Date
(
dateTime
).
getDate
();
if
(
this
.
userDefaultDate
!=
""
)
{
this
.
start
=
this
.
setDefaultDate
(
this
.
userDefaultDate
);
}
this
.
priceStauts
=
this
.
initPrice
();
// #ifdef MP-ALIPAY
uni
.
setNavigationBarTitle
({
title
:
""
,
});
// #endif
this
.
getPriceList
()
},
deep
:
true
,
immediate
:
true
,
},
defaultDate
:{
handler
(
newVal
,
oldval
)
{
this
.
userDefaultDate
=
newVal
;
this
.
userDefaultDate
=
newVal
?
newVal
:
''
;
if
(
this
.
userDefaultDate
!=
""
)
{
this
.
start
=
this
.
setDefaultDate
(
this
.
userDefaultDate
);
}
else
{
this
.
start
=
[]
}
this
.
priceStauts
=
this
.
initPrice
();
},
...
...
@@ -325,6 +308,30 @@ export default {
},
},
methods
:
{
getPriceList
(){
this
.
userDefaultDate
=
this
.
defaultDate
?
this
.
defaultDate
:
''
;
uni
.
getSystemInfo
({
success
:
(
res
)
=>
{
this
.
dayWidth
=
res
.
windowWidth
;
},
});
this
.
setDate
();
var
dateTime
=
new
Date
();
dateTime
=
dateTime
.
setDate
(
dateTime
.
getDate
()
+
1
);
this
.
nowDay
=
new
Date
(
dateTime
).
getDate
();
if
(
this
.
userDefaultDate
!=
""
)
{
this
.
start
=
this
.
setDefaultDate
(
this
.
userDefaultDate
);
}
else
{
this
.
start
=
[]
}
this
.
priceStauts
=
this
.
initPrice
();
// #ifdef MP-ALIPAY
uni
.
setNavigationBarTitle
({
title
:
""
,
});
// #endif
},
initPrice
()
{
//年份
var
year
=
new
Date
().
getFullYear
();
...
...
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