Commit 4050b112 authored by ly's avatar ly

华为添加权限弹窗说明

parent c34b86a7
......@@ -130,9 +130,31 @@
this.desQuest=e.detail.value
},
uploadImg(){
const self=this
const sureVal=uni.getStorageSync('sureVal')
if(sureVal){
self.chooseShow()
}else{
uni.showModal({
title: '提示',
content: '该“鉴定评估”功能需要获取您的照片上传权限,以便于您上传宝贝进行鉴定!',
showCancel: false,//没有取消按钮的弹框
confirmText: '确定',
success: function (res) {
if (res.confirm) {
console.log('用户点击确定');
self.chooseShow()
}
}
});
}
},
chooseShow(){
const self=this
if(self.newList.length==3){
this.toast('最多上传三张哦')
self.toast('最多上传三张哦')
return false
}
//上传图片
......@@ -142,7 +164,8 @@
sourceType: ['album'], //从相册选择
success: function(res) {
for(let i=0; i<res.tempFilePaths.length;i++){
self.getoss(res.tempFilePaths[i])
self.getoss(res.tempFilePaths[i])
}
}
......@@ -159,6 +182,7 @@
self.$request('/pawn/oss','GET',params).then((res)=>{
console.log(res,'getOssToken')
const { oss }=res.result
uni.setStorageSync('sureVal','1')
self.uploadimage(oss,fileNames)
})
},
......
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment