Commit 5cf85d9a authored by wangqinghua's avatar wangqinghua

置顶操作

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