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
0bfe7a4d
Commit
0bfe7a4d
authored
Oct 15, 2018
by
wangqinghua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
color
parent
1ae06d93
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
22 deletions
+26
-22
mine.html
src/pages/tabs/mine/mine.html
+2
-2
mine.ts
src/pages/tabs/mine/mine.ts
+24
-20
No files found.
src/pages/tabs/mine/mine.html
View file @
0bfe7a4d
...
@@ -7,7 +7,8 @@
...
@@ -7,7 +7,8 @@
<div
class=
"mine-header"
(
click
)="
personInfo
()"
>
<div
class=
"mine-header"
(
click
)="
personInfo
()"
>
<div
class=
"mine-header-box"
>
<div
class=
"mine-header-box"
>
<div
class=
"mine-header-left"
>
<div
class=
"mine-header-left"
>
<img
src=
"./assets/imgs/head.png"
class=
"head-photo"
>
<img
*
ngIf=
"user.userDetail?.user?.picUrl == ''"
src=
"./assets/imgs/head.png"
class=
"head-photo"
>
<img
*
ngIf=
"user.userDetail?.user?.picUrl != ''"
src=
"{{picture+user.userDetail?.user?.picUrl}}"
class=
"head-photo"
>
</div>
</div>
<div
class=
"mine-header-right"
>
<div
class=
"mine-header-right"
>
<h2
class=
"name"
>
{{user?.userName}}
</h2>
<h2
class=
"name"
>
{{user?.userName}}
</h2>
...
@@ -22,7 +23,6 @@
...
@@ -22,7 +23,6 @@
<ion-item
(
click
)="
myActivityList
()"
>
<ion-item
(
click
)="
myActivityList
()"
>
<div
class=
"group"
>
<div
class=
"group"
>
<div
class=
"group-box"
>
<div
class=
"group-box"
>
<!-- <ion-icon name="aperture" class="icon-left icon1"></ion-icon> -->
<img
src=
"./assets/imgs/mine/wdhd.png"
class=
"group-img"
>
<img
src=
"./assets/imgs/mine/wdhd.png"
class=
"group-img"
>
<span>
我的活动
</span>
<span>
我的活动
</span>
</div>
</div>
...
...
src/pages/tabs/mine/mine.ts
View file @
0bfe7a4d
import
{
Component
}
from
'@angular/core'
;
import
{
Component
}
from
'@angular/core'
;
import
{
App
,
NavController
,
AlertController
,
NavParams
}
from
'ionic-angular'
;
import
{
App
,
NavController
,
AlertController
,
NavParams
}
from
'ionic-angular'
;
import
{
LoginPage
}
from
'../../login/login'
;
import
{
LoginPage
}
from
'../../login/login'
;
import
{
AppService
}
from
'../../../service/appHttpService'
;
import
{
AppGlobal
,
AppService
}
from
'../../../service/appHttpService'
;
import
{
PersonInfoPage
}
from
'../../person/personInfo/personInfo'
;
import
{
PersonInfoPage
}
from
'../../person/personInfo/personInfo'
;
import
{
MyActivityListPage
}
from
'../../mine/myActivityList/myActivityList'
;
import
{
MyActivityListPage
}
from
'../../mine/myActivityList/myActivityList'
;
import
{
MyReportPage
}
from
'../../mine/myReport/myReport'
;
import
{
MyReportPage
}
from
'../../mine/myReport/myReport'
;
import
{
OperationListPage
}
from
'../../operation-list/operation-list'
;
import
{
OperationListPage
}
from
'../../operation-list/operation-list'
;
import
{
VersionPage
}
from
'../../version/version'
;
import
{
VersionPage
}
from
'../../version/version'
;
import
{
Response
}
from
'@angular/http'
;
import
{
Response
}
from
'@angular/http'
;
import
{
Storage
}
from
'@ionic/storage'
;
import
{
Storage
}
from
'@ionic/storage'
;
import
{
AppVersion
}
from
'@ionic-native/app-version'
;
import
{
AppVersion
}
from
'@ionic-native/app-version'
;
import
{
AppUpdateService
}
from
'../../../service/appUpdateService'
;
import
{
AppUpdateService
}
from
'../../../service/appUpdateService'
;
import
{
MySurveyPage
}
from
"../../mine/mySurvey/my-survey/my-survey"
;
import
{
MySurveyPage
}
from
"../../mine/mySurvey/my-survey/my-survey"
;
import
{
MyDutyPage
}
from
"../../mine/my-duty/my-duty"
;
import
{
MyDutyPage
}
from
"../../mine/my-duty/my-duty"
;
...
@@ -26,7 +26,9 @@ export class MinePage {
...
@@ -26,7 +26,9 @@ export class MinePage {
orgName
:
''
;
orgName
:
''
;
gender
:
object
;
gender
:
object
;
version
:
string
=
''
;
version
:
string
=
''
;
isLatest
:
boolean
=
true
;
isLatest
:
boolean
=
true
;
picture
:
string
=
AppGlobal
.
picture
;
constructor
(
public
navCtrl
:
NavController
,
constructor
(
public
navCtrl
:
NavController
,
private
appCtrl
:
App
,
private
appCtrl
:
App
,
private
alertCtrl
:
AlertController
,
private
alertCtrl
:
AlertController
,
...
@@ -55,8 +57,9 @@ export class MinePage {
...
@@ -55,8 +57,9 @@ export class MinePage {
});
});
});
});
}
}
getOrgName
(
id
,
callback
?):
any
{
getOrgName
(
id
,
callback
?):
any
{
this
.
appService
.
ObserverHttpPost
(
"/wisdomgroup/app/getOrgName"
,
{
"userid"
:
id
})
this
.
appService
.
ObserverHttpPost
(
"/wisdomgroup/app/getOrgName"
,
{
"userid"
:
id
})
.
toPromise
()
.
toPromise
()
.
then
(
res
=>
{
.
then
(
res
=>
{
var
data
=
res
.
json
();
var
data
=
res
.
json
();
...
@@ -69,6 +72,7 @@ export class MinePage {
...
@@ -69,6 +72,7 @@ export class MinePage {
personInfo
()
{
personInfo
()
{
this
.
navCtrl
.
push
(
"PersonInfoPage"
);
this
.
navCtrl
.
push
(
"PersonInfoPage"
);
}
}
//我的活动
//我的活动
myActivityList
()
{
myActivityList
()
{
this
.
navCtrl
.
push
(
"MyActivityListPage"
);
this
.
navCtrl
.
push
(
"MyActivityListPage"
);
...
@@ -85,7 +89,7 @@ export class MinePage {
...
@@ -85,7 +89,7 @@ export class MinePage {
}
}
//我的问卷
//我的问卷
mySurvey
(){
mySurvey
()
{
this
.
navCtrl
.
push
(
'MySurveyPage'
);
this
.
navCtrl
.
push
(
'MySurveyPage'
);
}
}
...
@@ -153,11 +157,11 @@ export class MinePage {
...
@@ -153,11 +157,11 @@ export class MinePage {
});
});
}
}
goSet
(){
goSet
()
{
this
.
navCtrl
.
push
(
'VersionPage'
);
this
.
navCtrl
.
push
(
'VersionPage'
);
}
}
goDuty
(){
goDuty
()
{
this
.
navCtrl
.
push
(
"MyDutyPage"
);
this
.
navCtrl
.
push
(
"MyDutyPage"
);
}
}
}
}
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