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
e2982502
Commit
e2982502
authored
Oct 12, 2018
by
wangqinghua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
color
parent
b7d0db55
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
24 deletions
+29
-24
joinDetail.html
src/pages/activity-track/joinDetail/joinDetail.html
+18
-18
joinDetail.ts
src/pages/activity-track/joinDetail/joinDetail.ts
+11
-6
No files found.
src/pages/activity-track/joinDetail/joinDetail.html
View file @
e2982502
...
...
@@ -35,9 +35,9 @@
<div
class=
"inner-group"
>
<img
src=
"./assets/imgs/head.png"
class=
"person-photo"
>
<div
class=
"item-box"
>
<p
class=
"person-name"
>
{{item.name}}
<ion-icon
class=
"person-sex-male"
*
ngIf=
"item
.gender == '1'||item
.gender == null"
name=
"male"
></ion-icon>
<ion-icon
class=
"person-sex-female"
*
ngIf=
"item.gender == '0'"
name=
"female"
></ion-icon>
<p
class=
"person-name"
>
{{item
?
.name}}
<ion-icon
class=
"person-sex-male"
*
ngIf=
"item
?.gender == '1'||item?
.gender == null"
name=
"male"
></ion-icon>
<ion-icon
class=
"person-sex-female"
*
ngIf=
"item
?
.gender == '0'"
name=
"female"
></ion-icon>
</p>
</div>
</div>
...
...
@@ -55,9 +55,9 @@
<div
class=
"inner-group"
>
<img
src=
"./assets/imgs/head.png"
class=
"person-photo"
>
<div
class=
"item-box"
>
<p
class=
"person-name"
>
{{item.name}}
<ion-icon
class=
"person-sex-male"
*
ngIf=
"item
.gender == '1'||item
.gender == null"
name=
"male"
></ion-icon>
<ion-icon
class=
"person-sex-female"
*
ngIf=
"item.gender == '0'"
name=
"female"
></ion-icon>
<p
class=
"person-name"
>
{{item
?
.name}}
<ion-icon
class=
"person-sex-male"
*
ngIf=
"item
?.gender == '1'||item?
.gender == null"
name=
"male"
></ion-icon>
<ion-icon
class=
"person-sex-female"
*
ngIf=
"item
?
.gender == '0'"
name=
"female"
></ion-icon>
</p>
</div>
</div>
...
...
@@ -75,18 +75,18 @@
<div
class=
"inner-group"
>
<img
src=
"./assets/imgs/head.png"
class=
"person-photo"
>
<div
class=
"item-box"
>
<p
class=
"person-name"
>
{{item.name}}
<p
class=
"person-name"
>
{{item
?
.name}}
<ion-icon
class=
"person-sex-male"
*
ngIf=
"item?.gender == '1'||item?.gender == null"
name=
"male"
></ion-icon>
<ion-icon
class=
"person-sex-female"
*
ngIf=
"item?.gender == '0'"
name=
"female"
></ion-icon>
</p>
<span
class=
"person-batch"
>
批次:{{item.batch?.batchName}}
</span>
</div>
</div>
<button
disabled
ion-button
round
class=
"btn color2"
*
ngIf=
"item.orderstate == 1"
>
已报名
</button>
<button
disabled
ion-button
round
class=
"btn color1"
*
ngIf=
"item.orderstate == 2"
>
待确认
</button>
<button
disabled
ion-button
round
class=
"btn color5"
*
ngIf=
"item.orderstate == 3"
>
未出行
</button>
<button
disabled
ion-button
round
class=
"btn color4"
*
ngIf=
"item.orderstate == 4"
>
已出行
</button>
<button
disabled
ion-button
round
class=
"btn color3"
*
ngIf=
"item.orderstate == 0"
>
未报名
</button>
<button
disabled
ion-button
round
class=
"btn color2"
*
ngIf=
"item
?
.orderstate == 1"
>
已报名
</button>
<button
disabled
ion-button
round
class=
"btn color1"
*
ngIf=
"item
?
.orderstate == 2"
>
待确认
</button>
<button
disabled
ion-button
round
class=
"btn color5"
*
ngIf=
"item
?
.orderstate == 3"
>
未出行
</button>
<button
disabled
ion-button
round
class=
"btn color4"
*
ngIf=
"item
?
.orderstate == 4"
>
已出行
</button>
<button
disabled
ion-button
round
class=
"btn color3"
*
ngIf=
"item
?
.orderstate == 0"
>
未报名
</button>
</div>
</ng-container>
<ng-container
*
ngIf=
"type == '4'"
>
...
...
@@ -94,17 +94,17 @@
<div
class=
"inner-group"
>
<img
src=
"./assets/imgs/head.png"
class=
"person-photo"
>
<div
class=
"item-box"
>
<p
class=
"person-name"
>
{{item.name}}
<p
class=
"person-name"
>
{{item
?
.name}}
<ion-icon
class=
"person-sex-male"
*
ngIf=
"item?.gender == '1'||item?.gender == null"
name=
"male"
></ion-icon>
<ion-icon
class=
"person-sex-female"
*
ngIf=
"item?.gender == '0'"
name=
"female"
></ion-icon>
</p>
</div>
</div>
<button
disabled
ion-button
round
class=
"btn color2"
*
ngIf=
"item.orderstate == 1"
>
已报名
</button>
<button
disabled
ion-button
round
class=
"btn color1"
*
ngIf=
"item.orderstate == 2"
>
待确认
</button>
<button
disabled
ion-button
round
class=
"btn color5"
*
ngIf=
"item.orderstate == 3"
>
未出行
</button>
<button
disabled
ion-button
round
class=
"btn color4"
*
ngIf=
"item.orderstate == 4"
>
已出行
</button>
<button
disabled
ion-button
round
class=
"btn color3"
*
ngIf=
"item.orderstate == 0"
>
未报名
</button>
<button
disabled
ion-button
round
class=
"btn color2"
*
ngIf=
"item
?
.orderstate == 1"
>
已报名
</button>
<button
disabled
ion-button
round
class=
"btn color1"
*
ngIf=
"item
?
.orderstate == 2"
>
待确认
</button>
<button
disabled
ion-button
round
class=
"btn color5"
*
ngIf=
"item
?
.orderstate == 3"
>
未出行
</button>
<button
disabled
ion-button
round
class=
"btn color4"
*
ngIf=
"item
?
.orderstate == 4"
>
已出行
</button>
<button
disabled
ion-button
round
class=
"btn color3"
*
ngIf=
"item
?
.orderstate == 0"
>
未报名
</button>
</div>
</ng-container>
</ion-item>
...
...
src/pages/activity-track/joinDetail/joinDetail.ts
View file @
e2982502
...
...
@@ -41,7 +41,8 @@ export class JoinDetailPage {
public
http
:
Http
,
public
appService
:
AppService
,
public
toast
:
ToastController
,
public
activityStatisticService
:
ActivityStatisticService
)
{}
public
activityStatisticService
:
ActivityStatisticService
)
{
}
ionViewDidEnter
()
{
/** 订单状态 (1.待出行(已报名)、2.待确认(已报名未确认)、3.报名未出行、4.已完成 (3,4均为确认状态))*/
...
...
@@ -56,7 +57,7 @@ export class JoinDetailPage {
}
//全部
signAll
(){
signAll
()
{
this
.
type
=
'1'
;
this
.
appService
.
ObserverHttpGetAdd
(
"/wisdomgroup/modules/activity/signAll/"
,
this
.
acitivityid
)
.
subscribe
((
res
:
Response
)
=>
{
...
...
@@ -105,6 +106,10 @@ export class JoinDetailPage {
notJoin
()
{
this
.
isNoSignFlag
=
true
;
this
.
type
=
'4'
;
this
.
notJoinService
();
}
notJoinService
()
{
this
.
appService
.
ObserverHttpGetAdd
(
"/wisdomgroup/modules/activityNon/"
,
this
.
acitivityid
)
.
subscribe
((
res
:
Response
)
=>
{
this
.
items
=
res
.
json
().
data
;
...
...
@@ -124,15 +129,15 @@ export class JoinDetailPage {
sayNo
(
item
)
{
let
msg
=
this
.
toast
.
create
(
message
);
const
data
=
{
'userId'
:
item
.
id
,
'userName'
:
item
.
name
'userId'
:
item
.
id
,
'userName'
:
item
.
name
};
this
.
appService
.
ObserverHttpForm
(
"/wisdomgroup/modules/activityNon/"
,
this
.
acitivityid
,
data
)
this
.
appService
.
ObserverHttpForm
(
"/wisdomgroup/modules/activityNon/"
,
this
.
acitivityid
,
data
)
.
subscribe
((
res
:
Response
)
=>
{
msg
.
setMessage
(
'已保存该用户不参加'
);
msg
.
present
();
this
.
signAll
();
this
.
notJoin
();
this
.
notJoin
Service
();
},
error
=>
{
this
.
appService
.
alert
(
'网络异常!'
);
}
...
...
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