Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
party-build-cloud
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
party-build-cloud
Commits
3eb2463e
Commit
3eb2463e
authored
Aug 11, 2019
by
wangqinghua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
api update
parent
6707b9e2
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
33 additions
and
6 deletions
+33
-6
filter.ts
src/components/filter/filter.ts
+1
-0
discover.html
src/pages/tabs/discover/discover.html
+2
-2
discover.scss
src/pages/tabs/discover/discover.scss
+13
-0
discover.ts
src/pages/tabs/discover/discover.ts
+15
-4
serve.scss
src/pages/tabs/serve/serve.scss
+2
-0
No files found.
src/components/filter/filter.ts
View file @
3eb2463e
...
@@ -24,6 +24,7 @@ export class FilterComponent {
...
@@ -24,6 +24,7 @@ export class FilterComponent {
this
.
type
=
this
.
params
.
get
(
"type"
);
this
.
type
=
this
.
params
.
get
(
"type"
);
this
.
title
=
this
.
params
.
get
(
"title"
);
this
.
title
=
this
.
params
.
get
(
"title"
);
console
.
log
(
this
.
type
);
console
.
log
(
this
.
type
);
console
.
log
(
this
.
list
);
}
}
chooseItem
(
item
){
chooseItem
(
item
){
...
...
src/pages/tabs/discover/discover.html
View file @
3eb2463e
...
@@ -77,7 +77,7 @@
...
@@ -77,7 +77,7 @@
<div
class=
"tabs-fixed"
>
<div
class=
"tabs-fixed"
>
<div
class=
"scroll-tab"
style=
"padding: 0;background-color:#fff;"
>
<div
class=
"scroll-tab"
style=
"padding: 0;background-color:#fff;"
>
<div
class=
"news-content"
#
newsContent
>
<div
class=
"news-content"
#
newsContent
>
<div
class=
"tabs-parent"
>
<div
class=
"tabs-parent"
[
ngStyle
]="{'
margin-left
'
:indexParent =
=
'
3
'?'
30px
'
:
'
0
'}"
>
<div
class=
"tabs-child"
>
<div
class=
"tabs-child"
>
<span
*
ngFor=
"let ch of childrenList"
<span
*
ngFor=
"let ch of childrenList"
[
ngClass
]="{'
select
'
:indexChildren =
=
ch
.
indexChildren
}"
[
ngClass
]="{'
select
'
:indexChildren =
=
ch
.
indexChildren
}"
...
@@ -85,7 +85,7 @@
...
@@ -85,7 +85,7 @@
</div>
</div>
</div>
</div>
</div>
</div>
<span
class=
"more
"
(
click
)="
moreParty
()"
>
<span
*
ngIf=
"indexParent == '3'"
class=
"moreParty
"
(
click
)="
moreParty
()"
>
<ion-icon
name=
"list"
></ion-icon>
<ion-icon
name=
"list"
></ion-icon>
</span>
</span>
</div>
</div>
...
...
src/pages/tabs/discover/discover.scss
View file @
3eb2463e
...
@@ -379,4 +379,17 @@ page-discover {
...
@@ -379,4 +379,17 @@ page-discover {
}
}
}
}
}
}
.moreParty
{
position
:
absolute
;
padding
:
0
5px
;
top
:
-2px
;
left
:
0
;
font-size
:
3
.5rem
;
color
:
#333
;
background-color
:
#fff1f0
;
z-index
:
999999
;
height
:
100%
;
}
}
}
src/pages/tabs/discover/discover.ts
View file @
3eb2463e
...
@@ -468,7 +468,8 @@ export class DiscoverPage {
...
@@ -468,7 +468,8 @@ export class DiscoverPage {
obj
:
{
obj
:
{
'plateType'
:
this
.
obj
.
plateType
,
'plateType'
:
this
.
obj
.
plateType
,
'resourceType'
:
this
.
resourceType
,
'resourceType'
:
this
.
resourceType
,
"relatePlateType"
:
this
.
relatePlateType
"relatePlateType"
:
this
.
relatePlateType
,
"branchId"
:
this
.
obj
.
branchId
}
}
};
};
this
.
tabsSer
.
stuffPage
(
data
).
subscribe
(
this
.
tabsSer
.
stuffPage
(
data
).
subscribe
(
...
@@ -650,7 +651,8 @@ export class DiscoverPage {
...
@@ -650,7 +651,8 @@ export class DiscoverPage {
});
});
modal
.
onDidDismiss
(
data
=>
{
modal
.
onDidDismiss
(
data
=>
{
if
(
data
)
{
if
(
data
)
{
this
.
changeParent
(
data
)
this
.
changeParent
(
data
);
console
.
log
(
data
);
}
}
});
});
modal
.
present
();
modal
.
present
();
...
@@ -659,7 +661,7 @@ export class DiscoverPage {
...
@@ -659,7 +661,7 @@ export class DiscoverPage {
moreParty
()
{
moreParty
()
{
let
modal
=
this
.
modalCtrl
.
create
(
FilterComponent
,
{
let
modal
=
this
.
modalCtrl
.
create
(
FilterComponent
,
{
list
:
this
.
branchList
,
list
:
this
.
branchList
,
type
:
this
.
obj
.
plateType
,
type
:
this
.
obj
.
branchId
,
title
:
'党支部'
title
:
'党支部'
},
{
},
{
enterAnimation
:
'modal-from-right-enter'
,
enterAnimation
:
'modal-from-right-enter'
,
...
@@ -667,7 +669,16 @@ export class DiscoverPage {
...
@@ -667,7 +669,16 @@ export class DiscoverPage {
});
});
modal
.
onDidDismiss
(
data
=>
{
modal
.
onDidDismiss
(
data
=>
{
if
(
data
)
{
if
(
data
)
{
this
.
changeParent
(
data
)
console
.
log
(
data
);
this
.
obj
.
branchId
=
data
.
type
;
const
res
=
{
type
:
'13'
,
indexChildren
:
'32'
,
name
:
"支部活动"
};
this
.
changeChildren
(
res
);
}
}
});
});
modal
.
present
();
modal
.
present
();
...
...
src/pages/tabs/serve/serve.scss
View file @
3eb2463e
...
@@ -121,6 +121,7 @@ page-serve {
...
@@ -121,6 +121,7 @@ page-serve {
margin-right
:
10px
;
margin-right
:
10px
;
}
}
.item-notice
{
.item-notice
{
margin
:
.8rem
;
margin
:
.8rem
;
font-size
:
0
;
font-size
:
0
;
...
@@ -446,4 +447,5 @@ page-serve {
...
@@ -446,4 +447,5 @@ page-serve {
}
}
}
}
}
}
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