+
挂载仓控制
-
-
+
摄像头控制
-
-
+
喇叭控制
-
-
+
-
+
飞机调试
-
-
+
磁罗盘
-
+
加速度计
-
+
写入参数
-
+
+
+
+
@@ -393,13 +395,13 @@ export default {
if (this.tabIsOpen) {
if (index !== this.activeIndex) {
this.tabIsOpen = false
- this.$emit('mapXOffset', -200)
+ this.$emit('mapXOffset', 0, -200)
} else {
this.speakText(voice)
}
} else {
this.tabIsOpen = true
- this.$emit('mapXOffset', 200)
+ this.$emit('mapXOffset', 0, 200)
this.speakText(voice)
}
},
@@ -782,114 +784,91 @@ export default {
font-weight: bold;
}
-.tab-container {
- height: 365px;
- width: 80px;
- display: flex;
- flex-direction: column;
- align-items: flex-end;
- position: fixed;
- right: 15px;
- top: 50%;
- transform: translateY(-50%);
- z-index: 1000;
+.mainBox {
+ position: absolute;
}
-.butIconGroup {
- color: $maintext-color;
- background-color: rgba(255, 255, 255, 0.5);
- border-radius: 15px;
- padding: 5px;
- width: 80px;
- height: 80px;
- text-align: center;
- margin-bottom: 20px;
- border: none;
- box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.2);
-}
-
-.butIconGroupBG {
- color: $graylight-color;
- background-color: $brand-color;
-}
-
-.butIconGroup:last-of-type {
- margin-bottom: 0px;
-}
-
-.slider-container {
- display: flex;
- align-items: center;
- /* 水平垂直居中 */
-}
-
-.content {
- color: $maintext-color;
- border-radius: 15px;
+.tabContainer {
+ width: 100%;
height: 100%;
- position: fixed;
- right: -400px;
- top: 50%;
- transform: translateY(-50%);
- width: 350px;
- background-color: rgba(255, 255, 255, 0.8);
- padding: 20px;
- box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.2);
- transition: right 0.3s ease;
}
-.content.active {
- right: 95px;
+.tabContent {
+ z-index: 90;
+ position: relative;
+ width: 100%;
+ border-radius: 10px;
+ max-width: 470px;
+ background-color: rgba(255, 255, 255, 0.8);
+ box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.2);
+ top: -50px;
+ opacity: 0;
+ transition: top 0.5s ease, opacity 1s ease;
+}
+
+.tabContent.active {
+ top: -10px;
+ opacity: 1;
+}
+
+.tabContentBox {
+ padding: 20px;
}
.contentTit i {
vertical-align: middle;
}
+.butIconBox {
+ flex-wrap: wrap;
+ /* 允许换行 */
+ justify-content: flex-start;
+ /* 主轴对齐方式 */
+ align-content: space-around;
+ /* 多行在侧轴上的对齐方式 */
+}
+
.butIcon {
border-radius: 10px;
- padding: 5px;
- width: 66px;
- height: 66px;
text-align: center;
border: none;
- float: left;
- margin: 0px !important;
- margin-bottom: 15px !important;
- margin-right: 15px !important;
+ margin-left: 0px !important;
}
-.butIconBox .butIcon:nth-child(4n) {
- margin-right: 0 !important;
+.taButGroup {
+ position: relative;
+ width: 100%;
+ max-width: 470px;
+ height: 105px;
+ cursor: pointer;
+ z-index: 90;
}
-/* 手机端样式 */
-@media screen and (max-height: 500px) {
+@media (max-width: 480px) {
+ .taButGroup {
+ height: calc((100vw - 50px)/4);
+ }
+
.tab-container {
- height: 300px;
- width: 50px;
+ width: 100vw;
}
+}
- .butIconGroup {
- margin-bottom: 12px;
- }
+.taBut {
+ color: $maintext-color;
+ background-color: rgba(255, 255, 255, 0.5);
+ border-radius: 10px;
+ padding: 5px;
+ text-align: center;
+ box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.2);
+}
- .el-button {
- font-size: 14px !important;
- }
+.taButBG {
+ color: $graylight-color;
+ background-color: $brand-color;
+}
- .contentTit {
- font-size: 14px !important;
- margin-bottom: 5px !important;
- }
-
- .contentTit i {
- font-size: 18px !important;
- }
-
- .butIcon {
- height: 56px;
- margin-bottom: 10px !important;
- }
+.gap10 {
+ gap: 10px;
}
diff --git a/src/views/layout/components/main/planes/index.vue b/src/views/layout/components/main/planes/index.vue
index bee277a..9779d57 100644
--- a/src/views/layout/components/main/planes/index.vue
+++ b/src/views/layout/components/main/planes/index.vue
@@ -3,8 +3,7 @@
-
-
+