1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492 |
- <script setup>
- import { QvPanelStore } from "./store/QvPanelStore.js";
- import { QvPanelEvent } from "./js/QvPanelEvent.js";
- import { QvProcessEventStore } from "../QvProcessEvent/store/QvProcessEventStore.js";
- import { QvThreeWorldCamera } from "../QvThreeWorldEvent/js/QvThreeWorldCamera.js";
- import { QvEvent } from "../QvThreeWorldEvent/js/QvEvent.js";
- import { computed, onMounted, onUnmounted, watch, ref } from "vue";
- import { useRouter } from 'vue-router';
- const router = useRouter();
- /**
- * 是否触发弹出下一步,进入下井逻辑
- */
- const xiaJingEvent = () => {
- if (QvPanelStore().obj.step == 2) {
- QvEvent.find().tipsBtnsUpOpenEventCallbackMain(false);
- QvEvent.find().tipsBtnsDownOpenEventCallbackMain(true);
- QvPanelStore().obj.step = 3;
- }
- }
- /**
- * 连接wifi开机逻辑
- */
- const powerOpenEvent = () => {
- if (
- typeof QvPanelStore().obj.wifiOkName == 'string'
- // 没有开机过
- && QvPanelStore().obj.powerOpen == false
- // 可以点击屏幕连接摄像头了
- && QvPanelStore().obj.step == 1
- ) {
- QvPanelStore().obj.powerOpen = true;
- QvPanelStore().obj.step = 2;
- QvProcessEventStore().obj.downTime = "" + new Date().getTime();
- }
-
- }
- /**
- * 控制弹出wifi列表
- * open true - 弹出, false - 隐藏
- */
- const wifiListMainOpenEvent = (open) => {
- QvPanelStore().obj.wifiListMainOpen = open;
- // if (open == false) {
- // powerOpenEvent();
- // }
- }
- /**
- * 弹出填写wifi密码
- * open true - 弹出, false - 隐藏
- */
- const wifiEditMainOpenEvent = (open) => {
- QvPanelStore().obj.wifiEditMainOpen = open;
- }
- let wifiListEventJson = ref(null);
- /**
- * 点击弹出要选中要连接的wifi
- * json
- * index
- */
- const wifiListEvent = (json, index) => {
- // console.log(
- // "wifiListEvent", json, index
- // );
- wifiListEventJson.value = json;
- wifiEditMainOpenEvent(true);
- }
- /**
- * 填写wifi密码提交
- * type yes - 提交 , no - 取消
- */
- const eidtSubmit = (type) => {
- if (type == 'yes') {
- QvPanelStore().obj.wifiOkName = wifiListEventJson.value?.name;
- if (QvPanelStore().obj.step == 0) {
- QvPanelStore().obj.step = 1;
- QvProcessEventStore().obj.downTime = "" + new Date().getTime();
- }
- }
- wifiEditMainOpenEvent(false);
- wifiListMainEvent();
- }
- let targetPointerRotateZUpdateEventClickTime = null;
- /**
- * 触发长按点击逻辑
- * 更新目标角度
- * type 类型 0 - 增加角度, 1 - 减少角度
- */
- const targetPointerRotateZUpdateEventClick = (type) => {
- if (targetPointerRotateZUpdateEventClickTime != null && targetPointerRotateZUpdateEventClickTime != undefined) {
- return;
- }
- console.log("触发长按点击逻辑", type);
- targetPointerRotateZUpdateEventClickTime = setInterval(function() {
- QvPanelEvent.find().targetPointerRotateZUpdate(type);
- }, 100);
- }
- /**
- * 触发弹起,移动停止逻辑
- */
- const targetPointerRotateZUpdateEventEent = () => {
- if (targetPointerRotateZUpdateEventClickTime == null || targetPointerRotateZUpdateEventClickTime == undefined) {
- return;
- }
- console.log("触发弹起,移动停止逻辑");
- clearInterval(targetPointerRotateZUpdateEventClickTime);
- targetPointerRotateZUpdateEventClickTime = null;
- xiaJingEvent();
- }
- /**
- * 相机复位逻辑
- */
- const targetPointerRotateZResetEvent = () => {
- QvPanelEvent.find().targetPointerRotateZReset();
- }
- /**
- * 触发长按点击逻辑
- * fov
- * type 类型 0 - 增加角度, 1 - 减少角度
- */
- const targetFovUpdateEventClick = (type) => {
- if (targetPointerRotateZUpdateEventClickTime != null && targetPointerRotateZUpdateEventClickTime != undefined) {
- return;
- }
- console.log("触发长按点击逻辑", type);
- targetPointerRotateZUpdateEventClickTime = setInterval(function() {
- QvPanelEvent.find().targetFovUpdate(type);
- }, 100);
- }
- /**
- * 触发弹起,移动停止逻辑
- */
- const targetFovUpdateEventEnd = () => {
- if (targetPointerRotateZUpdateEventClickTime == null || targetPointerRotateZUpdateEventClickTime == undefined) {
- return;
- }
- console.log("触发弹起,移动停止逻辑");
- clearInterval(targetPointerRotateZUpdateEventClickTime);
- targetPointerRotateZUpdateEventClickTime = null;
- xiaJingEvent();
- }
- /**
- * 触发长按点击逻辑
- * fov
- * type 类型 0 - 增加角度, 1 - 减少角度
- */
- const targetVagueUpdateEventClick = (type) => {
- if (targetPointerRotateZUpdateEventClickTime != null && targetPointerRotateZUpdateEventClickTime != undefined) {
- return;
- }
- console.log("触发长按点击逻辑", type);
- targetPointerRotateZUpdateEventClickTime = setInterval(function() {
- QvPanelEvent.find().targetVagueUpdate(type);
- }, 100);
- }
- /**
- * 触发弹起,移动停止逻辑
- */
- const targetVagueUpdateEventEnd = () => {
- if (targetPointerRotateZUpdateEventClickTime == null || targetPointerRotateZUpdateEventClickTime == undefined) {
- return;
- }
- console.log("触发弹起,移动停止逻辑");
- clearInterval(targetPointerRotateZUpdateEventClickTime);
- targetPointerRotateZUpdateEventClickTime = null;
- xiaJingEvent();
- }
- /**
- * 触发长按点击逻辑
- * fov
- * type 类型 0 - 增加角度, 1 - 减少角度
- */
- const lightValUpdateEventClick = (type) => {
- if (targetPointerRotateZUpdateEventClickTime != null && targetPointerRotateZUpdateEventClickTime != undefined) {
- return;
- }
- console.log("触发长按点击逻辑", type);
- targetPointerRotateZUpdateEventClickTime = setInterval(function() {
- QvPanelEvent.find().lightValUpdate(type);
- }, 100);
- }
- /**
- * 触发弹起,移动停止逻辑
- */
- const lightValUpdateEventEnd = () => {
- if (targetPointerRotateZUpdateEventClickTime == null || targetPointerRotateZUpdateEventClickTime == undefined) {
- return;
- }
- console.log("触发弹起,移动停止逻辑");
- clearInterval(targetPointerRotateZUpdateEventClickTime);
- targetPointerRotateZUpdateEventClickTime = null;
- xiaJingEvent();
- }
- let wifiList = ref([]);
- const wifiListMainEvent = () => {
- wifiList.value = [];
- for (var i = 0; i < 30; i++) {
- var add = {
- "name" : "wifi_" + (i + 1),
- "connectBool" : false,
- };
- if (QvPanelStore().obj.wifiOkName == add.name) {
- add.connectBool = true;
- }
- wifiList.value.push(add);
- }
- }
- onMounted(function() {
- wifiListMainEvent();
- });
- /**
- * 弹出灯光UI跳转参数
- */
- const lightEditOpenEvent = () => {
- QvPanelStore().obj.lightEditOpen = QvPanelStore().obj.lightEditOpen == true ? false : true;
- }
- /**
- * 控制环境开关
- * open
- */
- const sceneConfigEvent = (open) => {
- return;
- QvThreeWorldCamera.find().skyWhiteEvent(open);
- }
- /**
- * 点击退出回收设备,触发下一步的逻辑
- */
- const exitEvent = () => {
- // console.log(
- // 'QvEvent.find().eventName',
- // QvEvent.find().eventName
- // );
- /**
- * 如果是下井实验,点击这个按钮,弹出提示框
- */
- if (QvEvent.find().eventName == "QV下井实验") {
-
- }
- }
- </script>
- <template>
- <div class="QvPanel">
-
- <div class="main">
- <!-- 底部的遮罩 -->
- <div class="mainBottomTop"></div>
- <div class="mainBottomLeft"></div>
- <div class="mainBottomRight"></div>
- <div class="mainBottomBottom"></div>
-
- <img :style="'opacity:' + ( QvPanelStore().obj.vague * 0.5 ) + ';'"
- class="vagueImg" src="./assets/img/mohu.png" alt="" />
- <div v-show="QvPanelStore().obj.powerOpen == false" class="power"></div>
-
- <!-- 平板电脑边框,最顶部 -->
- <img class="bgImg" src="./assets/img/mian_ban_wai_kuang.webp" />
- <div class="mainEvent">
- <div class="stepDiv" v-if="QvPanelStore().obj.step == 0 && QvPanelStore().obj.wifiListMainOpen == false" >请先连接WIFI</div>
- <div class="stepDiv" v-if="QvPanelStore().obj.step == 1 && QvPanelStore().obj.wifiListMainOpen == false" v-on:click="powerOpenEvent()" >WIFI连接成功,请点击屏幕连接摄像头</div>
- <!-- 连接wifi列表 -->
- <div class="wifiListMain" v-show="QvPanelStore().obj.wifiListMainOpen == true" >
-
- <img v-on:click="wifiListMainOpenEvent(false)" class="wifiClose" src="./assets/img/wifi/close.svg" />
- <div class="wifiList" >
- <div class="wifiListTitle" >
- WIFI列表
- </div>
- <div class="wifiListContent commonsScrollbar">
- <div v-on:click="wifiListEvent(item, index)"
- class="list" v-for="(item, index) of wifiList" :key="index" >
- <!-- {{ item.name }}
- <div :class="'rightTxt ' + (item.connectBool == true ? 'rightTxtYes' : '')" >
- {{ item.connectBool == true ? '已连接' : '未连接' }}
- </div> -->
- <img class="wifiImgLeft" v-show="item.connectBool == false" src="./assets/img/wifi/wifi_no.svg" />
- <img class="wifiImgLeft" v-show="item.connectBool == true" src="./assets/img/wifi/wifi_yes.svg" />
- <div class="listCenter" >{{ item.name }}</div>
- <img class="wifiImgRight" src="./assets/img/wifi/lock.svg" />
- </div>
- </div>
- </div>
- </div>
- <!-- 弹出输入wifi密码 -->
- <div class="wifiEditMain" v-show="QvPanelStore().obj.wifiEditMainOpen == true" >
-
- <!-- <img v-on:click="eidtSubmit('no')" class="wifiEditClose" src="./assets/img/wifi/close.svg" /> -->
- <div class="wifiEdit">
- <img class="vectorImg" src="./assets/img/wifiEdit/Vector.svg" />
- <div class="wifiEditTitle" v-if="wifiListEventJson != null" >wi-fi网络“{{ wifiListEventJson.name }}”需要WPA2密码。</div>
- <div class="wifiEditContent">
- 密码:
- <input class="wifiEditContentInput" placeholder="请填写wifi密码" />
- </div>
- <div class="wifiEditBottom">
- <div v-on:click="eidtSubmit('no')" class="wifiBtn wifiBtnClose">取消</div>
- <div v-on:click="eidtSubmit('yes')" class="wifiBtn">确定</div>
- </div>
- </div>
-
- </div>
- <!-- 弹出灯光选项 -->
- <div class="selectLight" v-show="QvPanelStore().obj.lightEditOpen == true" >
- <div class="edit">
- <div class="l_2 vanFieldNew_1">
- <van-field name="switch" label="近光" style="top: 0rem;" >
- <template #input>
- <van-switch v-model="QvPanelStore().obj.lightNearOpen" />
- </template>
- </van-field>
- </div>
- <div class="l_2 vanFieldNew_1" >
- <van-field name="switch" label="远光" style="top: 0rem;" >
- <template #input>
- <van-switch v-model="QvPanelStore().obj.lightFarOpen" />
- </template>
- </van-field>
- </div>
- </div>
- <div class="editLine" ></div>
- <div class="edit">
- <div class="eidtFontCom" >透光</div>
- <div class="eidtFontCom" >{{ QvPanelStore().obj.lightVal }} % </div>
- </div>
- <div class="edit vanFieldNew_1">
- <div class="editLeft" >
- <img
- v-on:touchend="lightValUpdateEventEnd()"
- v-on:mouseover="lightValUpdateEventEnd()"
- v-on:mouseout="lightValUpdateEventEnd()"
- v-on:mouseup="lightValUpdateEventEnd()"
- v-on:mousedown="lightValUpdateEventClick(1)"
- class="delImg" src="./assets/img/light/del.svg" />
- </div>
- <div class="editCenter" >
- <van-field name="slider">
- <template #input>
- <van-slider v-model="QvPanelStore().obj.lightVal" :min="0" :max="100" :step="0.1" />
- </template>
- </van-field>
- </div>
-
- <div class="editRight" >
- <img
- v-on:touchend="lightValUpdateEventEnd()"
- v-on:mouseover="lightValUpdateEventEnd()"
- v-on:mouseout="lightValUpdateEventEnd()"
- v-on:mouseup="lightValUpdateEventEnd()"
- v-on:mousedown="lightValUpdateEventClick(0)"
- class="addImg" src="./assets/img/light/add.svg" />
- </div>
- </div>
- </div>
-
- <div class="leftTop">
- <img v-on:click="wifiListMainOpenEvent(true)" v-show="QvPanelStore().obj.wifiOkName != null"
- class="btnWifi" src="./assets/img/wifi.svg" />
- <img v-on:click="wifiListMainOpenEvent(true)" v-show="QvPanelStore().obj.wifiOkName == null"
- class="btnWifi" src="./assets/img/wifi_no_2.svg" />
- <div class="electricity_1">
- <span class="sp_1" >67</span><span class="sp_2" >%</span><span class="sp_3">终端电量</span>
- </div>
- <div class="electricity_2">
- <span class="sp_1" >95</span><span class="sp_2" >%</span><span class="sp_3">主机电量</span>
- </div>
- </div>
- <div class="rightTop">
- <img class="btnImg" src="./assets/img/set.svg" v-on:click="wifiListMainOpenEvent(true)" />
- <img v-on:click="exitEvent()"
- class="btnImg" src="./assets/img/exit.svg" />
- </div>
- <div class="left">
- <img class="leftBtnImg" src="./assets/img/left_1.svg" v-on:click="sceneConfigEvent(true)" />
- <img class="leftBtnImg" src="./assets/img/left_2.svg" v-on:click="sceneConfigEvent(false)" />
- <img class="leftBtnImg" src="./assets/img/left_3.svg" />
- <img class="leftBtnImg" src="./assets/img/left_4.svg" />
- <img class="leftBtnImg" src="./assets/img/left_5.svg"
- v-on:click="lightEditOpenEvent()" v-show="QvPanelStore().obj.lightEditOpen == false" />
- <img class="leftBtnImg" src="./assets/img/left_5_2.svg"
- v-on:click="lightEditOpenEvent()" v-show="QvPanelStore().obj.lightEditOpen == true" />
-
- </div>
- <div class="leftBottom">
- <div
- v-on:touchend="targetVagueUpdateEventEnd()"
- v-on:mouseover="targetVagueUpdateEventEnd()"
- v-on:mouseout="targetVagueUpdateEventEnd()"
- v-on:mouseup="targetVagueUpdateEventEnd();"
- v-on:mousedown="targetVagueUpdateEventClick(0)"
- class="leftBottomBtn">
- <img class="btnImg" src="./assets/img/left_bottom_add.svg" />
- </div>
- <div class="leftBottomBtn">
- AF
- </div>
- <div
- v-on:touchend="targetVagueUpdateEventEnd()"
- v-on:mouseover="targetVagueUpdateEventEnd()"
- v-on:mouseout="targetVagueUpdateEventEnd()"
- v-on:mouseup="targetVagueUpdateEventEnd();"
- v-on:mousedown="targetVagueUpdateEventClick(1)"
- class="leftBottomBtn">
- <img class="btnImg" src="./assets/img/left_bottom_del.svg" />
- </div>
- </div>
- <div class="rightBtn rightTop_1" >
- <img class="btnImg" src="./assets/img/video-on-fill.svg" />
- </div>
- <div class="rightBtn rightTop_2" >
- <img class="btnImg" src="./assets/img/camera-fill.svg" />
- </div>
- <div class="rightCenter">
- <div
- v-on:touchend="targetFovUpdateEventEnd()"
- v-on:mouseover="targetFovUpdateEventEnd()"
- v-on:mouseout="targetFovUpdateEventEnd()"
- v-on:mouseup="targetFovUpdateEventEnd();"
- v-on:mousedown="targetFovUpdateEventClick(0)"
- class="rightCenterBtn rightCenterBtn_1">
- <img class="btnImg" src="./assets/img/right_add.svg" />
- </div>
- <div class="rightCenterBtn rightCenterBtn_2">
- 大管道
- </div>
- <div
- v-on:touchend="targetFovUpdateEventEnd()"
- v-on:mouseover="targetFovUpdateEventEnd()"
- v-on:mouseout="targetFovUpdateEventEnd()"
- v-on:mouseup="targetFovUpdateEventEnd();"
- v-on:mousedown="targetFovUpdateEventClick(1)"
- class="rightCenterBtn rightCenterBtn_3">
- <img class="btnImg" src="./assets/img/right_del.svg" />
- </div>
- </div>
- <div class="rightBottom">
- <div class="rightBottomBtn"
- v-on:touchend="targetPointerRotateZUpdateEventEent()"
- v-on:mouseover="targetPointerRotateZUpdateEventEent()"
- v-on:mouseout="targetPointerRotateZUpdateEventEent()"
- v-on:mouseup="targetPointerRotateZUpdateEventEent();"
- v-on:mousedown="targetPointerRotateZUpdateEventClick(0)" >
- <img class="btnImg" src="./assets/img/up.svg" />
- </div>
- <div class="rightBottomBtn" v-on:click="targetPointerRotateZResetEvent()" >
- <img class="btnImg" src="./assets/img/reset.svg" />
- </div>
- <div class="rightBottomBtn"
- v-on:touchend="targetPointerRotateZUpdateEventEent()"
- v-on:mouseover="targetPointerRotateZUpdateEventEent()"
- v-on:mouseout="targetPointerRotateZUpdateEventEent()"
- v-on:mouseup="targetPointerRotateZUpdateEventEent();"
- v-on:mousedown="targetPointerRotateZUpdateEventClick(1)" >
- <img class="btnImg" src="./assets/img/down.svg" />
- </div>
- </div>
- <div class="rightBottomWheel">
- <div class="pointerDiv" :style="'transform: rotateZ(' + QvPanelStore().obj.pointerRotateZ + 'deg);'" >
- <img class="pointer" src="./assets/img/pointer.svg" />
- </div>
- <div class="txt_1">90°</div>
- <div class="txt_2">45°</div>
- <div class="txt_3">0°</div>
- <div class="txt_4">-45°</div>
- <div class="txt_5">-90°</div>
- </div>
-
- </div>
- </div>
-
- </div>
- </template>
- <style lang="scss" scoped>
- @import "./css/commonsScrollbar.scss";
- // $myScale: 1;
- $myScale: 0.7;
- .QvPanel * {
- -moz-user-select: none;
- -webkit-user-select: none;
- -ms-user-select: none;
- -khtml-user-select: none;
- user-select: none;
- }
- .QvPanel {
- position: fixed;
- top: 0px;
- left: 0px;
- width: 100%;
- height: 100%;
- // background-color: #00000090;
- background-color: transparent;
- z-index: 9;
-
- .main {
- // position: absolute;
- // width: 62.5%;
- // height: 81%;
- // left: 18.75%;
- // top: 9.5%;
- position: absolute;
- width: 85.71rem * $myScale;
- height: 62.5rem * $myScale;
- top: 50%;
- left: 50%;
- margin: -31.25rem * $myScale 0px 0px -42.855rem * $myScale;
- z-index: 1;
-
- .mainBottomTop, .mainBottomLeft, .mainBottomRight, .mainBottomBottom {
- position: absolute;
- background-color: #000000;
- width: 300rem * $myScale;
- height: 200rem * $myScale;
- z-index: 0;
- }
- .mainBottomTop {
- left: -90rem * $myScale;
- top: -197rem * $myScale;
- }
- .mainBottomLeft {
- left: -296rem * $myScale;
- top: 0rem * $myScale;
- }
- .mainBottomRight {
- right: -296rem * $myScale;
- top: 0rem * $myScale;
- }
- .mainBottomBottom {
- left: -90rem * $myScale;
- bottom: -197rem * $myScale;
- }
- .power {
- position: absolute;
- width: 80rem * $myScale;
- height: 56rem * $myScale;
- background-color: #000000;
- border-radius: 2rem * $myScale;
- z-index: 0;
- top: 50%;
- left: 50%;
- margin: -28rem * $myScale 0px 0px -40rem * $myScale;
- color: #ffffff;
- font-size: 2rem * $myScale;
- font-weight: 600;
-
- }
-
- .vagueImg {
- position: absolute;
- width: 80rem * $myScale;
- height: 56rem * $myScale;
- background-color: #000000;
- border-radius: 2rem * $myScale;
- z-index: 0;
- top: 50%;
- left: 50%;
- margin: -28rem * $myScale 0px 0px -40rem * $myScale;
- /* 注意这里必须是被允许穿透点击的,否则堆叠高于了 canvas,则会出现无法点击到canvas了。加了这个即可解决这个问题 */
- pointer-events: none;
-
- }
-
- .bgImg {
- position: absolute;
- z-index: 100;
- width: 100%;
- height: 100%;
- top: 0px;
- left: 0px;
- /* 注意这里必须是被允许穿透点击的,否则堆叠高于了 canvas,则会出现无法点击到canvas了。加了这个即可解决这个问题 */
- pointer-events: none;
- }
-
- .mainEvent {
- position: absolute;
- z-index: 1;
- width: 100%;
- height: 100%;
- top: 0px;
- left: 0px;
-
- .leftTop {
- position: absolute;
- width: 45rem * $myScale;
- height: 4.5rem * $myScale;
- top: 6.07rem * $myScale;
- // left: 6.35rem * $myScale;
- left: 6.07rem * $myScale;
- background-image: url("./assets/img/left_top.svg");
- -webkit-background-size: 100% 100%;
- -moz-background-size: 100% 100%;
- -o-background-size: 100% 100%;
- background-size: 100% 100%;
- // background-image: url("img/bg.png");
- // -webkit-background-size: cover;
- // -moz-background-size: cover;
- // -o-background-size: cover;
- // background-size: cover;
-
- // background-position: center center;
- .btnWifi {
- position: absolute;
- top: 0.64rem * $myScale;
- left: 1.42rem * $myScale;
- width: 3.64rem * $myScale;
- // 手势
- cursor:pointer;
- }
- .electricity_1, .electricity_2 {
- position: absolute;
- bottom: 0.71rem * $myScale;
- .sp_1 {
- font-size: 2.85rem * $myScale;
- font-weight: 500;
- color: #26D8EF;
- }
- .sp_2 {
- color: #B6EAF1;
- font-size: 1.57rem * $myScale;
- margin: 0px 1rem * $myScale 0px 1rem * $myScale;
- }
- .sp_3 {
- color: #B6EAF1;
- font-size: 1.57rem * $myScale;
- }
- }
- .electricity_1 {
- left: 9.3rem * $myScale;
- }
- .electricity_2 {
- left: 25.0rem * $myScale;
- }
- }
- .rightTop {
- position: absolute;
- top: 6.21rem * $myScale;
- right: 7.57rem * $myScale;
- .btnImg {
- width: 4.78rem * $myScale;
- // 手势
- cursor:pointer;
- margin: 0px 0.85rem * $myScale 0px 0.85rem * $myScale;
- }
- }
- .left {
- position: absolute;
- width: 5.42rem * $myScale;
- height: 28.07rem * $myScale;
- background-image: url("./assets/img/left.svg");
- -webkit-background-size: 100% 100%;
- -moz-background-size: 100% 100%;
- -o-background-size: 100% 100%;
- background-size: 100% 100%;
- top: 12.92rem * $myScale;
- left: 6.07rem * $myScale;
- .leftBtnImg {
- // 手势
- cursor:pointer;
- width: 2.85rem * $myScale;
- float: left;
- margin: 1.25rem * $myScale 1.35rem * $myScale 1.25rem * $myScale 1.35rem * $myScale;
- }
- }
-
- .leftBottom {
- position: absolute;
- width: 5.42rem * $myScale;
- height: 13.85rem * $myScale;
- background-image: url("./assets/img/left_bottom.svg");
- -webkit-background-size: 100% 100%;
- -moz-background-size: 100% 100%;
- -o-background-size: 100% 100%;
- background-size: 100% 100%;
- left: 6.07rem * $myScale;
- bottom: 5.42rem * $myScale;
- .leftBottomBtn {
- width: 2.85rem * $myScale;
- height: 2.85rem * $myScale;
- margin: 1.25rem * $myScale 1.35rem * $myScale 1.25rem * $myScale 1.35rem * $myScale;
- // 手势
- cursor:pointer;
- /* 水平垂直居中,支持文字自动换行 */
- display: flex;
- flex-direction: column;
- justify-content: center;
- align-items: center;
- color: #CBDEE7;
- font-size: 1rem * $myScale;
- font-weight: 500;
- .btnImg {
- width: auto;
- height: auto;
- max-width: 100%;
- max-height: 100%;
- }
- }
- }
- .rightBtn {
- width: 5.42rem * $myScale;
- height: 5.42rem * $myScale;
-
- // 手势
- cursor:pointer;
- /* 水平垂直居中,支持文字自动换行 */
- display: flex;
- flex-direction: column;
- justify-content: center;
- align-items: center;
- background-image: url("./assets/img/common.svg");
- -webkit-background-size: 100% 100%;
- -moz-background-size: 100% 100%;
- -o-background-size: 100% 100%;
- background-size: 100% 100%;
-
- .btnImg {
- // width: auto;
- // height: auto;
- // max-width: 100%;
- // max-height: 100%;
- width: 2.85rem * $myScale;
- }
-
- }
- .rightTop_1, .rightTop_2 {
- position: absolute;
- right: 6.07rem * $myScale;
- }
- .rightTop_1 {
- top: 12.64rem * $myScale;
- }
- .rightTop_2 {
- top: 20rem * $myScale;
- }
- .rightCenter {
- position: absolute;
- width: 5.42rem * $myScale;
- height: 13.85rem * $myScale;
- right: 6.07rem * $myScale;
- bottom: 21.28rem * $myScale;
- background-image: url("./assets/img/right.svg");
- -webkit-background-size: 100% 100%;
- -moz-background-size: 100% 100%;
- -o-background-size: 100% 100%;
- background-size: 100% 100%;
- .rightCenterBtn {
- float: left;
- width: 5.42rem * $myScale;
- height: 3.8rem * $myScale;
-
- // 手势
- cursor:pointer;
- /* 水平垂直居中,支持文字自动换行 */
- display: flex;
- flex-direction: column;
- justify-content: center;
- align-items: center;
- color: #26D8EF;
- font-size: 1rem * $myScale;
- font-weight: 500;
- .btnImg {
- // width: auto;
- // height: auto;
- // max-width: 100%;
- // max-height: 100%;
- width: 2.85rem * $myScale;
- }
- }
-
- .rightCenterBtn_1 {
- position: absolute;
- top: 1rem * $myScale;
- }
- .rightCenterBtn_2 {
- position: absolute;
- bottom: 5rem * $myScale;
- }
- .rightCenterBtn_3 {
- position: absolute;
- bottom: 1rem * $myScale;
- }
-
- }
- .rightBottom {
- position: absolute;
- width: 5.42rem * $myScale;
- height: 13.85rem * $myScale;
- right: 6.07rem * $myScale;
- bottom: 5.5rem * $myScale;
- background-image: url("./assets/img/right_bottom.svg");
- -webkit-background-size: 100% 100%;
- -moz-background-size: 100% 100%;
- -o-background-size: 100% 100%;
- background-size: 100% 100%;
- .rightBottomBtn {
- width: 2.85rem * $myScale;
- height: 2.85rem * $myScale;
- margin: 1.25rem * $myScale 1.35rem * $myScale 1.25rem * $myScale 1.35rem * $myScale;
- // 手势
- cursor:pointer;
- /* 水平垂直居中,支持文字自动换行 */
- display: flex;
- flex-direction: column;
- justify-content: center;
- align-items: center;
- .btnImg {
- width: auto;
- height: auto;
- max-width: 100%;
- max-height: 100%;
- }
- }
- }
- .rightBottomWheel {
- position: absolute;
- width: 6.78rem * $myScale;
- height: 13.5rem * $myScale;
- right: 12.07rem * $myScale;
- bottom: 5.64rem * $myScale;
- overflow: hidden;
- background-image: url("./assets/img/compass.svg");
- -webkit-background-size: 100% 100%;
- -moz-background-size: 100% 100%;
- -o-background-size: 100% 100%;
- background-size: 100% 100%;
-
- .pointerDiv {
- position: absolute;
- width: 13.5rem * $myScale;
- height: 13.5rem * $myScale;
- top: 0px;
- left: 0px;
- transform: rotateZ(0deg);
- .pointer {
- position: absolute;
- width: 4.35rem * $myScale;
- height: 0.64rem * $myScale;
- top: 50%;
- margin: -0.32rem * $myScale 0px 0px -4.35rem * $myScale;
- left: 50%;
-
- }
- }
- .txt_1, .txt_2, .txt_3, .txt_4, .txt_5 {
- position: absolute;
- font-size: 0.71rem * $myScale;
- color: #B9C5CA;
- }
- .txt_1 {
- top: 0.65rem * $myScale;
- right: 0.42rem * $myScale;
- }
- .txt_2 {
- top: 2.5rem * $myScale;
- right: 3.65rem * $myScale;
- }
- .txt_3 {
- top: 6.42rem * $myScale;
- right: 5.57rem * $myScale;
- }
- .txt_4 {
- bottom: 2.5rem * $myScale;
- right: 3.65rem * $myScale;
- }
-
- .txt_5 {
- bottom: 0.65rem * $myScale;
- right: 0.42rem * $myScale;
- }
-
- }
- .wifiListMain {
- position: absolute;
- z-index: 3;
- background-color: #00000090;
- top: 2rem * $myScale;
- bottom: 2rem * $myScale;
- left: 3rem * $myScale;
- right: 3rem * $myScale;
- .wifiClose {
- position: absolute;
- width: 1.71rem * $myScale;
- height: 1.71rem * $myScale;
- // 手势
- cursor:pointer;
- top: 18.5rem * $myScale;
- right: 26.5rem * $myScale;
- }
- .wifiList {
- position: absolute;
- width: 22.6rem * $myScale;
- height: 18rem * $myScale;
- top: 50%;
- left: 50%;
- margin: -9rem * $myScale 0px 0px -11.3rem * $myScale;
- background-image: url("./assets/img/wifi/wifi_list_bg.svg");
- -webkit-background-size: 100% 100%;
- -moz-background-size: 100% 100%;
- -o-background-size: 100% 100%;
- background-size: 100% 100%;
- .wifiListTitle {
- position: absolute;
- top: 0px;
- left: 0px;
- width: 100%;
- font-size: 1.28rem * $myScale;
- height: 3.57rem * $myScale;
- line-height: 3.57rem * $myScale;
- border-bottom: 1px solid #1e3f4b;
- font-weight: 400;
- color: #FFFFFF;
- padding: 0px 0px 0px 1.92rem * $myScale;
-
- }
- .wifiListContent {
- position: absolute;
- top: 3.57rem * $myScale;
- left: 0px;
- width: 100%;
- bottom: 0px;
- .list {
- position: relative;
- font-size: 1.28rem * $myScale;
- height: 1.85rem * $myScale;
- line-height: 1.85rem * $myScale;
- font-weight: 400;
- color: #FFFFFF;
- margin: 0.35rem * $myScale 0px 0.35rem * $myScale 0px;
- .wifiImgLeft {
- position: absolute;
- width: 1.85rem * $myScale;
- height: 1.85rem * $myScale;
- top: 0px;
- left: 1.92rem * $myScale;
- }
- .listCenter {
- position: absolute;
- left: 4.85rem * $myScale;
- height: 100%;
- height: 1.85rem * $myScale;
-
- }
- .wifiImgRight {
- position: absolute;
- width: 1.57rem * $myScale;
- height: 1.57rem * $myScale;
- top: 0.14rem * $myScale;
- right: 2rem * $myScale;
- }
-
- }
- }
- }
- }
- .wifiEditMain {
- position: absolute;
- z-index: 3;
- background-color: #00000090;
- top: 2rem * $myScale;
- bottom: 2rem * $myScale;
- left: 3rem * $myScale;
- right: 3rem * $myScale;
- /* 水平垂直居中,支持文字自动换行 */
- display: flex;
- flex-direction: column;
- justify-content: center;
- align-items: center;
- .wifiEditClose {
- position: absolute;
- width: 1.71rem * $myScale;
- height: 1.71rem * $myScale;
- // 手势
- cursor:pointer;
- top: 18.5rem * $myScale;
- right: 22.5rem * $myScale;
- }
- .wifiEdit {
- position: relative;
-
- background-image: url("./assets/img/wifiEdit/bg.svg");
- -webkit-background-size: 100% 100%;
- -moz-background-size: 100% 100%;
- -o-background-size: 100% 100%;
- background-size: 100% 100%;
- width: 31.64rem * $myScale;
- height: 17.92rem * $myScale;
- .vectorImg {
- position: absolute;
- width: 3.61rem * $myScale;
- top: 2.07rem * $myScale;
- left: 2.35rem * $myScale;
- }
- .wifiEditTitle {
-
- position: absolute;
- top: 2.42rem * $myScale;
- left: 7.14rem * $myScale;
- width: 21.78rem * $myScale;
- font-size: 1.14rem * $myScale;
- color: #FFFFFF;
- // 换行
- word-break: break-all;
- /** 让文本带有 \n 自动换行 */
- white-space: pre-wrap;
- // text-wrap: normal;
- // white-space: normal;
-
- }
- .wifiEditContent {
- position: absolute;
- top: 8.42rem * $myScale;
- left: 7.28rem * $myScale;
- height: 4rem * $myScale;
- // background-color: brown;
- color: #ffffff;
- .wifiEditContentInput {
-
- // 重置所有样式
- all: initial;
- position: relative;
- border: 1px solid #2474a9;
- width: 16rem * $myScale;
-
- height: 1.57rem * $myScale;
- line-height: 1.57rem * $myScale;
- border-radius: 0.0rem * $myScale;
- color: #ffffff;
- font-size: 1.14rem * $myScale;
- padding: 0px 0.5rem * $myScale 0px 0.5rem * $myScale;
-
- &:hover {
- border: 1px solid #00aeff;
- }
- }
- .wifiEditContentInput::placeholder {
- font-size: 1.14rem * $myScale;
- color: #d3c5c5;
- }
-
- }
-
- .wifiEditBottom {
-
- position: absolute;
- bottom: 3.85rem * $myScale;
- right: 2.5rem * $myScale;
- .wifiBtn {
- background-color: #0894FF;
- border-radius: 0.21rem * $myScale;
- color: #ffffff;
- display: inline-block;
- padding: 0.21rem * $myScale 1rem * $myScale 0.21rem * $myScale 1rem * $myScale;
- margin: 0px 0.89rem * $myScale 0px 0.89rem * $myScale;
- }
- .wifiBtnClose {
- background-color: #D9D9D9;
- color: #0F333F;
- }
- }
- }
- }
- .stepDiv {
- position: absolute;
- width: 50rem * $myScale;
- height: 20rem * $myScale;
- background-color: #000000;
- border-radius: 2rem * $myScale;
- z-index: 3;
- top: 50%;
- left: 50%;
- margin: -10rem * $myScale 0px 0px -25rem * $myScale;
- color: #ffffff;
- font-size: 2rem * $myScale;
- font-weight: 600;
- // 手势
- cursor:pointer;
- /* 水平垂直居中,支持文字自动换行 */
- display: flex;
- flex-direction: column;
- justify-content: center;
- align-items: center;
- }
- .selectLight {
- position: absolute;
- width: 31.64rem * $myScale;
- height: 17.92rem * $myScale;
- bottom: 8rem * $myScale;
- left: 14rem * $myScale;
- z-index: 3;
- background-image: url("./assets/img/light/bg.webp");
- -webkit-background-size: 100% 100%;
- -moz-background-size: 100% 100%;
- -o-background-size: 100% 100%;
- background-size: 100% 100%;
- .edit {
- position: relative;
- width: 100%;
- height: 5.66rem * $myScale;
- .l_2 {
- display: inline-block;
- height: 100%;
- width: 49.5%;
- }
- .eidtFontCom {
- display: inline-flex;
- align-items: center;
- height: 100%;
- color: #FFFFFF;
- font-size: 1.57rem * $myScale;
- margin: 0px 2.85rem * $myScale 0px 2.85rem * $myScale;
- }
- .editLeft, .editCenter, .editRight {
- position: absolute;
- top: 0px;
- height: 100%;
- }
- .editLeft {
- left: 1rem * $myScale;
- width: 6rem * $myScale;
- /* 水平垂直居中,支持文字自动换行 */
- display: flex;
- flex-direction: column;
- justify-content: center;
- align-items: center;
-
- }
- .editCenter {
- left: 6rem * $myScale;
- right: 6rem * $myScale;
- }
- .editRight {
- right: 1rem * $myScale;
- width: 6rem * $myScale;
- /* 水平垂直居中,支持文字自动换行 */
- display: flex;
- flex-direction: column;
- justify-content: center;
- align-items: center;
-
- }
- .delImg, .addImg {
- width: 2.14rem * $myScale;
- // 手势
- cursor:pointer;
- }
- }
- .editLine {
- position: relative;
- width: 90%;
- left: 5%;
- height: 1px;
- background-color: #264751;
- }
- }
- }
- }
-
- }
- </style>
|