From e8611fee244a4aba7146ff76ca13c3ecc27861a3 Mon Sep 17 00:00:00 2001 From: ww664853070 Date: Fri, 14 Jul 2023 10:09:23 +0800 Subject: [PATCH] =?UTF-8?q?(fixed)11750=20=E5=B0=8F=E7=A8=8B=E5=BA=8F-?= =?UTF-8?q?=E5=B7=B2=E5=8A=9E=E4=BA=8B=E9=A1=B9=E9=A1=B5=E9=9D=A2=E6=A0=87?= =?UTF-8?q?=E9=A2=98=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- weapp/src/packages/components/inputPickers/index.jsx | 4 ++-- weapp/src/packages/patrol/index.jsx | 6 +----- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/weapp/src/packages/components/inputPickers/index.jsx b/weapp/src/packages/components/inputPickers/index.jsx index 94b865e1..cc24909e 100644 --- a/weapp/src/packages/components/inputPickers/index.jsx +++ b/weapp/src/packages/components/inputPickers/index.jsx @@ -12,7 +12,7 @@ export default function InputPicker(props) { useEffect(() => { setCurSelector(selector) - }, []) + }, [selector]) useEffect(()=>{ handleInput({ detail: { value: value } }) @@ -47,7 +47,7 @@ export default function InputPicker(props) { { !isView && - + } diff --git a/weapp/src/packages/patrol/index.jsx b/weapp/src/packages/patrol/index.jsx index 267e4e4f..56f96841 100644 --- a/weapp/src/packages/patrol/index.jsx +++ b/weapp/src/packages/patrol/index.jsx @@ -163,14 +163,12 @@ const Index = () => { isHighAccuracy: true, highAccuracyExpireTime: 1000 * 6, success: function (res) { - console.log(res); setLongitude(res.longitude) setLatitude(res.latitude) Taro.request({ url: `https://apis.map.qq.com/ws/geocoder/v1/?location=${res.latitude},${res.longitude}&key=${key}`, success: function (res) { // 根据自己项目需求获取res内容 - console.log('地址信息:', res); let addresscity = '' addresscity = res.data.result.address_component.province @@ -217,6 +215,7 @@ const Index = () => { let projectList = [] if (data.length) { data.forEach(e => { + console.log(data,'=============='); projectList.push(e.entryName) }) } @@ -466,7 +465,6 @@ const Index = () => { default: break; } - console.log(files, '=============='); for (i; i < files.length; i++) { const tempFilePaths = files[i].url let token = getState('token') || Taro.getStorageSync('token') @@ -595,8 +593,6 @@ const Index = () => { } }) } - console.log(video, 'video'); - console.log(scenePic, 'tupia'); return ( {/* {