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-08-09 14:28:10 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
9693dc42ecbe5f230177a36c3772ae95a4810c5f
9693dc42
1 parent
b9cd8787
feat:屏蔽编辑资料,意见反馈相册选择
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
74 additions
and
74 deletions
sight_harmony/features/wdComponent/src/main/ets/components/FeedBackActivity.ets
sight_harmony/features/wdComponent/src/main/ets/components/page/EditUserInfoPage.ets
sight_harmony/features/wdComponent/src/main/ets/components/FeedBackActivity.ets
View file @
9693dc4
...
...
@@ -160,61 +160,61 @@ export struct FeedBackActivity {
columns:5,
}) {
ForEach(this.pics, (feedbackImageItem: PhotoListBean, index: number) => {
GridCol({
}) {
if(1 == feedbackImageItem.itemType){
Image($r('app.media.feekback_add'))
.width(60)
.height(60)
.onClick(async (event: ClickEvent) => {
if(await FastClickUtil.isMinDelayTime()){
return
}
this.callFilePickerSelectImage();
})
}else{
Stack({alignContent: Alignment.TopEnd}) {
Image(feedbackImageItem.picPath)
.width(60)
.height(60)
.borderRadius($r('app.float.margin_1'))
.onClick(async (event: ClickEvent) => {
if(await FastClickUtil.isMinDelayTime()){
return
}
//查看图片 fixme 去除添加按钮
ProcessUtils.gotoMultiPictureListPage(this.pics, index)
})
Image($r('app.media.icon_feekback_delete'))
.width(24)
.height(24)
.borderRadius($r('app.float.margin_1'))
.onClick(async (event: ClickEvent) => {
if(await FastClickUtil.isMinDelayTime()){
return
}
let temp: PhotoListBean[] = [] as PhotoListBean[]
temp.length = this.pics.length - 1;
let tempIndex = 0;
for (let index = 0; index < this.pics.length; index++) {
const element = this.pics[index];
if(!StringUtils.isEmpty(element.picPath) && element.id != feedbackImageItem.id){
temp[tempIndex] = element;
tempIndex = tempIndex+1
}
}
if(tempIndex < 3){
temp[tempIndex] = this.addPic
}
this.pics = temp
})
}
.width(60)
.height(60)
}
}
})
// ForEach(this.pics, (feedbackImageItem: PhotoListBean, index: number) => {
// GridCol({
// }) {
// if(1 == feedbackImageItem.itemType){
// Image($r('app.media.feekback_add'))
// .width(60)
// .height(60)
// .onClick(async (event: ClickEvent) => {
// if(await FastClickUtil.isMinDelayTime()){
// return
// }
// this.callFilePickerSelectImage();
// })
// }else{
// Stack({alignContent: Alignment.TopEnd}) {
// Image(feedbackImageItem.picPath)
// .width(60)
// .height(60)
// .borderRadius($r('app.float.margin_1'))
// .onClick(async (event: ClickEvent) => {
// if(await FastClickUtil.isMinDelayTime()){
// return
// }
// //查看图片 fixme 去除添加按钮
// ProcessUtils.gotoMultiPictureListPage(this.pics, index)
// })
// Image($r('app.media.icon_feekback_delete'))
// .width(24)
// .height(24)
// .borderRadius($r('app.float.margin_1'))
// .onClick(async (event: ClickEvent) => {
// if(await FastClickUtil.isMinDelayTime()){
// return
// }
// let temp: PhotoListBean[] = [] as PhotoListBean[]
// temp.length = this.pics.length - 1;
// let tempIndex = 0;
// for (let index = 0; index < this.pics.length; index++) {
// const element = this.pics[index];
// if(!StringUtils.isEmpty(element.picPath) && element.id != feedbackImageItem.id){
// temp[tempIndex] = element;
// tempIndex = tempIndex+1
// }
// }
// if(tempIndex < 3){
// temp[tempIndex] = this.addPic
// }
// this.pics = temp
// })
// }
// .width(60)
// .height(60)
// }
// }
// })
}
.margin({bottom: $r('app.float.vp_12'), right: $r('app.float.vp_12'),left: $r('app.float.vp_12')})
Text(){
...
...
sight_harmony/features/wdComponent/src/main/ets/components/page/EditUserInfoPage.ets
View file @
9693dc4
...
...
@@ -145,30 +145,30 @@ struct EditUserInfoPage {
.height(84)
.borderRadius(42)
if (this.headerImg.length === 0){
Image('')
.width('84')
.height('84')
.backgroundColor(Color.Gray)
.opacity(0.7)
.borderRadius(5)
.borderRadius(42)
Image($r('app.media.seletct_photo'))
.width('30')
.height('30')
}
// if (this.headerImg.length === 0){
// Image('')
// .width('84')
// .height('84')
// .backgroundColor(Color.Gray)
// .opacity(0.7)
// .borderRadius(5)
// .borderRadius(42)
//
// Image($r('app.media.seletct_photo'))
// .width('30')
// .height('30')
// }
}.margin({top:20})
.onClick(()=>{
this.photoDialogController.open()
//
this.photoDialogController.open()
})
///目前不支持头像上传,暂时屏蔽
Button('点击更换头像')
.fontColor(Color.Gray)
.fontSize(15)
.backgroundColor(Color.White)
.margin({top:10,bottom:20})
// Button('点击更换头像')
// .fontColor(Color.Gray)
// .fontSize(15)
// .backgroundColor(Color.White)
// .margin({top:10,bottom:20})
List({}){
ForEach(this.listData,(item:EditListInfo,index:number) =>{
...
...
Please
register
or
login
to post a comment