From b11c962b71a6fd1e2fe8b88f65c954c61bc67fa3 Mon Sep 17 00:00:00 2001
From: zengh <123456>
Date: Wed, 18 Aug 2021 11:08:09 +0800
Subject: [PATCH] 好友列表修改

---
 pages/registerUser/registerUser.vue |    2 +-
 pages/user/center.vue               |    9 ---------
 xcxMapWzzzz/js/vueMain copy.js      |    2 +-
 store/actions1.js                   |    3 +--
 pages/groupChat/chating.vue         |    4 ++--
 pages/examine/addunit.vue           |    1 -
 pages/groupChat/groupChat.vue       |    6 +++---
 xcxMapWzzzz/js/vueMain.js           |    2 +-
 mapWz/js/vueMain.js                 |    2 +-
 pages/groupChat/chatingcopy.vue     |    2 +-
 store/actions.js                    |    6 +++---
 11 files changed, 14 insertions(+), 25 deletions(-)

diff --git a/mapWz/js/vueMain.js b/mapWz/js/vueMain.js
index 0385bd7..cd1940a 100644
--- a/mapWz/js/vueMain.js
+++ b/mapWz/js/vueMain.js
@@ -36,7 +36,7 @@
             var jurisdictionId = this.GetQueryString('id')
             this.userId = this.GetQueryString('userid')
 
-            axios.get('http://223.82.109.183:2080/api/blade-user/page?size=99999&jurisdiction=' + jurisdictionId).then((res) => {
+            axios.get(this.$store.state.piAPI + '/blade-user/page?size=99999&jurisdiction=' + jurisdictionId).then((res) => {
 
                 if (res.data.data.records.length > 0) {
                     res.data.data.records.forEach(item => {
diff --git a/pages/examine/addunit.vue b/pages/examine/addunit.vue
index 6419a71..47b104a 100644
--- a/pages/examine/addunit.vue
+++ b/pages/examine/addunit.vue
@@ -91,7 +91,6 @@
 		},
 		onLoad() {
 			this.createData = this.$store.state.UserData
-			// http://223.82.109.183:2080/api
 
 		},
 		onReachBottom() {
diff --git a/pages/groupChat/chating.vue b/pages/groupChat/chating.vue
index 8042b6d..5a68dfc 100644
--- a/pages/groupChat/chating.vue
+++ b/pages/groupChat/chating.vue
@@ -216,7 +216,7 @@
 				var that = this;
 				that.senId = WxStorage.get("ids");
 				uni.request({
-					url:"http://223.82.109.183:2080/api/chat-records/getSingleMessagePage",
+					url:this.$store.state.piAPI + "/chat-records/getSingleMessagePage",
 					method:"get",
 					data:{
 						senderId: that.senId,
@@ -339,7 +339,7 @@
 				}
 				
 				uni.request({
-					url:"http://223.82.109.183:2080/api/chat-records/insertSingleChat",
+					url:this.$store.state.piAPI + "/chat-records/insertSingleChat",
 					method:"post",
 					data:{
 						senderId: that.senId,
diff --git a/pages/groupChat/chatingcopy.vue b/pages/groupChat/chatingcopy.vue
index 96ed765..43738c0 100644
--- a/pages/groupChat/chatingcopy.vue
+++ b/pages/groupChat/chatingcopy.vue
@@ -340,7 +340,7 @@
 				this.$nextTick(() => {
 					let len = this.msgs.length -1
 					this.scrollToView = 'msg' + this.msgs[len].tip
-				})
+				}) 
 			},
 			// 地图定位
 			covers(e) {
diff --git a/pages/groupChat/groupChat.vue b/pages/groupChat/groupChat.vue
index 421c560..f9bde8d 100644
--- a/pages/groupChat/groupChat.vue
+++ b/pages/groupChat/groupChat.vue
@@ -140,7 +140,7 @@
 				var that = this;
 				if (this.current == 0) {
 					uni.request({
-						url: "http://223.82.109.183:2080/api/chat-records/getChatListPage",
+						url: this.$store.state.piAPI + "/chat-records/getChatListPage",
 						method: "get",
 						data: {
 							senderId: WxStorage.get("ids")
@@ -158,7 +158,7 @@
 					});
 				} else if (this.current == 1) {
 					uni.request({
-						url: "http://223.82.109.183:2080/api/blade-user/page?current=1&size=9999",
+						url: this.$store.state.piAPI + "/blade-user/page?current=1&size=9999",
 						method: "get",
 						data: {
 							senderId: WxStorage.get("ids")
@@ -178,7 +178,7 @@
 				} else if (this.current == 2) {
 
 					uni.request({
-						url: "http://223.82.109.183:2080/api/chatgroup/selectList",
+						url: this.$store.state.piAPI + "/chatgroup/selectList",
 						method: "POST",
 						data: {
 							senderId: WxStorage.get("ids")
diff --git a/pages/registerUser/registerUser.vue b/pages/registerUser/registerUser.vue
index 82c347d..cf8c65a 100644
--- a/pages/registerUser/registerUser.vue
+++ b/pages/registerUser/registerUser.vue
@@ -321,7 +321,7 @@
 				// 		var img = res.tempFiles;
 				// 		console.log('img', img)
 				// 		// imgToBase64(res)
-				// 		var url = that.$store.state.piAPI + 'blade-user/faceCompare',
+				// 		var url = that.$store.state.piAPI + '/blade-user/faceCompare',
 				// 			// var url = 'http://192.168.0.114:82/' + 'blade-user/faceCompare',
 				// 			data = {
 				// 				"name": that.form.name,
diff --git a/pages/user/center.vue b/pages/user/center.vue
index 54f7a97..762848d 100644
--- a/pages/user/center.vue
+++ b/pages/user/center.vue
@@ -119,15 +119,6 @@
 					// that.tenantName = this.$store.state.UserData.tenantName
 
 				}
-				// uni.request({
-				// 	url:'http://223.82.109.183:2080/api/blade-user/details?id='+this.$store.state.puserID,
-				// 	method:'POST',
-				// 	success(resdata) {
-				// 		that.name = resdata.data.data.realName;
-				// 		that.id = resdata.data.data.id;
-				// 		that.tenantName = resdata.data.data.tenantName;
-				// 	}
-				// })
 			},
 		},
 		mounted() {
diff --git a/store/actions.js b/store/actions.js
index ee020c1..a677000 100644
--- a/store/actions.js
+++ b/store/actions.js
@@ -17,7 +17,7 @@
 		var addr = position.addr; //详细地址
 
 		wx.request({
-			url: "http://223.82.109.183:2080/api/liveLocation/saveLiveLocationAndLocus",
+			url: this.$store.state.piAPI + "/liveLocation/saveLiveLocationAndLocus",
 			method: "post",
 			data: {
 				type: 1,
@@ -58,7 +58,7 @@
 				},
 			],
 			pasw = md5(data.pass),
-			// url = 'http://223.82.109.183:2080/api/blade-auth/oauth/token?tenantId=000000&username=' + data.name +
+			// url = this.$store.state.piAPI + '/blade-auth/oauth/token?tenantId=000000&username=' + data.name +
 			url = store.state.piAPI + '/blade-auth/oauth/token?tenantId=000000&username=' + data.name +
 			' &password=' + pasw + '&grant_type=password&scope=all&type=account';
 		// url ='http://192.168.0.109:82/blade-auth/oauth/token';
@@ -116,7 +116,7 @@
 						30000)
 
 					uni.request({
-						url: "http://223.82.109.183:2080/api/blade-system/dept/detail?id=" + res
+						url: this.$store.state.piAPI + "/blade-system/dept/detail?id=" + res
 							.data.dept_id,
 						method: "get",
 						data: {
diff --git a/store/actions1.js b/store/actions1.js
index 076acce..103c353 100644
--- a/store/actions1.js
+++ b/store/actions1.js
@@ -16,7 +16,6 @@
 				},
 			],
 			pasw = md5(data.pass),
-			// url = 'http://223.82.109.183:2080/api/blade-auth/oauth/token?tenantId=000000&username=' + data.name +
 			url = store.state.piAPI + '/blade-auth/oauth/token?tenantId=000000&username=' + data.name +
 			' &password=' + pasw + '&grant_type=password&scope=all&type=account';
 		// url ='http://192.168.0.109:82/blade-auth/oauth/token';
@@ -73,7 +72,7 @@
 					})
 
 					uni.request({
-						url: "http://223.82.109.183:2080/api/blade-system/dept/detail?id=" + res
+						url: this.$store.state.piAPI + "/blade-system/dept/detail?id=" + res
 							.data.dept_id,
 						method: "get",
 						data: {
diff --git a/xcxMapWzzzz/js/vueMain copy.js b/xcxMapWzzzz/js/vueMain copy.js
index bca583d..bd8617a 100644
--- a/xcxMapWzzzz/js/vueMain copy.js
+++ b/xcxMapWzzzz/js/vueMain copy.js
@@ -35,7 +35,7 @@
 			//url解码
 			var policeId = this.GetQueryString('id');
             var that = this;
-			axios.get('http://223.82.109.183:2080/api/blade-user/page?size=99999&jurisdiction=' + policeId).then((res) => {
+			axios.get(this.$store.state.piAPI + '/blade-user/page?size=99999&jurisdiction=' + policeId).then((res) => {
 				res.data.data.records.forEach(item => {
 					if (item.longitude && item.latitude) {
 						data.push(item)
diff --git a/xcxMapWzzzz/js/vueMain.js b/xcxMapWzzzz/js/vueMain.js
index a118a1f..201ebee 100644
--- a/xcxMapWzzzz/js/vueMain.js
+++ b/xcxMapWzzzz/js/vueMain.js
@@ -35,7 +35,7 @@
 			//url解码
 			var policeId = this.GetQueryString('id');
 			console.log(policeId, 4654645)
-			axios.get('http://223.82.109.183:2080/api/blade-user/page?size=99999').then((res) => {
+			axios.get(this.$store.state.piAPI + '/blade-user/page?size=99999').then((res) => {
 				console.log(res, 4848)
 				res.data.data.records.forEach(item => {
 					if (item.longitude && item.latitude) {

--
Gitblit v1.9.3