Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
party-build-cloud
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
party-build-cloud
Commits
43ae4cc1
Commit
43ae4cc1
authored
Jun 16, 2019
by
wangqinghua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
出题采纳
parent
88480c9a
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
169 additions
and
201 deletions
+169
-201
my-publish.html
src/pages/mine-pages/my-publish/my-publish.html
+1
-1
editPersonInfo.html
src/pages/mine/person/editPersonInfo/editPersonInfo.html
+28
-39
editPersonInfo.scss
src/pages/mine/person/editPersonInfo/editPersonInfo.scss
+125
-122
editPersonInfo.ts
src/pages/mine/person/editPersonInfo/editPersonInfo.ts
+7
-31
personInfo.html
src/pages/mine/person/personInfo/personInfo.html
+6
-6
personInfo.ts
src/pages/mine/person/personInfo/personInfo.ts
+2
-2
No files found.
src/pages/mine-pages/my-publish/my-publish.html
View file @
43ae4cc1
...
@@ -73,7 +73,7 @@
...
@@ -73,7 +73,7 @@
<ion-icon
*
ngIf=
"new.topTime"
class=
"icon-fire iconfont"
></ion-icon>
<ion-icon
*
ngIf=
"new.topTime"
class=
"icon-fire iconfont"
></ion-icon>
</p>
</p>
<p
class=
"news-end"
>
<p
class=
"news-end"
>
<span>
发布
时间:
</span><span>
{{new.publishTime | date:'yyyy-MM-dd'}}
</span>
<span>
保存
时间:
</span><span>
{{new.publishTime | date:'yyyy-MM-dd'}}
</span>
</p>
</p>
</ion-col>
</ion-col>
<ion-col
col-4
class=
"news-right"
>
<ion-col
col-4
class=
"news-right"
>
...
...
src/pages/mine/person/editPersonInfo/editPersonInfo.html
View file @
43ae4cc1
<ion-header>
<ion-header>
<ion-navbar>
<ion-navbar>
<ion-title
text-center
>
信息编辑
</ion-title>
<ion-title
text-center
>
信息编辑
</ion-title>
</ion-navbar>
</ion-navbar>
</ion-header>
</ion-header>
<ion-content
class=
"content"
>
<ion-content
class=
"content"
>
<div
class=
"content-title"
>
<div
class=
"content-title"
>
补充信息(可编辑)
补充信息(可编辑)
</div>
<div
class=
"content-box"
>
<div
class=
"info-item content-box-group"
>
<label
class=
"info-span"
>
房间号
</label>
<ion-label
class=
"content-label info"
*
ngIf=
"edit11"
>
{{user?.userDetail?.user?.abbreviation}}
</ion-label>
<ion-datetime
cancelText=
"取消"
doneText=
"确认"
displayFormat=
"YYYY-MM-DD"
[(
ngModel
)]="
timeStarts
"
></ion-datetime>
<p
item-end
*
ngIf=
"edit12"
>
<img
src=
"./assets/imgs/confirm.png"
class=
"confirm"
(
click
)="
updateUserInfo
()"
>
</p>
</div>
</div>
<div
class=
"info-item content-box-group"
>
<div
class=
"content-box"
>
<label
class=
"info-span"
>
房间号
</label>
<div
class=
"info-item content-box-group"
>
<ion-label
class=
"content-label info"
*
ngIf=
"edit11"
>
{{user?.userDetail?.user?.abbreviation}}
</ion-label>
<label
class=
"info-span"
>
出生日期
</label>
<ion-input
class=
"info-input"
*
ngIf=
"edit12"
type=
"text"
maxlength=
"20"
[(
ngModel
)]="
userinfo
.
abbreviation
"
></ion-input>
<!-- <ion-label class="content-label info">{{userinfo.birthDay}}</ion-label>-->
<ion-datetime
cancelText=
"取消"
doneText=
"确认"
displayFormat=
"YYYY-MM-DD"
pickerFormat=
"YYYY MM DD"
<p
item-end
*
ngIf=
"edit12"
>
[(
ngModel
)]="
userinfo
.
birthDay
"
></ion-datetime>
<img
src=
"./assets/imgs/confirm.png"
class=
"confirm"
(
click
)="
updateUserInfo
()"
>
</div>
</p>
<div
class=
"info-item content-box-group"
>
<label
class=
"info-span"
>
房间号
</label>
<ion-input
class=
"info-input"
type=
"text"
maxlength=
"20"
[(
ngModel
)]="
userinfo
.
abbreviation
"
></ion-input>
</div>
<div
class=
"info-item content-box-group"
>
<label
class=
"info-span"
>
座机
</label>
<ion-input
class=
"info-input"
type=
"text"
maxlength=
"20"
[(
ngModel
)]="
userinfo
.
telephone
"
></ion-input>
</div>
<div
class=
"info-item content-box-group"
>
<label
class=
"info-span"
>
邮箱
</label>
<ion-input
class=
"info-input"
type=
"text"
maxlength=
"20"
[(
ngModel
)]="
userinfo
.
email
"
></ion-input>
</div>
</div>
</div>
<div
class=
"info-item content-box-group"
>
<button
class=
"submit-btn submit"
(
click
)="
updateUserInfo
()"
>
保存
</button>
<label
class=
"info-span"
>
座机
</label>
<ion-label
class=
"content-label info"
*
ngIf=
"edit21"
>
{{user?.userDetail?.user.telephone}}
</ion-label>
<ion-input
class=
"info-input"
*
ngIf=
"edit22"
type=
"text"
maxlength=
"20"
[(
ngModel
)]="
userinfo
.
telephone
"
></ion-input>
<p
item-end
*
ngIf=
"edit22"
>
<img
src=
"./assets/imgs/confirm.png"
class=
"confirm"
(
click
)="
updateUserInfo
()"
>
</p>
</div>
<div
class=
"info-item content-box-group"
>
<label
class=
"info-span"
>
邮箱
</label>
<ion-label
class=
"content-label info"
*
ngIf=
"edit31"
>
{{user?.userDetail?.user.email}}
</ion-label>
<ion-input
class=
"info-input"
*
ngIf=
"edit32"
type=
"text"
maxlength=
"20"
[(
ngModel
)]="
userinfo
.
email
"
></ion-input>
<p
item-end
*
ngIf=
"edit32"
>
<img
src=
"./assets/imgs/confirm.png"
class=
"confirm"
(
click
)="
updateUserInfo
()"
>
</p>
</div>
</div>
</ion-content>
</ion-content>
src/pages/mine/person/editPersonInfo/editPersonInfo.scss
View file @
43ae4cc1
page-editPersonInfo
{
page-editPersonInfo
{
.searchToolBar
{
.searchToolBar
{
display
:
flex
;
display
:
flex
;
flex-direction
:
row
;
flex-direction
:
row
;
align-items
:
center
;
align-items
:
center
;
justify-content
:
left
;
justify-content
:
left
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
}
}
.content
{
.content
{
// background-color: #f1f1f1;
// background-color: #f1f1f1;
}
}
.info-item
{
.info-item
{
display
:
flex
;
display
:
flex
;
flex-direction
:
row
;
flex-direction
:
row
;
align-items
:
center
;
align-items
:
center
;
justify-content
:
space-between
;
justify-content
:
space-between
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
}
}
.img
{
.img
{
width
:
40px
;
width
:
40px
;
height
:
40px
;
height
:
40px
;
}
}
.info
{
.info
{
font-size
:
18px
;
font-size
:
18px
;
color
:
#272727
;
color
:
#272727
;
}
}
.sex
{
.sex
{
color
:
#5dc3fc
;
color
:
#5dc3fc
;
font-weight
:
bolder
;
font-weight
:
bolder
;
}
}
// .photo-box{
// .photo-box{
// display: flex;
// display: flex;
// flex-direction: row;
// flex-direction: row;
// align-items: center;
// align-items: center;
// justify-content: center;
// justify-content: center;
// box-sizing: border-box;
// box-sizing: border-box;
// }
// }
.icon-more
{
.icon-more
{
color
:
#d1d1d5
;
color
:
#d1d1d5
;
margin-left
:
5px
;
margin-left
:
5px
;
}
}
.info-span
{
.info-span
{
color
:
#747474
;
color
:
#747474
;
font-size
:
18px
;
font-size
:
18px
;
width
:
90px
;
width
:
90px
;
}
}
.confirm
{
.confirm
{
width
:
25px
;
width
:
25px
;
height
:
25px
;
height
:
25px
;
margin-right
:
15px
;
margin-right
:
15px
;
}
}
.content-title
{
.content-title
{
background-color
:
#f5f5f5
;
background-color
:
#f5f5f5
;
font-size
:
14px
;
font-size
:
14px
;
color
:
#b2b2b2
;
color
:
#b2b2b2
;
padding-left
:
10px
;
padding-left
:
10px
;
padding-top
:
5px
;
padding-top
:
5px
;
padding-bottom
:
5px
;
padding-bottom
:
5px
;
}
}
.list-ios
{
.list-ios
{
margin
:
0
0
;
margin
:
0
0
;
}
}
.info-item-box
{
.info-item-box
{
display
:
flex
;
display
:
flex
;
flex-direction
:
row
;
flex-direction
:
row
;
align-items
:
center
;
align-items
:
center
;
justify-content
:
left
;
justify-content
:
left
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
}
}
// .info-input{
// .info-input{
// border-left: 1px solid #53bffd;
// border-left: 1px solid #53bffd;
// }
// }
// .info-input input{
// .info-input input{
// width: 200px;
// width: 200px;
// border: 0;
// border: 0;
// }
// }
.info-input
{
.info-input
,
ion-datetime
{
font-size
:
18px
;
font-size
:
18px
;
}
text-align
:
right
;
padding-right
:
20px
!
important
;
.list-md
{
}
margin
:
-1px
0
0px
;
.text-input-ios
{
}
text-align
:
right
;
}
// .title-label{
// width: 60px;
.list-md
{
// }
margin
:
-1px
0
0px
;
}
.content-label
{
text-align
:
right
;
// .title-label{
}
// width: 60px;
// }
.content-box
{
margin-left
:
15px
;
.content-label
{
}
text-align
:
right
;
}
.content-box-group
{
border-bottom
:
1px
solid
#cccccc
;
.content-box
{
min-height
:
4rem
;
margin-left
:
15px
;
}
}
.back-btn
{
.content-box-group
{
width
:
30px
;
border-bottom
:
1px
solid
#cccccc
;
height
:
30px
;
min-height
:
4rem
;
}
}
}
.back-btn
{
\ No newline at end of file
width
:
30px
;
height
:
30px
;
}
}
src/pages/mine/person/editPersonInfo/editPersonInfo.ts
View file @
43ae4cc1
...
@@ -25,7 +25,8 @@ export class EditPersonInfoPage {
...
@@ -25,7 +25,8 @@ export class EditPersonInfoPage {
userId
:
''
,
userId
:
''
,
abbreviation
:
''
,
abbreviation
:
''
,
telephone
:
''
,
telephone
:
''
,
email
:
''
email
:
''
,
birthDay
:
null
};
};
code
:
string
;
code
:
string
;
...
@@ -36,12 +37,6 @@ export class EditPersonInfoPage {
...
@@ -36,12 +37,6 @@ export class EditPersonInfoPage {
myregEamil
=
/^
[
a-zA-Z0-9_.-
]
+@
[
a-zA-Z0-9-
]
+
(\.[
a-zA-Z0-9-
]
+
)
*
\.[
a-zA-Z0-9
]{2,6}
$/
;
myregEamil
=
/^
[
a-zA-Z0-9_.-
]
+@
[
a-zA-Z0-9-
]
+
(\.[
a-zA-Z0-9-
]
+
)
*
\.[
a-zA-Z0-9
]{2,6}
$/
;
//页面控制
//页面控制
edit11
:
boolean
=
true
;
edit12
:
boolean
=
false
;
edit21
:
boolean
=
true
;
edit22
:
boolean
=
false
;
edit31
:
boolean
=
true
;
edit32
:
boolean
=
false
;
constructor
(
constructor
(
public
navCtrl
:
NavController
,
public
navCtrl
:
NavController
,
...
@@ -58,28 +53,19 @@ export class EditPersonInfoPage {
...
@@ -58,28 +53,19 @@ export class EditPersonInfoPage {
this
.
user
=
value
;
this
.
user
=
value
;
this
.
gender
=
this
.
user
.
userDetail
.
user
.
gender
;
this
.
gender
=
this
.
user
.
userDetail
.
user
.
gender
;
this
.
userinfo
=
this
.
user
.
userDetail
.
user
;
this
.
userinfo
=
this
.
user
.
userDetail
.
user
;
console
.
log
(
this
.
userinfo
);
this
.
userinfo
.
userId
=
this
.
user
.
id
;
this
.
userinfo
.
userId
=
this
.
user
.
id
;
this
.
getOrgName
(
this
.
user
.
id
,
result
=>
{
this
.
getOrgName
(
this
.
user
.
id
,
result
=>
{
let
data
=
result
;
let
data
=
result
;
this
.
orgName
=
data
[
"orgName"
];
this
.
orgName
=
data
[
"orgName"
];
});
});
});
});
}
this
.
code
=
this
.
navParams
.
get
(
"code"
);
//保存
if
(
this
.
code
==
'1'
){
save
(){
this
.
edit12
=
true
;
this
.
edit11
=
false
;
}
if
(
this
.
code
==
'2'
){
this
.
edit22
=
true
;
this
.
edit21
=
false
;
}
if
(
this
.
code
==
'3'
){
this
.
edit32
=
true
;
this
.
edit31
=
false
;
}
}
}
getOrgName
(
id
,
callback
?):
any
{
getOrgName
(
id
,
callback
?):
any
{
...
@@ -96,8 +82,6 @@ export class EditPersonInfoPage {
...
@@ -96,8 +82,6 @@ export class EditPersonInfoPage {
//修改信息:房间号,座机号,邮箱
//修改信息:房间号,座机号,邮箱
updateUserInfo
():
void
{
updateUserInfo
():
void
{
if
(
this
.
code
==
'2'
){
if
(
this
.
code
==
'2'
){
if
(
!
this
.
myregMobile
.
test
(
this
.
userinfo
.
telephone
)){
if
(
!
this
.
myregMobile
.
test
(
this
.
userinfo
.
telephone
)){
this
.
appService
.
popToastView
(
'请输入规则的电话号码!'
,
'top'
,
2000
);
this
.
appService
.
popToastView
(
'请输入规则的电话号码!'
,
'top'
,
2000
);
...
@@ -124,12 +108,4 @@ export class EditPersonInfoPage {
...
@@ -124,12 +108,4 @@ export class EditPersonInfoPage {
.
catch
(
error
=>
{
.
catch
(
error
=>
{
});
});
}
}
// scrollTo(){
// this.appService.popToastView('scroll start1!','top',2000);
// window.addEventListener('native.keyboardshow',(e:any) =>{
// this.appService.popToastView('scroll start2!','top',2000);
// this.content.scrollTo(0,e.keyboardHeight);
// });
// }
}
}
src/pages/mine/person/personInfo/personInfo.html
View file @
43ae4cc1
...
@@ -57,7 +57,7 @@
...
@@ -57,7 +57,7 @@
<span
class=
"info-span"
>
出生日期
</span>
<span
class=
"info-span"
>
出生日期
</span>
<div
class=
"info-item-content"
>
<div
class=
"info-item-content"
>
<span
class=
"info"
>
{{user?.userDetail?.user.telephone}}
</span>
<span
class=
"info"
>
{{user?.userDetail?.user.telephone}}
</span>
<img
src=
"./assets/imgs/edit.png"
class=
"edit"
(
click
)="
edit
(
2
)"
>
<img
src=
"./assets/imgs/edit.png"
class=
"edit"
(
click
)="
edit
()"
>
</div>
</div>
</div>
</div>
</ion-item>
</ion-item>
...
@@ -66,7 +66,7 @@
...
@@ -66,7 +66,7 @@
<span
class=
"info-span"
>
职务
</span>
<span
class=
"info-span"
>
职务
</span>
<div
class=
"info-item-content"
>
<div
class=
"info-item-content"
>
<span
class=
"info"
>
{{user?.userDetail?.user.telephone}}
</span>
<span
class=
"info"
>
{{user?.userDetail?.user.telephone}}
</span>
<img
src=
"./assets/imgs/edit.png"
class=
"edit"
(
click
)="
edit
(
2
)"
>
<img
src=
"./assets/imgs/edit.png"
class=
"edit"
(
click
)="
edit
()"
>
</div>
</div>
</div>
</div>
</ion-item>
</ion-item>
...
@@ -75,7 +75,7 @@
...
@@ -75,7 +75,7 @@
<span
class=
"info-span"
>
房间号
</span>
<span
class=
"info-span"
>
房间号
</span>
<div
class=
"info-item-content"
>
<div
class=
"info-item-content"
>
<span
class=
"info"
>
{{user?.userDetail?.user.abbreviation}}
</span>
<span
class=
"info"
>
{{user?.userDetail?.user.abbreviation}}
</span>
<img
src=
"./assets/imgs/edit.png"
class=
"edit"
(
click
)="
edit
(
1
)"
>
<img
src=
"./assets/imgs/edit.png"
class=
"edit"
(
click
)="
edit
()"
>
</div>
</div>
</div>
</div>
</ion-item>
</ion-item>
...
@@ -84,7 +84,7 @@
...
@@ -84,7 +84,7 @@
<span
class=
"info-span"
>
座机
</span>
<span
class=
"info-span"
>
座机
</span>
<div
class=
"info-item-content"
>
<div
class=
"info-item-content"
>
<span
class=
"info"
>
{{user?.userDetail?.user.telephone}}
</span>
<span
class=
"info"
>
{{user?.userDetail?.user.telephone}}
</span>
<img
src=
"./assets/imgs/edit.png"
class=
"edit"
(
click
)="
edit
(
2
)"
>
<img
src=
"./assets/imgs/edit.png"
class=
"edit"
(
click
)="
edit
()"
>
</div>
</div>
</div>
</div>
</ion-item>
</ion-item>
...
@@ -94,13 +94,13 @@
...
@@ -94,13 +94,13 @@
<span
class=
"info-span"
>
邮箱
</span>
<span
class=
"info-span"
>
邮箱
</span>
<div
class=
"info-item-content"
>
<div
class=
"info-item-content"
>
<span
class=
"info"
>
{{user?.userDetail?.user.email}}
</span>
<span
class=
"info"
>
{{user?.userDetail?.user.email}}
</span>
<img
src=
"./assets/imgs/edit.png"
class=
"edit"
(
click
)="
edit
(
3
)"
>
<img
src=
"./assets/imgs/edit.png"
class=
"edit"
(
click
)="
edit
()"
>
</div>
</div>
</div>
</div>
</ion-item>
</ion-item>
</ion-list>
</ion-list>
<button
ion-button
block
class=
"save
"
>
修改个人信息
</button>
<button
class=
"submit-btn submit"
(
click
)="
edit
()
"
>
修改个人信息
</button>
<!--<button ion-button block class="save" (click)="modifyPwd()">修改密码</button>-->
<!--<button ion-button block class="save" (click)="modifyPwd()">修改密码</button>-->
<button
class=
"submit-btn submit"
(
click
)="
modifyPwd
()"
>
修改密码
</button>
<button
class=
"submit-btn submit"
(
click
)="
modifyPwd
()"
>
修改密码
</button>
</ion-content>
</ion-content>
src/pages/mine/person/personInfo/personInfo.ts
View file @
43ae4cc1
...
@@ -55,8 +55,8 @@ export class PersonInfoPage {
...
@@ -55,8 +55,8 @@ export class PersonInfoPage {
}
}
//不同的code代表修改不同的数据,1房间,2座机,3邮箱
//不同的code代表修改不同的数据,1房间,2座机,3邮箱
edit
(
code
)
{
edit
()
{
this
.
navCtrl
.
push
(
"EditPersonInfoPage"
,
{
code
:
code
}
);
this
.
navCtrl
.
push
(
"EditPersonInfoPage"
);
}
}
//选择头像
//选择头像
...
...
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