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
1a8bf31d
Commit
1a8bf31d
authored
Oct 17, 2018
by
wangqinghua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
color
parent
e493940f
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
22 additions
and
89 deletions
+22
-89
config.xml
config.xml
+1
-1
activityConfirm.ts
src/pages/activity/activityConfirm/activityConfirm.ts
+5
-3
activityDetail.html
src/pages/activity/activityDetail/activityDetail.html
+3
-1
batch-detail.ts
src/pages/activity/batch-detail/batch-detail.ts
+12
-3
myActivityList.ts
src/pages/mine/myActivityList/myActivityList.ts
+1
-29
myReport.ts
src/pages/mine/myReport/myReport.ts
+0
-52
No files found.
config.xml
View file @
1a8bf31d
<?xml version='1.0' encoding='utf-8'?>
<?xml version='1.0' encoding='utf-8'?>
<widget
id=
"io.ionic.starter"
version=
"1.2.
2
"
xmlns=
"http://www.w3.org/ns/widgets"
xmlns:cdv=
"http://cordova.apache.org/ns/1.0"
>
<widget
id=
"io.ionic.starter"
version=
"1.2.
3
"
xmlns=
"http://www.w3.org/ns/widgets"
xmlns:cdv=
"http://cordova.apache.org/ns/1.0"
>
<name>
智汇19号
</name>
<name>
智汇19号
</name>
<description>
An awesome Ionic/Cordova app.
</description>
<description>
An awesome Ionic/Cordova app.
</description>
<author
email=
"hi@ionicframework"
href=
"http://ionicframework.com/"
>
Ionic Framework Team
</author>
<author
email=
"hi@ionicframework"
href=
"http://ionicframework.com/"
>
Ionic Framework Team
</author>
...
...
src/pages/activity/activityConfirm/activityConfirm.ts
View file @
1a8bf31d
...
@@ -6,6 +6,7 @@ import {Http, Response,} from '@angular/http';
...
@@ -6,6 +6,7 @@ import {Http, Response,} from '@angular/http';
import
{
AppService
,
AppGlobal
}
from
'../../../service/appHttpService'
;
import
{
AppService
,
AppGlobal
}
from
'../../../service/appHttpService'
;
import
{
MyActivityListPage
}
from
'../../mine/myActivityList/myActivityList'
;
import
{
MyActivityListPage
}
from
'../../mine/myActivityList/myActivityList'
;
import
{
JoinPersonsPage
}
from
'../../joinPersons/joinPersons'
;
import
{
JoinPersonsPage
}
from
'../../joinPersons/joinPersons'
;
import
{
MinePage
}
from
"../../tabs/mine/mine"
;
@
IonicPage
()
@
IonicPage
()
...
@@ -210,9 +211,10 @@ export class ActivityConfirmPage {
...
@@ -210,9 +211,10 @@ export class ActivityConfirmPage {
let
resultback
=
res
.
json
();
let
resultback
=
res
.
json
();
if
(
resultback
.
status
==
'200'
){
if
(
resultback
.
status
==
'200'
){
//待确认列表移除,全部列表移除该订单
//待确认列表移除,全部列表移除该订单
//let orderid = this.order["orderid"];
const
index
=
this
.
navCtrl
.
getActive
().
index
;
//this.allOrder.splice(this.allOrder.indexOf(orderid),1)
this
.
navCtrl
.
remove
(
0
,
index
);
//this.waitSureOrder.splice(this.waitSureOrder.indexOf(orderid),1)
this
.
navCtrl
.
setRoot
(
MinePage
);
this
.
navCtrl
.
parent
.
select
(
3
);
this
.
navCtrl
.
push
(
"MyActivityListPage"
);
this
.
navCtrl
.
push
(
"MyActivityListPage"
);
}
else
{
}
else
{
//失败
//失败
...
...
src/pages/activity/activityDetail/activityDetail.html
View file @
1a8bf31d
...
@@ -45,7 +45,9 @@
...
@@ -45,7 +45,9 @@
<span>
{{batch.batchName}}
</span>
<span>
{{batch.batchName}}
</span>
<!--是否报名 > 是否截止 > 是否满员 -->
<!--是否报名 > 是否截止 > 是否满员 -->
<ng-container
*
ngIf=
"batch.order"
>
<ng-container
*
ngIf=
"batch.order"
>
<span
class=
"activity-btn2"
*
ngIf=
"batch.order"
float-right
>
已报名
</span>
<span
class=
"activity-btn2"
*
ngIf=
"batch.order.orderstate == 1 || batch.order.orderstate == 2"
float-right
>
已报名
</span>
<span
class=
"activity-btn2"
*
ngIf=
"batch.order.orderstate == 3"
float-right
>
已评价
</span>
<span
class=
"activity-btn2"
*
ngIf=
"batch.order.orderstate == 4"
float-right
>
未出行
</span>
</ng-container>
</ng-container>
<ng-container
*
ngIf=
"!batch.order"
>
<ng-container
*
ngIf=
"!batch.order"
>
<ng-container
*
ngIf=
"batch.signUp"
>
<ng-container
*
ngIf=
"batch.signUp"
>
...
...
src/pages/activity/batch-detail/batch-detail.ts
View file @
1a8bf31d
...
@@ -24,7 +24,9 @@ export class BatchDetailPage {
...
@@ -24,7 +24,9 @@ export class BatchDetailPage {
batchNotice
:
null
batchNotice
:
null
};
};
activity
;
activity
;
order
;
order
=
{
orderid
:
''
};
swiper
;
swiper
;
swiperIndex
=
0
;
swiperIndex
=
0
;
constructor
(
public
navCtrl
:
NavController
,
public
navParams
:
NavParams
,
constructor
(
public
navCtrl
:
NavController
,
public
navParams
:
NavParams
,
...
@@ -43,7 +45,7 @@ export class BatchDetailPage {
...
@@ -43,7 +45,7 @@ export class BatchDetailPage {
//判断是否过截止日期
//判断是否过截止日期
const
nowDate
=
new
Date
().
getTime
();
const
nowDate
=
new
Date
().
getTime
();
const
endDate
=
new
Date
(
this
.
batch
.
batchEndDate
).
getTime
();
const
endDate
=
new
Date
(
this
.
batch
.
batchEndDate
).
getTime
();
console
.
log
(
nowDate
,
endDate
);
console
.
log
(
this
.
batch
);
if
(
nowDate
>
endDate
){
if
(
nowDate
>
endDate
){
this
.
isFlag
=
true
;
//已过截止日期
this
.
isFlag
=
true
;
//已过截止日期
}
}
...
@@ -114,7 +116,14 @@ export class BatchDetailPage {
...
@@ -114,7 +116,14 @@ export class BatchDetailPage {
//订单确认
//订单确认
reelectBatch
():
void
{
reelectBatch
():
void
{
// this.navCtrl.push('OrderDetailPage',{item:this.activity.id});
this
.
appService
.
ObserverHttpPost
(
"/wisdomgroup/modules/order/findMyOrderByOrderId"
,
{
"orderid"
:
this
.
order
.
orderid
})
.
subscribe
((
res
:
Response
)
=>
{
let
data
=
res
.
json
();
this
.
navCtrl
.
push
(
'ActivityConfirmPage'
,{
activity
:
data
.
activity
,
order
:
data
});
},
error
=>
{
this
.
appService
.
alert
(
'网络异常!'
);
}
);
}
}
cancelOrder
():
void
{
cancelOrder
():
void
{
...
...
src/pages/mine/myActivityList/myActivityList.ts
View file @
1a8bf31d
...
@@ -65,35 +65,7 @@ export class MyActivityListPage {
...
@@ -65,35 +65,7 @@ export class MyActivityListPage {
}
}
//当页面加载的时候触发,只触发一次,当有缓存的的时候,打开页面时不在加载
//当页面加载的时候触发,只触发一次,当有缓存的的时候,打开页面时不在加载
ionViewDidLoad
()
{
ionViewDidLoad
()
{
// this.initSwiper();
}
//初始化swiper
initSwiper
()
{
this
.
swiper
=
new
Swiper
(
'.pageMenuSlides .swiper-container'
,
{
//设置slider容器能够同时显示的slides数量(
slidesPreView
:
3
,
//slide之间的距离(单位px)
spaceBetween
:
0
,
//断点设定:根据屏幕宽度设置某参数为不同的值
breakpoints
:
{
1024
:
{
slidesPerView
:
3
,
spaceBetween
:
0
},
768
:
{
slidesPerView
:
3
,
spaceBetween
:
0
},
640
:
{
slidesPerView
:
3
,
spaceBetween
:
0
},
320
:
{
slidesPerView
:
3
,
spaceBetween
:
0
}
}
});
}
}
//选择菜单
//选择菜单
selectPageMenu
(
index
)
{
selectPageMenu
(
index
)
{
...
...
src/pages/mine/myReport/myReport.ts
View file @
1a8bf31d
...
@@ -52,34 +52,6 @@ export class MyReportPage {
...
@@ -52,34 +52,6 @@ export class MyReportPage {
ionViewDidLoad
()
{
ionViewDidLoad
()
{
}
}
//初始化swiper
initSwiper
()
{
this
.
swiper
=
new
Swiper
(
'.pageMenuSlides .swiper-container'
,
{
//设置slider容器能够同时显示的slides数量(
slidesPreView
:
3
,
//slide之间的距离(单位px)
spaceBetween
:
0
,
//断点设定:根据屏幕宽度设置某参数为不同的值
breakpoints
:
{
1024
:
{
slidesPerView
:
3
,
spaceBetween
:
0
},
768
:
{
slidesPerView
:
3
,
spaceBetween
:
0
},
640
:
{
slidesPerView
:
3
,
spaceBetween
:
0
},
320
:
{
slidesPerView
:
3
,
spaceBetween
:
0
}
}
});
}
//选择菜单
//选择菜单
selectPageMenu
(
index
)
{
selectPageMenu
(
index
)
{
this
.
swiperIndex
=
index
;
this
.
swiperIndex
=
index
;
...
@@ -110,30 +82,6 @@ export class MyReportPage {
...
@@ -110,30 +82,6 @@ export class MyReportPage {
}
}
//获取所有我已结束的报备
// getAllMyEndReport() {
// this.appService.ObserverHttpPost("/wisdomgroup/modules/premanager/getEndPremanagerByUser", null)
// .subscribe((res: Response) => {
// let data = res.json();
// this.endReport = data;
// }, error => {
// this.appService.alert('网络异常!');
// }
// );
// }
//获取所有我进行中的报备
// getAllMyProcessingReport() {
// this.appService.ObserverHttpPost("/wisdomgroup/modules/premanager/getProcessingPremanagerByUser", null)
// .subscribe((res: Response) => {
// let data = res.json();
// this.processingReport = data;
// }, error => {
// this.appService.alert('网络异常!');
// }
// );
// }
//获取所有我的报备
//获取所有我的报备
getAllMyReport
()
{
getAllMyReport
()
{
this
.
appService
.
ObserverHttpPost
(
"/wisdomgroup/modules/premanager/getPremanagerByUser"
,
null
)
this
.
appService
.
ObserverHttpPost
(
"/wisdomgroup/modules/premanager/getPremanagerByUser"
,
null
)
...
...
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