Browse Source

Signed-off-by: liuboyan <632697560@qq.com>
ZZZ

liuboyan 4 years ago
parent
commit
45205e087a
2 changed files with 13 additions and 13 deletions
  1. 11 13
      pagesMain/messageForm.vue
  2. 2 0
      pagesMain/messageList.vue

+ 11 - 13
pagesMain/messageForm.vue

@@ -60,18 +60,17 @@
 			//  提交数据
 			submitData() {
 				NET.request(API.addMessage, {
-						...this.formData,
-						leaMsgType: 2,
-						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: 2,
+					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',

+ 2 - 0
pagesMain/messageList.vue

@@ -38,6 +38,8 @@
 			this.tenantCode = options.tenantCode
 		},
 		onShow() {
+			this.pageIndex = 1
+			this.messageList = []
 			this.getMessageList()
 		},
 		methods: {