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
9481e676
Commit
9481e676
authored
Jul 27, 2022
by
Facius
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
improve: 首页日期选择
parent
1c2ad3a2
Pipeline
#2970
canceled with stages
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
index.vue
pages/index/index.vue
+4
-4
No files found.
pages/index/index.vue
View file @
9481e676
...
@@ -44,7 +44,7 @@
...
@@ -44,7 +44,7 @@
hover-class=
"u-hover-class"
hover-class=
"u-hover-class"
@
click=
"$u.throttle(handleSelectDate, 500)"
@
click=
"$u.throttle(handleSelectDate, 500)"
>
>
<view
class=
"date-view"
>
{{
date
}}
</view>
<view
class=
"date-view"
>
{{
date
String
}}
</view>
<u-icon
<u-icon
name=
"arrow-down-fill"
name=
"arrow-down-fill"
color=
"#ffffff"
color=
"#ffffff"
...
@@ -152,7 +152,7 @@ export default {
...
@@ -152,7 +152,7 @@ export default {
showDatePicker
:
false
,
showDatePicker
:
false
,
visible
:
false
,
visible
:
false
,
weather
:
{
city
:
'-'
,
temp
:
'-'
},
weather
:
{
city
:
'-'
,
temp
:
'-'
},
date
:
this
.
$u
.
timeFormat
(
new
Date
().
getTime
(),
'yyyy-mm'
),
date
:
this
.
$u
.
timeFormat
(
new
Date
().
getTime
(),
'yyyy-mm'
)
+
'-01'
,
money
:
{
money
:
{
income
:
'0'
,
income
:
'0'
,
expense
:
'0'
,
expense
:
'0'
,
...
@@ -319,11 +319,11 @@ export default {
...
@@ -319,11 +319,11 @@ export default {
},
},
handleComfirmDate
(
date
)
{
handleComfirmDate
(
date
)
{
console
.
log
(
date
)
console
.
log
(
date
)
this
.
date
=
`
${
date
.
year
}
-
${
date
.
month
}
`
this
.
date
=
`
${
date
.
year
}
-
${
date
.
month
}
-
${
date
.
day
}
`
this
.
monthRecord
()
this
.
monthRecord
()
},
},
monthRecord
()
{
monthRecord
()
{
monthRecord
({
month
:
this
.
date
+
'-01'
})
monthRecord
({
month
:
this
.
date
})
.
then
((
res
)
=>
{
.
then
((
res
)
=>
{
var
obj
=
res
.
data
var
obj
=
res
.
data
if
(
obj
)
{
if
(
obj
)
{
...
...
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