+
返回
@@ -32,6 +36,7 @@ export default {
data() {
const basePathUrl = window.basePathUrl || "";
return {
+ btnStyle: {},
missionData: {}, //任务id
mileData: {
mile: 0, //已经行驶多少里程
@@ -94,6 +99,16 @@ export default {
this.mapLayer.car = null;
},
created() {
+ const screenWidth = window.innerWidth;
+ if (screenWidth > 3000) {
+ this.btnStyle = {
+ left: `32.5%`,
+ };
+ } else {
+ this.btnStyle = {
+ left: `27.8%`,
+ };
+ }
this.missionData = {
missionId: this.$route.query.missionId,
missionName: this.$route.query.missionName,
@@ -392,12 +407,8 @@ export default {
.albuginea {
cursor: pointer;
position: absolute;
- // top: 103px;
- bottom: 4%;
- left: 32.5%;
-
- // left: calc(554px + 24px);
- z-index: 100;
+ bottom: 3%;
+ z-index: 110;
width: 80px;
height: 32px;
text-align: center;
@@ -410,8 +421,7 @@ export default {
color: #ffffff;
}
.backBtn {
- // top: 145px;
- bottom: 8%;
+ bottom: 7%;
}
.albuginea:hover {
background: #0084ff;
@@ -457,6 +467,7 @@ export default {
}
}
.video-list {
+ width: 35%;
position: absolute;
bottom: 30px;
left: 50%;
diff --git a/src/views/index.vue b/src/views/index.vue
index b71f858..ffa2484 100644
--- a/src/views/index.vue
+++ b/src/views/index.vue
@@ -82,7 +82,7 @@ export default {
},
created() {
const screenWidth = window.innerWidth;
- console.log(screenWidth);
+
if (screenWidth > 3000) {
this.options.scene.center = {
lat: 28.990656,