wangliang_wd

feat:屏蔽编辑资料,意见反馈相册选择

@@ -160,61 +160,61 @@ export struct FeedBackActivity { @@ -160,61 +160,61 @@ export struct FeedBackActivity {
160 columns:5, 160 columns:5,
161 }) { 161 }) {
162 162
163 - ForEach(this.pics, (feedbackImageItem: PhotoListBean, index: number) => {  
164 - GridCol({  
165 - }) {  
166 - if(1 == feedbackImageItem.itemType){  
167 - Image($r('app.media.feekback_add'))  
168 - .width(60)  
169 - .height(60)  
170 - .onClick(async (event: ClickEvent) => {  
171 - if(await FastClickUtil.isMinDelayTime()){  
172 - return  
173 - }  
174 - this.callFilePickerSelectImage();  
175 - })  
176 - }else{  
177 - Stack({alignContent: Alignment.TopEnd}) {  
178 - Image(feedbackImageItem.picPath)  
179 - .width(60)  
180 - .height(60)  
181 - .borderRadius($r('app.float.margin_1'))  
182 - .onClick(async (event: ClickEvent) => {  
183 - if(await FastClickUtil.isMinDelayTime()){  
184 - return  
185 - }  
186 - //查看图片 fixme 去除添加按钮  
187 - ProcessUtils.gotoMultiPictureListPage(this.pics, index)  
188 - })  
189 - Image($r('app.media.icon_feekback_delete'))  
190 - .width(24)  
191 - .height(24)  
192 - .borderRadius($r('app.float.margin_1'))  
193 - .onClick(async (event: ClickEvent) => {  
194 - if(await FastClickUtil.isMinDelayTime()){  
195 - return  
196 - }  
197 - let temp: PhotoListBean[] = [] as PhotoListBean[]  
198 - temp.length = this.pics.length - 1;  
199 - let tempIndex = 0;  
200 - for (let index = 0; index < this.pics.length; index++) {  
201 - const element = this.pics[index];  
202 - if(!StringUtils.isEmpty(element.picPath) && element.id != feedbackImageItem.id){  
203 - temp[tempIndex] = element;  
204 - tempIndex = tempIndex+1  
205 - }  
206 - }  
207 - if(tempIndex < 3){  
208 - temp[tempIndex] = this.addPic  
209 - }  
210 - this.pics = temp  
211 - })  
212 - }  
213 - .width(60)  
214 - .height(60)  
215 - }  
216 - }  
217 - }) 163 + // ForEach(this.pics, (feedbackImageItem: PhotoListBean, index: number) => {
  164 + // GridCol({
  165 + // }) {
  166 + // if(1 == feedbackImageItem.itemType){
  167 + // Image($r('app.media.feekback_add'))
  168 + // .width(60)
  169 + // .height(60)
  170 + // .onClick(async (event: ClickEvent) => {
  171 + // if(await FastClickUtil.isMinDelayTime()){
  172 + // return
  173 + // }
  174 + // this.callFilePickerSelectImage();
  175 + // })
  176 + // }else{
  177 + // Stack({alignContent: Alignment.TopEnd}) {
  178 + // Image(feedbackImageItem.picPath)
  179 + // .width(60)
  180 + // .height(60)
  181 + // .borderRadius($r('app.float.margin_1'))
  182 + // .onClick(async (event: ClickEvent) => {
  183 + // if(await FastClickUtil.isMinDelayTime()){
  184 + // return
  185 + // }
  186 + // //查看图片 fixme 去除添加按钮
  187 + // ProcessUtils.gotoMultiPictureListPage(this.pics, index)
  188 + // })
  189 + // Image($r('app.media.icon_feekback_delete'))
  190 + // .width(24)
  191 + // .height(24)
  192 + // .borderRadius($r('app.float.margin_1'))
  193 + // .onClick(async (event: ClickEvent) => {
  194 + // if(await FastClickUtil.isMinDelayTime()){
  195 + // return
  196 + // }
  197 + // let temp: PhotoListBean[] = [] as PhotoListBean[]
  198 + // temp.length = this.pics.length - 1;
  199 + // let tempIndex = 0;
  200 + // for (let index = 0; index < this.pics.length; index++) {
  201 + // const element = this.pics[index];
  202 + // if(!StringUtils.isEmpty(element.picPath) && element.id != feedbackImageItem.id){
  203 + // temp[tempIndex] = element;
  204 + // tempIndex = tempIndex+1
  205 + // }
  206 + // }
  207 + // if(tempIndex < 3){
  208 + // temp[tempIndex] = this.addPic
  209 + // }
  210 + // this.pics = temp
  211 + // })
  212 + // }
  213 + // .width(60)
  214 + // .height(60)
  215 + // }
  216 + // }
  217 + // })
218 } 218 }
219 .margin({bottom: $r('app.float.vp_12'), right: $r('app.float.vp_12'),left: $r('app.float.vp_12')}) 219 .margin({bottom: $r('app.float.vp_12'), right: $r('app.float.vp_12'),left: $r('app.float.vp_12')})
220 Text(){ 220 Text(){
@@ -145,30 +145,30 @@ struct EditUserInfoPage { @@ -145,30 +145,30 @@ struct EditUserInfoPage {
145 .height(84) 145 .height(84)
146 .borderRadius(42) 146 .borderRadius(42)
147 147
148 - if (this.headerImg.length === 0){  
149 - Image('')  
150 - .width('84')  
151 - .height('84')  
152 - .backgroundColor(Color.Gray)  
153 - .opacity(0.7)  
154 - .borderRadius(5)  
155 - .borderRadius(42)  
156 -  
157 - Image($r('app.media.seletct_photo'))  
158 - .width('30')  
159 - .height('30')  
160 - } 148 + // if (this.headerImg.length === 0){
  149 + // Image('')
  150 + // .width('84')
  151 + // .height('84')
  152 + // .backgroundColor(Color.Gray)
  153 + // .opacity(0.7)
  154 + // .borderRadius(5)
  155 + // .borderRadius(42)
  156 + //
  157 + // Image($r('app.media.seletct_photo'))
  158 + // .width('30')
  159 + // .height('30')
  160 + // }
161 }.margin({top:20}) 161 }.margin({top:20})
162 .onClick(()=>{ 162 .onClick(()=>{
163 - this.photoDialogController.open() 163 + // this.photoDialogController.open()
164 }) 164 })
165 165
166 ///目前不支持头像上传,暂时屏蔽 166 ///目前不支持头像上传,暂时屏蔽
167 - Button('点击更换头像')  
168 - .fontColor(Color.Gray)  
169 - .fontSize(15)  
170 - .backgroundColor(Color.White)  
171 - .margin({top:10,bottom:20}) 167 + // Button('点击更换头像')
  168 + // .fontColor(Color.Gray)
  169 + // .fontSize(15)
  170 + // .backgroundColor(Color.White)
  171 + // .margin({top:10,bottom:20})
172 172
173 List({}){ 173 List({}){
174 ForEach(this.listData,(item:EditListInfo,index:number) =>{ 174 ForEach(this.listData,(item:EditListInfo,index:number) =>{