Commit 31b5b5cb authored by wangqinghua's avatar wangqinghua

api update

parent ee745a49
#Mon Aug 12 11:33:40 CST 2019
#Mon Aug 12 15:22:05 CST 2019
base.0=/Users/ben/gitLab-project/party-build-cloud/platforms/android/app/build/intermediates/transforms/dexMerger/debug/0
renamed.0=classes.dex
file.0=/Users/ben/gitLab-project/party-build-cloud/platforms/android/app/build/intermediates/transforms/dexMerger/debug/0/classes.dex
<ng-container *ngIf="list.length > 0">
<div class="padding-10">
<div style="margin-bottom: 10px" *ngFor="let contactPerson of list">
<div class="contact-box">
<ng-container *ngIf="contactPerson?.picUrl && contactPerson?.picUrl != ''">
......@@ -21,4 +22,5 @@
</div>
</div>
</div>
</div>
</ng-container>
<ion-header> <ion-navbar> <ion-title>申领评价</ion-title> </ion-navbar> </ion-header> <ion-content> <div class="order"><!-- <div class="orderTips">--><!-- <p>--><!-- <span *ngIf="item.status == 2">已申请</span>--><!-- <span *ngIf="item.status == 3">已领取</span>--><!-- <span *ngIf="item.status == 4">已驳回</span>--><!-- <span float-right>时间:{{item.submitTime | date:'yyyy-MM-dd HH:mm:ss'}}</span>--><!-- </p>--><!-- <p>--><!-- <span>申请人:{{item.applicantName}}</span>--><!-- <span float-right>申请部门:{{item.orgName}}</span>--><!-- </p>--><!-- </div>--> <div class="goodsList"> <ng-container *ngFor="let goods of goodsList;let gi = index;"> <div class="goodsItem"> <div class="goods-img"> <img [src]="picture + goods.url"> </div> <div class="goods-info"> <p class="model"> {{goods.brand}}&nbsp;&nbsp;&nbsp; <span>{{goods.model}}</span> </p> <p class="img-star"> <ng-container *ngFor="let star of goods.starList;let i = index;"> <span (click)="checkStar(i,gi)" [ngClass]="star" class="icon iconfont"></span> </ng-container> <span class="score">{{goods.score}}分</span> </p> </div> </div> </ng-container> </div> </div> <button class="submit-btn submit" (click)="submit()">提交评价</button></ion-content>
\ No newline at end of file
<ion-header> <ion-navbar> <ion-title>申领评价</ion-title> </ion-navbar> </ion-header> <ion-content> <div class="order"><!-- <div class="orderTips">--><!-- <p>--><!-- <span *ngIf="item.status == 2">已申请</span>--><!-- <span *ngIf="item.status == 3">已领取</span>--><!-- <span *ngIf="item.status == 4">已驳回</span>--><!-- <span float-right>时间:{{item.submitTime | date:'yyyy-MM-dd HH:mm:ss'}}</span>--><!-- </p>--><!-- <p>--><!-- <span>申请人:{{item.applicantName}}</span>--><!-- <span float-right>申请部门:{{item.orgName}}</span>--><!-- </p>--><!-- </div>--> <div class="goodsList"> <ng-container *ngFor="let goods of goodsList;let gi = index;"> <div class="goodsItem"> <div class="goods-img"> <img [src]="picture + goods.url"> </div> <div class="goods-info"> <p class="model"> {{goods.brand}}&nbsp;&nbsp;&nbsp; <span>{{goods.model}}</span> </p> <p class="img-star"> <ng-container *ngFor="let star of goods.starList;let i = index;"> <span (click)="checkStar(i,gi)" [ngClass]="star" class="icon iconfont"></span> </ng-container><!-- <span class="score">{{goods.score}}分</span>--> </p> </div> </div> </ng-container> </div> </div> <button class="submit-btn submit" (click)="submit()">提交评价</button></ion-content>
\ No newline at end of file
......
......@@ -66,17 +66,18 @@ export class EvaluationPage {
const arr = this.goodsList.map(e => {
const a = {
id: e.id,
score: e.score
score: e.score.toFixed(1)
};
return a
});
console.log(arr);
// this.serveSer.orderScore(arr).subscribe(
// (res) => {
// this.navCtrl.pop();
// this.commonSer.toast('已评价成功');
// }
// )
this.serveSer.orderScore(arr).subscribe(
(res) => {
if(res){
this.navCtrl.pop();
this.commonSer.toast('已评价成功');
}
}
)
})
}
......
......@@ -131,16 +131,18 @@ export class MeetRoomPage {
//新增申请
goApply(item) {
if (this.role.includes(0)) return false;
if (this.role.includes(1) || this.role.includes(7)){
let data;
if (item) {
data = {
roomId: item.id,
roomName: item.name,
equipmervice:item.equipmervice,
startTime: this.selectDate + ' 9:00:00',
};
}
this.navCtrl.push(RoomApplyPage, {data: data});
};
}
}
......@@ -73,10 +73,10 @@ export class RoomApplyPage {
this.appMainSer.mineInfo.subscribe(value => {
this.mineInfo = value;
})
this.getList();
}
ionViewDidLoad() {
this.getList();
this.initParams();
this.applyId = this.navParams.get('id');
if (this.applyId) {
......@@ -91,6 +91,8 @@ export class RoomApplyPage {
this.obj.startTime = this.datePipe.transform(data.startTime, 'yyyy-MM-ddTHH:mm');
this.obj.roomId = data.roomId;
this.obj.roomText = data.roomName;
this.obj.equipmervice = data.equipmervice.split(',');
} else {
const now = this.datePipe.transform(new Date(), 'yyyy-MM-dd') + ' 9:00';
this.obj.startTime = this.datePipe.transform(now, 'yyyy-MM-ddTHH:mm');
......@@ -185,6 +187,7 @@ export class RoomApplyPage {
handler: () => {
this.obj.roomId = e.id;
this.obj.roomText = e.name;
this.obj.equipmervice = e.equipmervice.split(',');
this.roomMax = `该会议室可容纳${e.accommodation}人`;
}
};
......
This diff is collapsed.
......@@ -182,9 +182,9 @@
</div>
</div>
</ng-container>
<!-- <ng-container *ngIf="showBranch">-->
<ng-container *ngIf="showBranch">
<party-person #partyPerson [list]="branchPersonList"></party-person>
<!-- </ng-container>-->
</ng-container>
</div>
<ion-infinite-scroll (ionInfinite)="doInfinite($event)">
<ion-infinite-scroll-content
......
......@@ -408,11 +408,19 @@ export class DiscoverPage {
//父级选择
changeParent(item) {
this.obj.parentName = item.name;
this.obj.childrenName = item.children[0].name;
if (this.obj.childrenName != "组织结构") {
this.branchPersonList = [];
this.showBranch = false;
this.obj.branchId = null;
}
this.newsContent.nativeElement.scrollLeft = 0; //二级菜单滑动重置
this.indexParent = item.indexParent;
this.obj.parentName = item.name;
this.obj.childrenName = item.children[0].name;
this.toIndex = item.indexParent;
this.childrenList = item.children;
......@@ -466,6 +474,7 @@ export class DiscoverPage {
//子级选择
changeChildren(item) {
this.indexChildren = item.indexChildren;
this.obj.childrenName = item.name;
if (!this.obj.branchId) this.obj.branchId = "fe1af3207840431dbed4b500122d83ea";
if (item.name == "组织结构") {
this.getMemberList(this.obj.branchId);
......@@ -478,9 +487,9 @@ export class DiscoverPage {
this.obj.branchId = null;
}
this.resourceType = item.name == "视频资料" ? 3 : 1;
this.isRecent = this.obj.parentName == "最新发布" ? 1 : 0;
this.obj.childrenName = item.name;
if (this.obj.parentName == "主题教育") {
this.obj.plateType = null;
......@@ -537,6 +546,17 @@ export class DiscoverPage {
//下拉刷新
doRefresh(e) {
if (this.obj.childrenName == "组织结构") {
this.getMemberList(this.obj.branchId);
this.showBranch = true;
this.slideList[this.indexParent] = [];
e.complete();
return false;
} else {
this.branchPersonList = [];
this.showBranch = false;
this.obj.branchId = null;
}
this.getBanner();
const data = {
pageNum: 1,
......
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