From 18bee78ebcacfad96914d4cdcd11d5f449d0a1f6 Mon Sep 17 00:00:00 2001
From: Administrator <admin>
Date: Fri, 11 Jun 2021 11:39:55 +0800
Subject: [PATCH] 接口域名替换

---
 pages/myself/childen/aboutUs.vue            |   30 +++++++++++++--
 xcxjingqingmap_lxdh/js/lxdhmap.js           |    2 
 pages/equipment/equipment.vue               |    7 ++-
 store/state.js                              |    2 
 pages/infoRegistration/infoCheck.vue        |    6 +-
 pages/infoRegistration/infoRegistration.vue |    4 +-
 pages/riskReporting/riskReporting.vue       |    6 +-
 pages/myself/childen/xinxi.vue              |    3 +
 pages/patrol/patrol.vue                     |    2 
 pages/map/map.vue                           |    2 
 xcxjingqingmap_patrol/js/vueMain.js         |    2 
 pages/investigation/investigation.vue       |    2 
 pages/visitRecord/visitRecord.vue           |    6 +-
 13 files changed, 49 insertions(+), 25 deletions(-)

diff --git a/pages/equipment/equipment.vue b/pages/equipment/equipment.vue
index f87b6d0..f96e5a2 100644
--- a/pages/equipment/equipment.vue
+++ b/pages/equipment/equipment.vue
@@ -86,7 +86,8 @@
 				tenantNameArray:[],
 				tenantNameArrayIndex:0,
 				tenantNameArrayType:'请选择客户',
-				tenantNameColor:"#808080"
+				tenantNameColor:"#808080",
+				pathUrl:"http://s16s652780.51mypc.cn/api",
 			}
 		},
 		onLoad() {
@@ -100,7 +101,7 @@
 			getTenantList(){
 				var that = this;
 				uni.request({
-					url: 'https://web.byisf.com/api/blade-system/tenant/page',
+					url: that.pathUrl + '/blade-system/tenant/page',
 					method:'GET',
 					success: (res) => {
 						that.tenantArr = res.data.data.records;
@@ -183,7 +184,7 @@
 					+"&ownerId="+this.ownerId;
 				uni.request({
 					// url: 'http://localhost:89/equipment/equipment/AppSubmit?'+params,
-					url: 'https://web.byisf.com/api/blade-jfpts/equipment/equipment/AppSubmit?'+params,
+					url: that.pathUrl + '/blade-jfpts/equipment/equipment/AppSubmit?'+params,
 					method:'POST',
 					success: (res) => {
 						if(res.data.code==200){
diff --git a/pages/infoRegistration/infoCheck.vue b/pages/infoRegistration/infoCheck.vue
index fde0e13..ca414e1 100644
--- a/pages/infoRegistration/infoCheck.vue
+++ b/pages/infoRegistration/infoCheck.vue
@@ -60,7 +60,7 @@
 				typeArray:["学校","医院","小区"],
 				typeArrayIndex:0,
 				typeArrayType:'请选择客户类型',
-				pathUrl:"https://web.byisf.com/api/blade-system",
+				pathUrl:"http://s16s652780.51mypc.cn/api",
 				// pathUrl: "http://localhost:8106"
 			}
 		},
@@ -76,7 +76,7 @@
 			getTenantList(){
 				var that = this;
 				uni.request({
-					url: this.pathUrl + '/tenant/page',
+					url: this.pathUrl + '/blade-system/tenant/page',
 					method:'GET',
 					success: (res) => {
 						that.tenantArr = res.data.data.records;
@@ -147,7 +147,7 @@
 			//提交修改
 			confirm(){
 				uni.request({
-					url: 'https://web.byisf.com/api/blade-system/tenant/submit',
+					url: this.pathUrl +'/blade-system/tenant/submit',
 					method:'POST',
 					data:{
 							"id":this.id,
diff --git a/pages/infoRegistration/infoRegistration.vue b/pages/infoRegistration/infoRegistration.vue
index fb16cd0..db9a990 100644
--- a/pages/infoRegistration/infoRegistration.vue
+++ b/pages/infoRegistration/infoRegistration.vue
@@ -56,7 +56,7 @@
 				typeArray:["学校","医院","小区"],
 				typeArrayIndex:0,
 				typeArrayType:'请选择客户类型',
-				pathUrl:"https://web.byisf.com/api/blade-system",
+				pathUrl:"http://s16s652780.51mypc.cn/api",
 				// pathUrl: "http://localhost:8106",
 			}
 		},
@@ -87,7 +87,7 @@
 			//提交修改
 			confirm(){
 				uni.request({
-					url: this.pathUrl + '/tenant/save',
+					url: this.pathUrl + '/blade-system/tenant/save',
 					method:'POST',
 					data:{
 							// "id":this.id,
diff --git a/pages/investigation/investigation.vue b/pages/investigation/investigation.vue
index d44af52..ee885c7 100644
--- a/pages/investigation/investigation.vue
+++ b/pages/investigation/investigation.vue
@@ -51,7 +51,7 @@
 			var longitude = wx.getStorageSync("longitude");
 
 			// alert(wx.getStorageSync("longitude"));
-			that.urls = "https://web.byisf.com/xcxjingqingmap_lxdh/lxdhmap.html?data=" + data + "&latitude=" +
+			that.urls = "http://s16s652780.51mypc.cn/xcxjingqingmap_lxdh/lxdhmap.html?data=" + data + "&latitude=" +
 				latitude + "&longitude=" + longitude;
 
 
diff --git a/pages/map/map.vue b/pages/map/map.vue
index 27f2a5d..5680d28 100644
--- a/pages/map/map.vue
+++ b/pages/map/map.vue
@@ -30,7 +30,7 @@
 			}else{
 				data = options.data;
 			}
-			this.urls = "https://web.byisf.com/xcxMapJQ/xcxmap.html?data=" + data;
+			this.urls = "http://s16s652780.51mypc.cn/xcxMapJQ/xcxmap.html?data=" + data;
 			// this.dataList = data;
 			console.log(this.urls);
 		},
diff --git a/pages/myself/childen/aboutUs.vue b/pages/myself/childen/aboutUs.vue
index d89fb65..54e24a9 100644
--- a/pages/myself/childen/aboutUs.vue
+++ b/pages/myself/childen/aboutUs.vue
@@ -38,13 +38,36 @@
 		
 		
 		<view class="down">
-			<view class="title">安防管理系统 Copyright © 江西北邮信息通信技术有限公司</view>
+			<view class="title" :style="{left:left}">安防管理系统 Copyright © 江西北邮信息通信技术有限公司</view>
 		</view>
 
 	</view>
 </template>
 
 <script>
+	export default {
+		data() {
+			return {
+				left:'47px',
+			};
+		},
+		onLoad() {
+			var that = this;
+			//使用延时执行待页面完全渲染再执行
+			setTimeout(()=>{
+				uni.getSystemInfo({
+				  success(res) { 
+					  let obj = uni.createSelectorQuery().select('.title')
+					  obj.boundingClientRect(function (data) { // data - 各种参数
+						that.left = (res.windowWidth - data.width)/2 + "px";
+					  }).exec()
+				  }
+				})
+			},0);
+		},
+		methods: {
+		}
+	}
 </script>
 
 <style lang="scss" scoped>
@@ -133,12 +156,11 @@
 			
 			.title{
 				// background-color: #0078A8;
-				// width: 584rpx;
 				position: fixed;
 				text-align: center;
 				bottom: 1.5%;
-				left: calc((100% - 582rpx)/2);
-				text-align: center;
+				// left: calc((100% - 640rpx)/2);
+				// text-align: center;
 				font-size: 22rpx;
 				color: #808080;
 			}
diff --git a/pages/myself/childen/xinxi.vue b/pages/myself/childen/xinxi.vue
index 85621ef..e4b3acf 100644
--- a/pages/myself/childen/xinxi.vue
+++ b/pages/myself/childen/xinxi.vue
@@ -76,7 +76,8 @@
 			var that = this;
 			var id = JSON.stringify(this.$store.state.puserID);
 			uni.request({
-				url: 'https://web.byisf.com/api/blade-user/details?id='+this.$store.state.puserID,
+				
+				url: 'http://s16s652780.51mypc.cn/api/blade-user/details?id='+this.$store.state.puserID,
 				method:'POST',
 				success: (res) => {
 					that.user=res.data.data;
diff --git a/pages/patrol/patrol.vue b/pages/patrol/patrol.vue
index 6903fa8..359d6b2 100644
--- a/pages/patrol/patrol.vue
+++ b/pages/patrol/patrol.vue
@@ -16,7 +16,7 @@
 		onLoad: function(options) {
 			//long 转换为字符串
 			var code = JSON.stringify(this.$store.state.puserID.toString());
-			this.urls = "https://web.byisf.com/xcxjingqingmap_patrol/xcxmap.html?snumber="+code;
+			this.urls = "http://s16s652780.51mypc.cn/xcxjingqingmap_patrol/xcxmap.html?snumber="+code;
 		},
 	}
 </script>
diff --git a/pages/riskReporting/riskReporting.vue b/pages/riskReporting/riskReporting.vue
index 49628fa..e76cbe9 100644
--- a/pages/riskReporting/riskReporting.vue
+++ b/pages/riskReporting/riskReporting.vue
@@ -52,7 +52,7 @@
 				display1:'none',
 				display2:'none',
 				display3:'none',
-				pathUrl:"https://web.byisf.com/api/blade-jfpts",
+				pathUrl:"http://s16s652780.51mypc.cn/api",
 				// pathUrl: "http://localhost:89",
 				riskClassArray:["一级","二级","三级","四级"],
 				riskClassArrayIndex:0,
@@ -82,7 +82,7 @@
 			getTenantList(){
 				var that = this;
 				uni.request({
-					url: 'https://web.byisf.com/api/blade-system/tenant/page',
+					url: this.pathUrl + '/blade-system/tenant/page',
 					method:'GET',
 					success: (res) => {
 						that.tenantArr = res.data.data.records;
@@ -127,7 +127,7 @@
 			//提交修改
 			confirm(){
 				uni.request({
-					url: this.pathUrl + '/riskReporting/save',
+					url: this.pathUrl + '/blade-jfpts/riskReporting/save',
 					method:'POST',
 					data:{
 							"riskTime":this.riskTime,
diff --git a/pages/visitRecord/visitRecord.vue b/pages/visitRecord/visitRecord.vue
index 28269b8..6d0bb29 100644
--- a/pages/visitRecord/visitRecord.vue
+++ b/pages/visitRecord/visitRecord.vue
@@ -62,7 +62,7 @@
 				display1:'none',
 				display2:'none',
 				display3:'none',
-				pathUrl:"https://web.byisf.com/api/blade-jfpts",
+				pathUrl:"http://s16s652780.51mypc.cn/api",
 				// pathUrl: "http://localhost:89",
 				tenantArr:[],
 				ynameArray:[],
@@ -90,7 +90,7 @@
 			getTenantList(){
 				var that = this;
 				uni.request({
-					url: 'https://web.byisf.com/api/blade-system/tenant/page',
+					url: this.pathUrl + '/blade-system/tenant/page',
 					method:'GET',
 					success: (res) => {
 						that.tenantArr = res.data.data.records;
@@ -160,7 +160,7 @@
 			//提交修改
 			confirm(){
 				uni.request({
-					url: this.pathUrl + '/visitrecord/visitrecord/save',
+					url: this.pathUrl + '/blade-jfpts/visitrecord/visitrecord/save',
 					method:'POST',
 					data:{
 						// "visitrecord":
diff --git a/store/state.js b/store/state.js
index e74391c..9457e25 100644
--- a/store/state.js
+++ b/store/state.js
@@ -4,7 +4,7 @@
 		useName: '过客 ',
 	},
 	logPath: '',
-	piAPI: 'https://web.byisf.com/api/',
+	piAPI: 'http://s16s652780.51mypc.cn/api/',
 	puserName: '陈慧英',
 	puserID: '1370564873280430082',
 	puserIphone:'15649685246',
diff --git a/xcxjingqingmap_lxdh/js/lxdhmap.js b/xcxjingqingmap_lxdh/js/lxdhmap.js
index 94bfe4c..48eadc7 100644
--- a/xcxjingqingmap_lxdh/js/lxdhmap.js
+++ b/xcxjingqingmap_lxdh/js/lxdhmap.js
@@ -404,7 +404,7 @@
 		//警情点查询
 		axios({
 			method: "post",
-			url: `https://web.byisf.com/api/blade-jfpts/alarm/alarm/APP-getAlarming`,
+			url: `http://s16s652780.51mypc.cn/api/blade-jfpts/alarm/alarm/APP-getAlarming`,
 			params: {
 				securityId: "1370564873280430082",
 			},
diff --git a/xcxjingqingmap_patrol/js/vueMain.js b/xcxjingqingmap_patrol/js/vueMain.js
index 8e60419..6f7db13 100644
--- a/xcxjingqingmap_patrol/js/vueMain.js
+++ b/xcxjingqingmap_patrol/js/vueMain.js
@@ -10,7 +10,7 @@
 
         //基础路径
         // pathUrl: "http://localhost:89",
-        pathUrl: "https://web.byisf.com/api/blade-jfpts",
+        pathUrl: "http://s16s652780.51mypc.cn/api/blade-jfpts",
 
         layer: null,
 

--
Gitblit v1.9.3