diff --git a/weapp/src/packages/patrol/index.jsx b/weapp/src/packages/patrol/index.jsx index 575e2fa6..440e3c26 100644 --- a/weapp/src/packages/patrol/index.jsx +++ b/weapp/src/packages/patrol/index.jsx @@ -572,7 +572,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}`, @@ -581,7 +584,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' }) } @@ -590,6 +593,7 @@ const Index = () => { } }) } + console.log(isView, '============'); return ( {/* { @@ -886,23 +890,28 @@ const Index = () => { } } - {/* { + { videoShow ? '' : - - } */} + } { isView ? isSuperAdmin &&