|
|
@ -392,7 +392,6 @@ const Index = () => { |
|
|
|
setImg(false) |
|
|
|
} |
|
|
|
function setImg(isAdd, url) { |
|
|
|
console.log(url, '图片地址'); |
|
|
|
switch (type) { |
|
|
|
case 'scenePic': |
|
|
|
let nextImg = sceneImg |
|
|
@ -535,7 +534,6 @@ const Index = () => { |
|
|
|
handlePic: handlePicPn, |
|
|
|
handleState: '已处理' |
|
|
|
} |
|
|
|
console.log(data, 'data'); |
|
|
|
Taro.showModal({ |
|
|
|
title: '提示', |
|
|
|
content: '您要进行处理提交吗?', |
|
|
@ -573,7 +571,6 @@ const Index = () => { |
|
|
|
maxDuration: 15, |
|
|
|
camera: 'back', |
|
|
|
success(res) { |
|
|
|
console.log(res, 'res'); |
|
|
|
const tempFilePaths = res.tempFiles[0].tempFilePath |
|
|
|
let token = getState('token') || Taro.getStorageSync('token') |
|
|
|
Taro.uploadFile({ |
|
|
@ -581,7 +578,6 @@ const Index = () => { |
|
|
|
filePath: tempFilePaths, |
|
|
|
name: 'file', |
|
|
|
success: (ress) => { |
|
|
|
console.log(ress, '上传成功'); |
|
|
|
Taro.hideLoading(); |
|
|
|
if (ress.statusCode == 200) { |
|
|
|
setVideo(res.tempFiles[0].tempFilePath) |
|
|
@ -593,8 +589,6 @@ const Index = () => { |
|
|
|
} |
|
|
|
}) |
|
|
|
} |
|
|
|
console.log(scenePic, '现场图片'); |
|
|
|
console.log(handlePic, '处理图片'); |
|
|
|
return ( |
|
|
|
<View className='patrol'> |
|
|
|
{/* { |
|
|
|