Commit 8009e144 authored by wangqinghua's avatar wangqinghua

color

parent 0bfe7a4d
<?xml version='1.0' encoding='utf-8'?>
<widget id="io.ionic.starter" version="1.1.7" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<widget id="io.ionic.starter" version="1.1.8" 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>
......
......@@ -121,7 +121,7 @@ export class ContactListPage {
}
//跳转联系人信息页面
contactPersonInfo(contactPerson){
this.navCtrl.push("ContractPersoninfoPage",{"id":contactPerson.id});
this.navCtrl.push("ContractPersoninfoPage",{"id":contactPerson.id,orgName:this.orgName});
}
// search(){
......
......@@ -25,10 +25,10 @@
<div class="info-item">
<span class="info-span">头像</span>
<div class="info-item-content">
<ng-container *ngIf="contactPersonInfo?.picUrl != ''">
<img src="{{picture+contactPersonInfo.picUrl}}" class="slide-image" (click)="go(item)">
<ng-container *ngIf="contactPersonInfo?.picUrl && contactPersonInfo?.picUrl != ''">
<img src="{{picture+contactPersonInfo.picUrl}}" class="contact-img" (click)="go(item)">
</ng-container>
<ng-container *ngIf="contactPersonInfo?.picUrl == ''">
<ng-container *ngIf="!contactPersonInfo?.picUrl || contactPersonInfo?.picUrl == ''">
<img src="./assets/imgs/head.png" class="contact-img" >
</ng-container>
</div>
......@@ -67,7 +67,19 @@
<span class="info-span">房间号</span>
<div class="info-item-content">
<ng-container *ngIf="role == 1 || role == 2 || role == 3">
<ng-container *ngIf="role == 1 && orgName == nowOrgName">
<label (click)="editFun()">
<input type="text" [(ngModel)]="abbreviation">
<ion-icon ios="ios-create-outline" md="md-create-outline"></ion-icon>
</label>
</ng-container>
<ng-container *ngIf="role == 2 && orgName == nowOrgName">
<label (click)="editFun()">
<input type="text" [(ngModel)]="abbreviation">
<ion-icon ios="ios-create-outline" md="md-create-outline"></ion-icon>
</label>
</ng-container>
<ng-container *ngIf="role == 3">
<label (click)="editFun()">
<input type="text" [(ngModel)]="abbreviation">
<ion-icon ios="ios-create-outline" md="md-create-outline"></ion-icon>
......@@ -83,7 +95,19 @@
<div class="info-item">
<span class="info-span">座机</span>
<div class="info-item-content" >
<ng-container *ngIf="role == 1 || role == 2 || role == 3">
<ng-container *ngIf="role == 1 && orgName == nowOrgName">
<label (click)="editFun()">
<input type="text" [(ngModel)]="telephone">
<ion-icon ios="ios-create-outline" md="md-create-outline"></ion-icon>
</label>
</ng-container>
<ng-container *ngIf="role == 2 && orgName == nowOrgName">
<label (click)="editFun()">
<input type="text" [(ngModel)]="telephone">
<ion-icon ios="ios-create-outline" md="md-create-outline"></ion-icon>
</label>
</ng-container>
<ng-container *ngIf="role == 3">
<label (click)="editFun()">
<input type="text" [(ngModel)]="telephone">
<ion-icon ios="ios-create-outline" md="md-create-outline"></ion-icon>
......@@ -101,8 +125,20 @@
<div class="info-item">
<span class="info-span">邮箱</span>
<div class="info-item-content">
<ng-container *ngIf="role == 1 && orgName == nowOrgName">
<label (click)="editFun()">
<input type="text" [(ngModel)]="email">
<ion-icon ios="ios-create-outline" md="md-create-outline"></ion-icon>
</label>
</ng-container>
<ng-container *ngIf="role == 2 && orgName == nowOrgName">
<label (click)="editFun()">
<input type="text" [(ngModel)]="email">
<ion-icon ios="ios-create-outline" md="md-create-outline"></ion-icon>
</label>
</ng-container>
<ng-container *ngIf="role == 1 || role == 2 || role == 3">
<ng-container *ngIf="role == 3">
<label (click)="editFun()">
<input type="text" [(ngModel)]="email">
<ion-icon ios="ios-create-outline" md="md-create-outline"></ion-icon>
......
......@@ -2,7 +2,7 @@ import {Component} from '@angular/core';
import {IonicPage, NavController, NavParams} from 'ionic-angular';
import {Response} from '@angular/http';
import {AppGlobal, AppService} from '../../../service/appHttpService';
import { Storage } from "@ionic/storage";
import {ContactListPage} from '../contactList/contactList';
import {MyBlockPage} from "../my-block/my-block";
......@@ -22,6 +22,9 @@ export class ContractPersoninfoPage {
id;
picture: string = AppGlobal.picture;
user; //登录人信息
orgName; //登录人部门
edit = false;
email;
abbreviation;
......@@ -29,16 +32,40 @@ export class ContractPersoninfoPage {
isContact;
role; //权限
nowOrgName;
constructor(public navCtrl: NavController,
public navParams: NavParams,
public appService: AppService) {
public appService: AppService,
public storage: Storage) {
}
ionViewDidLoad() {
ionViewDidEnter() {
this.id = this.navParams.get("id");
this.nowOrgName = this.navParams.get("orgName");
this.getPersonInfo();
this.getRole();
this.user = this.storage.get("user").then((value) => {
this.user = value;
console.log(this.user);
console.log("id1:" + this.user.id);
this.getOrgName(this.user.id, result => {
let data = result;
this.orgName = data["orgName"];
});
});
}
//获取当前登录人部门
getOrgName(id, callback?): any {
this.appService.ObserverHttpPost("/wisdomgroup/app/getOrgName", {"userid": id})
.toPromise()
.then(res => {
var data = res.json();
callback(data == null ? "[]" : data);
})
.catch(error => {
});
}
//获取权限
......
......@@ -21,7 +21,6 @@
<div class="item" (click)="goConfirmActivity(item)">
<div class="item-header">
<div class="item-header-style">
<!-- <ion-icon name="md-contact" class="icon"></ion-icon> -->
<img src="./assets/imgs/icon-tj.png" class="icon" *ngIf="item.activity.activityType==1">
<img src="./assets/imgs/icon-ly.png" class="icon" *ngIf="item.activity.activityType==2">
<img src="./assets/imgs/icon-px.png" class="icon" *ngIf="item.activity.activityType==3">
......@@ -37,34 +36,34 @@
<div class="content-box">
<div class="content-item-box">
<label class="left-title">选择批次</label>
<label class="left-title">批次名称</label>
<div class="data">{{item.batch?.batchName}}</div>
</div>
<div class="content-item-box">
<label class="left-title">截止日期:</label>
<label class="left-title">出行日期:</label>
<div class="data">
{{item.batch?.batchEndDate}}
{{item.batch?.batchGoDate}}
</div>
</div>
<div class="content-item-box">
<label class="left-title">联络人员</label>
<label class="left-title">活动地点</label>
<div class="data">
{{item.batch?.liamand}}
{{item.batch?.batchAddress}}
</div>
</div>
<div class="content-item-box">
<label class="left-title">联络电话</label>
<label class="left-title">报名截止</label>
<div class="data">
{{item.batch?.liamantel}}
{{item.batch?.batchEndDate}}
</div>
</div>
</div>
<div class="right">
<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 disabled class="cancel" *ngIf="item.orderstate == 1 && item.showParticipantBtn" (click)="joinPeople(item);$event.stopPropagation();">已报名</button>
<button disabled 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 disabled class="reselection" *ngIf="item.orderstate == 2" (click)="evaluation(item);$event.stopPropagation();">确认评价</button>
<button disabled class="reselection" *ngIf="item.orderstate == 3||item.orderstate == 4">查看详情</button>
......
......@@ -13,7 +13,9 @@
<div class="info-item">
<span class="info-span">头像</span>
<div class="photo-box">
<img src="./assets/imgs/head.png" class="img">
<img *ngIf="user.userDetail?.user?.picUrl == ''" src="./assets/imgs/head.png" class="img">
<img *ngIf="user.userDetail?.user?.picUrl != ''" src="{{picture+user.userDetail?.user?.picUrl}}" class="img">
</div>
</div>
</ion-item>
......
import { Component } from '@angular/core';
import { IonicPage, NavController, ToastController } from 'ionic-angular';
import {Component} from '@angular/core';
import {IonicPage, NavController, ToastController} from 'ionic-angular';
import { ModifyPasswordPage } from "../../modifyPassword/modifyPassword";
import { Storage } from '@ionic/storage';
import { AppService } from "../../../service/appHttpService";
import { EditPersonInfoPage } from '../editPersonInfo/editPersonInfo';
import {ModifyPasswordPage} from "../../modifyPassword/modifyPassword";
import {Storage} from '@ionic/storage';
import {AppGlobal, AppService} from "../../../service/appHttpService";
import {EditPersonInfoPage} from '../editPersonInfo/editPersonInfo';
@IonicPage()
@Component({
selector: 'page-personInfo',
templateUrl: 'personInfo.html'
selector: 'page-personInfo',
templateUrl: 'personInfo.html'
})
export class PersonInfoPage {
orgName = '';
user: any;
gender:object;
//userInfo: object ;
userid: '';
constructor(
public navCtrl: NavController,
public storage: Storage,
public appService: AppService,
public toast: ToastController) {
}
orgName = '';
user: any;
gender: object;
//userInfo: object ;
userid: '';
picture: string = AppGlobal.picture;
//ionViewDidLoad():void{
ionViewWillEnter():void{
this.user = this.storage.get("user").then((value)=>{
this.user = value;
console.log(this.user);
console.log("id1:"+this.user.id);
this.gender = this.user.userDetail.user.gender;
console.log("gender:"+this.gender);
this.getOrgName(this.user.id,result=>{
let data = result;
this.orgName = data["orgName"];
});
});
}
constructor(public navCtrl: NavController,
public storage: Storage,
public appService: AppService,
public toast: ToastController) {
modifyPwd(){
this.navCtrl.push("ModifyPasswordPage")
}
}
getOrgName(id,callback?): any {
this.appService.ObserverHttpPost("/wisdomgroup/app/getOrgName",{"userid":id})
.toPromise()
.then(res => {
var data = res.json();
callback(data == null ? "[]" : data);
})
.catch(error => {
});
}
//ionViewDidLoad():void{
ionViewWillEnter(): void {
this.user = this.storage.get("user").then((value) => {
this.user = value;
console.log(this.user);
console.log("id1:" + this.user.id);
this.gender = this.user.userDetail.user.gender;
console.log("gender:" + this.gender);
this.getOrgName(this.user.id, result => {
let data = result;
this.orgName = data["orgName"];
});
});
}
//不同的code代表修改不同的数据,1房间,2座机,3邮箱
edit(code){
this.navCtrl.push("EditPersonInfoPage",{code:code});
}
goBack(){
this.navCtrl.popToRoot();
}
modifyPwd() {
this.navCtrl.push("ModifyPasswordPage")
}
getOrgName(id, callback?): any {
this.appService.ObserverHttpPost("/wisdomgroup/app/getOrgName", {"userid": id})
.toPromise()
.then(res => {
var data = res.json();
callback(data == null ? "[]" : data);
})
.catch(error => {
});
}
//不同的code代表修改不同的数据,1房间,2座机,3邮箱
edit(code) {
this.navCtrl.push("EditPersonInfoPage", {code: code});
}
goBack() {
this.navCtrl.popToRoot();
}
}
......@@ -112,9 +112,9 @@ export class ListPage {
//设为过期
overDue(){
this.appService.ObserverHttpGetAdd('/wisdomgroup/modules/question/submit/',{id:this.temp.id})
this.appService.ObserverHttpGetAdd('/wisdomgroup/modules/question/outdate/',this.temp.id)
.subscribe((res)=>{
console.log(res);
this.selectPageMenu(this.swiperIndex);
})
}
......
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