Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
ydLife
Overview
Overview
Details
Activity
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Sweet Zhang
ydLife
Commits
effa8980
Commit
effa8980
authored
Mar 28, 2022
by
Sweet Zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
时间段查询
parent
1fc3cf76
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
41 additions
and
5 deletions
+41
-5
src/app/my/integration-detail/integration-detail.component.html
+12
-1
src/app/my/integration-detail/integration-detail.component.scss
+3
-3
src/app/my/integration-detail/integration-detail.component.ts
+19
-1
src/styles.scss
+7
-0
No files found.
src/app/my/integration-detail/integration-detail.component.html
View file @
effa8980
...
...
@@ -5,7 +5,18 @@
<li
(
click
)="
queryLists
(
2
)"
><span
[
ngClass
]="{'
actived
'
:status=
==2}"
>
兑换
</span></li>
</ul>
<ul
class=
"dateContent"
>
<li>
2022年
</li>
<li>
<ListItem
DatePicker
[
mode
]="'
month
'"
[(
ngModel
)]="
searchDateFormat
"
(
onOk
)="
onOk
($
event
)"
>
{{searchDate}}
<i
class=
"iconfont icon-xiangxia"
style=
"margin-left: 10px;"
></i>
</ListItem>
</li>
</ul>
<ul
class=
"detailLists"
>
<li
*
ngFor=
"let item of lists"
>
...
...
src/app/my/integration-detail/integration-detail.component.scss
View file @
effa8980
...
...
@@ -19,9 +19,9 @@
.dateContent
{
background-color
:
#f9f9f9
;
li
{
height
:
3
4px
;
padding-left
:
20
px
;
line-height
:
34p
x
;
height
:
4
4px
;
line-height
:
44
px
;
display
:
fle
x
;
}
}
.detailLists
{
...
...
src/app/my/integration-detail/integration-detail.component.ts
View file @
effa8980
import
{
Component
,
OnInit
}
from
'@angular/core'
;
import
{
Component
,
OnInit
}
from
'@angular/core'
;
import
{
MyService
}
from
'../my.service'
;
@
Component
({
...
...
@@ -10,6 +10,8 @@ export class IntegrationDetailComponent implements OnInit {
integralGrantInfos
:
Array
<
any
>
;
lists
:
Array
<
any
>
;
status
:
number
=
0
;
searchDate
:
string
=
'2022年'
;
searchDateFormat
:
Date
=
new
Date
(
2022
,
1
);
constructor
(
private
myService
:
MyService
)
{
}
ngOnInit
()
{
...
...
@@ -31,4 +33,20 @@ export class IntegrationDetailComponent implements OnInit {
})
}
currentDateFormat
(
date
,
format
:
string
=
'yyyy-mm'
):
any
{
const
pad
=
(
n
:
number
):
string
=>
(
n
<
10
?
`0
${
n
}
`
:
n
.
toString
());
return
format
.
replace
(
'yyyy'
,
date
.
getFullYear
())
.
replace
(
'mm'
,
pad
(
date
.
getMonth
()
+
1
))
.
replace
(
'dd'
,
pad
(
date
.
getDate
()))
.
replace
(
'HH'
,
pad
(
date
.
getHours
()))
.
replace
(
'MM'
,
pad
(
date
.
getMinutes
()))
.
replace
(
'ss'
,
pad
(
date
.
getSeconds
()));
}
onOk
(
result
:
Date
)
{
this
.
searchDate
=
this
.
currentDateFormat
(
result
);
this
.
searchDateFormat
=
result
;
this
.
queryPractitionerIntegralList
(
this
.
searchDate
+
'-01'
)
}
}
src/styles.scss
View file @
effa8980
...
...
@@ -288,3 +288,9 @@ footer.fixed{
font-size
:
16px
!
important
;
}
.date-picker-list
.am-list-body
,
.date-picker-list
.am-list-item
:not
(
:last-child
)
.am-list-line
{
border
:
none
;
}
.am-list-item
{
background-color
:
#f9f9f9
;
}
\ No newline at end of file
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