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
5027ddf4
Commit
5027ddf4
authored
Oct 17, 2018
by
wangqinghua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
color
parent
45e0e0cc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
36 deletions
+3
-36
outGoingReportEdit.ts
src/pages/report/outGoingReportEdit/outGoingReportEdit.ts
+1
-1
home.ts
src/pages/tabs/home/home.ts
+2
-35
No files found.
src/pages/report/outGoingReportEdit/outGoingReportEdit.ts
View file @
5027ddf4
...
@@ -67,7 +67,7 @@ export class OutGoingReportEditPage {
...
@@ -67,7 +67,7 @@ export class OutGoingReportEditPage {
//报备列表页面 到 个人报备1页面
//报备列表页面 到 个人报备1页面
this
.
storage
.
get
(
"premanager"
).
then
((
value
)
=>
{
this
.
storage
.
get
(
"premanager"
).
then
((
value
)
=>
{
console
.
log
(
value
);
if
(
value
!=
null
&&
value
!=
''
)
{
if
(
value
!=
null
&&
value
!=
''
)
{
this
.
premanager
=
value
;
this
.
premanager
=
value
;
//加载报备的图片
//加载报备的图片
...
...
src/pages/tabs/home/home.ts
View file @
5027ddf4
...
@@ -20,6 +20,7 @@ import {CalendarComponentOptions, DayConfig} from "ion2-calendar";
...
@@ -20,6 +20,7 @@ import {CalendarComponentOptions, DayConfig} from "ion2-calendar";
import
{
NoticePage
}
from
"../notice/notice"
;
import
{
NoticePage
}
from
"../notice/notice"
;
import
{
monthCh
,
weekDay
}
from
"../../../app/main"
;
import
{
monthCh
,
weekDay
}
from
"../../../app/main"
;
import
{
Badge
}
from
'@ionic-native/badge'
;
import
{
Badge
}
from
'@ionic-native/badge'
;
import
{
ActivityDetailPage
}
from
"../../activity/activityDetail/activityDetail"
;
declare
var
Swiper
;
declare
var
Swiper
;
...
@@ -204,11 +205,7 @@ export class HomePage {
...
@@ -204,11 +205,7 @@ export class HomePage {
.
toPromise
()
.
toPromise
()
.
then
(
res
=>
{
.
then
(
res
=>
{
let
activity
=
res
.
json
();
let
activity
=
res
.
json
();
if
(
activity
.
orderList
.
length
==
0
)
{
this
.
navCtrl
.
push
(
'ActivityDetailPage'
,{
id
:
activity
.
id
});
this
.
goApply
(
activity
);
}
else
{
this
.
goDetail
(
activity
);
}
})
})
.
catch
(
error
=>
{
.
catch
(
error
=>
{
});
});
...
@@ -228,36 +225,6 @@ export class HomePage {
...
@@ -228,36 +225,6 @@ export class HomePage {
});
});
}
}
//查看详情
goDetail
(
item
)
{
let
orderid
=
item
.
orderList
[
0
][
"orderid"
];
this
.
findMyOrderByOrderId
(
orderid
,
result
=>
{
let
order
=
result
;
this
.
navCtrl
.
push
(
"ActivityConfirmPage"
,
{
lookOrderDetails
:
order
});
});
}
//报名按钮
goApply
(
item
)
{
//活动状态:1:待发布(不可报名),2:发布中(可报名)3:已完成(报名截止)
if
(
item
.
activityState
==
2
)
{
let
flag
=
false
;
this
.
isExitOrderWithActivity
(
item
,
result
=>
{
flag
=
result
;
if
(
flag
)
{
this
.
appService
.
toast
(
"您已经报名该活动,请在我的活动中查看!"
);
}
else
{
this
.
navCtrl
.
push
(
"ActivityApplyPage"
,
{
item
:
item
});
}
});
}
else
{
if
(
item
.
activityState
==
1
)
{
this
.
appService
.
toast
(
"报名暂未开通!"
);
}
else
{
this
.
appService
.
toast
(
"活动已完成!"
);
}
}
}
findMyOrderByOrderId
(
orderid
,
callback
?)
{
findMyOrderByOrderId
(
orderid
,
callback
?)
{
let
order
=
this
.
appService
.
ObserverHttpPost
(
"/wisdomgroup/modules/order/findMyOrderByOrderId"
,
{
"orderid"
:
orderid
})
let
order
=
this
.
appService
.
ObserverHttpPost
(
"/wisdomgroup/modules/order/findMyOrderByOrderId"
,
{
"orderid"
:
orderid
})
...
...
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