From 24eaead0689ebb238fa4009827eca2d32ee0c398 Mon Sep 17 00:00:00 2001 From: ww664853070 Date: Thu, 20 Jul 2023 17:13:16 +0800 Subject: [PATCH] =?UTF-8?q?=EF=BC=88fixed=EF=BC=8911886=20=E5=B0=8F?= =?UTF-8?q?=E7=A8=8B=E5=BA=8F-=E5=BC=82=E5=B8=B8=E5=8F=8D=E9=A6=88?= =?UTF-8?q?=E5=B7=B2=E5=A4=84=E7=90=86=E7=9A=84=E8=AF=A6=E6=83=85=E4=B8=8D?= =?UTF-8?q?=E5=B1=95=E7=A4=BA=E5=9B=9E=E5=A4=8D=E8=AF=A6=E6=83=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- weapp/src/packages/patrol/index.jsx | 29 ++++++++++++++--------------- 1 file changed, 14 insertions(+), 15 deletions(-) diff --git a/weapp/src/packages/patrol/index.jsx b/weapp/src/packages/patrol/index.jsx index 594919ac..982456e0 100644 --- a/weapp/src/packages/patrol/index.jsx +++ b/weapp/src/packages/patrol/index.jsx @@ -255,7 +255,7 @@ const Index = () => { ]) }, [reportType]) - function report () { + function report() { if (!canReport) { return } if ( (isPatrol && (!projectType || !road)) @@ -332,7 +332,7 @@ const Index = () => { }) } - function deleteReport () { + function deleteReport() { Taro.showModal({ title: '提示', content: '确定删除吗?', @@ -359,7 +359,7 @@ const Index = () => { }) } - function handleInput ({ detail: { value } }, type) { + function handleInput({ detail: { value } }, type) { switch (type) { case 'roadSectionStart': setRoadSectionStart(value) @@ -394,15 +394,15 @@ const Index = () => { } } - function handleTypeChange (e) { + function handleTypeChange(e) { setReportType(e.detail.value) } - function handleImgChange (files, operationType, index, type) { + function handleImgChange(files, operationType, index, type) { if (operationType === 'remove') { setImg(false) } - function setImg (isAdd, url) { + function setImg(isAdd, url) { switch (type) { case 'scenePic': let nextImg = sceneImg @@ -502,12 +502,12 @@ const Index = () => { } } - function handleImgClick (index, file) { + function handleImgClick(index, file) { Taro.previewImage({ urls: [file.url] // 需要预览的图片http链接列表 }) } - function handleImgClicks (index, file) { + function handleImgClicks(index, file) { Taro.previewImage({ urls: [file] // 需要预览的图片http链接列表 }) @@ -529,7 +529,7 @@ const Index = () => { } } }, [road]) - function handleOk () { + function handleOk() { if (!canReport) { return } let str = handleCenter.trim() if (!str) { @@ -574,14 +574,14 @@ const Index = () => { } }) } - function addVideo () { + function addVideo() { wx.chooseMedia({ count: 1, mediaType: ['video'], sourceType: ['album', 'camera'], maxDuration: 15, camera: 'back', - success (res) { + success(res) { const tempFilePaths = res.tempFiles[0].tempFilePath let token = getState('token') || Taro.getStorageSync('token') if (res.tempFiles[0].duration < 15) { @@ -617,7 +617,7 @@ const Index = () => { } }) } - console.log(setVideoqn,'==============='); + console.log(setVideoqn, '==============='); return ( {/* { @@ -920,7 +920,7 @@ const Index = () => { { video != '' ? { setVideo('') }} style={{ position: 'absolute', zIndex: '999', right: '70rpx', top: '30rpx' }}> - {!isView ?:''} + {!isView ? : ''}