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
4ce0d73d
Commit
4ce0d73d
authored
Oct 09, 2018
by
wangqinghua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
日历
parent
2bc39c58
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
36 additions
and
87 deletions
+36
-87
joinDetail.html
src/pages/activity-track/joinDetail/joinDetail.html
+5
-5
joinDetail.ts
src/pages/activity-track/joinDetail/joinDetail.ts
+29
-76
activityDetail.html
src/pages/activity/activityDetail/activityDetail.html
+2
-6
home.ts
src/pages/tabs/home/home.ts
+0
-0
No files found.
src/pages/activity-track/joinDetail/joinDetail.html
View file @
4ce0d73d
...
...
@@ -9,21 +9,21 @@
</div>
<div
class=
"content-box"
>
<div
class=
"content-box-item {{type == '1'?'bgc-34b4fc':''}} "
(
click
)="
noSign
()"
>
<div
class=
"content-box-item {{type == '1'?'bgc-34b4fc':''}} "
(
click
)="
signAll
()"
>
<span
class=
"item-title"
>
全部
</span>
<span
class=
"item-count"
>
{{
notSig
n}}人
</span>
<span
class=
"item-count"
>
{{
allPerso
n}}人
</span>
</div>
<div
class=
"content-box-item {{type == '2'?'bgc-34b4fc':''}}"
(
click
)="
noSign
()"
>
<span
class=
"item-title"
>
未报名
</span>
<span
class=
"item-count"
>
{{
waitgoOrder
}}人
</span>
<span
class=
"item-count"
>
{{
notSign
}}人
</span>
</div>
<div
class=
"content-box-item {{type == '3'?'bgc-34b4fc':''}}"
(
click
)="
sign
()"
>
<span
class=
"item-title"
>
已报名
</span>
<span
class=
"item-count"
>
{{
waitSureOrder
}}人
</span>
<span
class=
"item-count"
>
{{
signUp
}}人
</span>
</div>
<div
class=
"content-box-item {{type == '4'?'bgc-34b4fc':''}}"
(
click
)="
notJoin
()"
>
<span
class=
"item-title"
>
不参加
</span>
<span
class=
"item-count"
>
{{
waitSureOrder
}}人
</span>
<span
class=
"item-count"
>
{{
noJoin
}}人
</span>
</div>
</div>
...
...
src/pages/activity-track/joinDetail/joinDetail.ts
View file @
4ce0d73d
...
...
@@ -25,14 +25,12 @@ export class JoinDetailPage {
acitivityName
:
string
;
type
=
'1'
;
//待出行
waitgoOrder
:
number
;
//待确认
waitSureOrder
:
number
;
//未出行
notgoOrder
:
number
;
//已出行
hasgoOrder
:
number
;
//全部
allPerson
:
number
;
//已报名
signUp
:
number
;
//不参加
noJoin
:
number
;
//未报名
notSign
:
number
;
...
...
@@ -42,9 +40,7 @@ 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均为确认状态))*/
...
...
@@ -52,80 +48,21 @@ export class JoinDetailPage {
this
.
acitivityName
=
this
.
navParams
.
get
(
"name"
);
//活动名称
//初始化加载未报备
this
.
items
=
[];
this
.
activityStatisticService
.
activityOrderCount
(
this
.
acitivityid
,
(
data
)
=>
{
this
.
waitgoOrder
=
data
[
"waitgoOrder"
];
this
.
waitSureOrder
=
data
[
"waitSureOrder"
];
this
.
notgoOrder
=
data
[
"notgoOrder"
];
this
.
hasgoOrder
=
data
[
"hasgoOrder"
];
});
this
.
appService
.
ObserverHttpGetAdd
(
"/wisdomgroup/modules/activity/signAll/"
,
this
.
acitivityid
)
.
subscribe
((
res
:
Response
)
=>
{
let
resultback
=
res
.
json
();
this
.
items
=
resultback
;
this
.
notSign
=
this
.
items
.
length
;
},
error
=>
{
this
.
appService
.
alert
(
'网络异常!'
);
}
);
this
.
signAll
();
}
conmon
(
state_value
)
{
this
.
isNoSignFlag
=
true
;
this
.
items
=
[];
this
.
appService
.
ObserverHttpPost
(
"/wisdomgroup/modules/order/orderWaitGoWithActivityid"
,
{
id
:
this
.
acitivityid
,
state
:
state_value
})
//全部
signAll
(){
this
.
type
=
'1'
;
this
.
appService
.
ObserverHttpGetAdd
(
"/wisdomgroup/modules/activity/signAll/"
,
this
.
acitivityid
)
.
subscribe
((
res
:
Response
)
=>
{
let
resultback
=
res
.
json
();
this
.
items
=
resultback
;
this
.
allPerson
=
this
.
items
.
length
;
},
error
=>
{
this
.
appService
.
alert
(
'网络异常!'
);
}
);
}
//报名待出行
hasSign
()
{
this
.
type
=
'2'
;
this
.
conmon
(
1
);
}
//待确认
waitSure
()
{
this
.
type
=
'3'
;
this
.
conmon
(
2
);
}
//不参加
notJoin
()
{
this
.
isNoSignFlag
=
true
;
this
.
type
=
'4'
;
this
.
appService
.
ObserverHttpGet
(
"/wisdomgroup/modules/activityNon"
,
null
)
.
subscribe
((
res
:
Response
)
=>
{
this
.
items
=
res
.
json
().
data
;
},
error
=>
{
this
.
appService
.
alert
(
'网络异常!'
);
}
);
}
//已确认未出行
notgo
()
{
this
.
type
=
'5'
;
this
.
conmon
(
3
);
}
//已确认出行
hasgo
()
{
this
.
type
=
'4'
;
this
.
conmon
(
4
);
}
//未报名
...
...
@@ -137,6 +74,7 @@ export class JoinDetailPage {
.
subscribe
((
res
:
Response
)
=>
{
let
resultback
=
res
.
json
();
this
.
items
=
resultback
;
this
.
notSign
=
this
.
items
.
length
;
},
error
=>
{
this
.
appService
.
alert
(
'网络异常!'
);
}
...
...
@@ -152,6 +90,21 @@ export class JoinDetailPage {
.
subscribe
((
res
:
Response
)
=>
{
let
resultback
=
res
.
json
();
this
.
items
=
resultback
;
this
.
signUp
=
this
.
items
.
length
;
},
error
=>
{
this
.
appService
.
alert
(
'网络异常!'
);
}
);
}
//不参加
notJoin
()
{
this
.
isNoSignFlag
=
true
;
this
.
type
=
'4'
;
this
.
appService
.
ObserverHttpGet
(
"/wisdomgroup/modules/activityNon"
,
null
)
.
subscribe
((
res
:
Response
)
=>
{
this
.
items
=
res
.
json
().
data
;
this
.
noJoin
=
this
.
items
.
length
;
},
error
=>
{
this
.
appService
.
alert
(
'网络异常!'
);
}
...
...
src/pages/activity/activityDetail/activityDetail.html
View file @
4ce0d73d
...
...
@@ -13,15 +13,11 @@
<div
class=
"margin-5-0"
>
<label
class=
"item1-title"
>
{{activity?.activityName}}
</label>
<div
class=
"item1-content-box"
>
<ion-icon
name=
"md-contact"
class=
"item1-icon"
></ion-icon>
<span
class=
"item-type"
*
ngIf=
"activity?.activityType =='1'"
>
体检
</span>
<span
class=
"item-type"
*
ngIf=
"activity?.activityType =='2'"
>
疗养
</span>
<span
class=
"item-type"
*
ngIf=
"activity?.activityType =='3'"
>
培训
</span>
<span
class=
"item-type"
*
ngIf=
"activity?.activityType =='4'"
>
工会活动
</span>
<span
class=
"item-type"
>
不想参加
</span>
</div>
</div>
<div
class=
"item1-introduction"
>
<!-- {{activity.activityIntro}} -->
{{activity.activityIntro}}
<button
class=
"btn-introduce"
(
click
)="
show
()"
>
具体介绍
</button>
</div>
...
...
src/pages/tabs/home/home.ts
View file @
4ce0d73d
This diff is collapsed.
Click to expand it.
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