DESKTOP-CRQ4N2U\jintian 1 жил өмнө
parent
commit
e20f1f5808

+ 4 - 1
.env.production

@@ -5,7 +5,10 @@ VITE_APP_TITLE = 金田基础框架
 VITE_APP_ENV = 'production'
 
 # 金田基础框架/生产环境
-VITE_API_URL = 'http://218.59.194.82:13292/'
+# VITE_API_URL = 'http://218.59.194.82:13292/'
+
+# 烟台服务器
+VITE_API_URL = 'http://10.7.100.3:8092/'
 
 # 后台管理地址: http://218.59.194.82:13280/
 

+ 9 - 8
index.html

@@ -10,14 +10,14 @@
 				height: 100vh;
 			}
 		</style>
-		<link rel="stylesheet" type="text/css"
-			href="http://218.59.194.82:14080/api/ThirdParty/Cesium-1.93/Widgets/widgets.css" />
-		<script src="http://218.59.194.82:14080/api/ThirdParty/Cesium-1.93/Cesium.js"></script>
+		<!-- 引入Cesium -->
+		<link rel="stylesheet" type="text/css" href="./public/ThirdParty/Cesium-1.93/Widgets/widgets.css" />
+		<script src="./ThirdParty/Cesium-1.93/Cesium.js"></script>
 		<!-- 引入生成热力图 -->
 		<script src="./ThirdParty/CesiumHeatmap.js"></script>
-		<script type="text/javascript" src="https://js.cdn.aliyun.dcloud.net.cn/dev/uni-app/uni.webview.1.5.2.js"></script>
+<!-- 		<script type="text/javascript" src="https://js.cdn.aliyun.dcloud.net.cn/dev/uni-app/uni.webview.1.5.2.js"></script>
 		<script src="src/assets/js/plus.js"></script>
-		<script src="src/assets/js/mui.min.js"></script>
+		<script src="src/assets/js/mui.min.js"></script> -->
 
 	</head>
 
@@ -34,15 +34,16 @@
 
 				function refreshRem() {
 					var width = docEl.getBoundingClientRect().width;
-					console.log('宽度',typeof(width))
+					// console.log('宽度',typeof(width))
+					
 					maxWidth = maxWidth || 1920;
 					if(!width || width < 1000){
 						width = 1000
 					}else if(width > 1920){
 						width = 1920
 					}
-
-					console.log('宽度2', width)
+					// console.log('宽度2', width)
+					
 					width > maxWidth && (width = 192000);
 
 					var rem = width * 1 / designWidth;

+ 7 - 3
src/views/Login/Login.vue

@@ -93,6 +93,8 @@
 					sqlWhere: "username = '" + this.loginForm.username + "' and password = '" + password + "'",
 					orderByField: ''
 				}).then(res => {
+					console.log('接口查询用户信息', res)
+					
 					if (res.data.length > 0) {
 						this.loginForm.id = res.data[0].id
 						store.realName = res.data[0].name;
@@ -112,10 +114,9 @@
 					orderByField: ''
 				}).then(res => {
 					//存储用户ID
-					let _this = this
-					console.log(res)
+					console.log('接口查询用户角色信息', res)
 					store.roleId = res.data[0].roleid
-					console.log(store.roleId)
+					console.log('用户角色信息id',store.roleId)
 					if (
 						window.navigator.userAgent.match(
 							/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i
@@ -125,6 +126,9 @@
 					} else {
 						store.userport = 'PC'
 					}
+
+					console.log('用户运行环境',store.userport)
+
 					//跳转到Main3D页面			
 					this.$router.replace({
 						path: '/home'