|
|
@@ -69,6 +69,7 @@
|
|
|
getCityList,complaintEnum
|
|
|
} from '@/api/index'
|
|
|
import Upload from '@/components/upload/index.vue';
|
|
|
+ import { baseUrl } from '@/common/config.js';
|
|
|
export default {
|
|
|
components: {
|
|
|
Upload
|
|
|
@@ -126,7 +127,12 @@
|
|
|
this.form.deptId = e.value[0].value
|
|
|
},
|
|
|
submit() {
|
|
|
- console.log(this.form)
|
|
|
+ if (this.photograph) {
|
|
|
+ let escapedBaseUrl = baseUrl.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
|
|
|
+ this.form.photograph = (this.photograph+'').replace(new RegExp(escapedBaseUrl, 'g'), '');
|
|
|
+ }
|
|
|
+ uni.navigateBack()
|
|
|
+ return false;
|
|
|
if (this.form.complaintType == '') {
|
|
|
uni.showToast({
|
|
|
title: '请选择投诉类型',
|
|
|
@@ -141,7 +147,9 @@
|
|
|
title: '提交成功',
|
|
|
icon: 'none'
|
|
|
})
|
|
|
- uni.navigateBack()
|
|
|
+ uni.switchTab({
|
|
|
+ url: '/pages/my/my'
|
|
|
+ })
|
|
|
}else{
|
|
|
uni.showToast({
|
|
|
title: res.data.msg,
|