Commit ece4f8ec authored by zhoucong's avatar zhoucong

123

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