Commit bc98eae4 authored by wangqinghua's avatar wangqinghua

color

parent 4bf815e1
...@@ -33,11 +33,8 @@ ...@@ -33,11 +33,8 @@
<span *ngIf="activity.applyCount == 0 || !activity.applyCount">{{ batchList.length}}</span> <span *ngIf="activity.applyCount == 0 || !activity.applyCount">{{ batchList.length}}</span>
<span *ngIf="activity.applyCount != 0">{{activity.applyCount}}</span> <span *ngIf="activity.applyCount != 0">{{activity.applyCount}}</span>
个批次) 个批次)
<ng-container *ngIf="batch?.order?.orderstate != 1 && batch?.order?.orderstate != 2"> <span *ngIf="activity?.activityNo == '0'" (click)="sayNo()" class="item-type">不想参加</span>
<span *ngIf="activity?.activityNo == '0'" <span *ngIf="activity?.activityNo == '1'" (click)="sayYes()" class="item-type">参加</span>
(click)="sayNo()" class="item-type">不想参加</span>
</ng-container>
</ng-container> </ng-container>
</span> </span>
......
...@@ -99,7 +99,6 @@ export class ActivityDetailPage { ...@@ -99,7 +99,6 @@ export class ActivityDetailPage {
sayNo() { sayNo() {
const confirm = this.alertCtrl.create({ const confirm = this.alertCtrl.create({
title: '确定不参加该活动?', title: '确定不参加该活动?',
message: '选择不参加该活动,之后无法在报名该活动?',
buttons: [ buttons: [
{ {
text: '取消', text: '取消',
...@@ -124,4 +123,32 @@ export class ActivityDetailPage { ...@@ -124,4 +123,32 @@ export class ActivityDetailPage {
confirm.present(); confirm.present();
} }
//参加
sayYes(){
const confirm = this.alertCtrl.create({
title: '确定参加该活动?',
buttons: [
{
text: '取消',
handler: () => {
console.log('Disagree clicked');
}
},
{
text: '确定',
handler: () => {
this.appService.ObserverHttpPostAdd("/wisdomgroup/modules/activityNon/delete/", this.activityId)
.subscribe((res: Response) => {
this.navCtrl.pop();
}, error => {
this.appService.alert('网络异常!');
}
);
}
}
]
});
confirm.present();
}
} }
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