Commit 570b3483 authored by wangqinghua's avatar wangqinghua

color

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