Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
account-book
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
刘文虎
account-book
Commits
a13e4e20
Commit
a13e4e20
authored
Jul 27, 2022
by
Facius
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
improve: 首页日期
parent
9481e676
Pipeline
#2971
canceled with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
index.vue
pages/index/index.vue
+1
-3
No files found.
pages/index/index.vue
View file @
a13e4e20
...
@@ -259,7 +259,6 @@ export default {
...
@@ -259,7 +259,6 @@ export default {
this
.
systemInfo
=
uni
.
getSystemInfoSync
()
this
.
systemInfo
=
uni
.
getSystemInfoSync
()
},
},
onShow
()
{
onShow
()
{
console
.
log
(
'----------------'
)
this
.
getWeather
()
this
.
getWeather
()
this
.
initInfo
()
this
.
initInfo
()
if
(
this
.
checkToken
())
{
if
(
this
.
checkToken
())
{
...
@@ -297,7 +296,6 @@ export default {
...
@@ -297,7 +296,6 @@ export default {
latitude
:
res
.
latitude
,
latitude
:
res
.
latitude
,
longitude
:
res
.
longitude
,
longitude
:
res
.
longitude
,
}).
then
((
res
)
=>
{
}).
then
((
res
)
=>
{
console
.
log
(
'--------getWeather--------'
,
res
)
if
(
res
.
data
)
{
if
(
res
.
data
)
{
this
.
weather
=
res
.
data
this
.
weather
=
res
.
data
}
}
...
@@ -319,7 +317,7 @@ export default {
...
@@ -319,7 +317,7 @@ export default {
},
},
handleComfirmDate
(
date
)
{
handleComfirmDate
(
date
)
{
console
.
log
(
date
)
console
.
log
(
date
)
this
.
date
=
`
${
date
.
year
}
-
${
date
.
month
}
-
${
date
.
day
}
`
this
.
date
=
`
${
date
.
year
}
-
${
date
.
month
}
-
01
`
this
.
monthRecord
()
this
.
monthRecord
()
},
},
monthRecord
()
{
monthRecord
()
{
...
...
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