Showing
3 changed files
with
4 additions
and
5 deletions
| @@ -100,7 +100,7 @@ export class HttpUrlUtils { | @@ -100,7 +100,7 @@ export class HttpUrlUtils { | ||
| 100 | */ | 100 | */ |
| 101 | static readonly APPOINTMENT_editUserDetail_PATH: string = "/api/rmrb-user-center/user/zh/c/editUserDetail"; | 101 | static readonly APPOINTMENT_editUserDetail_PATH: string = "/api/rmrb-user-center/user/zh/c/editUserDetail"; |
| 102 | /** | 102 | /** |
| 103 | - * 资料编辑 更新普通用户名 | 103 | + * 资料编辑 更新普通用户名(用户名、身份证号、邮箱、手机号修改url) |
| 104 | */ | 104 | */ |
| 105 | static readonly APPOINTMENT_editUserDetail1_PATH: string = "/api/rmrb-user-center/user/zh/c/completeUserInfo"; | 105 | static readonly APPOINTMENT_editUserDetail1_PATH: string = "/api/rmrb-user-center/user/zh/c/completeUserInfo"; |
| 106 | /** | 106 | /** |
| @@ -103,8 +103,7 @@ struct EditUserInfoPage { | @@ -103,8 +103,7 @@ struct EditUserInfoPage { | ||
| 103 | .width('100%') | 103 | .width('100%') |
| 104 | .onClick(()=>{ | 104 | .onClick(()=>{ |
| 105 | if (i === 1){ | 105 | if (i === 1){ |
| 106 | - | ||
| 107 | - | 106 | + // TODO 缺失特殊用户判断 |
| 108 | let params: editModelParams = { | 107 | let params: editModelParams = { |
| 109 | editContent: this.currentUserInfo.userName | 108 | editContent: this.currentUserInfo.userName |
| 110 | } | 109 | } |
| @@ -177,7 +176,6 @@ struct EditUserInfoPage { | @@ -177,7 +176,6 @@ struct EditUserInfoPage { | ||
| 177 | this.listData.push(...EditInfoViewModel.getEditListInfo(editModel)) | 176 | this.listData.push(...EditInfoViewModel.getEditListInfo(editModel)) |
| 178 | }); | 177 | }); |
| 179 | } | 178 | } |
| 180 | - | ||
| 181 | getAreaList(){ | 179 | getAreaList(){ |
| 182 | EditInfoViewModel.getAreaList(getContext(this)).then((value) =>{ | 180 | EditInfoViewModel.getAreaList(getContext(this)).then((value) =>{ |
| 183 | this.dataSource.push(...value) | 181 | this.dataSource.push(...value) |
| @@ -123,8 +123,9 @@ class EditInfoViewModel { | @@ -123,8 +123,9 @@ class EditInfoViewModel { | ||
| 123 | } else if (item.editDataType == WDEditDataModelType.WDEditDataModelType_region) { | 123 | } else if (item.editDataType == WDEditDataModelType.WDEditDataModelType_region) { |
| 124 | this.params = {province:item.userExtend.province,city:item.userExtend.city, county: item.userExtend.county ,address:item.userExtend.address} | 124 | this.params = {province:item.userExtend.province,city:item.userExtend.city, county: item.userExtend.county ,address:item.userExtend.address} |
| 125 | } | 125 | } |
| 126 | + | ||
| 126 | return new Promise((success, error) => { | 127 | return new Promise((success, error) => { |
| 127 | - this.BasePostRequest(HttpUrlUtils.APPOINTMENT_editUserDetail_PATH,this.params) | 128 | + this.BasePostRequest(item.editDataType == WDEditDataModelType.WDEditDataModelType_nickname?HttpUrlUtils.APPOINTMENT_editUserDetail1_PATH:HttpUrlUtils.APPOINTMENT_editUserDetail_PATH,this.params) |
| 128 | .then((navResDTO: ResponseDTO) => { | 129 | .then((navResDTO: ResponseDTO) => { |
| 129 | if (navResDTO.code == 0) { | 130 | if (navResDTO.code == 0) { |
| 130 | promptAction.showToast({ message: '修改成功' }) | 131 | promptAction.showToast({ message: '修改成功' }) |
-
Please register or login to post a comment