Commit 3419cc59 authored by wangqinghua's avatar wangqinghua

color

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