|
@@ -60,18 +60,17 @@
|
|
|
// 提交数据
|
|
|
submitData() {
|
|
|
NET.request(API.addMessage, {
|
|
|
- ...this.formData,
|
|
|
- leaMsgType: 1,
|
|
|
- mid: uni.getStorageSync("userData").userId,
|
|
|
- orderLeaImgResVOs: this.fileList.map((site, index) => {
|
|
|
- return {
|
|
|
- fileType: 1,
|
|
|
- imgUrl: site,
|
|
|
- sortOrder: index + 1,
|
|
|
- }
|
|
|
- })
|
|
|
- },
|
|
|
- 'POST').then(res => {
|
|
|
+ ...this.formData,
|
|
|
+ leaMsgType: 1,
|
|
|
+ mid: uni.getStorageSync("userData").userId,
|
|
|
+ orderLeaImgResVOs: this.fileList.map((site, index) => {
|
|
|
+ return {
|
|
|
+ fileType: 1,
|
|
|
+ imgUrl: site,
|
|
|
+ sortOrder: index + 1,
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }, 'POST').then(res => {
|
|
|
this.$refs.uTips.show({
|
|
|
title: '留言成功',
|
|
|
type: 'success',
|
|
@@ -80,7 +79,6 @@
|
|
|
uni.navigateBack()
|
|
|
}, 1000)
|
|
|
}).catch(error => {
|
|
|
- this.modalShow = false
|
|
|
this.$refs.uTips.show({
|
|
|
title: error.data.msg,
|
|
|
type: 'warning',
|