|
|
@ -1,6 +1,6 @@ |
|
|
|
<template> |
|
|
|
<div> |
|
|
|
<van-tabs v-model="type" animated sticky swipeable lazy-render> |
|
|
|
<van-tabs v-model="type" animated lazy-render sticky swipeable> |
|
|
|
<van-tab title="上报诉求"> |
|
|
|
<div class="container"> |
|
|
|
<div class="block"> |
|
|
@ -131,7 +131,8 @@ export default { |
|
|
|
errorPosition() { |
|
|
|
console.log('定位失败,再次进行定位') |
|
|
|
}, |
|
|
|
clickUpload() {}, |
|
|
|
clickUpload() { |
|
|
|
}, |
|
|
|
setAudio(val) { |
|
|
|
console.log(val, 'this.val') |
|
|
|
this.isFile = false |
|
|
@ -156,10 +157,12 @@ export default { |
|
|
|
}) |
|
|
|
}, |
|
|
|
submit() { |
|
|
|
if (!this.audio.serverId) { |
|
|
|
if (!this.eventContent) { |
|
|
|
this.$toast.fail('请输入描述') |
|
|
|
return |
|
|
|
} |
|
|
|
} |
|
|
|
if (!this.name) { |
|
|
|
this.$toast.fail('请输入姓名') |
|
|
|
return |
|
|
@ -181,7 +184,7 @@ export default { |
|
|
|
address: this.address, |
|
|
|
reporterName: this.name, |
|
|
|
reporterMobile: this.phone, |
|
|
|
eventContent: this.eventContent, |
|
|
|
eventContent: this.eventContent ? this.eventContent : '语音报事', |
|
|
|
userId: this.$store.state.app.userInfo.userId, |
|
|
|
customerId: this.$store.state.app.userInfo.customerId |
|
|
|
}).then(() => { |
|
|
|