From 52dd0c9306f12af3f6a2eb3d5b42537dcfa923ad Mon Sep 17 00:00:00 2001
From: Administrator <admin>
Date: Wed, 23 Jun 2021 09:27:57 +0800
Subject: [PATCH] 我要报图片,视频上传优化

---
 pages/reported/reported.vue |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/pages/reported/reported.vue b/pages/reported/reported.vue
index a36fefa..6611bd0 100644
--- a/pages/reported/reported.vue
+++ b/pages/reported/reported.vue
@@ -49,7 +49,7 @@
 				imgs: [],
 				videos: [],
 				// pathUrl:'http://s16s652780.51mypc.cn/api/blade-jfpts',
-				pathUrl:'http://localhost:89',
+				pathUrl:'http://localhost:82',
 			}
 		},
 		methods: {
@@ -82,6 +82,7 @@
 						// console.log(i[k].src)
 						dataList.tpaddress += i[k].src + ','
 					}
+					dataList.tpaddress = dataList.tpaddress.substring(0,dataList.tpaddress.length-1);
 				}
 				if (this.videos.length > 0) {
 					var i = this.videos;
@@ -89,6 +90,7 @@
 						// console.log(i[k].src)
 						dataList.spaddress += i[k].src + ','
 					}
+					dataList.spaddress = dataList.spaddress.substring(0,dataList.spaddress.length-1);
 				}
 				// console.log(dataList)
 				uni.showLoading({
@@ -96,7 +98,7 @@
 					mask: true
 				})
 				uni.request({
-					url: this.pathUrl + '/feedback/feedback/saves', 
+					url: this.$store.state.piAPI + 'feedback/feedback/saves', 
 					data: dataList,
 					method: 'POST',
 					header: {

--
Gitblit v1.9.3