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
4e9a1bfd
Commit
4e9a1bfd
authored
May 29, 2019
by
wangqinghua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
swiper
parent
b896e1f1
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
26 additions
and
57 deletions
+26
-57
app.scss
src/app/app.scss
+2
-1
publish.ts
src/pages/discover-pages/publish/publish.ts
+1
-1
personInfo.ts
src/pages/mine/person/personInfo/personInfo.ts
+1
-1
discover.html
src/pages/tabs/discover/discover.html
+5
-5
discover.scss
src/pages/tabs/discover/discover.scss
+1
-0
discover.ts
src/pages/tabs/discover/discover.ts
+8
-7
home.html
src/pages/tabs/home/home.html
+0
-1
home.scss
src/pages/tabs/home/home.scss
+6
-39
home.ts
src/pages/tabs/home/home.ts
+2
-2
No files found.
src/app/app.scss
View file @
4e9a1bfd
...
...
@@ -384,9 +384,10 @@ ion-navbar .header-ios .toolbar-ios:last-child .toolbar-background-ios {
color
:
#ffffff
;
text-align
:
center
;
font-size
:
1
.8rem
;
padding
:
.4rem
0
;
border-top-right-radius
:
5px
;
border-top-left-radius
:
5px
;
height
:
35px
;
line-height
:
35px
;
}
.record-content
{
...
...
src/pages/discover-pages/publish/publish.ts
View file @
4e9a1bfd
...
...
@@ -106,7 +106,7 @@ export class PublishPage {
return
false
;
}
const
options
:
CameraOptions
=
{
quality
:
10
0
,
quality
:
7
0
,
destinationType
:
this
.
camera
.
DestinationType
.
FILE_URI
,
encodingType
:
this
.
camera
.
EncodingType
.
PNG
,
mediaType
:
this
.
camera
.
MediaType
.
PICTURE
,
...
...
src/pages/mine/person/personInfo/personInfo.ts
View file @
4e9a1bfd
...
...
@@ -91,7 +91,7 @@ export class PersonInfoPage {
//选择图片
selectPicture
(
srcType
)
{
const
options
:
CameraOptions
=
{
quality
:
10
0
,
quality
:
5
0
,
destinationType
:
this
.
camera
.
DestinationType
.
FILE_URI
,
encodingType
:
this
.
camera
.
EncodingType
.
PNG
,
mediaType
:
this
.
camera
.
MediaType
.
PICTURE
,
...
...
src/pages/tabs/discover/discover.html
View file @
4e9a1bfd
...
...
@@ -111,11 +111,11 @@
</ion-slides>
<!-- <ion-infinite-scroll #infiniteScrollContentEle (ionInfinite)="doInfinite($event)">--
>
<!-- <ion-infinite-scroll-content-->
<!-- loadingSpinner="bubbles"-->
<!-- loadingText="加载中"></ion-infinite-scroll-content>--
>
<!-- </ion-infinite-scroll>--
>
<ion-infinite-scroll
#
infiniteScrollContentEle
(
ionInfinite
)="
doInfinite
($
event
)"
>
<ion-infinite-scroll-content
loadingSpinner=
"bubbles"
loadingText=
"加载中"
></ion-infinite-scroll-content
>
</ion-infinite-scroll
>
<p
class=
"noData"
*
ngIf=
"!loadMore"
>
你已经看到我的底线了
</p>
...
...
src/pages/tabs/discover/discover.scss
View file @
4e9a1bfd
...
...
@@ -68,6 +68,7 @@ page-discover {
padding
:
0
1rem
;
.search-item
{
padding
:
.8rem
0
;
overflow-y
:
scroll
;
.item-info
{
margin
:
.8rem
0
;
color
:
#989898
;
...
...
src/pages/tabs/discover/discover.ts
View file @
4e9a1bfd
...
...
@@ -158,7 +158,7 @@ export class DiscoverPage {
toIndex
;
//分页
pageCount
=
10
0
;
pageCount
=
10
;
loadMore
=
true
;
totalNum
;
...
...
@@ -186,7 +186,7 @@ export class DiscoverPage {
//父级选择
changeParent
(
item
)
{
this
.
newsContent
.
nativeElement
.
scrollLeft
=
0
;
//二级菜单滑动重置
//
this.infiniteScrollContent.inf.enable(true);
this
.
infiniteScrollContent
.
inf
.
enable
(
true
);
this
.
loadMore
=
true
;
const
index
=
item
.
indexParent
;
...
...
@@ -227,7 +227,7 @@ export class DiscoverPage {
//子级选择
changeChildren
(
item
)
{
this
.
indexChildren
=
item
.
indexChildren
;
//
this.infiniteScrollContent.inf.enable(true);
this
.
infiniteScrollContent
.
inf
.
enable
(
true
);
this
.
loadMore
=
true
;
...
...
@@ -255,6 +255,7 @@ export class DiscoverPage {
//下拉刷新
doRefresh
(
e
)
{
this
.
infiniteScrollContent
.
inf
.
enable
(
true
);
const
data
=
{
pageNum
:
1
,
pageCount
:
this
.
pageCount
,
...
...
@@ -272,9 +273,9 @@ export class DiscoverPage {
e
.
imgUrl
=
e
.
attachments
[
0
].
path
;
}
})
this
.
slideList
[
this
.
toIndex
]
=
this
.
newList
;
setTimeout
(()
=>
{
this
.
commonSer
.
toastTime
(
'刷新成功!'
,
800
)
this
.
slideList
[
this
.
toIndex
]
=
this
.
newList
;
this
.
commonSer
.
toastTime
(
'刷新成功!'
,
800
);
e
.
complete
();
},
1000
);
}
...
...
@@ -300,7 +301,7 @@ export class DiscoverPage {
'resourceType'
:
1
}
};
this
.
renderer
.
setStyle
(
this
.
infiniteScrollContentEle
.
nativeElement
.
children
[
0
],
'minHeight'
,
'60px'
);
//
this.renderer.setStyle(this.infiniteScrollContentEle.nativeElement.children[0], 'minHeight', '60px');
this
.
tabsSer
.
stuffPage
(
data
).
subscribe
(
(
res
)
=>
{
let
arr
=
res
.
data
.
list
;
...
...
@@ -314,7 +315,7 @@ export class DiscoverPage {
}
setTimeout
(()
=>
{
infiniteScroll
.
complete
();
this
.
renderer
.
setStyle
(
this
.
infiniteScrollContentEle
.
nativeElement
.
children
[
0
],
'minHeight'
,
'0px'
);
//
this.renderer.setStyle(this.infiniteScrollContentEle.nativeElement.children[0], 'minHeight', '0px');
},
1000
)
}
)
...
...
src/pages/tabs/home/home.html
View file @
4e9a1bfd
...
...
@@ -139,7 +139,6 @@
<p
class=
"noData"
*
ngIf=
"!loadMore"
>
你已经看到我的底线了
</p>
</div>
</div>
</ng-container>
</div>
</div>
...
...
src/pages/tabs/home/home.scss
View file @
4e9a1bfd
...
...
@@ -346,49 +346,16 @@ page-home {
}
}
//新闻区
.main-news
{
padding
:
0
1rem
5rem
1rem
;
//height: inherit;
.news-item
{
padding
:
.8rem
0
;
.news-left
{
display
:
flex
;
flex-flow
:
row
wrap
;
min-height
:
100%
;
.news-title
{
align-self
:
flex-start
;
font-weight
:
bold
;
width
:
100%
;
margin-bottom
:
.6rem
;
}
.news-end
{
//align-self: flex-end;
color
:
#999999
;
#swiper-article
.swiper-container
{
height
:
fit-content
;
span
{
margin-right
:
1rem
;
}
}
}
.news-right
{
text-align
:
center
;
.swiper-wrapper
{
height
:
fit-content
;
img
{
border-radius
:
.5rem
;
height
:
60px
;
}
.swiper-slide
{
height
:
fit-content
;
}
}
.news-item
+
.news-item
{
border-top
:
1px
solid
#eeeeee
;
}
}
}
...
...
src/pages/tabs/home/home.ts
View file @
4e9a1bfd
...
...
@@ -170,7 +170,6 @@ export class HomePage {
loop
:
false
,
on
:
{
slideChangeTransitionEnd
:
function
()
{
console
.
log
(
this
.
activeIndex
);
that
.
swiperArticle
.
update
();
that
.
change
(
that
.
tabsList
[
this
.
activeIndex
]);
},
...
...
@@ -229,6 +228,7 @@ export class HomePage {
this
.
slideList
[
this
.
index
]
=
arr
;
}
if
(
this
.
swiperArticle
)
this
.
swiperArticle
.
slideTo
(
this
.
index
,
500
);
this
.
content
.
resize
();
}
)
}
...
...
@@ -254,7 +254,7 @@ export class HomePage {
(
res
)
=>
{
this
.
partyObj
=
res
.
apiResult
.
data
;
//获取是否展示过政治生日
const
nowDay
=
this
.
datePipe
.
transform
(
new
Date
(),
'yyyy-MM-dd'
);
const
nowDay
=
this
.
datePipe
.
transform
(
new
Date
(),
'yyyy-MM-dd
HH
'
);
const
partyBir
=
localStorage
.
getItem
(
'partyBir'
);
if
(
nowDay
==
partyBir
)
{
setTimeout
(()
=>
{
...
...
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