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
5cf85d9a
Commit
5cf85d9a
authored
May 08, 2019
by
wangqinghua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
置顶操作
parent
9779d793
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
31 additions
and
22 deletions
+31
-22
config.xml
config.xml
+2
-2
app.scss
src/app/app.scss
+2
-1
slide.html
src/components/slide/slide.html
+1
-1
home.html
src/pages/tabs/home/home.html
+7
-6
home.scss
src/pages/tabs/home/home.scss
+4
-3
home.ts
src/pages/tabs/home/home.ts
+10
-4
serve.scss
src/pages/tabs/serve/serve.scss
+3
-3
http.service.ts
src/service/http.service.ts
+2
-2
No files found.
config.xml
View file @
5cf85d9a
<?xml version='1.0' encoding='utf-8'?>
<widget
id=
"io.ionic.partyCloud.starter.test"
version=
"0.2.
3
"
xmlns=
"http://www.w3.org/ns/widgets"
xmlns:cdv=
"http://cordova.apache.org/ns/1.0"
>
<widget
id=
"io.ionic.partyCloud.starter.test"
version=
"0.2.
4
"
xmlns=
"http://www.w3.org/ns/widgets"
xmlns:cdv=
"http://cordova.apache.org/ns/1.0"
>
<name>
部机关党建云(测试)
</name>
<description>
An awesome Ionic/Cordova app.
</description>
<author
email=
"hi@ionicframework"
href=
"http://ionicframework.com/"
>
Ionic Framework Team
</author>
...
...
@@ -19,7 +19,7 @@
<preference
name=
"SplashShowOnlyFirstTime"
value=
"false"
/>
<preference
name=
"SplashScreen"
value=
"screen"
/>
<preference
name=
"SplashScreenDelay"
value=
"20000"
/>
<preference
name=
"ShowSplashScreenSpinner"
value=
"false"
/>
<preference
name=
"ShowSplashScreenSpinner"
value=
"false"
/>
<platform
name=
"android"
>
<allow-intent
href=
"market:*"
/>
<icon
density=
"ldpi"
src=
"resources/android/icon/drawable-ldpi-icon.png"
/>
...
...
src/app/app.scss
View file @
5cf85d9a
...
...
@@ -179,6 +179,7 @@ ion-navbar .header-ios .toolbar-ios:last-child .toolbar-background-ios {
font-size
:
1
.7rem
;
white-space
:
nowrap
;
background-color
:
#fff1f0
;
padding
:
.5rem
0
;
}
.
tabs-parent
:
:-
webkit-scrollbar
{
display
:
none
;
...
...
@@ -370,7 +371,7 @@ a[disabled], button[disabled], [ion-button][disabled],
height
:
33px
;
overflow
:
hidden
;
font-size
:
14px
;
line-height
:
3
3
px
;
line-height
:
3
1
px
;
position
:
relative
;
letter-spacing
:
1px
;
}
...
...
src/components/slide/slide.html
View file @
5cf85d9a
...
...
@@ -6,7 +6,7 @@
</ion-slide>
</ion-slides>
</div>
<p
class=
"slides-title"
>
<p
class=
"slides-title"
*
ngIf=
"slidersItems.length>0"
>
{{slideTitle}}
<span
class=
"slide-index"
float-end
>
<span>
{{slideIndex}}
</span><span>
/{{slidersItems.length}}
</span>
</span>
...
...
src/pages/tabs/home/home.html
View file @
5cf85d9a
...
...
@@ -46,7 +46,6 @@
</div>
<slide></slide>
</div>
<!--true 隐藏 false 显示-->
<div
[
hidden
]="
isScroll
"
class=
"news-content"
>
<div
class=
"tabs-parent"
>
...
...
@@ -66,8 +65,8 @@
<span
#
tips1
class=
"tips"
></span>
</div>
</div>
<ion-slides
initialSlide=
"4"
(
ionSlideDidChange
)="
slideChange
($
event
)"
loop=
"true"
>
<ion-slide
*
ngFor=
"let item of slideList"
>
<ion-slides
(
ionSlideDidChange
)="
slideChange
(
)"
loop=
"true"
>
<ion-slide
*
ngFor=
"let item of slideList
;let i = index
"
>
<div
class=
"main-news"
>
<ng-container
*
ngFor=
"let new of item;"
>
<ng-container
*
ngIf=
"new.imgUrl"
>
...
...
@@ -90,7 +89,10 @@
<ng-container
*
ngIf=
"!new.imgUrl"
>
<ion-row
class=
"news-item"
(
click
)="
goToDetail
(
new
)"
>
<ion-col
col-12
class=
"news-left"
>
<p
class=
"news-title"
>
{{new.title}}
</p>
<p
class=
"news-title"
>
{{new.title}}
<ion-icon
*
ngIf=
"new.topTime"
class=
"icon-fire iconfont"
></ion-icon>
</p>
<p
class=
"news-end"
>
<span>
{{new.source}}
</span>
<span>
{{new.publishTime | date:'yyyy-MM-dd'}}
</span>
...
...
@@ -103,10 +105,9 @@
</ion-slide>
</ion-slides>
<ion-infinite-scroll
#
infiniteScrollContent
(
ionInfinite
)="
doInfinite
($
event
)"
>
<ion-infinite-scroll-content
loadingSpinner=
"bubbles"
threshold=
"10%"
loadingSpinner=
"bubbles"
loadingText=
"加载更多..."
></ion-infinite-scroll-content>
</ion-infinite-scroll>
</ion-content>
...
...
src/pages/tabs/home/home.scss
View file @
5cf85d9a
...
...
@@ -137,9 +137,9 @@ page-home {
position
:
relative
;
.icon-fire
{
position
:
absolute
;
top
:
1
px
;
left
:
-1
2
px
;
font-size
:
1
.
4
rem
;
top
:
3
px
;
left
:
-1
4
px
;
font-size
:
1
.
5
rem
;
color
:
#e42417
;
}
}
...
...
@@ -196,6 +196,7 @@ page-home {
font-size
:
1
.4rem
;
overflow-y
:
scroll
;
padding-bottom
:
1rem
;
text-align
:
left
;
}
.slide-zoom
{
text-align
:
left
;
...
...
src/pages/tabs/home/home.ts
View file @
5cf85d9a
...
...
@@ -37,9 +37,15 @@ export class HomePage {
//所属板块类型:
//1党章党规,2系列讲话,3中央精神,4本市部署,5通知公告,6党建动态,7工作提示,8党务参考
//9廉政格言,10纪检提示,11风险排查,12警示教育,13支部活动,14党建联建,15结对帮扶
// tabsList = [
// {name: "党章党规", type: 1, index: 0},
// {name: "系列讲话", type: 2, index: 1},
// {name: "中央精神", type: 3, index: 2},
// {name: "本市部署", type: 4, index: 3}
// ];
tabsList
=
[
{
name
:
"系列讲话"
,
type
:
2
,
index
:
0
},
{
name
:
"党章党规"
,
type
:
1
,
index
:
1
},
{
name
:
"党章党规"
,
type
:
1
,
index
:
1
},
{
name
:
"中央精神"
,
type
:
3
,
index
:
2
},
{
name
:
"本市部署"
,
type
:
4
,
index
:
3
}
];
...
...
@@ -146,13 +152,13 @@ export class HomePage {
}
});
this
.
slideList
[
index
]
=
arr
;
if
(
this
.
slides1
)
this
.
slides1
.
slideTo
(
index
,
500
);
}
if
(
this
.
slides1
)
this
.
slides1
.
slideTo
(
index
,
500
);
}
)
}
slideChange
(
e
)
{
slideChange
()
{
if
(
this
.
initSlide
==
0
){
//防止初始化加载
this
.
initSlide
=
1
;
return
false
;
...
...
@@ -284,8 +290,8 @@ export class HomePage {
e
.
imgUrl
=
e
.
attachments
[
0
].
path
;
}
});
this
.
slideList
[
this
.
index
]
=
arr
;
}
this
.
slideList
[
this
.
index
]
=
arr
;
setTimeout
(()
=>
{
this
.
commonSer
.
toastTime
(
'刷新成功!'
,
800
)
e
.
complete
();
...
...
src/pages/tabs/serve/serve.scss
View file @
5cf85d9a
...
...
@@ -20,7 +20,7 @@ page-serve {
padding
:
5px
0px
;
}
.item3
{
padding
:
1
rem
;
padding
:
.5
rem
;
background-color
:
#fff
;
-webkit-transition
:
height
500ms
;
-moz-transition
:
height
500ms
;
...
...
@@ -122,7 +122,7 @@ page-serve {
}
.item3-2
{
padding
:
.5rem
0
;
padding
:
2px
0
;
-webkit-border-radius
:
5px
;
-moz-border-radius
:
5px
;
border-radius
:
5px
;
...
...
@@ -135,7 +135,7 @@ page-serve {
align-items
:
center
;
justify-content
:
center
;
flex-flow
:
row
wrap
;
padding
:
3
px
;
padding
:
2
px
;
position
:
relative
;
font-size
:
1
.2rem
;
img
{
...
...
src/service/http.service.ts
View file @
5cf85d9a
...
...
@@ -15,8 +15,8 @@ export class AppGlobal {
//接口基地址
// static domain = "http://101.89.112.92:80"; //正式环境
// static domain = "http://180.168.156.212:2931"; //测试环境
static
domain
=
"http://47.103.35.216:8080"
;
//阿里云地址
//
static domain = ""; //本地环境
//
static domain = "http://47.103.35.216:8080"; //阿里云地址
static
domain
=
""
;
//本地环境
//图片地址
// static picture = AppGlobal.domain + "/wisdomgroup/manager/getIcon/"; //正式地址
...
...
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