From 40a49100b269d9cb0737e5c9a08a3782058514f6 Mon Sep 17 00:00:00 2001 From: ww664853070 Date: Wed, 19 Jul 2023 09:10:29 +0800 Subject: [PATCH] =?UTF-8?q?=EF=BC=88*=EF=BC=89=E6=B7=BB=E5=8A=A0=E8=A7=86?= =?UTF-8?q?=E9=A2=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- weapp/src/packages/patrol/index.jsx | 37 ++++++++++++++++++----------- 1 file changed, 23 insertions(+), 14 deletions(-) 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 &&