Browse Source

(fixed)11886 小程序-异常反馈已处理的详情不展示回复详情

dev
ww664853070 2 years ago
parent
commit
24eaead068
  1. 29
      weapp/src/packages/patrol/index.jsx

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

@ -255,7 +255,7 @@ const Index = () => {
]) ])
}, [reportType]) }, [reportType])
function report () { function report() {
if (!canReport) { return } if (!canReport) { return }
if ( if (
(isPatrol && (!projectType || !road)) (isPatrol && (!projectType || !road))
@ -332,7 +332,7 @@ const Index = () => {
}) })
} }
function deleteReport () { function deleteReport() {
Taro.showModal({ Taro.showModal({
title: '提示', title: '提示',
content: '确定删除吗?', content: '确定删除吗?',
@ -359,7 +359,7 @@ const Index = () => {
}) })
} }
function handleInput ({ detail: { value } }, type) { function handleInput({ detail: { value } }, type) {
switch (type) { switch (type) {
case 'roadSectionStart': case 'roadSectionStart':
setRoadSectionStart(value) setRoadSectionStart(value)
@ -394,15 +394,15 @@ const Index = () => {
} }
} }
function handleTypeChange (e) { function handleTypeChange(e) {
setReportType(e.detail.value) setReportType(e.detail.value)
} }
function handleImgChange (files, operationType, index, type) { function handleImgChange(files, operationType, index, type) {
if (operationType === 'remove') { if (operationType === 'remove') {
setImg(false) setImg(false)
} }
function setImg (isAdd, url) { function setImg(isAdd, url) {
switch (type) { switch (type) {
case 'scenePic': case 'scenePic':
let nextImg = sceneImg let nextImg = sceneImg
@ -502,12 +502,12 @@ const Index = () => {
} }
} }
function handleImgClick (index, file) { function handleImgClick(index, file) {
Taro.previewImage({ Taro.previewImage({
urls: [file.url] // http urls: [file.url] // http
}) })
} }
function handleImgClicks (index, file) { function handleImgClicks(index, file) {
Taro.previewImage({ Taro.previewImage({
urls: [file] // http urls: [file] // http
}) })
@ -529,7 +529,7 @@ const Index = () => {
} }
} }
}, [road]) }, [road])
function handleOk () { function handleOk() {
if (!canReport) { return } if (!canReport) { return }
let str = handleCenter.trim() let str = handleCenter.trim()
if (!str) { if (!str) {
@ -574,14 +574,14 @@ const Index = () => {
} }
}) })
} }
function addVideo () { function addVideo() {
wx.chooseMedia({ wx.chooseMedia({
count: 1, count: 1,
mediaType: ['video'], mediaType: ['video'],
sourceType: ['album', 'camera'], sourceType: ['album', 'camera'],
maxDuration: 15, maxDuration: 15,
camera: 'back', camera: 'back',
success (res) { success(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')
if (res.tempFiles[0].duration < 15) { if (res.tempFiles[0].duration < 15) {
@ -617,7 +617,7 @@ const Index = () => {
} }
}) })
} }
console.log(setVideoqn,'==============='); console.log(setVideoqn, '===============');
return ( return (
<View className='patrol'> <View className='patrol'>
{/* { {/* {
@ -920,7 +920,7 @@ const Index = () => {
{ {
video != '' ? <view style={{ position: 'relative' }}> video != '' ? <view style={{ position: 'relative' }}>
<view onClick={() => { setVideo('') }} style={{ position: 'absolute', zIndex: '999', right: '70rpx', top: '30rpx' }}> <view onClick={() => { setVideo('') }} style={{ position: 'absolute', zIndex: '999', right: '70rpx', top: '30rpx' }}>
{!isView ?<AtIcon value='close-circle' size='30' color='#fff'></AtIcon>:''} {!isView ? <AtIcon value='close-circle' size='30' color='#fff'></AtIcon> : ''}
</view> </view>
<Video <Video
style={{ width: '90%', marginLeft: '-45%', left: '50%', marginBottom: 20 }} style={{ width: '90%', marginLeft: '-45%', left: '50%', marginBottom: 20 }}
@ -948,8 +948,7 @@ const Index = () => {
<AtButton type='primary' className='sub-btn' onClick={report}>上报</AtButton> <AtButton type='primary' className='sub-btn' onClick={report}>上报</AtButton>
} }
{ {
// handleType == '' || handleType == '已处理' || wait == 'wait' || handle == 'handle' ? <view>
wait == 'wait' || handle == 'handle' ? <view>
<view className='patrol-img'><text style={{ color: 'red' }}>*</text>处理内容</view> <view className='patrol-img'><text style={{ color: 'red' }}>*</text>处理内容</view>
<AtTextarea <AtTextarea
title='处理内容:' title='处理内容:'

Loading…
Cancel
Save