Showing
9 changed files
with
36 additions
and
12 deletions
| @@ -27,7 +27,7 @@ struct EditUserInfoPage { | @@ -27,7 +27,7 @@ struct EditUserInfoPage { | ||
| 27 | } | 27 | } |
| 28 | }), | 28 | }), |
| 29 | alignment: DialogAlignment.Bottom, | 29 | alignment: DialogAlignment.Bottom, |
| 30 | - offset:{dx:0,dy:-20} | 30 | + offset:{dx:0,dy:-20}, |
| 31 | }) | 31 | }) |
| 32 | 32 | ||
| 33 | aboutToAppear() { | 33 | aboutToAppear() { |
| @@ -97,14 +97,14 @@ struct EditUserInfoPage { | @@ -97,14 +97,14 @@ struct EditUserInfoPage { | ||
| 97 | Row(){ | 97 | Row(){ |
| 98 | Text(r.title) | 98 | Text(r.title) |
| 99 | .fontSize(15) | 99 | .fontSize(15) |
| 100 | - .fontColor(Color.Gray) | 100 | + .fontColor('#666666') |
| 101 | Blank() | 101 | Blank() |
| 102 | 102 | ||
| 103 | Text(r.subTitle) | 103 | Text(r.subTitle) |
| 104 | .textOverflow({overflow:TextOverflow.Ellipsis}) | 104 | .textOverflow({overflow:TextOverflow.Ellipsis}) |
| 105 | .maxLines(1) | 105 | .maxLines(1) |
| 106 | .fontSize(14) | 106 | .fontSize(14) |
| 107 | - .fontColor(Color.Gray) | 107 | + .fontColor(r.subTitle === '待完善'?'#999999':'#666666') |
| 108 | .padding({right:10}) | 108 | .padding({right:10}) |
| 109 | .width('70%') | 109 | .width('70%') |
| 110 | .textAlign(TextAlign.End) | 110 | .textAlign(TextAlign.End) |
| @@ -45,7 +45,7 @@ struct EditUserIntroductionPage { | @@ -45,7 +45,7 @@ struct EditUserIntroductionPage { | ||
| 45 | Divider() | 45 | Divider() |
| 46 | .margin(20) | 46 | .margin(20) |
| 47 | 47 | ||
| 48 | - Text('1、账号中(头像、昵称等)不允许含有违禁违规内容;\n2、最多60个字,只能输入中文、数字、英文字母。') | 48 | + Text('1、账号中(头像、昵称等)不允许含有违禁违规内容;\n2、最多60个字,只能输入中文、数字、英文字母。') |
| 49 | .fontSize(13) | 49 | .fontSize(13) |
| 50 | .padding(12) | 50 | .padding(12) |
| 51 | .fontColor(Color.Gray).lineHeight(25) | 51 | .fontColor(Color.Gray).lineHeight(25) |
| @@ -54,6 +54,8 @@ struct EditUserIntroductionPage { | @@ -54,6 +54,8 @@ struct EditUserIntroductionPage { | ||
| 54 | .type(ButtonType.Normal) | 54 | .type(ButtonType.Normal) |
| 55 | .width('90%') | 55 | .width('90%') |
| 56 | .backgroundColor('#ED2800') | 56 | .backgroundColor('#ED2800') |
| 57 | + .opacity(this.numCount === 0 ? 0.6 : 1) | ||
| 58 | + .fontColor(this.numCount === 0 ? '#999999' : Color.White) | ||
| 57 | .borderRadius(5) | 59 | .borderRadius(5) |
| 58 | .margin(30) | 60 | .margin(30) |
| 59 | .onClick(()=>{ | 61 | .onClick(()=>{ |
| @@ -47,7 +47,7 @@ struct EditUserNikeNamePage { | @@ -47,7 +47,7 @@ struct EditUserNikeNamePage { | ||
| 47 | Divider() | 47 | Divider() |
| 48 | .margin(20) | 48 | .margin(20) |
| 49 | 49 | ||
| 50 | - Text('1、账号中(头像、昵称等)不允许含有违禁违规内容;\n2、最多16个字,只能输入中文、数字、英文字母。') | 50 | + Text('1、账号中(头像、昵称等)不允许含有违禁违规内容;\n2、最多16个字,只能输入中文、数字、英文字母。') |
| 51 | .fontSize(13) | 51 | .fontSize(13) |
| 52 | .padding(12) | 52 | .padding(12) |
| 53 | .fontColor(Color.Gray).lineHeight(25) | 53 | .fontColor(Color.Gray).lineHeight(25) |
| @@ -56,6 +56,8 @@ struct EditUserNikeNamePage { | @@ -56,6 +56,8 @@ struct EditUserNikeNamePage { | ||
| 56 | .type(ButtonType.Normal) | 56 | .type(ButtonType.Normal) |
| 57 | .width('90%') | 57 | .width('90%') |
| 58 | .backgroundColor('#ED2800') | 58 | .backgroundColor('#ED2800') |
| 59 | + .opacity(this.numCount === 0 ? 0.6 : 1) | ||
| 60 | + .fontColor(this.numCount === 0 ? '#999999' : Color.White) | ||
| 59 | .borderRadius(5) | 61 | .borderRadius(5) |
| 60 | .margin(30) | 62 | .margin(30) |
| 61 | .onClick(()=>{ | 63 | .onClick(()=>{ |
| @@ -11,6 +11,7 @@ import { CustomBottomFuctionUI } from '../view/CustomBottomFuctionUI'; | @@ -11,6 +11,7 @@ import { CustomBottomFuctionUI } from '../view/CustomBottomFuctionUI'; | ||
| 11 | import { BigPicCardComponent } from '../view/BigPicCardComponent'; | 11 | import { BigPicCardComponent } from '../view/BigPicCardComponent'; |
| 12 | import { contentListItemParams } from '../../model/MyCollectionModel'; | 12 | import { contentListItemParams } from '../../model/MyCollectionModel'; |
| 13 | import { CustomPullToRefresh } from '../reusable/CustomPullToRefresh'; | 13 | import { CustomPullToRefresh } from '../reusable/CustomPullToRefresh'; |
| 14 | +import { MyCustomDialog } from '../reusable/MyCustomDialog' | ||
| 14 | 15 | ||
| 15 | @Entry | 16 | @Entry |
| 16 | @Component | 17 | @Component |
| @@ -26,6 +27,19 @@ struct MyCollectionListPage { | @@ -26,6 +27,19 @@ struct MyCollectionListPage { | ||
| 26 | @State currentPage: number = 1; | 27 | @State currentPage: number = 1; |
| 27 | private scroller: Scroller = new Scroller(); | 28 | private scroller: Scroller = new Scroller(); |
| 28 | 29 | ||
| 30 | + dialogController: CustomDialogController = new CustomDialogController({ | ||
| 31 | + builder: MyCustomDialog({ | ||
| 32 | + confirm: () => { | ||
| 33 | + this.deleteDatas() | ||
| 34 | + }, | ||
| 35 | + titleShow:false, | ||
| 36 | + tipValue: this.isAllSelect?'是否确认清空?':'确认删除'+this.deleteNum.toString()+'条收藏' | ||
| 37 | + }), | ||
| 38 | + autoCancel: true, | ||
| 39 | + alignment: DialogAlignment.Center, | ||
| 40 | + customStyle: true | ||
| 41 | + }) | ||
| 42 | + | ||
| 29 | aboutToAppear(){ | 43 | aboutToAppear(){ |
| 30 | this.getData() | 44 | this.getData() |
| 31 | } | 45 | } |
| @@ -73,7 +87,7 @@ struct MyCollectionListPage { | @@ -73,7 +87,7 @@ struct MyCollectionListPage { | ||
| 73 | this.allSelectDatas(isAllSelect) | 87 | this.allSelectDatas(isAllSelect) |
| 74 | }, | 88 | }, |
| 75 | confirmCallback:()=>{ | 89 | confirmCallback:()=>{ |
| 76 | - this.deleteDatas() | 90 | + this.dialogController.open() |
| 77 | } | 91 | } |
| 78 | }) | 92 | }) |
| 79 | } | 93 | } |
| @@ -9,7 +9,7 @@ export struct AreaPickerDialog { | @@ -9,7 +9,7 @@ export struct AreaPickerDialog { | ||
| 9 | @Provide currentSecondBean: AreaListManageModel = new AreaListManageModel('','','',[]) | 9 | @Provide currentSecondBean: AreaListManageModel = new AreaListManageModel('','','',[]) |
| 10 | @Provide currentThirdBean: AreaListManageModel = new AreaListManageModel('','','',[]) | 10 | @Provide currentThirdBean: AreaListManageModel = new AreaListManageModel('','','',[]) |
| 11 | controller: CustomDialogController | 11 | controller: CustomDialogController |
| 12 | - title: string = '地区选择' | 12 | + title: string = '修改地区' |
| 13 | @Provide dataSource: AreaListModel[] = [] | 13 | @Provide dataSource: AreaListModel[] = [] |
| 14 | result: JSON[] = []; | 14 | result: JSON[] = []; |
| 15 | confirmCallback: (province:string,city:string,county:string,address:string) => void = () => { | 15 | confirmCallback: (province:string,city:string,county:string,address:string) => void = () => { |
| @@ -33,7 +33,7 @@ export struct AreaPickerDialog { | @@ -33,7 +33,7 @@ export struct AreaPickerDialog { | ||
| 33 | 33 | ||
| 34 | Blank() | 34 | Blank() |
| 35 | 35 | ||
| 36 | - Button('确定',{type:ButtonType.Normal}) | 36 | + Button('提交',{type:ButtonType.Normal}) |
| 37 | .onClick(()=> { | 37 | .onClick(()=> { |
| 38 | this.controller.close() | 38 | this.controller.close() |
| 39 | this.confirmCallback(this.currentFirst.label,this.currentSecondBean.label,this.currentThirdBean.label,this.currentFirst.label+this.currentSecondBean.label+this.currentThirdBean.label); | 39 | this.confirmCallback(this.currentFirst.label,this.currentSecondBean.label,this.currentThirdBean.label,this.currentFirst.label+this.currentSecondBean.label+this.currentThirdBean.label); |
| @@ -28,9 +28,11 @@ export struct FirstLevelComponent { | @@ -28,9 +28,11 @@ export struct FirstLevelComponent { | ||
| 28 | this.currentFirst = EditInfoViewModel.getAreaListManageModel(this.dataSource[index as number]) | 28 | this.currentFirst = EditInfoViewModel.getAreaListManageModel(this.dataSource[index as number]) |
| 29 | }) | 29 | }) |
| 30 | .backgroundColor(Color.White) | 30 | .backgroundColor(Color.White) |
| 31 | - .border({color:'#e2e2e2',width:{right:0.5}}) | 31 | + // .border({color:'#e2e2e2',width:{right:0.5}}) |
| 32 | .width('100%') | 32 | .width('100%') |
| 33 | .layoutWeight(1) | 33 | .layoutWeight(1) |
| 34 | + .selectedTextStyle({color:'#666666'}) | ||
| 35 | + .textStyle({color:'#999999'}) | ||
| 34 | } | 36 | } |
| 35 | } | 37 | } |
| 36 | .justifyContent(FlexAlign.Center) | 38 | .justifyContent(FlexAlign.Center) |
| @@ -21,9 +21,11 @@ export struct SecondLevelComponent { | @@ -21,9 +21,11 @@ export struct SecondLevelComponent { | ||
| 21 | this.currentSecondBean = EditInfoViewModel.getAreaListManageModel(this.currentFirst.children[index as number]) | 21 | this.currentSecondBean = EditInfoViewModel.getAreaListManageModel(this.currentFirst.children[index as number]) |
| 22 | }) | 22 | }) |
| 23 | .backgroundColor(Color.White) | 23 | .backgroundColor(Color.White) |
| 24 | - .border({color:'#e2e2e2',width:{right:0.5}}) | 24 | + // .border({color:'#e2e2e2',width:{right:0.5}}) |
| 25 | .width('100%') | 25 | .width('100%') |
| 26 | .layoutWeight(1) | 26 | .layoutWeight(1) |
| 27 | + .selectedTextStyle({color:'#666666'}) | ||
| 28 | + .textStyle({color:'#999999'}) | ||
| 27 | } | 29 | } |
| 28 | } | 30 | } |
| 29 | .justifyContent(FlexAlign.Center) | 31 | .justifyContent(FlexAlign.Center) |
| @@ -22,9 +22,11 @@ export struct ThirdLevelComponent { | @@ -22,9 +22,11 @@ export struct ThirdLevelComponent { | ||
| 22 | this.currentThirdBean = EditInfoViewModel.getAreaListManageModel(this.currentSecondBean.children[index as number]) | 22 | this.currentThirdBean = EditInfoViewModel.getAreaListManageModel(this.currentSecondBean.children[index as number]) |
| 23 | }) | 23 | }) |
| 24 | .backgroundColor(Color.White) | 24 | .backgroundColor(Color.White) |
| 25 | - .border({color:'#e2e2e2',width:{right:0.5}}) | 25 | + // .border({color:'#e2e2e2',width:{right:0.5}}) |
| 26 | .width('100%') | 26 | .width('100%') |
| 27 | .layoutWeight(1) | 27 | .layoutWeight(1) |
| 28 | + .selectedTextStyle({color:'#666666'}) | ||
| 29 | + .textStyle({color:'#999999'}) | ||
| 28 | } | 30 | } |
| 29 | } | 31 | } |
| 30 | .justifyContent(FlexAlign.Center) | 32 | .justifyContent(FlexAlign.Center) |
| @@ -125,7 +125,7 @@ class EditInfoViewModel { | @@ -125,7 +125,7 @@ class EditInfoViewModel { | ||
| 125 | this.BasePostRequest(item.editDataType == WDEditDataModelType.WDEditDataModelType_nickname?HttpUrlUtils.APPOINTMENT_editUserDetail1_PATH:HttpUrlUtils.APPOINTMENT_editUserDetail_PATH,this.params) | 125 | this.BasePostRequest(item.editDataType == WDEditDataModelType.WDEditDataModelType_nickname?HttpUrlUtils.APPOINTMENT_editUserDetail1_PATH:HttpUrlUtils.APPOINTMENT_editUserDetail_PATH,this.params) |
| 126 | .then((navResDTO: ResponseDTO) => { | 126 | .then((navResDTO: ResponseDTO) => { |
| 127 | if (navResDTO.code == 0) { | 127 | if (navResDTO.code == 0) { |
| 128 | - promptAction.showToast({ message: '修改成功' }) | 128 | + promptAction.showToast({ message: '您的资料已提交' }) |
| 129 | success(navResDTO) | 129 | success(navResDTO) |
| 130 | }else { | 130 | }else { |
| 131 | promptAction.showToast({ message: navResDTO.message }) | 131 | promptAction.showToast({ message: navResDTO.message }) |
-
Please register or login to post a comment