环境配置

This commit is contained in:
wkc
2026-03-12 14:52:04 +08:00
parent 4fc837b6a9
commit b10774ee6e
5 changed files with 16 additions and 6 deletions

2
.gitignore vendored
View File

@@ -53,3 +53,5 @@ mvn/
浙江省/ 浙江省/
ruoyi-ui/vue.config.js ruoyi-ui/vue.config.js
*.zip

View File

@@ -5,4 +5,8 @@ VUE_APP_HJ = 'development'
VUE_APP_LOCATION_URL = 'http://localhost:12899' VUE_APP_LOCATION_URL = 'http://localhost:12899'
#VUE_APP_LOCATION_URL = 'http://158.224.208.32:12899' #VUE_APP_LOCATION_URL = 'http://158.224.208.32:12899'
VUE_APP_REDIRECT_URL = 'https://szzhcs.zrubft.com:12818/szzh-h5/#/dashboard/home' VUE_APP_REDIRECT_URL = 'https://szzhcs.zrubft.com:12818/szzh-h5/#/dashboard/home'
VUE_APP_BAIDU_PATH = '\baidu\script\getscript.js?type=webgl&v=1.0&services=&t=20230529114224'
VUE_APP_BAIDU_CSS_PATH = '\baidu\script\bmap.css'

View File

@@ -5,3 +5,7 @@ VUE_APP_HJ = 'production'
VUE_APP_LOCATION_URL = 'https://szzh.zrubft.com:12818/szzh-h5-api' VUE_APP_LOCATION_URL = 'https://szzh.zrubft.com:12818/szzh-h5-api'
VUE_APP_REDIRECT_URL = 'https://szzh.zrubft.com:12818/szzh-h5/#/dashboard/home' VUE_APP_REDIRECT_URL = 'https://szzh.zrubft.com:12818/szzh-h5/#/dashboard/home'
VUE_APP_BAIDU_PATH = '\baidu\script\getscript.pro.js?type=webgl&v=1.0&services=&t=20230529114224'
VUE_APP_BAIDU_CSS_PATH = '\baidu\script\bmap.pro.css'

View File

@@ -21,13 +21,13 @@
<script> <script>
window.BMAP_AUTHENTIC_KEY = "mokVj0S4sGE9av6NBwy8WHY0xnQsucbE" window.BMAP_AUTHENTIC_KEY = "mokVj0S4sGE9av6NBwy8WHY0xnQsucbE"
</script> </script>
<script type="text/javascript" src="\baidu\script\getscript.js?type=webgl&v=1.0&services=&t=20230529114224"></script> <script type="text/javascript" src="<%= VUE_APP_BAIDU_PATH %>"></script>
<link rel="stylesheet" type="text/css" href="\baidu\script\bmap.css" /> <link rel="stylesheet" type="text/css" href="<%= VUE_APP_BAIDU_CSS_PATH %>" />
<script type="text/javascript" src="\baidu\script\index.umd.min.js"></script> <!-- <script type="text/javascript" src="\baidu\script\index.umd.min.js"></script> -->
<!-- <script type="text/javascript" src="https://api.map.baidu.com/api?v=1.0&&type=webgl&ak=mokVj0S4sGE9av6NBwy8WHY0xnQsucbE"></script> --> <!-- <script type="text/javascript" src="https://api.map.baidu.com/api?v=1.0&&type=webgl&ak=mokVj0S4sGE9av6NBwy8WHY0xnQsucbE"></script> -->
<script type="text/javascript" src="./vconsole/vconsole.min.js"></script> <script type="text/javascript" src="./vconsole/vconsole.min.js"></script>
<script type="text/javascript" src="https://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script> <script type="text/javascript" src="https://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>
<script type="text/javascript" src="./baidu/script/HeatMap.js"></script> <!-- <script type="text/javascript" src="./baidu/script/HeatMap.js"></script> -->
<script type="text/javascript"> <script type="text/javascript">
var env='<%= process.env.VUE_APP_HJ %>' var env='<%= process.env.VUE_APP_HJ %>'
if(env!=='production'){ if(env!=='production'){

View File

@@ -728,6 +728,7 @@ export default {
}, },
mounted() { mounted() {
let that = this; let that = this;
this.initMap();
if (window.wx) { if (window.wx) {
wx.ready(() => { wx.ready(() => {
wx.getLocation({ wx.getLocation({
@@ -745,7 +746,6 @@ export default {
}); });
}); });
} else { } else {
this.initMap();
this.getViewCircleCount({ this.getViewCircleCount({
dist: this.dist, dist: this.dist,
targetLat: this.location.lat, targetLat: this.location.lat,