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
6707b9e2
Commit
6707b9e2
authored
Aug 11, 2019
by
wangqinghua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
api update
parent
c2837c03
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
49 additions
and
10 deletions
+49
-10
filter.html
src/components/filter/filter.html
+3
-1
filter.scss
src/components/filter/filter.scss
+21
-2
filter.ts
src/components/filter/filter.ts
+2
-0
goods-collect.ts
src/pages/serve-pages/goods-collect/goods-collect.ts
+1
-1
serve.service.ts
src/pages/serve-pages/serve.service.ts
+0
-0
vistor-register.ts
src/pages/serve-pages/vistor-register/vistor-register.ts
+1
-1
discover.ts
src/pages/tabs/discover/discover.ts
+20
-4
home.ts
src/pages/tabs/home/home.ts
+1
-1
No files found.
src/components/filter/filter.html
View file @
6707b9e2
<ion-content>
<div
class=
"padding-20-10"
>
<p
class=
"title"
>
{{title}}
<ion-icon
(
click
)="
dismiss
()"
class=
"close"
name=
"close"
></ion-icon>
</p>
<ion-row>
<ion-col
col-4
*
ngFor=
"let item of list"
(
click
)="
chooseItem
(
item
)"
>
<div
class=
"item-style"
[
ngClass
]="
type =
=
item
.
type
?'
select
'
:
''"
>
...
...
@@ -7,6 +10,5 @@
</div>
</ion-col>
</ion-row>
<button
style=
"margin-top: 50px"
class=
"margin-5"
small
color=
"danger"
ion-button
(
click
)="
dismiss
()"
>
确定
</button>
</div>
</ion-content>
src/components/filter/filter.scss
View file @
6707b9e2
filter
{
.item-style
{
.item-style
{
text-align
:
center
;
background-color
:
#f2f2f2
;
border-radius
:
6px
;
padding
:
4px
2px
;
border
:
1px
solid
#f2f2f2
;
}
.select
{
.select
{
background-color
:
#fdf8f2
;
border
:
1px
solid
#fdf8f2
;
color
:
#e42417
;
}
.title
{
text-align
:
center
;
margin-bottom
:
20px
;
position
:
relative
;
font-family
:
SourceHanSans-Bold
;
font-size
:
2rem
;
font-weight
:
300
;
}
.close
{
font-size
:
4rem
;
position
:
absolute
;
right
:
10px
;
top
:
-12px
;
font-weight
:
bold
;
color
:
#666
;
}
}
src/components/filter/filter.ts
View file @
6707b9e2
...
...
@@ -13,6 +13,7 @@ import {NavParams, ViewController} from "ionic-angular";
export
class
FilterComponent
{
list
=
[];
title
;
//标题
choose
;
type
;
...
...
@@ -21,6 +22,7 @@ export class FilterComponent {
private
viewCtrl
:
ViewController
)
{
this
.
list
=
this
.
params
.
get
(
"list"
);
this
.
type
=
this
.
params
.
get
(
"type"
);
this
.
title
=
this
.
params
.
get
(
"title"
);
console
.
log
(
this
.
type
);
}
...
...
src/pages/serve-pages/goods-collect/goods-collect.ts
View file @
6707b9e2
...
...
@@ -100,7 +100,7 @@ export class GoodsCollectPage {
//打开过滤条件
fliter
()
{
let
modal
=
this
.
modalCtrl
.
create
(
FilterComponent
,
{
list
:
this
.
typeList
,
type
:
this
.
obj
.
type
},
{
let
modal
=
this
.
modalCtrl
.
create
(
FilterComponent
,
{
list
:
this
.
typeList
,
type
:
this
.
obj
.
type
,
title
:
'物品分类'
},
{
enterAnimation
:
'modal-from-right-enter'
,
leaveAnimation
:
'modal-from-right-leave'
});
...
...
src/pages/serve-pages/serve.service.ts
View file @
6707b9e2
This diff is collapsed.
Click to expand it.
src/pages/serve-pages/vistor-register/vistor-register.ts
View file @
6707b9e2
...
...
@@ -103,7 +103,7 @@ export class VistorRegisterPage {
//取消预定
removeItem
(
item
)
{
this
.
serveSer
.
cancel
Apply
(
item
.
id
).
subscribe
(
this
.
serveSer
.
cancel
Visitor
(
item
.
id
).
subscribe
(
(
res
)
=>
{
if
(
res
.
errcode
==
1000
)
{
this
.
commonSer
.
toast
(
'取消预定成功'
);
...
...
src/pages/tabs/discover/discover.ts
View file @
6707b9e2
...
...
@@ -187,6 +187,7 @@ export class DiscoverPage {
"plateType"
:
null
,
//分类
"parentName"
:
null
,
"childrenName"
:
null
,
"branchId"
:
null
};
resourceType
=
1
;
//1 标题图片 2 轮播图 3 视频
relatePlateType
;
//关联主题教育
...
...
@@ -273,7 +274,13 @@ export class DiscoverPage {
getBranch
()
{
this
.
tabsSer
.
getBranchList
().
subscribe
(
(
res
)
=>
{
this
.
branchList
=
res
.
data
;
this
.
branchList
=
res
.
data
.
map
(
e
=>
{
const
d
=
{
type
:
e
.
id
,
name
:
e
.
name
};
return
d
;
});
}
)
}
...
...
@@ -409,7 +416,8 @@ export class DiscoverPage {
obj
:
{
'plateType'
:
this
.
obj
.
plateType
,
'resourceType'
:
this
.
resourceType
,
"relatePlateType"
:
this
.
relatePlateType
"relatePlateType"
:
this
.
relatePlateType
,
"branchId"
:
this
.
obj
.
branchId
}
};
this
.
tabsSer
.
stuffPage
(
data
).
subscribe
(
...
...
@@ -632,7 +640,11 @@ export class DiscoverPage {
//多模块
moreTab
()
{
let
modal
=
this
.
modalCtrl
.
create
(
FilterComponent
,
{
list
:
this
.
tabsList
,
type
:
this
.
obj
.
plateType
},
{
let
modal
=
this
.
modalCtrl
.
create
(
FilterComponent
,
{
list
:
this
.
tabsList
,
type
:
this
.
obj
.
plateType
,
title
:
'我的频道'
},
{
enterAnimation
:
'modal-from-right-enter'
,
leaveAnimation
:
'modal-from-right-leave'
});
...
...
@@ -645,7 +657,11 @@ export class DiscoverPage {
}
moreParty
()
{
let
modal
=
this
.
modalCtrl
.
create
(
FilterComponent
,
{
list
:
this
.
branchList
,
type
:
this
.
obj
.
plateType
},
{
let
modal
=
this
.
modalCtrl
.
create
(
FilterComponent
,
{
list
:
this
.
branchList
,
type
:
this
.
obj
.
plateType
,
title
:
'党支部'
},
{
enterAnimation
:
'modal-from-right-enter'
,
leaveAnimation
:
'modal-from-right-leave'
});
...
...
src/pages/tabs/home/home.ts
View file @
6707b9e2
...
...
@@ -442,7 +442,7 @@ export class HomePage {
//多模块
moreTab
()
{
let
modal
=
this
.
modalCtrl
.
create
(
FilterComponent
,
{
list
:
this
.
tabsList
,
type
:
this
.
plateType
},
{
let
modal
=
this
.
modalCtrl
.
create
(
FilterComponent
,
{
list
:
this
.
tabsList
,
type
:
this
.
plateType
,
title
:
'我的频道'
},
{
enterAnimation
:
'modal-from-right-enter'
,
leaveAnimation
:
'modal-from-right-leave'
});
...
...
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