Commit 5cf85d9a authored by wangqinghua's avatar wangqinghua

置顶操作

parent 9779d793
<?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" />
......
......@@ -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: 33px;
line-height: 31px;
position: relative;
letter-spacing: 1px;
}
......
......@@ -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>
......
......@@ -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>
......
......@@ -137,9 +137,9 @@ page-home {
position: relative;
.icon-fire{
position: absolute;
top: 1px;
left: -12px;
font-size: 1.4rem;
top: 3px;
left: -14px;
font-size: 1.5rem;
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;
......
......@@ -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();
......
......@@ -20,7 +20,7 @@ page-serve {
padding: 5px 0px;
}
.item3{
padding: 1rem;
padding: .5rem;
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: 3px;
padding: 2px;
position: relative;
font-size: 1.2rem;
img{
......
......@@ -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/"; //正式地址
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment