Commit 956aa5a8 authored by wangqinghua's avatar wangqinghua

style

parent adaf26de
<?xml version='1.0' encoding='utf-8'?> <?xml version='1.0' encoding='utf-8'?>
<widget id="io.ionic.partyCloud.starter.test" version="0.0.8" 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.0.9" 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>
...@@ -92,9 +92,9 @@ ...@@ -92,9 +92,9 @@
<plugin name="cordova-plugin-file" spec="^6.0.1" /> <plugin name="cordova-plugin-file" spec="^6.0.1" />
<plugin name="cordova.plugins.diagnostic" spec="^2.0.0" /> <plugin name="cordova.plugins.diagnostic" spec="^2.0.0" />
<plugin name="cordova-plugin-tts" spec="^0.2.3" /> <plugin name="cordova-plugin-tts" spec="^0.2.3" />
<plugin name="phonegap-plugin-mobile-accessibility" spec="~1.0.5-dev" />
<plugin name="cordova-plugin-camera" spec="~4.0.3" />
<engine name="ios" spec="4.5.5" /> <engine name="ios" spec="4.5.5" />
<engine name="browser" spec="5.0.4" /> <engine name="browser" spec="5.0.4" />
<engine name="android" spec="7.0.0" /> <engine name="android" spec="7.0.0" />
<plugin name="phonegap-plugin-mobile-accessibility" spec="~1.0.5-dev" />
<plugin name="cordova-plugin-camera" spec="~4.0.3" />
</widget> </widget>
...@@ -93,4 +93,4 @@ ...@@ -93,4 +93,4 @@
"android" "android"
] ]
} }
} }
\ No newline at end of file
...@@ -164,5 +164,6 @@ int styleable FontFamilyFont_android_fontStyle 2 ...@@ -164,5 +164,6 @@ int styleable FontFamilyFont_android_fontStyle 2
int styleable FontFamilyFont_font 3 int styleable FontFamilyFont_font 3
int styleable FontFamilyFont_fontStyle 4 int styleable FontFamilyFont_fontStyle 4
int styleable FontFamilyFont_fontWeight 5 int styleable FontFamilyFont_fontWeight 5
int xml config 0x7f0d0000 int xml camera_provider_paths 0x7f0d0000
int xml opener_paths 0x7f0d0001 int xml config 0x7f0d0001
int xml opener_paths 0x7f0d0002
...@@ -27,13 +27,14 @@ ...@@ -27,13 +27,14 @@
<ion-option *ngFor="let item of group" [value]="item.id">{{item.groupName}}</ion-option> <ion-option *ngFor="let item of group" [value]="item.id">{{item.groupName}}</ion-option>
</ion-select> </ion-select>
</ion-item> </ion-item>
<ion-item> <!-- <ion-item>-->
<button (click)="selectPicture"></button> <!-- <button (click)="selectPicture"></button>-->
</ion-item> <!-- </ion-item>-->
<ion-item> <ion-item>
<ion-input [(ngModel)]="obj.title" placeholder="请输入内容标题"></ion-input> <ion-input [(ngModel)]="obj.title" placeholder="请输入内容标题"></ion-input>
</ion-item> </ion-item>
<ion-item> <ion-item>
<textarea [(ngModel)]="obj.content" class="content-textarea" placeholder="请在此输入发布内容"></textarea> <textarea [(ngModel)]="obj.content" class="content-textarea" placeholder="请在此输入发布内容"></textarea>
</ion-item> </ion-item>
<!-- <span (click)="selectPicture()">选择文件</span>-->
</ion-content> </ion-content>
...@@ -26,6 +26,7 @@ export class PublishPage { ...@@ -26,6 +26,7 @@ export class PublishPage {
}; };
group; //用户组 group; //用户组
userid; //当前登录人的id userid; //当前登录人的id
file; // 文件
constructor(public navCtrl: NavController, public navParams: NavParams,public storage:Storage, constructor(public navCtrl: NavController, public navParams: NavParams,public storage:Storage,
public camera:Camera, public camera:Camera,
public commonSer:CommonService,public tabSer:TabsService) { public commonSer:CommonService,public tabSer:TabsService) {
...@@ -49,7 +50,8 @@ export class PublishPage { ...@@ -49,7 +50,8 @@ export class PublishPage {
quality: 30, quality: 30,
destinationType: this.camera.DestinationType.FILE_URI, destinationType: this.camera.DestinationType.FILE_URI,
encodingType: this.camera.EncodingType.JPEG, encodingType: this.camera.EncodingType.JPEG,
mediaType: this.camera.MediaType.PICTURE mediaType: this.camera.MediaType.PICTURE,
sourceType: this.camera.PictureSourceType.CAMERA,
} }
this.camera.getPicture(options).then((imagedata)=>{ this.camera.getPicture(options).then((imagedata)=>{
let base64Image = 'data:image/jpeg;base64,' + imagedata; let base64Image = 'data:image/jpeg;base64,' + imagedata;
...@@ -57,6 +59,11 @@ export class PublishPage { ...@@ -57,6 +59,11 @@ export class PublishPage {
}) })
} }
getFile(e){
console.log(this.file)
console.log(e)
}
//发布 //发布
publish(){ publish(){
const data = { const data = {
......
...@@ -21,7 +21,7 @@ export class SearchNewPage { ...@@ -21,7 +21,7 @@ export class SearchNewPage {
public tabs:TabsService) { public tabs:TabsService) {
} }
ionViewDidLoad() { ionViewDidEnter() {
this.search(); this.search();
} }
......
<ion-header> <ion-header>
<ion-toolbar> <ion-navbar>
<ion-title text-center>通讯录</ion-title> <ion-title text-center>通讯录</ion-title>
<ion-buttons end> <ion-buttons end>
<button ion-button (click)="search()" class="search"> <button ion-button (click)="search()" class="search">
<ion-icon ios="ios-search" md="md-search"></ion-icon> <ion-icon ios="ios-search" md="md-search"></ion-icon>
</button> </button>
</ion-buttons> </ion-buttons>
</ion-toolbar> </ion-navbar>
</ion-header> </ion-header>
<ion-content> <ion-content>
<div class="common "> <div class="common ">
常用联系人 常用联系人
......
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
<div class="scroll-tab"> <div class="scroll-tab">
<div class="news-content"> <div class="news-content">
<div #tabsParent class="tabs-parent"> <div #tabsParent class="tabs-parent">
<div #tabsChildren *ngFor="let item of tabsList;" (click)="change(item.type)" class="tabs-children"> <div #tabsChildren *ngFor="let item of tabsList;" (click)="change(item)" class="tabs-children">
<span #tabSpan [style.color]="index == item.type ? '#e12724':''">{{item.name}}</span> <span #tabSpan [style.color]="index == item.type ? '#e12724':''">{{item.name}}</span>
</div> </div>
<span #tips id="tips"></span> <span #tips id="tips"></span>
......
...@@ -62,6 +62,7 @@ page-discover { ...@@ -62,6 +62,7 @@ page-discover {
.search-item{ .search-item{
padding: .8rem 0; padding: .8rem 0;
.item-info{ .item-info{
margin: .8rem 0;
.item-source{ .item-source{
color: #d88f27; color: #d88f27;
font-weight: 500; font-weight: 500;
...@@ -83,6 +84,7 @@ page-discover { ...@@ -83,6 +84,7 @@ page-discover {
align-self: flex-end; align-self: flex-end;
color: #999999; color: #999999;
font-size: 1.5rem; font-size: 1.5rem;
margin-top: .8rem;
span{ span{
margin-right: 1rem; margin-right: 1rem;
} }
......
...@@ -21,11 +21,11 @@ export class DiscoverPage { ...@@ -21,11 +21,11 @@ export class DiscoverPage {
@ViewChild('tabSpan') tabSpan: ElementRef; @ViewChild('tabSpan') tabSpan: ElementRef;
tabsList = [ tabsList = [
{name: "支部风采",type:0}, {name: "支部风采",type:13,index:0},
{name: "机关党委",type:1}, {name: "机关党委",type:5,index:1},
{name: "党风廉政",type:2}, {name: "党风廉政",type:9,index:2},
{name: "互动交流",type:3}, {name: "互动交流",type:-1,index:3},
{name: "知识拓展",type:4}, {name: "知识拓展",type:-1,index:4},
]; ];
index = 0; index = 0;
isSign = false; isSign = false;
...@@ -43,12 +43,13 @@ export class DiscoverPage { ...@@ -43,12 +43,13 @@ export class DiscoverPage {
} }
ionViewDidEnter() { ionViewDidEnter() {
this.change(0); this.change(this.tabsList[0]);
} }
//所属板块类型(1党规党章,2系列讲话,3中央精神,4本市部署,5通知公告,6党建动态,7工作提示, //所属板块类型(1党规党章,2系列讲话,3中央精神,4本市部署,5通知公告,6党建动态,7工作提示,
// * 8党务参考,9廉政格言,10纪检提示,11风险排查,12警示教育,13支部活动,14党建联建,15结对帮扶) // * 8党务参考,9廉政格言,10纪检提示,11风险排查,12警示教育,13支部活动,14党建联建,15结对帮扶)
change(index) { change(item) {
const index = item.index;
let itemWidth = window.screen.width / 4; let itemWidth = window.screen.width / 4;
let spanWidth = this.tabSpan.nativeElement.offsetWidth; //文字宽度 let spanWidth = this.tabSpan.nativeElement.offsetWidth; //文字宽度
this.tips.nativeElement.style.width = this.tabSpan.nativeElement.offsetWidth + 'px'; this.tips.nativeElement.style.width = this.tabSpan.nativeElement.offsetWidth + 'px';
...@@ -59,7 +60,7 @@ export class DiscoverPage { ...@@ -59,7 +60,7 @@ export class DiscoverPage {
pageSize: 1, pageSize: 1,
pageCount: 100, pageCount: 100,
obj: { obj: {
'plateType': index + 1, 'plateType': item.type,
resourceType: 1 resourceType: 1
} }
} }
......
...@@ -95,7 +95,7 @@ page-home { ...@@ -95,7 +95,7 @@ page-home {
-webkit-border-radius: 5px; -webkit-border-radius: 5px;
-moz-border-radius: 5px; -moz-border-radius: 5px;
border-radius: 5px; border-radius: 5px;
box-shadow: -5px 0px 5px 1px #f9f9f9, 0px -5px 5px 1px #f9f9f9, 5px 0px 5px 1px #f9f9f9, 0px 5px 5px 1px #f9f9f9; box-shadow: -5px 0px 5px 1px #f4f4f4, 0px -5px 5px 1px #f4f4f4, 5px 0px 5px 1px #f4f4f4, 0px 5px 5px 1px #f4f4f4;
background-color: #fff; background-color: #fff;
.middle-left { .middle-left {
...@@ -106,6 +106,9 @@ page-home { ...@@ -106,6 +106,9 @@ page-home {
width: 2.5rem; width: 2.5rem;
} }
} }
.middle-right{
line-height: 2.2rem;
}
} }
} }
...@@ -141,6 +144,7 @@ page-home { ...@@ -141,6 +144,7 @@ page-home {
.news-right { .news-right {
img { img {
border-radius: .5rem; border-radius: .5rem;
height: 80px;
} }
} }
} }
......
...@@ -92,6 +92,9 @@ export class HomePage { ...@@ -92,6 +92,9 @@ export class HomePage {
(res) => { (res) => {
this.slidersItems = res.data; this.slidersItems = res.data;
this.slidersItems.forEach(e => { this.slidersItems.forEach(e => {
if(e.title.length > 16){
e.title = e.title.substr(0,17) +'...';
}
if (e.attachments.length > 0) { if (e.attachments.length > 0) {
e.imgUrl = e.attachments[0].path; e.imgUrl = e.attachments[0].path;
} }
......
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
<p class="address">{{mineInfo?.orgName}}</p> <p class="address">{{mineInfo?.orgName}}</p>
</ion-col> </ion-col>
<ion-col col-4 class="text-right"> <ion-col col-4 class="text-right">
<span class="red-span-round">{{mineInfo?.post}}</span> <span *ngIf="mineInfo?.post" class="red-span-round">{{mineInfo?.post}}</span>
</ion-col> </ion-col>
</ion-row> </ion-row>
</ion-grid> </ion-grid>
......
...@@ -37,11 +37,15 @@ page-mine { ...@@ -37,11 +37,15 @@ page-mine {
.group-box { .group-box {
background-color: #fff; background-color: #fff;
font-size: 1.6rem;
.group-left{ .group-left{
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
} }
ion-row{
padding-top: .6rem;
}
img{ img{
width: 2.5rem; width: 2.5rem;
} }
......
...@@ -14,41 +14,40 @@ ...@@ -14,41 +14,40 @@
</ion-navbar> </ion-navbar>
</ion-header> </ion-header>
<ion-content> <ion-content>
<div style="height: 160px"> <!-- <div style="height: 160px">-->
<ion-slides #slides *ngIf="slidersItems.length>0" pager loop="true" autoplay="2000" speed="1500"> <!-- <ion-slides #slides *ngIf="slidersItems.length>0" pager loop="true" autoplay="2000" speed="1500">-->
<ion-slide style="height:160px;width: 100%;position: relative" *ngFor="let item of slidersItems"> <!-- <ion-slide style="height:160px;width: 100%;position: relative" *ngFor="let item of slidersItems">-->
<img src="{{picture+item.pictureId}}" class="slide-image" (click)="go(item)"> <!-- <img src="{{picture+item.pictureId}}" class="slide-image" (click)="go(item)">-->
<p class="slides-title">{{item.title}}</p> <!-- <p class="slides-title">{{item.title}}</p>-->
</ion-slide> <!-- </ion-slide>-->
</ion-slides> <!-- </ion-slides>-->
</div> <!-- </div>-->
<div class="item3"> <div class="item3">
<div class="item3-2" (click)="goToNotice()"> <div class="item3-2" (click)="goToNotice()">
<div class="card3" style="width: 20%;"> <ion-col col-2 class="card3">
<span *ngIf="hasNew.message == 1" class="img-tips"></span> <span *ngIf="hasNew.message == 1" class="img-tips"></span>
<img src="./assets/imgs/home/icon-mail.png" > <img src="./assets/imgs/home/icon-mail.png" >
</div> </ion-col>
<div class="card3" style="width: 75%;"> <ion-col col-9 class="card3" >
<div class="card3-item" *ngFor="let item of noticeList;"> <div class="card3-item" *ngFor="let item of noticeList;">
<span *ngIf="noticeTips > 0" class="tips"></span> <span *ngIf="noticeTips > 0" class="tips"></span>
<span class="color-996">{{item.title}}</span> <span class="color-996">{{item.title}}</span>
{{item.content}} {{item.content}}
</div> </div>
</div> </ion-col>
<div class="card3" style="width: 5%;color: #999999;font-size: 1.6rem"> <ion-col col-1 class="card3" style="color: #999999;font-size: 1.6rem">
<ion-icon name="ios-arrow-forward" class="icon-right"></ion-icon> <ion-icon name="ios-arrow-forward" class="icon-right"></ion-icon>
</div> </ion-col>
</div> </div>
</div> </div>
<p class="p-font">我的应用</p> <p class="p-font">我的应用</p>
<div class="item2" style="padding: 0px;margin-top: .5rem"> <div class="item2" style="padding: 0px;margin-top: .5rem">
<div class="item2-2"> <div class="item2-2">
<div class="card" (click)="goTo('ActivityListPage')"> <div class="card" (click)="goToContact()">
<img src="./assets/imgs/home/icon-txl.png" > <img src="./assets/imgs/home/icon-txl.png" >
<label class="label2-2">通讯录</label> <label class="label2-2">通讯录</label>
<img class="new-logo" *ngIf="hasNew.activity==1" src="./assets/imgs/new.png">
</div> </div>
<div class="card" (click)="goTo('ActivityListPage')"> <div class="card" (click)="goTo('ActivityListPage')">
<img src="./assets/imgs/home/icon-hdbm.png" > <img src="./assets/imgs/home/icon-hdbm.png" >
......
...@@ -87,7 +87,9 @@ page-serve { ...@@ -87,7 +87,9 @@ page-serve {
} }
.label2-2 { .label2-2 {
color: #666666 color: #666666;
margin-top: 6px;
font-size: 1.4rem;
} }
.new-logo { .new-logo {
...@@ -120,7 +122,7 @@ page-serve { ...@@ -120,7 +122,7 @@ page-serve {
-webkit-border-radius: 5px; -webkit-border-radius: 5px;
-moz-border-radius: 5px; -moz-border-radius: 5px;
border-radius: 5px; border-radius: 5px;
box-shadow: -5px 0px 5px 1px #f9f9f9, 0px -5px 5px 1px #f9f9f9, 5px 0px 5px 1px #f9f9f9, 0px 5px 5px 1px #f9f9f9; box-shadow: -5px 0px 5px 1px #f4f4f4, 0px -5px 5px 1px #f4f4f4, 5px 0px 5px 1px #f4f4f4, 0px 5px 5px 1px #f4f4f4;
background-color: #fff; background-color: #fff;
} }
...@@ -132,7 +134,6 @@ page-serve { ...@@ -132,7 +134,6 @@ page-serve {
padding: 3px; padding: 3px;
position: relative; position: relative;
font-size: 1.2rem; font-size: 1.2rem;
text-align: center;
img{ img{
width: 3rem; width: 3rem;
} }
...@@ -325,7 +326,7 @@ page-serve { ...@@ -325,7 +326,7 @@ page-serve {
border: 1px solid #ddd; border: 1px solid #ddd;
line-height: 2rem; line-height: 2rem;
background-color: #f7f7f7; background-color: #f7f7f7;
border-radius: 8px; border-radius: 5px;
} }
.calen1, .calen1,
......
...@@ -19,6 +19,7 @@ import {TabsService} from "../tabs.service"; ...@@ -19,6 +19,7 @@ import {TabsService} from "../tabs.service";
import {TextToSpeech} from "@ionic-native/text-to-speech"; import {TextToSpeech} from "@ionic-native/text-to-speech";
import {CommonService} from "../../../provide/common.service"; import {CommonService} from "../../../provide/common.service";
import {EmitService} from "../../../provide/emit.service"; import {EmitService} from "../../../provide/emit.service";
import {ContactPage} from "../contact/contact";
@IonicPage() @IonicPage()
...@@ -191,6 +192,10 @@ export class ServePage { ...@@ -191,6 +192,10 @@ export class ServePage {
this.navCtrl.push(page); this.navCtrl.push(page);
} }
goToContact(){
this.navCtrl.push(ContactPage);
}
readBook() { readBook() {
this.tts.speak({text: "你好,欢迎,向前走10米,路口右转,执行10米,在左转", locale: 'zh-CN'}) this.tts.speak({text: "你好,欢迎,向前走10米,路口右转,执行10米,在左转", locale: 'zh-CN'})
.then(() => { .then(() => {
......
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