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
f4e9831d
Commit
f4e9831d
authored
Oct 16, 2018
by
wangqinghua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
color
parent
a5e3f5fa
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
3 deletions
+15
-3
activityApply.ts
src/pages/activity/activityApply/activityApply.ts
+5
-0
activityConfirm.ts
src/pages/activity/activityConfirm/activityConfirm.ts
+8
-3
myActivityList.html
src/pages/mine/myActivityList/myActivityList.html
+2
-0
No files found.
src/pages/activity/activityApply/activityApply.ts
View file @
f4e9831d
...
@@ -140,9 +140,13 @@ export class ActivityApplyPage {
...
@@ -140,9 +140,13 @@ export class ActivityApplyPage {
let
applyNum
=
0
;
let
applyNum
=
0
;
this
.
activity
.
batchList
.
forEach
((
res
)
=>
{
this
.
activity
.
batchList
.
forEach
((
res
)
=>
{
if
(
res
.
order
){
if
(
res
.
order
){
console
.
log
(
res
.
order
);
applyNum
++
;
applyNum
++
;
}
}
});
});
console
.
log
(
applyNum
);
//报名次数 applyCount 1,2,3,4,5,0-> 不限
if
(
this
.
activity
.
applyCount
>
0
){
if
(
applyNum
>=
this
.
activity
.
applyCount
){
if
(
applyNum
>=
this
.
activity
.
applyCount
){
this
.
appService
.
popToastView
(
"提交失败,报名批次达到上限"
,
'middle'
,
1000
);
this
.
appService
.
popToastView
(
"提交失败,报名批次达到上限"
,
'middle'
,
1000
);
return
;
return
;
...
@@ -150,6 +154,7 @@ export class ActivityApplyPage {
...
@@ -150,6 +154,7 @@ export class ActivityApplyPage {
if
(
Number
(
this
.
order
.
Personnumber
+
1
)
>
Number
(
this
.
item
.
batchLimitNumber
))
{
if
(
Number
(
this
.
order
.
Personnumber
+
1
)
>
Number
(
this
.
item
.
batchLimitNumber
))
{
this
.
appService
.
popToastView
(
"报名人数超过了该批次的剩余人数"
,
'middle'
,
1000
);
this
.
appService
.
popToastView
(
"报名人数超过了该批次的剩余人数"
,
'middle'
,
1000
);
return
;
return
;
}
}
else
{
//报名(新增)
}
else
{
//报名(新增)
this
.
submitOrder
();
this
.
submitOrder
();
}
}
...
...
src/pages/activity/activityConfirm/activityConfirm.ts
View file @
f4e9831d
...
@@ -24,7 +24,9 @@ export class ActivityConfirmPage {
...
@@ -24,7 +24,9 @@ export class ActivityConfirmPage {
orderfgconent
:
''
,
orderfgconent
:
''
,
orderstate
:
4
,
orderstate
:
4
,
activityid
:
''
,
activityid
:
''
,
orderid
:
''
orderid
:
''
,
personnumber
:
''
,
orderbz
:
''
};
};
batch
;
batch
;
//页面按钮为默认取消报名和重选批次
//页面按钮为默认取消报名和重选批次
...
@@ -187,12 +189,15 @@ export class ActivityConfirmPage {
...
@@ -187,12 +189,15 @@ export class ActivityConfirmPage {
const
data
=
{
const
data
=
{
orderfgconent
:
''
,
orderid
:
this
.
order
.
orderid
,
orderid
:
this
.
order
.
orderid
,
batchid
:
this
.
batch
.
id
,
batchid
:
this
.
batch
.
id
,
activityid
:
this
.
order
.
activityid
,
activityid
:
this
.
order
.
activityid
,
orderpjlevel
:
this
.
orderStatisfyLevel
,
orderpjlevel
:
this
.
orderStatisfyLevel
,
orderstate
:
'4'
,
orderstate
:
''
,
orderconfirm
:
'1'
orderconfirm
:
'1'
,
personnumber
:
this
.
order
.
personnumber
,
orderbz
:
this
.
order
.
orderbz
};
};
if
(
this
.
order
.
orderstate
==
3
)
{
if
(
this
.
order
.
orderstate
==
3
)
{
data
.
orderstate
=
'3'
;
data
.
orderstate
=
'3'
;
...
...
src/pages/mine/myActivityList/myActivityList.html
View file @
f4e9831d
...
@@ -126,3 +126,5 @@
...
@@ -126,3 +126,5 @@
</div>
</div>
</div>
</div>
</div>
</div>
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