From 4efeb31d5b4921d7e851c256009486ad86bc70e2 Mon Sep 17 00:00:00 2001
From: zengh <123456>
Date: Tue, 21 Jun 2022 09:14:57 +0800
Subject: [PATCH] 地址替换

---
 pages/map/map.vue |   46 +++++++++++++++++++++++++++++++++++++++-------
 1 files changed, 39 insertions(+), 7 deletions(-)

diff --git a/pages/map/map.vue b/pages/map/map.vue
index b185dfd..d4e85e3 100644
--- a/pages/map/map.vue
+++ b/pages/map/map.vue
@@ -1,6 +1,16 @@
 <template>
-	<view class="content">
-		<web-view :src="urls"></web-view>
+	<view class="content" style="width: 100%; height: 100%;">
+
+		<!-- <u-loading size="66" :show="flag" mode="circle"></u-loading> -->
+
+		<view v-show="flag" class="loading">{{loadingText}}</view>
+		
+		<view v-show="!flag">
+			
+			<web-view :src="urls" style="width: 100%; height: 100%;"></web-view>
+			
+		</view>
+
 	</view>
 </template>
 
@@ -9,19 +19,41 @@
 		data() {
 			return {
 				urls: '',
+				flag: true,
+				loadingText: '加载中...'
 				// dataList: [],
 			}
 		},
 		methods: {},
-		mounted() {},
+		mounted() {
+			// uni.showNavigationBarLoading();
+
+			this.urls = "http://web.byisf.com/mapWz/xcxmap.html?id=" + this.$store.state.UserData.jurisdiction +
+				"&userid=" + this.$store.state.UserData.user_id +
+				"&roleName=" + this.$store.state.UserData.rname[0] +
+				"&deptid=" + this.$store.state.UserData.dept_id;
+
+
+			setTimeout(() => {
+				// uni.hideNavigationBarLoading();
+				this.flag = false
+			}, 3000)
+
+		},
 		onLoad: function(options) {
-			
-			// this.urls = "http://web.byisf.com/mapWz/xcxmap.html?id="+ this.$store.state.UserData.jurisdiction + "&userid="+ this.$store.state.UserData.role_id;
-			this.urls = "http://127.0.0.1:5500/mapWz/xcxmap.html?id="+ this.$store.state.UserData.jurisdiction + "&userid="+ this.$store.state.UserData.role_id;
-			
+
+
+
+			// this.urls = "http://127.0.0.1:5500/mapWz/xcxmap.html?id=" + this.$store.state.UserData.jurisdiction +
+			// 	"&userid=" + this.$store.state.UserData.user_id;
+
 		},
 	}
 </script>
 
 <style>
+	.loading {
+		text-align: center;
+		line-height: 80px;
+	}
 </style>

--
Gitblit v1.9.3