小程序定制开发IOS12及以上版本调用拍照接口,重复拍照会出现刷新页面的bug

微信小程序,微信公开课,小程序定制开发IOS12及以上版本调用拍照接口,重复拍照会出现刷新页面的bug 微信公开课

微信公开课小程序热门讨论关于「小程序定制开发IOS12及以上版本调用拍照接口,重复拍照会出现刷新页面的bug」的小程序开发问题
补充:小程序定制开发IOS12及以上版本调用拍照接口,重复拍照会出现刷新页面的bug
展开:当前Bug的表现asyncimageOrLocation(index,cameraOnly){ letitem=thispicture[index] if(itemrestrictiveConditionDtorequireGeographyInfo){   thisgetLocationRequired(index,cameraOnly) }else{   thischooseImage(index,cameraOnly) }},chooseImage(index,cameraOnly){ letvue=thisletsourceType=cameraOnly?[camera]:[album,camera]wechatlibchooseImage({   count:1, sizeType:[compressed], sourceType:[camera], success:asyncfunction(res){     vue$set(vuepicture[index],src,reslocalIds[0])     vueuploadImage(reslocalIds[0],index)   }, fail:function(){     vuetoast(选择图片失败)   } })},getLocalImageDate(localID,index){ letvue=thiswechatlibgetLocalImgData({   localId:localID, success:function(res){     vuepicture[index]src=reslocalData   }, fail:function(){     vuetoast(获取本地图片失败)   } })},asyncgetLocationRequired(index,cameraOnly){ thisindicator(地理位置获取中) letvue=thisletindicator=truesetTimeout(()={   if(indicator){     Indicatorclose()     vuemessageBoxB()   } },5000) awaitwechatlibgetLocation({   type:wgs84, success:function(res){     vuepicture[index]location=reslatitudetoString()+,+reslongitudetoString()     Indicatorclose()     indicator=false  vuechooseImage(index,cameraOnly)   }, fail:function(res){     alert(JSONstringify(res))     vuemessageBoxB()     Indicatorclose()     indicator=false }, cancel:function(){     vuemessageBoxA()     Indicatorclose()     indicator=false } })},asyncuploadImage(localId,index){ letvue=thisvueindicator(上传中) awaitwechatlibuploadImage({   localId:localId, isShowProgressTips:0, success:asyncfunction(res){     vuepicture[index]value=awaitapipostImage(vue$routeparamsid,resserverId)     letu=navigatoruserAgent  letisIOS=!!umatch((i[展开:;]+;(U;)?CPU+MacOSX)     if(isIOS){       vuegetLocalImageDate(localId,index)     }     Indicatorclose()   }, fail:function(){     vuetoast(图片上传失败,请重试)     Indicatorclose()   } })},预期表现点击拍照先获取地理位置,重复点击拍照,拍照完成,点击使用照片的时候,偶尔会出现页面刷新的情况复现路径提供一个最简复现Demo<divvfor=(item,index)inpicture:key=itemidclass=img_container<divclass=pic <divclass=img@click=imageOrLocation(index,itemrestrictiveConditionDtocameraOnly)  <imgvshow=itemsrc:src=itemsrc <div <pclass=title{{itemname}}<p<div<divJS在上面即速小程序:你好,请提供一下出现问题的机型和微信版本,以及能复现问题的简单代码片段(https:developersweixinqqcomminiprogramdevdevtoolsminicodehtml),ios系统版本是
更多有关「小程序定制开发IOS12及以上版本调用拍照接口,重复拍照会出现刷新页面的bug」的讨论可以前往微信公开课小程序参与互动哦!了解更多

「小程序定制开发IOS12及以上版本调用拍照接口,重复拍照会出现刷新页面的bug」热门讨论订阅

微信小程序,微信公开课,小程序定制开发IOS12及以上版本调用拍照接口,重复拍照会出现刷新页面的bug
订阅小程序

方法1:微信扫描微信公开课小程序码即可订阅热门讨论「小程序定制开发IOS12及以上版本调用拍照接口,重复拍照会出现刷新页面的bug」

方法2:微信搜索微信公开课小程序名称进入,即可订阅热门讨论「小程序定制开发IOS12及以上版本调用拍照接口,重复拍照会出现刷新页面的bug」

方法3:微信网页访问即速商店,长按识别微信公开课小程序码即可订阅热门讨论「小程序定制开发IOS12及以上版本调用拍照接口,重复拍照会出现刷新页面的bug」

微信公开课小程序热门讨论「小程序定制开发IOS12及以上版本调用拍照接口,重复拍照会出现刷新页面的bug」由微信公开课原创摘录于微信小程序商店shop.jisuapp.cn,转载请注明出处。

微信公开课热门讨论「小程序定制开发IOS12及以上版本调用拍照接口,重复拍照会出现刷新页面的bug」由微信公开课开发者向微信用户提供,并对本服务内容、数据资料及其运营行为等真实性、合法性及有效性承担全部责任。