Commit ece4f8ec authored by zhoucong's avatar zhoucong

123

parent c687c692
......@@ -44,7 +44,7 @@
})
},
methods: {
error(e){//视频播放出错触发函数
error(e){//视频播放出错
uni.showModal({content: e.target.errMsg,showCancel: false})
},
}
......
......@@ -109,13 +109,6 @@
})
},
fail: err => {
uni.showModal({
title: '提示',
content: err,
showCancel:false,
});
uni.hideLoading();
//拒绝授权时显示
if (err.errMsg === 'saveVideoToPhotosAlbum:fail auth deny') {
......@@ -127,10 +120,7 @@
//打开权限设置
uni.openSetting({
success: setting => {
if (setting
.authSetting[
'scope.writePhotosAlbum'
]) {
if (setting.authSetting['scope.writePhotosAlbum']) {
uni.showModal({
title: '提示',
content: '获取权限成功,再次点击下载即可保存',
......@@ -152,12 +142,6 @@
})
},
fail: err => { //下载失败
uni.showModal({
title: '提示',
content: "123"+ err.errMsg,
showCancel:false,
});
uni.hideLoading();
if (err.errMsg == 'downloadFile:fail createDownloadTask:fail url not in domain list') {
uni.showToast({
......
......@@ -32,7 +32,7 @@
<view>不遮挡面部</view>
</view>
</view>
<u-button type="success" size="medium" @click="takePhoto">开始识别</u-button>
<!-- <u-button type="success" size="medium" @click="takePhoto">开始识别</u-button> -->
</view>
</template>
......
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