Commit 3419cc59 authored by wangqinghua's avatar wangqinghua

color

parent d4bcbf04
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
"proxies": [ "proxies": [
{ {
"path": "/wisdomgroup", "path": "/wisdomgroup",
"proxyUrl": "http://180.168.156.212:2931/wisdomgroup" "proxyUrl": "http://10.10.200.38:8080/wisdomgroup"
} }
] ]
} }
\ No newline at end of file
...@@ -26,6 +26,7 @@ ...@@ -26,6 +26,7 @@
<div class="contact-organization">{{contactPerson.orgName}}</div> <div class="contact-organization">{{contactPerson.orgName}}</div>
<div> <div>
<span class="contact-handphone">手机:{{contactPerson.mobile}}</span> <span class="contact-handphone">手机:{{contactPerson.mobile}}</span>
<span class="contact-telphone">座机:{{contactPerson.telephone}}</span>
</div> </div>
</div> </div>
</div> </div>
......
...@@ -121,6 +121,7 @@ page-block-list { ...@@ -121,6 +121,7 @@ page-block-list {
.contact-handphone{ .contact-handphone{
color: #808080; color: #808080;
font-size: 12px; font-size: 12px;
margin-right: 10px;
} }
.back-btn{ .back-btn{
......
...@@ -25,6 +25,7 @@ ...@@ -25,6 +25,7 @@
<div> <div>
<span class="contact-handphone">手机:{{contactPerson.mobile}}</span> <span class="contact-handphone">手机:{{contactPerson.mobile}}</span>
<span class="contact-telphone">座机:{{contactPerson.telephone}}</span>
</div> </div>
</div> </div>
</div> </div>
......
...@@ -65,6 +65,7 @@ page-contactList { ...@@ -65,6 +65,7 @@ page-contactList {
.contact-handphone{ .contact-handphone{
color: #808080; color: #808080;
font-size: 12px; font-size: 12px;
margin-right: 10px;
} }
.back-btn{ .back-btn{
......
...@@ -65,6 +65,7 @@ page-person-list { ...@@ -65,6 +65,7 @@ page-person-list {
.contact-handphone{ .contact-handphone{
color: #808080; color: #808080;
font-size: 12px; font-size: 12px;
margin-right: 10px;
} }
.back-btn{ .back-btn{
......
...@@ -30,6 +30,7 @@ ...@@ -30,6 +30,7 @@
<div class="contact-organization">{{contactPerson.orgName}}</div> <div class="contact-organization">{{contactPerson.orgName}}</div>
<div> <div>
<span class="contact-handphone">手机:{{contactPerson.mobile}}</span> <span class="contact-handphone">手机:{{contactPerson.mobile}}</span>
<span class="contact-telphone">座机:{{contactPerson.telephone}}</span>
</div> </div>
</div> </div>
</div> </div>
......
...@@ -112,7 +112,7 @@ page-search { ...@@ -112,7 +112,7 @@ page-search {
.contact-handphone{ .contact-handphone{
color: #808080; color: #808080;
font-size: 12px; font-size: 12px;margin-right: 10px;
} }
.back-btn{ .back-btn{
......
...@@ -11,7 +11,7 @@ import {AppGlobal, AppService} from '../../../service/appHttpService'; ...@@ -11,7 +11,7 @@ import {AppGlobal, AppService} from '../../../service/appHttpService';
export class SearchPage { export class SearchPage {
searchValue: string; searchValue = '';
picture: string = AppGlobal.picture; picture: string = AppGlobal.picture;
contactPersons: Array<string>[]; contactPersons: Array<string>[];
...@@ -32,6 +32,10 @@ export class SearchPage { ...@@ -32,6 +32,10 @@ export class SearchPage {
} }
ionViewDidLoad(){
this.searchUser();
}
clearValue() { clearValue() {
this.searchValue = ""; this.searchValue = "";
} }
......
...@@ -65,7 +65,7 @@ page-select-relay-person { ...@@ -65,7 +65,7 @@ page-select-relay-person {
.contact-handphone{ .contact-handphone{
color: #666666; color: #666666;
font-size: 1.5rem; font-size: 1.5rem;
margin-left: 7px; margin-left: 10px;
} }
.back-btn{ .back-btn{
......
import { Component, ViewChild } from '@angular/core'; import {Component, ViewChild} from '@angular/core';
import { IonicPage, NavController, NavParams, Slides } from 'ionic-angular'; import {IonicPage, NavController, NavParams, Slides} from 'ionic-angular';
import { Response } from '@angular/http'; import {Response} from '@angular/http';
import { AppService } from '../../../service/appHttpService'; import {AppService} from '../../../service/appHttpService';
import { OutGoingReportEditPage } from '../../report/outGoingReportEdit/outGoingReportEdit'; import {OutGoingReportEditPage} from '../../report/outGoingReportEdit/outGoingReportEdit';
import { ActivityStatisticService } from '../../../service/activityStatisticService'; import {ActivityStatisticService} from '../../../service/activityStatisticService';
import { OutGoingReportViewPage } from '../../report/outGoingReportView/outGoingReportView'; import {OutGoingReportViewPage} from '../../report/outGoingReportView/outGoingReportView';
import { Storage } from '@ionic/storage'; import {Storage} from '@ionic/storage';
import {MinePage} from "../../tabs/mine/mine"; import {MinePage} from "../../tabs/mine/mine";
declare var Swiper; declare var Swiper;
@IonicPage() @IonicPage()
@Component({ @Component({
selector: 'page-myReport', selector: 'page-myReport',
...@@ -33,12 +34,10 @@ export class MyReportPage { ...@@ -33,12 +34,10 @@ export class MyReportPage {
@ViewChild('contentSlides') contentSlides: Slides; @ViewChild('contentSlides') contentSlides: Slides;
menus: Array<string> = ['全部报备', '报备中', '已结束']; menus: Array<string> = ['全部报备', '报备中', '已结束'];
constructor( constructor(public navCtrl: NavController,
public navCtrl: NavController,
public appService: AppService, public appService: AppService,
public activityStatisticService: ActivityStatisticService, public activityStatisticService: ActivityStatisticService,
public storage:Storage public storage: Storage) {
) {
console.log(this.navCtrl); console.log(this.navCtrl);
} }
...@@ -52,35 +51,13 @@ export class MyReportPage { ...@@ -52,35 +51,13 @@ export class MyReportPage {
ionViewDidLoad() { ionViewDidLoad() {
} }
//选择菜单 //选择菜单
selectPageMenu(index) { selectPageMenu(index) {
this.swiperIndex = index; this.swiperIndex = index;
//切换页面 //切换页面
// this.contentSlides.slideTo(index); // this.contentSlides.slideTo(index);
} }
//选择菜单之后设置菜单样式
setStyle(index) {
//得到菜单的个数
var slides = document.getElementsByClassName('pageMenuSlides')[0].getElementsByClassName('swiper-slide');
//给所有的菜单都设置上swiper-slide样式
if (index < slides.length) {
for (var i = 0; i < slides.length; i++) {
var s = slides[i];
s.className = "swiper-slide";
}
//给当前菜单设置成这个样式
slides[index].className = "swiper-slide bottomLine";
}
}
slideChanged() {
//getActiveIndex()获得当前页面的index
let index = this.contentSlides.getActiveIndex();
this.setStyle(index);
//s切换菜单
this.swiper.slideTo(index, 300);
}
//获取所有我的报备 //获取所有我的报备
getAllMyReport() { getAllMyReport() {
...@@ -92,7 +69,7 @@ export class MyReportPage { ...@@ -92,7 +69,7 @@ export class MyReportPage {
this.allReport.forEach(element => { this.allReport.forEach(element => {
if (!element["isOverTimeFlag"]) { //报备中 if (!element["isOverTimeFlag"]) { //报备中
this.processingReport.push(element); this.processingReport.push(element);
}else{ } else {
this.endReport.push(element); //已结束 this.endReport.push(element); //已结束
} }
}); });
...@@ -103,20 +80,20 @@ export class MyReportPage { ...@@ -103,20 +80,20 @@ export class MyReportPage {
} }
//跳转到报备页面 //跳转到报备页面
goReport(report){ goReport(report) {
if( report.isOverTimeFlag ){ if (report.isOverTimeFlag) {
return false; return false;
} }
this.storage.set("premanager",report); this.storage.set("premanager", report);
this.navCtrl.push("OutGoingReportEditPage"); this.navCtrl.push("OutGoingReportEditPage");
} }
//跳转到报备查看详情页面 //跳转到报备查看详情页面
goDetail(report){ goDetail(report) {
this.navCtrl.push("OutGoingReportViewPage",{premanager:report}); this.navCtrl.push("OutGoingReportViewPage", {premanager: report});
} }
goBack(){ goBack() {
this.navCtrl.popToRoot(); this.navCtrl.popToRoot();
} }
......
...@@ -22,7 +22,7 @@ page-my-survey { ...@@ -22,7 +22,7 @@ page-my-survey {
.going{ .going{
color: #fcb164; color: #fcb164;
font-size: 1.4rem; font-size: 1.4rem;
border: 1px solid #34b4fc; border: 1px solid #fcb164;
padding: 1px 8px; padding: 1px 8px;
border-radius: 2px; border-radius: 2px;
} }
......
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
<div class="item-header padding-15-0"> <div class="item-header padding-15-0">
<div class="item-header-style"> <div class="item-header-style">
<span class="item-title">{{item.title}}</span> <span class="item-title">{{item.title}}</span>
<span float-right class="done">未完成</span> <span float-right class="going">未作答</span>
</div> </div>
</div> </div>
<div class="content-button padding-15-0"> <div class="content-button padding-15-0">
......
...@@ -31,8 +31,11 @@ export class EditPage { ...@@ -31,8 +31,11 @@ export class EditPage {
public toastCtrl: ToastController, public alertCtrl: AlertController) { public toastCtrl: ToastController, public alertCtrl: AlertController) {
} }
ionViewDidEnter() { ionViewDidLoad(){
this.tempId = this.navParams.get('temp').id; this.tempId = this.navParams.get('temp').id;
}
ionViewDidEnter() {
this.getDetail(); this.getDetail();
const length = this.navCtrl.length(); const length = this.navCtrl.length();
if (length > 5) { if (length > 5) {
......
...@@ -55,6 +55,7 @@ ...@@ -55,6 +55,7 @@
<div class="footter-opr"> <div class="footter-opr">
<div *ngIf="swiperIndex == 0" (click)="edit()"><span>编辑</span></div> <div *ngIf="swiperIndex == 0" (click)="edit()"><span>编辑</span></div>
<div *ngIf="swiperIndex == 1" (click)="edit()"><span>查看</span></div> <div *ngIf="swiperIndex == 1" (click)="edit()"><span>查看</span></div>
<div *ngIf="swiperIndex == 1" (click)="cancel()"><span>取消发布</span></div>
<div *ngIf="swiperIndex == 1" (click)="overDue()"><span>设为过期</span></div> <div *ngIf="swiperIndex == 1" (click)="overDue()"><span>设为过期</span></div>
<div *ngIf="swiperIndex == 0" (click)="release()"><span>发布</span></div> <div *ngIf="swiperIndex == 0" (click)="release()"><span>发布</span></div>
<div *ngIf="swiperIndex == 1 || swiperIndex == 2" (click)="result()"><span>结果</span></div> <div *ngIf="swiperIndex == 1 || swiperIndex == 2" (click)="result()"><span>结果</span></div>
......
...@@ -145,11 +145,11 @@ export class ListPage { ...@@ -145,11 +145,11 @@ export class ListPage {
cancel(){ cancel(){
// 0 清除 1 不清除 // 0 清除 1 不清除
const data = { const data = {
'isdelete':'0' 'isdelete':'1'
} };
this.appService.alert('确定取消发布该问卷吗', this.appService.alert('确定取消发布该问卷吗',
(res) => { (res) => {
this.appService.ObserverHttpGetAdd('/wisdomgroup/modules/question/cancel/', this.temp.id) this.appService.ObserverHttpForm('/wisdomgroup/modules/question/cancel/', this.temp.id,data)
.subscribe((res) => { .subscribe((res) => {
this.appService.popToastView('取消发布成功','middle',1000); this.appService.popToastView('取消发布成功','middle',1000);
this.selectPageMenu(this.swiperIndex); this.selectPageMenu(this.swiperIndex);
......
...@@ -5,6 +5,7 @@ import { AppVersion } from '@ionic-native/app-version'; ...@@ -5,6 +5,7 @@ import { AppVersion } from '@ionic-native/app-version';
import { AppUpdateService } from '../../service/appUpdateService'; import { AppUpdateService } from '../../service/appUpdateService';
import { Storage } from "@ionic/storage"; import { Storage } from "@ionic/storage";
import {LoginPage} from "../login/login"; import {LoginPage} from "../login/login";
import {HomePage} from "../tabs/home/home";
@IonicPage() @IonicPage()
@Component({ @Component({
...@@ -117,6 +118,7 @@ export class VersionPage { ...@@ -117,6 +118,7 @@ export class VersionPage {
this.appService.ObserverHttpGet("/wisdomgroup/app/logout", null) this.appService.ObserverHttpGet("/wisdomgroup/app/logout", null)
.subscribe((res: Response) => { .subscribe((res: Response) => {
let data = res.json(); let data = res.json();
this.navCtrl.setRoot(HomePage);
this.navCtrl.push('LoginPage'); this.navCtrl.push('LoginPage');
}, error => { }, error => {
this.appService.alert('网络异常!'); this.appService.alert('网络异常!');
......
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