Commit 95f0ce8e by Sweet Zhang

自我介绍新增字段

parent d067f64e
......@@ -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,
) {
}
}
......@@ -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.bioIntroTwo" placeholder="赶紧介绍一下你自己吧!"
maxlength="200" style="border: none;" (keydown)="controlWord($event)"></textarea>
<span class="maxWord">{{ 200- (settingInfo.bioIntro)?.length}}</span>
<span class="maxWord">{{ 200- (settingInfo.bioIntroTwo)?.length}}</span>
<div class="saveBtn" (click)="mySettingSave()">确定</div>
</div>
......
......@@ -225,7 +225,7 @@ export class MySettingDetailComponent implements OnInit {
param = {
settingSave: 'intro',
practitionerId: JSON.parse(localStorage.getItem('lifeCustomerInfo'))['practitionerId'],
bioIntro: this.settingInfo.bioIntro
bioIntroTwo: this.settingInfo.bioIntroTwo
}
}
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.bioIntroTwo) {
if (this.settingInfo.bioIntroTwo.length >= 200) {
// 删除:46 退格:8 回车:13
if (!(event.which == '46' || event.which == '8' || event.which == '13')) {
event.returnValue = false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment