Commit e53d309c authored by wangqinghua's avatar wangqinghua

color

parent 570b3483
...@@ -5,5 +5,9 @@ ...@@ -5,5 +5,9 @@
}, },
"type": "ionic-angular", "type": "ionic-angular",
"proxies": [ "proxies": [
{
"path": "/wisdomgroup",
"proxyUrl": "http://180.168.156.212:2931/wisdomgroup"
}
] ]
} }
\ No newline at end of file
...@@ -60,22 +60,33 @@ ...@@ -60,22 +60,33 @@
<ion-item> <ion-item>
<div class="info-item"> <div class="info-item">
<span class="info-span">房间号</span> <span class="info-span">房间号</span>
<div class="info-item-content" (click)="editFun()"> <div class="info-item-content">
<label>
<ng-container *ngIf="role == 1 || role == 2 || role == 3">
<label (click)="editFun()">
<input type="text" [(ngModel)]="abbreviation"> <input type="text" [(ngModel)]="abbreviation">
<ion-icon ios="ios-create-outline" md="md-create-outline"></ion-icon> <ion-icon ios="ios-create-outline" md="md-create-outline"></ion-icon>
</label> </label>
</ng-container>
<ng-container *ngIf="role == 0 || role == 4">
{{abbreviation}}
</ng-container>
</div> </div>
</div> </div>
</ion-item> </ion-item>
<ion-item> <ion-item>
<div class="info-item"> <div class="info-item">
<span class="info-span">座机</span> <span class="info-span">座机</span>
<div class="info-item-content" (click)="editFun()"> <div class="info-item-content" >
<label> <ng-container *ngIf="role == 1 || role == 2 || role == 3">
<label (click)="editFun()">
<input type="text" [(ngModel)]="telephone"> <input type="text" [(ngModel)]="telephone">
<ion-icon ios="ios-create-outline" md="md-create-outline"></ion-icon> <ion-icon ios="ios-create-outline" md="md-create-outline"></ion-icon>
</label> </label>
</ng-container>
<ng-container *ngIf="role == 0 || role == 4">
{{telephone}}
</ng-container>
</div> </div>
</div> </div>
</ion-item> </ion-item>
...@@ -84,11 +95,17 @@ ...@@ -84,11 +95,17 @@
<ion-item> <ion-item>
<div class="info-item"> <div class="info-item">
<span class="info-span">邮箱</span> <span class="info-span">邮箱</span>
<div class="info-item-content" (click)="editFun()"> <div class="info-item-content">
<label>
<ng-container *ngIf="role == 1 || role == 2 || role == 3">
<label (click)="editFun()">
<input type="text" [(ngModel)]="email"> <input type="text" [(ngModel)]="email">
<ion-icon ios="ios-create-outline" md="md-create-outline"></ion-icon> <ion-icon ios="ios-create-outline" md="md-create-outline"></ion-icon>
</label> </label>
</ng-container>
<ng-container *ngIf="role == 0 || role == 4">
{{email}}
</ng-container>
</div> </div>
</div> </div>
</ion-item> </ion-item>
......
...@@ -28,6 +28,8 @@ export class ContractPersoninfoPage { ...@@ -28,6 +28,8 @@ export class ContractPersoninfoPage {
telephone; telephone;
isContact; isContact;
role; //权限
constructor(public navCtrl: NavController, constructor(public navCtrl: NavController,
public navParams: NavParams, public navParams: NavParams,
public appService: AppService) { public appService: AppService) {
...@@ -36,6 +38,16 @@ export class ContractPersoninfoPage { ...@@ -36,6 +38,16 @@ export class ContractPersoninfoPage {
ionViewDidLoad() { ionViewDidLoad() {
this.id = this.navParams.get("id"); this.id = this.navParams.get("id");
this.getPersonInfo(); this.getPersonInfo();
this.getRole();
}
//获取权限
getRole(){
this.appService.ObserverHttpGet("/wisdomgroup/app/getRoles", null).subscribe((res: Response) => {
this.role = res.json();
}, error => {
this.appService.alert('系统错误!');
});
} }
getPersonInfo() { getPersonInfo() {
......
<ion-header> <ion-header>
<ion-navbar> <ion-navbar>
<ion-title>活动订单</ion-title> <ion-title>我的活动</ion-title>
</ion-navbar> </ion-navbar>
</ion-header> </ion-header>
<ion-content class="bgc-e7e8ed"> <ion-content class="bgc-e7e8ed">
......
<ion-header> <ion-header>
<ion-navbar> <ion-navbar>
<ion-title>问卷调查</ion-title> <ion-title>我的问卷</ion-title>
</ion-navbar> </ion-navbar>
</ion-header> </ion-header>
......
<ion-header> <ion-header>
<ion-navbar> <ion-navbar>
<ion-title>编辑问卷</ion-title> <ion-title>创建问卷</ion-title>
</ion-navbar> </ion-navbar>
</ion-header> </ion-header>
......
...@@ -34,15 +34,22 @@ export class DesicrPage { ...@@ -34,15 +34,22 @@ export class DesicrPage {
submitOrder(){ submitOrder(){
const toast = this.toastCtrl.create(message); const toast = this.toastCtrl.create(message);
if( !this.desrc.title ){
toast.setMessage('请填写标题');
toast.present();
return false
}
if(this.desrc.usergroup == null){ if(this.desrc.usergroup == null){
this.desrc.usergroup = 'all'; this.desrc.usergroup = 'all';
} }
this.appService.ObserverHttpPost('/wisdomgroup/modules/question/create',this.desrc) this.appService.ObserverHttpPost('/wisdomgroup/modules/question/create',this.desrc)
.subscribe( .subscribe(
(res)=>{ (res)=>{
if(res){
toast.setMessage('创建成功'); toast.setMessage('创建成功');
toast.present(); toast.present();
this.navCtrl.pop(); this.navCtrl.push('EditPage',{temp:res.json()});
}
} }
) )
} }
......
page-set { page-set {
.submit{
margin-top: 20px;
border: 1px solid #34b4fc;
background-color: #34b4fc;
}
} }
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<ion-title>选择用户组</ion-title> <ion-title>选择用户组</ion-title>
<ion-buttons start> <ion-buttons start>
<button ion-button (click)="dismiss()"> <button ion-button (click)="dismiss()">
<span ion-textclass="color-fff" >取消</span> <span ion-text class="color-fff" >取消</span>
</button> </button>
</ion-buttons> </ion-buttons>
<ion-buttons end> <ion-buttons end>
......
...@@ -98,14 +98,15 @@ export class HomePage { ...@@ -98,14 +98,15 @@ export class HomePage {
}, error => { }, error => {
this.appService.alert('系统错误!'); this.appService.alert('系统错误!');
}); });
this.getRole();
} }
ionViewDidEnter() { ionViewDidEnter() {
//获取权限
this.getRole();
//获取消息数量 //获取消息数量
this.getNewCount(); this.getNewCount();
//获取日历
this.getCalendar();
} }
ionViewWillEnter() { ionViewWillEnter() {
...@@ -364,7 +365,7 @@ export class HomePage { ...@@ -364,7 +365,7 @@ export class HomePage {
//日历 //日历
ionViewDidLoad() { getCalendar() {
let date = new Date(); let date = new Date();
let year = date.getFullYear(); let year = date.getFullYear();
let month = date.getMonth() + 1; let month = date.getMonth() + 1;
......
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