This commit is contained in:
2023-11-10 09:46:15 +08:00
parent 6ec1c70cb6
commit 4434327a7c
3 changed files with 45 additions and 33 deletions

View File

@ -1,14 +1,18 @@
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head>
<meta charset="utf-8"> <head>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <meta charset="utf-8">
<meta name="renderer" content="webkit"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"> <meta name="renderer" content="webkit">
<link rel="icon" href="<%= BASE_URL %>favicon.ico"> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<title><%= webpackConfig.name %></title> <link rel="icon" href="<%= BASE_URL %>favicon.ico">
<!--[if lt IE 11]><script>window.location.href='/html/ie.html';</script><![endif]--> <title>
<style> <%= webpackConfig.name %>
</title>
<script type="text/javascript" src="https://webapi.amap.com/maps?v=2.0&key=6b427d1f3e633c70e11ca6e304444a63"></script>
<!--[if lt IE 11]><script>window.location.href='/html/ie.html';</script><![endif]-->
<style>
html, html,
body, body,
#app { #app {
@ -16,6 +20,7 @@
margin: 0px; margin: 0px;
padding: 0px; padding: 0px;
} }
.chromeframe { .chromeframe {
margin: 0.2em 0; margin: 0.2em 0;
background: #ccc; background: #ccc;
@ -92,6 +97,7 @@
-ms-transform: rotate(0deg); -ms-transform: rotate(0deg);
transform: rotate(0deg); transform: rotate(0deg);
} }
100% { 100% {
-webkit-transform: rotate(360deg); -webkit-transform: rotate(360deg);
-ms-transform: rotate(360deg); -ms-transform: rotate(360deg);
@ -105,6 +111,7 @@
-ms-transform: rotate(0deg); -ms-transform: rotate(0deg);
transform: rotate(0deg); transform: rotate(0deg);
} }
100% { 100% {
-webkit-transform: rotate(360deg); -webkit-transform: rotate(360deg);
-ms-transform: rotate(360deg); -ms-transform: rotate(360deg);
@ -194,15 +201,17 @@
opacity: 0.5; opacity: 0.5;
} }
</style> </style>
</head> </head>
<body>
<div id="app"> <body>
<div id="loader-wrapper"> <div id="app">
<div id="loader"></div> <div id="loader-wrapper">
<div class="loader-section section-left"></div> <div id="loader"></div>
<div class="loader-section section-right"></div> <div class="loader-section section-left"></div>
<div class="load_title">正在加载系统资源,请耐心等待</div> <div class="loader-section section-right"></div>
</div> <div class="load_title">正在加载系统资源,请耐心等待</div>
</div> </div>
</body> </div>
</body>
</html> </html>

View File

@ -17,10 +17,10 @@ export default {
return { return {
setDateRange: { setDateRange: {
disabledDate: time => { disabledDate: time => {
// 禁用今天之前的日期【当前天可选】 // 禁用今天之前的日期【当前天可选】
return time.getTime() < Date.now() - 24 * 60 * 60 * 1000; return time.getTime() < Date.now() - 24 * 60 * 60 * 1000;
} }
}, },
timevalue: [], timevalue: [],
map: null, map: null,
baseurl: process.env.VUE_APP_BASE_API, baseurl: process.env.VUE_APP_BASE_API,
@ -156,6 +156,7 @@ export default {
this.map = new AMap.Map("container", { this.map = new AMap.Map("container", {
resizeEnable: true, //设置地图可缩放 resizeEnable: true, //设置地图可缩放
zoom: 18, //设置地图的层级 zoom: 18, //设置地图的层级
viewMode: '2D', //设置地图模式
center: [query.serveLocationLongitude, query.serveLocationLatitude], //设置地图中心点 更多配置项参照高德官网的配置 center: [query.serveLocationLongitude, query.serveLocationLatitude], //设置地图中心点 更多配置项参照高德官网的配置
}); });
var layer = new AMap.LabelsLayer({ var layer = new AMap.LabelsLayer({
@ -193,7 +194,6 @@ export default {
}, },
}, },
}); });
layer.add(labelMarker); layer.add(labelMarker);
}, },
//取消预约确定按钮 //取消预约确定按钮
@ -353,15 +353,15 @@ export default {
if (res.data) { if (res.data) {
if (res.data.evaluateSatisfaction == "COMMONLY") { if (res.data.evaluateSatisfaction == "COMMONLY") {
this.query.evaluateSatisfaction = "一般"; this.query.evaluateSatisfaction = "一般";
} else if (res.data.evaluateSatisfaction == "SATISFIED") { } else if (res.data.evaluateSatisfaction == "SATISFIED") {
this.query.evaluateSatisfaction = "满意"; this.query.evaluateSatisfaction = "满意";
} else if (res.data.evaluateSatisfaction == "DISSATISFIED") { } else if (res.data.evaluateSatisfaction == "DISSATISFIED") {
this.query.evaluateSatisfaction = "差"; this.query.evaluateSatisfaction = "差";
} else if (res.data.evaluateSatisfaction == "VERYSATISFIED") { } else if (res.data.evaluateSatisfaction == "VERYSATISFIED") {
this.query.evaluateSatisfaction = "非常满意"; this.query.evaluateSatisfaction = "非常满意";
} else if (res.data.evaluateSatisfaction == "VERYDISSATISFIED") { } else if (res.data.evaluateSatisfaction == "VERYDISSATISFIED") {
this.query.evaluateSatisfaction = "非常差"; this.query.evaluateSatisfaction = "非常差";
} }
this.loading = false this.loading = false
this.innerVisible4 = true; this.innerVisible4 = true;
setTimeout(() => { setTimeout(() => {
@ -533,4 +533,4 @@ export default {
); );
}, },
}, },
}; };

View File

@ -52,6 +52,9 @@ module.exports = {
} }
}, },
configureWebpack: { configureWebpack: {
externals: {
'AMap': 'AMap'
},
name: name, name: name,
resolve: { resolve: {
alias: { alias: {
@ -97,7 +100,7 @@ module.exports = {
.plugin('ScriptExtHtmlWebpackPlugin') .plugin('ScriptExtHtmlWebpackPlugin')
.after('html') .after('html')
.use('script-ext-html-webpack-plugin', [{ .use('script-ext-html-webpack-plugin', [{
// `runtime` must same as runtimeChunk name. default is `runtime` // `runtime` must same as runtimeChunk name. default is `runtime`
inline: /runtime\..*\.js$/ inline: /runtime\..*\.js$/
}]) }])
.end() .end()
@ -127,8 +130,8 @@ module.exports = {
}) })
config.optimization.runtimeChunk('single'), config.optimization.runtimeChunk('single'),
{ {
from: path.resolve(__dirname, './public/robots.txt'), //防爬虫文件 from: path.resolve(__dirname, './public/robots.txt'), //防爬虫文件
to: './' //到根目录下 to: './' //到根目录下
} }
} }
) )