Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wisdom-ces
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangqinghua
wisdom-ces
Commits
94f33cb5
Commit
94f33cb5
authored
Sep 27, 2018
by
wangqinghua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
报备
parent
f1423d25
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
17 deletions
+17
-17
myReport.html
src/pages/myReport/myReport.html
+9
-13
myReport.scss
src/pages/myReport/myReport.scss
+5
-2
myReport.ts
src/pages/myReport/myReport.ts
+3
-2
No files found.
src/pages/myReport/myReport.html
View file @
94f33cb5
...
@@ -5,8 +5,9 @@
...
@@ -5,8 +5,9 @@
<div
class=
"pageMenuSlides"
>
<div
class=
"pageMenuSlides"
>
<div
class=
"swiper-container"
>
<div
class=
"swiper-container"
>
<div
class=
"swiper-wrapper"
>
<div
class=
"swiper-wrapper"
>
<div
class=
"swiper-slide {{i==0?'bottomLine':''}}"
*
ngFor=
"let item of menus;let i=index;"
tappable
(
click
)="
selectPageMenu
(
i
)"
>
{{item}}
<div
class=
"swiper-slide"
*
ngFor=
"let item of menus;let i=index;"
tappable
(
click
)="
selectPageMenu
(
i
)"
>
<span
*
ngIf=
"i==0"
class=
"menu-index"
>
{{allReport.length}}
</span>
<span
class=
" {{swiperIndex == i? 'swiper-title':''}} "
>
{{item}}
</span>
<span
*
ngIf=
"i==0"
class=
"menu-index"
style=
"right: 14%;"
>
{{allReport.length}}
</span>
<span
*
ngIf=
"i==1"
class=
"menu-index"
>
{{processingReport.length}}
</span>
<span
*
ngIf=
"i==1"
class=
"menu-index"
>
{{processingReport.length}}
</span>
<span
*
ngIf=
"i==2"
class=
"menu-index"
>
{{endReport.length}}
</span>
<span
*
ngIf=
"i==2"
class=
"menu-index"
>
{{endReport.length}}
</span>
</div>
</div>
...
@@ -15,9 +16,8 @@
...
@@ -15,9 +16,8 @@
</div>
</div>
</ion-header>
</ion-header>
<ion-content
>
<ion-content
>
<ion-slides
#
contentSlides
(
ionSlideDidChange
)="
slideChanged
()"
>
<ion-slide>
<ion-content
*
ngIf=
"swiperIndex == 0"
direction=
"y"
scrollbar-y=
"true"
class=
"bgc-e7e8ed"
>
<ion-content
direction=
"y"
scrollbar-y=
"true"
class=
"bgc-e7e8ed"
>
<ion-list>
<ion-list>
<ion-item
*
ngFor=
"let report of allReport"
>
<ion-item
*
ngFor=
"let report of allReport"
>
<div
class=
"item"
>
<div
class=
"item"
>
...
@@ -119,10 +119,8 @@
...
@@ -119,10 +119,8 @@
</ion-item>
</ion-item>
</ion-list>
</ion-list>
</ion-content>
</ion-content>
</ion-slide>
<ion-slide>
<ion-content
*
ngIf=
"swiperIndex == 1"
class=
"bgc-e7e8ed"
direction=
"y"
scrollbar-y=
"true"
>
<ion-content
class=
"bgc-e7e8ed"
direction=
"y"
scrollbar-y=
"true"
>
<ion-list>
<ion-list>
<ion-item
*
ngFor=
"let report of processingReport"
>
<ion-item
*
ngFor=
"let report of processingReport"
>
<div
class=
"item"
>
<div
class=
"item"
>
...
@@ -166,10 +164,8 @@
...
@@ -166,10 +164,8 @@
</ion-item>
</ion-item>
</ion-list>
</ion-list>
</ion-content>
</ion-content>
</ion-slide>
<ion-slide>
<ion-content
*
ngIf=
"swiperIndex == 2"
class=
"bgc-e7e8ed"
direction=
"y"
scrollbar-y=
"true"
>
<ion-content
class=
"bgc-e7e8ed"
direction=
"y"
scrollbar-y=
"true"
>
<ion-list>
<ion-list>
<ion-item
*
ngFor=
"let report of endReport"
>
<ion-item
*
ngFor=
"let report of endReport"
>
<div
class=
"item"
>
<div
class=
"item"
>
...
@@ -223,6 +219,5 @@
...
@@ -223,6 +219,5 @@
</ion-item>
</ion-item>
</ion-list>
</ion-list>
</ion-content>
</ion-content>
</ion-slide>
</ion-slides>
</ion-content>
</ion-content>
\ No newline at end of file
src/pages/myReport/myReport.scss
View file @
94f33cb5
...
@@ -29,12 +29,15 @@ page-myReport {
...
@@ -29,12 +29,15 @@ page-myReport {
}
}
.menu-index
{
.menu-index
{
padding
:
2px
6px
;
position
:
absolute
;
top
:
6px
;
padding
:
0px
4px
;
border-radius
:
10px
;
border-radius
:
10px
;
background-color
:
#f36c35
;
background-color
:
#f36c35
;
font-size
:
14px
;
font-size
:
.5rem
;
color
:
white
;
color
:
white
;
margin-left
:
5px
;
margin-left
:
5px
;
right
:
18%
;
text-align
:
center
;
text-align
:
center
;
line-height
:
1
.4rem
;
line-height
:
1
.4rem
;
}
}
...
...
src/pages/myReport/myReport.ts
View file @
94f33cb5
...
@@ -22,6 +22,7 @@ declare var Swiper;
...
@@ -22,6 +22,7 @@ declare var Swiper;
export
class
MyReportPage
{
export
class
MyReportPage
{
swiperIndex
=
0
;
swiper
:
any
;
swiper
:
any
;
allReport
:
Array
<
any
>
=
[];
allReport
:
Array
<
any
>
=
[];
processingReport
:
Array
<
any
>
=
[];
processingReport
:
Array
<
any
>
=
[];
...
@@ -81,9 +82,9 @@ export class MyReportPage {
...
@@ -81,9 +82,9 @@ export class MyReportPage {
}
}
//选择菜单
//选择菜单
selectPageMenu
(
index
)
{
selectPageMenu
(
index
)
{
this
.
setStyle
(
index
)
;
this
.
swiperIndex
=
index
;
//切换页面
//切换页面
this
.
contentSlides
.
slideTo
(
index
);
//
this.contentSlides.slideTo(index);
}
}
//选择菜单之后设置菜单样式
//选择菜单之后设置菜单样式
setStyle
(
index
)
{
setStyle
(
index
)
{
...
...
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