diff --git a/weapp/src/packages/patrol/index.jsx b/weapp/src/packages/patrol/index.jsx index 3b338d99..79b7fa38 100644 --- a/weapp/src/packages/patrol/index.jsx +++ b/weapp/src/packages/patrol/index.jsx @@ -571,7 +571,10 @@ const Index = () => { maxDuration: 15, camera: 'back', success(res) { + console.log(res,'上传的视频'); const tempFilePaths = res.tempFiles[0].tempFilePath + + setVideo(res.tempFiles[0].tempFilePath) let token = getState('token') || Taro.getStorageSync('token') Taro.uploadFile({ url: `${baseUrl}${postImage()}?token=${token}`, @@ -580,7 +583,7 @@ const Index = () => { success: (ress) => { Taro.hideLoading(); if (ress.statusCode == 200) { - setVideo(res.tempFiles[0].tempFilePath) + // setVideo(res.tempFiles[0].tempFilePath) } else { Taro.showToast({ title: '上传失败,请重试', icon: 'error' }) } @@ -589,6 +592,7 @@ const Index = () => { } }) } + console.log(isView, '============'); return ( {/* { @@ -885,23 +889,28 @@ const Index = () => { } } - {/* { + { videoShow ? '' : - - } */} + } { isView ? isSuperAdmin &&