Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
ydLife
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Sweet Zhang
ydLife
Commits
95f0ce8e
Commit
95f0ce8e
authored
Apr 13, 2022
by
Sweet Zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
自我介绍新增字段
parent
d067f64e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
6 deletions
+7
-6
src/app/domain/settinginfo.ts
+2
-1
src/app/my/my-setting-detail/my-setting-detail.component.html
+2
-2
src/app/my/my-setting-detail/my-setting-detail.component.ts
+3
-3
No files found.
src/app/domain/settinginfo.ts
View file @
95f0ce8e
...
...
@@ -6,7 +6,8 @@ export class SettingInfo {
public
practitionerId
?:
any
,
public
wxQRImgUrl
?:
any
,
public
isMobileShow
?:
any
,
public
isNameShow
?:
any
public
isNameShow
?:
any
,
public
bioIntroTwo
?:
any
,
)
{
}
}
src/app/my/my-setting-detail/my-setting-detail.component.html
View file @
95f0ce8e
...
...
@@ -55,9 +55,9 @@
<div
class=
"picItem introduction"
*
ngIf=
"this.uploadType=='introduction'"
>
<div
style=
"height: 30px;font-size: 20px;margin-bottom: 20px;"
>
自我介绍
</div>
<textarea
class=
"form-control"
name=
"bioInfo"
rows=
"10"
[(
ngModel
)]="
settingInfo
.
bioIntro
"
placeholder=
"赶紧介绍一下你自己吧!"
<textarea
class=
"form-control"
name=
"bioInfo"
rows=
"10"
[(
ngModel
)]="
settingInfo
.
bioIntro
Two
"
placeholder=
"赶紧介绍一下你自己吧!"
maxlength=
"200"
style=
"border: none;"
(
keydown
)="
controlWord
($
event
)"
></textarea>
<span
class=
"maxWord"
>
{{ 200- (settingInfo.bioIntro)?.length}}
</span>
<span
class=
"maxWord"
>
{{ 200- (settingInfo.bioIntro
Two
)?.length}}
</span>
<div
class=
"saveBtn"
(
click
)="
mySettingSave
()"
>
确定
</div>
</div>
...
...
src/app/my/my-setting-detail/my-setting-detail.component.ts
View file @
95f0ce8e
...
...
@@ -225,7 +225,7 @@ export class MySettingDetailComponent implements OnInit {
param
=
{
settingSave
:
'intro'
,
practitionerId
:
JSON
.
parse
(
localStorage
.
getItem
(
'lifeCustomerInfo'
))[
'practitionerId'
],
bioIntro
:
this
.
settingInfo
.
bioIntr
o
bioIntro
Two
:
this
.
settingInfo
.
bioIntroTw
o
}
}
if
(
this
.
uploadType
==
'switch'
)
{
...
...
@@ -255,8 +255,8 @@ export class MySettingDetailComponent implements OnInit {
}
controlWord
(
event
)
{
if
(
this
.
settingInfo
.
bioIntro
)
{
if
(
this
.
settingInfo
.
bioIntro
.
length
>=
200
)
{
if
(
this
.
settingInfo
.
bioIntro
Two
)
{
if
(
this
.
settingInfo
.
bioIntro
Two
.
length
>=
200
)
{
// 删除:46 退格:8 回车:13
if
(
!
(
event
.
which
==
'46'
||
event
.
which
==
'8'
||
event
.
which
==
'13'
))
{
event
.
returnValue
=
false
;
...
...
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