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
9859b9c0
Commit
9859b9c0
authored
Oct 17, 2018
by
wangqinghua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
color
parent
cb3acde0
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
184 additions
and
88 deletions
+184
-88
activityDetail.html
src/pages/activity/activityDetail/activityDetail.html
+76
-75
more-app.ts
src/pages/home/more-app/more-app.ts
+2
-1
my-survey.ts
src/pages/mine/mySurvey/my-survey/my-survey.ts
+8
-3
survery.html
src/pages/mine/mySurvey/survery/survery.html
+34
-2
survery.scss
src/pages/mine/mySurvey/survery/survery.scss
+34
-1
survery.ts
src/pages/mine/mySurvey/survery/survery.ts
+30
-5
home.ts
src/pages/tabs/home/home.ts
+0
-1
No files found.
src/pages/activity/activityDetail/activityDetail.html
View file @
9859b9c0
<ion-header>
<ion-navbar>
<ion-title
text-center
>
活动报名
</ion-title>
</ion-navbar>
<ion-navbar>
<ion-title
text-center
>
活动报名
</ion-title>
</ion-navbar>
</ion-header>
<ion-content
class=
"content"
>
<div
class=
"item1"
>
<div
class=
"img-box"
>
<img
class=
"item1-image"
src=
"./assets/imgs/logo.png"
>
</div>
<div
class=
"item1-content"
>
<div
class=
"margin-5-0"
>
<label
class=
"item1-title"
>
{{activity?.activityName}}
</label>
<div
class=
"item1-content-box"
>
<span
*
ngIf=
"activity?.activityNo == '0'"
(
click
)="
sayNo
()"
class=
"item-type"
>
不想参加
</span>
</div>
</div>
<div
class=
"item1-introduction"
>
{{activity.activityIntro}}
<button
class=
"btn-introduce"
(
click
)="
show
()"
>
具体介绍
</button>
</div>
</div>
</div>
<div
class=
"item1"
>
<div
class=
"img-box"
>
<img
class=
"item1-image"
src=
"./assets/imgs/logo.png"
>
</div>
<div
class=
"item1-content"
>
<div
class=
"margin-5-0"
>
<label
class=
"item1-title"
>
{{activity?.activityName}}
</label>
<div
class=
"item1-content-box"
>
<span
*
ngIf=
"activity?.activityNo == '0'"
(
click
)="
sayNo
()"
class=
"item-type"
>
不想参加
</span>
</div>
</div>
<div
class=
"item1-introduction"
>
{{activity.activityIntro}}
<button
class=
"btn-introduce"
(
click
)="
show
()"
>
具体介绍
</button>
</div>
</div>
</div>
<div
class=
"item2"
>
<ion-list
class=
"item-list"
>
<ion-item
class=
"list-title"
>
<label
class=
"item-label"
>
<div
class=
"item2"
>
<ion-list
class=
"item-list"
>
<ion-item
class=
"list-title"
>
<label
class=
"item-label"
>
<span
class=
"item-title"
>
批次信息
<ng-container
*
ngIf=
"batchList.length > 0"
>
...
...
@@ -36,59 +36,59 @@
个批次信息)
</ng-container>
</span>
</label>
</ion-item>
<ion-item
class=
"item2-content"
*
ngIf=
"batchList.length > 0"
>
<div
*
ngFor=
"let batch of batchList"
class=
"item2-box"
(
click
)="
goBatchDetail
(
batch
)"
>
<p>
<span
class=
"color-666"
>
批次名称:
</span>
<span>
{{batch.batchName}}
</span>
<!--是否报名 > 是否截止 > 是否满员 -->
<ng-container
*
ngIf=
"batch.order"
>
<span
class=
"activity-btn2"
*
ngIf=
"batch.order"
float-right
>
已报名
</span>
</ng-container>
<ng-container
*
ngIf=
"!batch.order"
>
<ng-container
*
ngIf=
"batch.signUp"
>
<ng-container
*
ngIf=
" batch.hasSignUpCount < batch.batchLimitNumber"
>
<span
class=
"activity-btn2"
float-right
>
未报名
</span>
</ng-container>
<ng-container
*
ngIf=
"batch.hasSignUpCount == batch.batchLimitNumber"
>
<span
class=
"activity-btn2"
float-right
>
已满员
</span>
</ng-container>
</ng-container>
</label>
</ion-item>
<ion-item
class=
"item2-content"
*
ngIf=
"batchList.length > 0"
>
<div
*
ngFor=
"let batch of batchList"
class=
"item2-box"
(
click
)="
goBatchDetail
(
batch
)"
>
<p>
<span
class=
"color-666"
>
批次名称:
</span>
<span>
{{batch.batchName}}
</span>
<!--是否报名 > 是否截止 > 是否满员 -->
<ng-container
*
ngIf=
"batch.order"
>
<span
class=
"activity-btn2"
*
ngIf=
"batch.order"
float-right
>
已报名
</span>
</ng-container>
<ng-container
*
ngIf=
"!batch.order"
>
<ng-container
*
ngIf=
"batch.signUp"
>
<ng-container
*
ngIf=
" batch.hasSignUpCount < batch.batchLimitNumber"
>
<span
class=
"activity-btn2"
float-right
>
未报名
</span>
</ng-container>
<ng-container
*
ngIf=
"batch.hasSignUpCount == batch.batchLimitNumber"
>
<span
class=
"activity-btn2"
float-right
>
已满员
</span>
</ng-container>
</ng-container>
<ng-container
*
ngIf=
"!batch.signUp"
>
<span
class=
"activity-btn2"
float-right
>
已截止
</span>
</ng-container>
</ng-container>
<ng-container
*
ngIf=
"! batch.signUp"
>
<span
class=
"activity-btn2"
float-right
>
已截止
</span>
</ng-container>
</ng-container>
</p>
<p>
<span
class=
"color-666"
>
截止时间:
</span>
<span>
{{batch.batchEndDate}}
</span>
<span
class=
"color-24bafc"
float-right
>
{{batch.hasSignUpCount}}/{{batch.batchLimitNumber}}
</span>
</p>
</div>
</ion-item>
<p
class=
"no-info"
*
ngIf=
"batchList.length == 0"
>
暂无批次
</p>
</ion-list>
</div>
</p>
<p>
<span
class=
"color-666"
>
截止时间:
</span>
<span>
{{batch.batchEndDate}}
</span>
<span
class=
"color-24bafc"
float-right
>
{{batch.hasSignUpCount}}/{{batch.batchLimitNumber}}
</span>
</p>
</div>
</ion-item>
<p
class=
"no-info"
*
ngIf=
"batchList.length == 0"
>
暂无批次
</p>
</ion-list>
</div>
</ion-content>
<div
class=
"cover"
*
ngIf=
"isCover"
>
<div
class=
"cover-content"
>
<div
class=
"cover-content-box"
>
<h4
class=
"cover-content-title"
>
具体介绍
</h4>
<div
class=
"cover-content-info"
>
<p>
{{activity?.activityIntro}}
</p>
</div>
<button
ion-button
block
(
click
)="
hidden
()"
>
关闭
</button>
</div>
</div>
<div
class=
"cover-content"
>
<div
class=
"cover-content-box"
>
<h4
class=
"cover-content-title"
>
具体介绍
</h4>
<div
class=
"cover-content-info"
>
<p>
{{activity?.activityIntro}}
</p>
</div>
<button
ion-button
block
(
click
)="
hidden
()"
>
关闭
</button>
</div>
</div>
</div>
\ No newline at end of file
src/pages/home/more-app/more-app.ts
View file @
9859b9c0
...
...
@@ -5,6 +5,7 @@ import {ChangeApplyListPage} from "../../manageDuty/change-apply-list/change-app
import
{
MySurveyPage
}
from
"../../mine/mySurvey/my-survey/my-survey"
;
import
{
Response
}
from
"@angular/http"
;
import
{
AppService
}
from
"../../../service/appHttpService"
;
import
{
SurveryPage
}
from
"../../mine/mySurvey/survery/survery"
;
@
IonicPage
()
...
...
@@ -67,7 +68,7 @@ export class MoreAppPage {
}
goToMySurvey
(){
this
.
navCtrl
.
push
(
'
MySurve
yPage'
);
this
.
navCtrl
.
push
(
'
Surver
yPage'
);
}
goActivityTrack
(){
...
...
src/pages/mine/mySurvey/my-survey/my-survey.ts
View file @
9859b9c0
...
...
@@ -17,14 +17,19 @@ export class MySurveyPage {
userId
;
list
=
[];
constructor
(
public
navCtrl
:
NavController
,
public
navParams
:
NavParams
,
public
appService
:
AppService
,
public
storage
:
Storage
)
{
}
public
appService
:
AppService
,
public
storage
:
Storage
)
{}
ionViewDidEnter
()
{
this
.
storage
.
get
(
"user"
).
then
((
res
)
=>
{
this
.
appService
.
ObserverHttpGetAdd
(
'/wisdomgroup/modules/question/findQuesByUserId/'
,
res
.
id
)
.
subscribe
((
res
)
=>
{
this
.
list
=
res
.
json
().
datalist
;
this
.
list
=
[];
const
data
=
res
.
json
().
datalist
;
data
.
forEach
((
res
)
=>
{
if
(
res
.
isAnsNum
!=
0
){
this
.
list
.
push
(
res
);
}
})
})
});
// this.getSurveyList()
...
...
src/pages/mine/mySurvey/survery/survery.html
View file @
9859b9c0
...
...
@@ -7,6 +7,38 @@
</ion-header>
<ion-content
padding
>
<ion-content
class=
"bgc-e7e8ed"
>
<ion-list>
<ng-container
*
ngIf=
"list.length > 0"
>
<ng-container
*
ngFor=
"let item of list"
>
<ion-item
class=
"item-list margin-bottom-10"
>
<div
class=
"item"
>
<div
class=
"item-header padding-15-0"
>
<div
class=
"item-header-style"
>
<span
class=
"item-title"
>
{{item.title}}
</span>
<!--<span float-right class="done" *ngIf="item.state==1 ">未发布</span>-->
<span
float-right
class=
"done"
>
已完成
</span>
<!--<span float-right class="done" *ngIf="item.state==3 ">已过期</span>-->
</div>
</div>
<div
class=
"content-button padding-15-0"
>
<span>
参与人员:
</span>
<span
*
ngIf=
"item.groupName"
>
{{item.groupName}}
</span>
<span
*
ngIf=
"!item.groupName"
>
全体人员
</span>
<span
*
ngIf=
"item?.writeSelf == 0"
float-right
class=
"join"
(
click
)="
geToWrite
(
item
)"
>
参与
</span>
<span
*
ngIf=
"item?.writeSelf != 0"
float-right
class=
"look"
(
click
)="
goToResult
(
item
)"
>
查看
</span>
</div>
</div>
</ion-item>
</ng-container>
</ng-container>
<ng-container
*
ngIf=
"list.length == 0"
>
<div
text-center
style=
"margin-top: 10rem"
*
ngIf=
"list.length == 0"
>
<img
style=
"width: 20%;"
src=
"./assets/imgs/no-info.png"
alt=
""
>
<p
text-center
>
暂无数据
</p>
</div>
</ng-container>
</ion-list>
</ion-content>
src/pages/mine/mySurvey/survery/survery.scss
View file @
9859b9c0
page-survery
{
.list-ios
.item-block
.item-inner
{
border
:
none
;
}
.content-button
{
border-top
:
1px
solid
#c8c7cc
;
}
.look
{
background-color
:
#fcb164
;
color
:
#fff
;
padding
:
1px
10px
;
font-size
:
1
.5rem
;
border-radius
:
2px
;
}
.join
{
background-color
:
#34b4fc
;
color
:
#fff
;
padding
:
1px
10px
;
font-size
:
1
.5rem
;
border-radius
:
2px
;
}
.going
{
color
:
#fcb164
;
font-size
:
1
.4rem
;
border
:
1px
solid
#34b4fc
;
padding
:
1px
8px
;
border-radius
:
2px
;
}
.done
{
color
:
#34b4fc
;
font-size
:
1
.4rem
;
border
:
1px
solid
#34b4fc
;
padding
:
1px
8px
;
border-radius
:
2px
;
}
}
src/pages/mine/mySurvey/survery/survery.ts
View file @
9859b9c0
import
{
Component
}
from
'@angular/core'
;
import
{
IonicPage
,
NavController
,
NavParams
}
from
'ionic-angular'
;
import
{
AppService
}
from
"../../../../service/appHttpService"
;
import
{
Storage
}
from
"@ionic/storage"
;
@
IonicPage
()
@
Component
({
...
...
@@ -8,11 +10,34 @@ import { IonicPage, NavController, NavParams } from 'ionic-angular';
})
export
class
SurveryPage
{
constructor
(
public
navCtrl
:
NavController
,
public
navParams
:
NavParams
)
{
}
userId
;
list
=
[];
constructor
(
public
navCtrl
:
NavController
,
public
navParams
:
NavParams
,
public
appService
:
AppService
,
public
storage
:
Storage
)
{}
ionViewDidLoad
()
{
console
.
log
(
'ionViewDidLoad SurveryPage'
);
}
ionViewDidEnter
()
{
this
.
storage
.
get
(
"user"
).
then
((
res
)
=>
{
this
.
appService
.
ObserverHttpGetAdd
(
'/wisdomgroup/modules/question/findQuesByUserId/'
,
res
.
id
)
.
subscribe
((
res
)
=>
{
this
.
list
=
res
.
json
().
datalist
;
})
});
// this.getSurveyList()
}
getSurveyList
(){
const
userId
=
{};
console
.
log
(
this
.
userId
);
}
//填写问卷
geToWrite
(
item
){
this
.
navCtrl
.
push
(
'SurveyWritePage'
,{
item
:
item
});
}
//查看问卷结果
goToResult
(
item
){
this
.
navCtrl
.
push
(
'SurveyPreviewPage'
,{
item
:
item
});
}
}
src/pages/tabs/home/home.ts
View file @
9859b9c0
...
...
@@ -124,7 +124,6 @@ export class HomePage {
this
.
appService
.
ObserverHttpGet
(
"/wisdomgroup/modules/common/file/getBanner"
,
{}).
subscribe
((
res
:
Response
)
=>
{
this
.
slidersItems
=
res
.
json
();
console
.
log
(
this
.
slidersItems
);
},
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