Commit 570b3483 authored by wangqinghua's avatar wangqinghua

color

parent 7ea1e6b0
<?xml version='1.0' encoding='utf-8'?>
<widget id="io.ionic.starter" version="1.1.5" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<widget id="io.ionic.starter" version="1.1.6" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<name>智汇19号</name>
<description>An awesome Ionic/Cordova app.</description>
<author email="hi@ionicframework" href="http://ionicframework.com/">Ionic Framework Team</author>
......
......@@ -5,9 +5,5 @@
},
"type": "ionic-angular",
"proxies": [
{
"path": "/wisdomgroup",
"proxyUrl": "http://180.168.156.212:2931/wisdomgroup"
}
]
}
\ No newline at end of file
......@@ -66,7 +66,9 @@ export class MyApp {
loadLogin() {
this.storage.get("userLoginInfo").then((value) => {
if (value != null && value != '') {
console.log(value);
this.user = value;
if(this.user.remember){
this.appService.ObserverHttpPost("/wisdomgroup/app/loginpost", this.user)
.subscribe((res: Response) => {
let data = res.json();
......@@ -87,6 +89,10 @@ export class MyApp {
this.appService.alert('网络异常!');
}
);
}else{
this.rootPage = LoginPage;
}
}
else {
this.rootPage = LoginPage;
......
page-announcement {
.searchToolBar{
td, th {
border: 1px solid #dddddd;
}
.searchToolBar {
display: flex;
flex-direction: row;
align-items: center;
......@@ -8,10 +10,10 @@ page-announcement {
box-sizing: border-box;
}
.list-ios .item-block .item-inner{
.list-ios .item-block .item-inner {
border: none;
}
.item-header{
.item-header {
display: flex;
flex-direction: row;
align-items: center;
......@@ -19,7 +21,7 @@ page-announcement {
box-sizing: border-box;
}
.item-header-style{
.item-header-style {
display: flex;
flex-direction: row;
align-items: center;
......@@ -27,17 +29,17 @@ page-announcement {
box-sizing: border-box;
}
.item-title{
.item-title {
font-size: 18px;
}
.icon{
.icon {
width: 20px;
height: 20px;
margin-right: 5px;
}
.btn{
.btn {
// float: right;
background-color: white;
......@@ -45,13 +47,13 @@ page-announcement {
font-size: 6px;
}
.btn1{
.btn1 {
border: 1px solid #69c4e2;
color: #69c4e2;
border-radius: 5px;
}
.btn2{
.btn2 {
border-radius: 5px;
border: 1px solid #90da91;
color: #90da91;
......@@ -73,7 +75,7 @@ page-announcement {
// margin-left: 20px;
// }
.content-box{
.content-box {
margin-left: 25px;
margin-top: 15px;
margin-bottom: 15px;
......@@ -81,7 +83,7 @@ page-announcement {
border-bottom: 1px solid #f1f2f3;
}
.content-item-box{
.content-item-box {
display: flex;
flex-direction: row;
align-items: flex-start;
......@@ -89,25 +91,27 @@ page-announcement {
box-sizing: border-box;
}
.left-title{
.left-title {
color: #8b8c8d;
font-size: 14px;
}
.data{
.data {
color: #666666;
font-size: 14px;
}
.data-1{
.data-1 {
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2; //文本行数
overflow: hidden;
white-space: normal;
text-overflow: ellipsis;
-webkit-box-orient: vertical;
}
.sign-up{
.sign-up {
background-color: #fff;
height: 25px;
width: 50px;
......@@ -117,7 +121,7 @@ page-announcement {
border: 1px solid #ec4553;
}
.back-btn{
.back-btn {
width: 30px;
height: 30px;
}
......
import { Component} from '@angular/core';
import { IonicPage, NavController, NavParams} from 'ionic-angular';
import { Response } from '@angular/http';
import { AppService } from '../../service/appHttpService';
import { AnnouncementViewPage } from '../announcementView/announcementView';
import {Component} from '@angular/core';
import {IonicPage, NavController, NavParams} from 'ionic-angular';
import {Response} from '@angular/http';
import {AppGlobal, AppService} from '../../service/appHttpService';
import {AnnouncementViewPage} from '../announcementView/announcementView';
@IonicPage()
@Component({
selector: 'page-announcement',
......@@ -13,11 +14,9 @@ export class AnnouncementPage {
allNotice = [];
constructor(
public navCtrl: NavController,
constructor(public navCtrl: NavController,
public navParams: NavParams,
public appService: AppService
) {
public appService: AppService) {
}
......@@ -41,8 +40,13 @@ export class AnnouncementPage {
this.appService.ObserverHttpPost("/wisdomgroup/modules/notice/getAllNotice", null)
.subscribe((res: Response) => {
let data = res.json();
console.log(data);
data.forEach(event=>{
let src = event.noticeContent.split('src="');
event.noticeContent = src.join('src="' + AppGlobal.pictureNotice);
});
this.allNotice = data;
}, error => {
this.appService.alert('网络异常!');
}
......@@ -51,7 +55,7 @@ export class AnnouncementPage {
//如果是未读状态,增加阅读记录
createRecording(id) {
this.appService.ObserverHttpPost("/wisdomgroup/modules/notice/createRecording", { id: id })
this.appService.ObserverHttpPost("/wisdomgroup/modules/notice/createRecording", {id: id})
.subscribe((res: Response) => {
}, error => {
......@@ -60,12 +64,12 @@ export class AnnouncementPage {
);
}
goBack(){
goBack() {
this.navCtrl.popToRoot();
}
//增加阅读记录
addRecodings(){
addRecodings() {
this.appService.ObserverHttpGet("/wisdomgroup/modules/notice/addRecodings", null)
.subscribe((res: Response) => {
......
page-announcementView {
td, th{
border: 1px solid #dddddd;
}
.searchToolBar{
display: flex;
flex-direction: row;
......
......@@ -44,6 +44,8 @@
<img src="./assets/imgs/home/icon-wjgl.png" alt="">
<label class="label2-2 more2-2">问卷管理</label>
</div>
</ng-container>
<ng-container *ngIf="role == 3 || role == 4">
<div class="card" (click)="replayManage()">
<img src="./assets/imgs/home/icon-zbhb.png" alt="">
<label class="label2-2 more2-2">值班换班</label>
......
......@@ -27,7 +27,7 @@
<!-- <button class="login-bt" ion-button (click)="login()" [disabled]="!loginForm.valid || submitted" type="submit" block>登 录</button> -->
<div class="mui-input-row mui-checkbox mui-left" style="margin-bottom: 15px;">
<input name="checkbox" class="jizhu-password" value="1" type="checkbox" checked="true" style="margin-left:10px;width:17px;height:17px;vertical-align:middle">
<input [(ngModel)]="user.remember" name="checkbox" class="jizhu-password" value="1" type="checkbox" checked="true" style="margin-left:10px;width:17px;height:17px;vertical-align:middle">
<label style="padding-left:5px;font-family:'微软雅黑';" class="jizhu-password-label">记住密码</label>
</div>
......
......@@ -21,7 +21,8 @@ export class LoginPage {
user = {
userid: '', //登录数据
mobile: '',
password: ''
password: '',
remember:true
};
tabflag:any;
constructor(public navCtrl: NavController,
......@@ -44,8 +45,10 @@ export class LoginPage {
//默认显示
this.storage.get("userLoginInfo").then((value)=>{
if(value!=null && value != ''){
if( value.remember ){
this.user = value;
}
}
});
}
......
......@@ -29,10 +29,10 @@
<span class="item-title">{{item.activity.activityName}}</span>
</div>
<button style="border-radius: 4px" ion-button round class="btn color1" *ngIf="item.orderstate == '1'">待进行</button>
<button style="border-radius: 4px" ion-button round class="btn color2" *ngIf="item.orderstate == '2'">待确认</button>
<button style="border-radius: 4px" ion-button round class="btn color3" *ngIf="item.orderstate == '3'">报名未出行</button>
<button style="border-radius: 4px" ion-button round class="btn color3" *ngIf="item.orderstate == '4'">已完成</button>
<button disabled style="border-radius: 4px" ion-button round class="btn color1" *ngIf="item.orderstate == '1'">待进行</button>
<button disabled style="border-radius: 4px" ion-button round class="btn color2" *ngIf="item.orderstate == '2'">待确认</button>
<button disabled style="border-radius: 4px" ion-button round class="btn color3" *ngIf="item.orderstate == '3'">报名未出行</button>
<button disabled style="border-radius: 4px" ion-button round class="btn color3" *ngIf="item.orderstate == '4'">已完成</button>
</div>
<div class="content-box">
......@@ -60,14 +60,14 @@
</div>
</div>
<div class="right">
<button class="cancel" *ngIf="item.orderstate == 1 && !item.showParticipantBtn" (click)="sureCancelOrder(item.orderid);$event.stopPropagation();">取消订单</button>
<button class="reselection" *ngIf="item.orderstate == 1 && !item.showParticipantBtn" (click)="reelectBatch(item);$event.stopPropagation();">修改订单</button>
<button class="cancel" *ngIf="item.orderstate == 1 && item.showParticipantBtn" (click)="joinPeople(item);$event.stopPropagation();">参与人员</button>
<button disabled class="cancel" *ngIf="item.orderstate == 1 && !item.showParticipantBtn" (click)="sureCancelOrder(item.orderid);$event.stopPropagation();">取消订单</button>
<button disabled class="reselection" *ngIf="item.orderstate == 1 && !item.showParticipantBtn" (click)="reelectBatch(item);$event.stopPropagation();">修改订单</button>
<button disabled class="cancel" *ngIf="item.orderstate == 1 && item.showParticipantBtn" (click)="joinPeople(item);$event.stopPropagation();">参与人员</button>
<button class="cancel" *ngIf="item.orderstate == 2" (click)="joinPeople(item);$event.stopPropagation();">参与人员</button>
<button class="reselection" *ngIf="item.orderstate == 2" (click)="evaluation(item);$event.stopPropagation();">确认评价</button>
<button disabled class="cancel" *ngIf="item.orderstate == 2" (click)="joinPeople(item);$event.stopPropagation();">参与人员</button>
<button disabled class="reselection" *ngIf="item.orderstate == 2" (click)="evaluation(item);$event.stopPropagation();">确认评价</button>
<button class="reselection" *ngIf="item.orderstate == 3||item.orderstate == 4">查看详情</button>
<button disabled class="reselection" *ngIf="item.orderstate == 3||item.orderstate == 4">查看详情</button>
</div>
</div>
</ion-item>
......@@ -115,9 +115,9 @@
</div>
<div class="right">
<button class="cancel" *ngIf="item.orderstate == 1 && !item.showParticipantBtn" (click)="sureCancelOrder(item.orderid);$event.stopPropagation();">取消报名</button>
<button class="reselection" *ngIf="item.orderstate == 1 && !item.showParticipantBtn" (click)="reelectBatch(item);$event.stopPropagation();">重选批次</button>
<button class="cancel" *ngIf="item.orderstate == 1 && item.showParticipantBtn" (click)="joinPeople(item);$event.stopPropagation();">参与人员</button>
<button disabled class="cancel" *ngIf="item.orderstate == 1 && !item.showParticipantBtn" (click)="sureCancelOrder(item.orderid);$event.stopPropagation();">取消报名</button>
<button disabled class="reselection" *ngIf="item.orderstate == 1 && !item.showParticipantBtn" (click)="reelectBatch(item);$event.stopPropagation();">重选批次</button>
<button disabled class="cancel" *ngIf="item.orderstate == 1 && item.showParticipantBtn" (click)="joinPeople(item);$event.stopPropagation();">参与人员</button>
</div>
</div>
......
page-myActivityList {
button[disabled]{
opacity: 1;
}
.searchToolBar{
display: flex;
......
......@@ -16,11 +16,11 @@
<span class="item-title">{{report.title}}</span>
</div>
<ng-container *ngIf="!report.isOverTimeFlag">
<button ion-button round class="btn color1">已报备
<button disabled ion-button round class="btn color1">已报备
</button>
</ng-container>
<ng-container *ngIf="report.isOverTimeFlag">
<button ion-button round class="btn color3">已结束
<button disabled ion-button round class="btn color3">已结束
</button>
</ng-container>
</div>
......
page-myReport {
button[disabled]{
opacity: 1;
}
.searchToolBar{
display: flex;
flex-direction: row;
......
......@@ -56,5 +56,5 @@
<ion-textarea placeholder="请输入" [(ngModel)]="temp_userpre.managerDesc"></ion-textarea>
</ion-item>
</ion-list>
<button ion-button block class="save" (click)="saveFieldValue()">保存</button>
<button class="submit-btn submit" (click)="saveFieldValue()">保存</button>
</ion-content>
\ No newline at end of file
page-outGoingReportDetail {
.submit{
margin-top: 20px;
border: 1px solid #34b4fc;
background-color: #34b4fc;
}
.searchToolBar{
display: flex;
flex-direction: row;
......
......@@ -67,8 +67,8 @@
</ion-item>
</ion-list>
<button ion-button block class="report-btn" (click)="savePremanager()" *ngIf="!premanager.reported">提交报备</button>
<button ion-button block class="report-btn" (click)="editPremanager()" *ngIf="premanager.reported">修改报备</button>
<button class="submit-btn submit" *ngIf="!premanager.reported" (click)="savePremanager()">提交报备</button>
<button class="submit-btn submit" *ngIf="premanager.reported" (click)="editPremanager()">修改报备</button>
</ion-content>
......
page-outGoingReportEdit {
.submit{
margin-top: 20px;
border: 1px solid #34b4fc;
background-color: #34b4fc;
}
.searchToolBar{
display: flex;
flex-direction: row;
......
This diff is collapsed.
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