Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wisdom-ces
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangqinghua
wisdom-ces
Commits
bc98eae4
Commit
bc98eae4
authored
Oct 23, 2018
by
wangqinghua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
color
parent
4bf815e1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
6 deletions
+30
-6
activityDetail.html
src/pages/activity/activityDetail/activityDetail.html
+2
-5
activityDetail.ts
src/pages/activity/activityDetail/activityDetail.ts
+28
-1
No files found.
src/pages/activity/activityDetail/activityDetail.html
View file @
bc98eae4
...
@@ -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>
...
...
src/pages/activity/activityDetail/activityDetail.ts
View file @
bc98eae4
...
@@ -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
();
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment