Toggle navigation
Toggle navigation
This project
Loading...
Sign in
developOne
/
harmonyPool
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
wangliang_wd
2024-07-19 10:23:33 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
1acb60c17269249453edf2eb3d38f3f15ad7848d
1acb60c1
1 parent
34cc9334
feat:优化人民号编辑资料逻辑
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
48 additions
and
9 deletions
sight_harmony/features/wdComponent/src/main/ets/components/page/EditUserInfoPage.ets
sight_harmony/features/wdComponent/src/main/ets/model/EditInfoModel.ets
sight_harmony/products/phone/src/main/ets/pages/launchPage/LaunchAdvertisingPage.ets
sight_harmony/features/wdComponent/src/main/ets/components/page/EditUserInfoPage.ets
View file @
1acb60c
...
...
@@ -46,7 +46,7 @@ struct EditUserInfoPage {
this.currentUserInfo.editDataType = WDEditDataModelType.WDEditDataModelType_region
this.updateEditModel()
this.getAreaIndex()
//
this.getAreaIndex()
}
}),
alignment: DialogAlignment.Bottom,
...
...
@@ -231,7 +231,9 @@ struct EditUserInfoPage {
}
WDRouterRule.jumpWithPage(WDRouterPage.editUserIntroductionPage,params)
}else if (i === 3){
if (this.dataSource.length > 0) {
this.dialogController.open()
}
} else if (i === 4) {
this.dateDialogController.open()
}else if(i === 5){
...
...
@@ -287,14 +289,16 @@ struct EditUserInfoPage {
this.getAreaList()
}else {
EditInfoViewModel.queryPeopleAccountOwnerInfo(getContext(this)).then((peopleItem) => {
EditInfoViewModel.queryAccountOwnerInfo(getContext(this)).then((editM) => {
this.listData = []
editM.userExtend.introduction = peopleItem.introduction
editM.userName = peopleItem.userName
this.currentUserInfo = new editModel()
this.currentUserInfo.userExtend.introduction = peopleItem.introduction
this.currentUserInfo.userExtend.creatorId = peopleItem.creatorId
this.currentUserInfo.userName = peopleItem.userName
this.headerImg = peopleItem.headPhotoUrl
this.currentUserInfo = editM as editModel;
this.listData.push(...EditInfoViewModel.getEditListInfo(editM))
});
this.currentUserInfo.userType = Number(this.userType)
this.currentUserInfo.userExtend.districtCode = peopleItem.district
this.currentUserInfo.userExtend.cityCode = peopleItem.city
this.currentUserInfo.userExtend.provinceCode = peopleItem.province
// this.listData.push(...EditInfoViewModel.getEditListInfo(this.currentUserInfo))
this.getAreaList()
});
}
...
...
@@ -308,6 +312,7 @@ struct EditUserInfoPage {
}
getAreaIndex(){
if (this.userType === '1'){
///地区选择器当前位置
if (this.currentUserInfo.userExtend.province.length > 0) {
this.dataSource.forEach((element,index) => {
...
...
@@ -328,5 +333,33 @@ struct EditUserInfoPage {
}
});
}
}else {
///地区选择器当前位置
if (this.currentUserInfo.userExtend.provinceCode.length > 0) {
this.dataSource.forEach((element,index) => {
if (element.code === this.currentUserInfo.userExtend.provinceCode) {
this.firstSelect = index
this.currentUserInfo.userExtend.province = element.label
let currentFirst = EditInfoViewModel.getAreaListManageModel(element)
currentFirst.children.forEach((element,index) => {
if (element.code === this.currentUserInfo.userExtend.cityCode) {
this.secondSelect = index
this.currentUserInfo.userExtend.city = element.label
let currentSecondBean = EditInfoViewModel.getAreaListManageModel(element)
currentSecondBean.children.forEach((element,index) => {
if (element.code === this.currentUserInfo.userExtend.districtCode) {
this.currentUserInfo.userExtend.county = element.label
this.thirdSelect = index
}
});
}
});
}
});
this.listData = []
this.currentUserInfo.userExtend.address = this.currentUserInfo.userExtend.province + this.currentUserInfo.userExtend.city + this.currentUserInfo.userExtend.county
this.listData.push(...EditInfoViewModel.getEditListInfo(this.currentUserInfo))
}
}
}
}
...
...
sight_harmony/features/wdComponent/src/main/ets/model/EditInfoModel.ets
View file @
1acb60c
...
...
@@ -137,4 +137,10 @@ export class peopleItemModel{
headPhotoUrl:string = ''
userType:number = 1
creatorId:string = ''
district:string = ''
province:string = ''
city:string = ''
}
\ No newline at end of file
...
...
sight_harmony/products/phone/src/main/ets/pages/launchPage/LaunchAdvertisingPage.ets
View file @
1acb60c
...
...
@@ -67,7 +67,7 @@ struct LaunchAdvertisingPage {
controller: this.controller
}).controls(false)
.autoPlay(true)
.objectFit(ImageFit.Contain
) //设置视频适配模式
// .objectFit(ImageFit.Fill
) //设置视频适配模式
.width('100%')
.height('100%')
}else {
...
...
Please
register
or
login
to post a comment