|
|
@ -163,21 +163,19 @@ 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 |
|
|
|
+ res.data.result.address_component.city |
|
|
|
+ res.data.result.address_component.district |
|
|
|
+ res.data.result.address_component.street_number |
|
|
|
// + res.data.result.address_component.street |
|
|
|
// + res.data.result.address_component.street |
|
|
|
// addresscity = res.data.result.formatted_addresses.standard_address |
|
|
|
let street = res.data.result.address_component.street |
|
|
|
setRoad(street) |
|
|
@ -217,7 +215,9 @@ const Index = () => { |
|
|
|
let projectList = [] |
|
|
|
if (data.length) { |
|
|
|
data.forEach(e => { |
|
|
|
projectList.push(e.entryName) |
|
|
|
if (e.done == false) { |
|
|
|
projectList.push(e.entryName) |
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
|
setProjdetList(projectList) |
|
|
@ -466,7 +466,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 +594,6 @@ const Index = () => { |
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
|
console.log(video, 'video'); |
|
|
|
console.log(scenePic, 'tupia'); |
|
|
|
return ( |
|
|
|
<View className='patrol'> |
|
|
|
{/* { |
|
|
|