Browse Source

(*)去除log

dev
ww664853070 2 years ago
parent
commit
099dcd4666
  1. 6
      weapp/src/packages/patrol/index.jsx

6
weapp/src/packages/patrol/index.jsx

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

Loading…
Cancel
Save