QvPanel.vue 46 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492
  1. <script setup>
  2. import { QvPanelStore } from "./store/QvPanelStore.js";
  3. import { QvPanelEvent } from "./js/QvPanelEvent.js";
  4. import { QvProcessEventStore } from "../QvProcessEvent/store/QvProcessEventStore.js";
  5. import { QvThreeWorldCamera } from "../QvThreeWorldEvent/js/QvThreeWorldCamera.js";
  6. import { QvEvent } from "../QvThreeWorldEvent/js/QvEvent.js";
  7. import { computed, onMounted, onUnmounted, watch, ref } from "vue";
  8. import { useRouter } from 'vue-router';
  9. const router = useRouter();
  10. /**
  11. * 是否触发弹出下一步,进入下井逻辑
  12. */
  13. const xiaJingEvent = () => {
  14. if (QvPanelStore().obj.step == 2) {
  15. QvEvent.find().tipsBtnsUpOpenEventCallbackMain(false);
  16. QvEvent.find().tipsBtnsDownOpenEventCallbackMain(true);
  17. QvPanelStore().obj.step = 3;
  18. }
  19. }
  20. /**
  21. * 连接wifi开机逻辑
  22. */
  23. const powerOpenEvent = () => {
  24. if (
  25. typeof QvPanelStore().obj.wifiOkName == 'string'
  26. // 没有开机过
  27. && QvPanelStore().obj.powerOpen == false
  28. // 可以点击屏幕连接摄像头了
  29. && QvPanelStore().obj.step == 1
  30. ) {
  31. QvPanelStore().obj.powerOpen = true;
  32. QvPanelStore().obj.step = 2;
  33. QvProcessEventStore().obj.downTime = "" + new Date().getTime();
  34. }
  35. }
  36. /**
  37. * 控制弹出wifi列表
  38. * open true - 弹出, false - 隐藏
  39. */
  40. const wifiListMainOpenEvent = (open) => {
  41. QvPanelStore().obj.wifiListMainOpen = open;
  42. // if (open == false) {
  43. // powerOpenEvent();
  44. // }
  45. }
  46. /**
  47. * 弹出填写wifi密码
  48. * open true - 弹出, false - 隐藏
  49. */
  50. const wifiEditMainOpenEvent = (open) => {
  51. QvPanelStore().obj.wifiEditMainOpen = open;
  52. }
  53. let wifiListEventJson = ref(null);
  54. /**
  55. * 点击弹出要选中要连接的wifi
  56. * json
  57. * index
  58. */
  59. const wifiListEvent = (json, index) => {
  60. // console.log(
  61. // "wifiListEvent", json, index
  62. // );
  63. wifiListEventJson.value = json;
  64. wifiEditMainOpenEvent(true);
  65. }
  66. /**
  67. * 填写wifi密码提交
  68. * type yes - 提交 , no - 取消
  69. */
  70. const eidtSubmit = (type) => {
  71. if (type == 'yes') {
  72. QvPanelStore().obj.wifiOkName = wifiListEventJson.value?.name;
  73. if (QvPanelStore().obj.step == 0) {
  74. QvPanelStore().obj.step = 1;
  75. QvProcessEventStore().obj.downTime = "" + new Date().getTime();
  76. }
  77. }
  78. wifiEditMainOpenEvent(false);
  79. wifiListMainEvent();
  80. }
  81. let targetPointerRotateZUpdateEventClickTime = null;
  82. /**
  83. * 触发长按点击逻辑
  84. * 更新目标角度
  85. * type 类型 0 - 增加角度, 1 - 减少角度
  86. */
  87. const targetPointerRotateZUpdateEventClick = (type) => {
  88. if (targetPointerRotateZUpdateEventClickTime != null && targetPointerRotateZUpdateEventClickTime != undefined) {
  89. return;
  90. }
  91. console.log("触发长按点击逻辑", type);
  92. targetPointerRotateZUpdateEventClickTime = setInterval(function() {
  93. QvPanelEvent.find().targetPointerRotateZUpdate(type);
  94. }, 100);
  95. }
  96. /**
  97. * 触发弹起,移动停止逻辑
  98. */
  99. const targetPointerRotateZUpdateEventEent = () => {
  100. if (targetPointerRotateZUpdateEventClickTime == null || targetPointerRotateZUpdateEventClickTime == undefined) {
  101. return;
  102. }
  103. console.log("触发弹起,移动停止逻辑");
  104. clearInterval(targetPointerRotateZUpdateEventClickTime);
  105. targetPointerRotateZUpdateEventClickTime = null;
  106. xiaJingEvent();
  107. }
  108. /**
  109. * 相机复位逻辑
  110. */
  111. const targetPointerRotateZResetEvent = () => {
  112. QvPanelEvent.find().targetPointerRotateZReset();
  113. }
  114. /**
  115. * 触发长按点击逻辑
  116. * fov
  117. * type 类型 0 - 增加角度, 1 - 减少角度
  118. */
  119. const targetFovUpdateEventClick = (type) => {
  120. if (targetPointerRotateZUpdateEventClickTime != null && targetPointerRotateZUpdateEventClickTime != undefined) {
  121. return;
  122. }
  123. console.log("触发长按点击逻辑", type);
  124. targetPointerRotateZUpdateEventClickTime = setInterval(function() {
  125. QvPanelEvent.find().targetFovUpdate(type);
  126. }, 100);
  127. }
  128. /**
  129. * 触发弹起,移动停止逻辑
  130. */
  131. const targetFovUpdateEventEnd = () => {
  132. if (targetPointerRotateZUpdateEventClickTime == null || targetPointerRotateZUpdateEventClickTime == undefined) {
  133. return;
  134. }
  135. console.log("触发弹起,移动停止逻辑");
  136. clearInterval(targetPointerRotateZUpdateEventClickTime);
  137. targetPointerRotateZUpdateEventClickTime = null;
  138. xiaJingEvent();
  139. }
  140. /**
  141. * 触发长按点击逻辑
  142. * fov
  143. * type 类型 0 - 增加角度, 1 - 减少角度
  144. */
  145. const targetVagueUpdateEventClick = (type) => {
  146. if (targetPointerRotateZUpdateEventClickTime != null && targetPointerRotateZUpdateEventClickTime != undefined) {
  147. return;
  148. }
  149. console.log("触发长按点击逻辑", type);
  150. targetPointerRotateZUpdateEventClickTime = setInterval(function() {
  151. QvPanelEvent.find().targetVagueUpdate(type);
  152. }, 100);
  153. }
  154. /**
  155. * 触发弹起,移动停止逻辑
  156. */
  157. const targetVagueUpdateEventEnd = () => {
  158. if (targetPointerRotateZUpdateEventClickTime == null || targetPointerRotateZUpdateEventClickTime == undefined) {
  159. return;
  160. }
  161. console.log("触发弹起,移动停止逻辑");
  162. clearInterval(targetPointerRotateZUpdateEventClickTime);
  163. targetPointerRotateZUpdateEventClickTime = null;
  164. xiaJingEvent();
  165. }
  166. /**
  167. * 触发长按点击逻辑
  168. * fov
  169. * type 类型 0 - 增加角度, 1 - 减少角度
  170. */
  171. const lightValUpdateEventClick = (type) => {
  172. if (targetPointerRotateZUpdateEventClickTime != null && targetPointerRotateZUpdateEventClickTime != undefined) {
  173. return;
  174. }
  175. console.log("触发长按点击逻辑", type);
  176. targetPointerRotateZUpdateEventClickTime = setInterval(function() {
  177. QvPanelEvent.find().lightValUpdate(type);
  178. }, 100);
  179. }
  180. /**
  181. * 触发弹起,移动停止逻辑
  182. */
  183. const lightValUpdateEventEnd = () => {
  184. if (targetPointerRotateZUpdateEventClickTime == null || targetPointerRotateZUpdateEventClickTime == undefined) {
  185. return;
  186. }
  187. console.log("触发弹起,移动停止逻辑");
  188. clearInterval(targetPointerRotateZUpdateEventClickTime);
  189. targetPointerRotateZUpdateEventClickTime = null;
  190. xiaJingEvent();
  191. }
  192. let wifiList = ref([]);
  193. const wifiListMainEvent = () => {
  194. wifiList.value = [];
  195. for (var i = 0; i < 30; i++) {
  196. var add = {
  197. "name" : "wifi_" + (i + 1),
  198. "connectBool" : false,
  199. };
  200. if (QvPanelStore().obj.wifiOkName == add.name) {
  201. add.connectBool = true;
  202. }
  203. wifiList.value.push(add);
  204. }
  205. }
  206. onMounted(function() {
  207. wifiListMainEvent();
  208. });
  209. /**
  210. * 弹出灯光UI跳转参数
  211. */
  212. const lightEditOpenEvent = () => {
  213. QvPanelStore().obj.lightEditOpen = QvPanelStore().obj.lightEditOpen == true ? false : true;
  214. }
  215. /**
  216. * 控制环境开关
  217. * open
  218. */
  219. const sceneConfigEvent = (open) => {
  220. return;
  221. QvThreeWorldCamera.find().skyWhiteEvent(open);
  222. }
  223. /**
  224. * 点击退出回收设备,触发下一步的逻辑
  225. */
  226. const exitEvent = () => {
  227. // console.log(
  228. // 'QvEvent.find().eventName',
  229. // QvEvent.find().eventName
  230. // );
  231. /**
  232. * 如果是下井实验,点击这个按钮,弹出提示框
  233. */
  234. if (QvEvent.find().eventName == "QV下井实验") {
  235. }
  236. }
  237. </script>
  238. <template>
  239. <div class="QvPanel">
  240. <div class="main">
  241. <!-- 底部的遮罩 -->
  242. <div class="mainBottomTop"></div>
  243. <div class="mainBottomLeft"></div>
  244. <div class="mainBottomRight"></div>
  245. <div class="mainBottomBottom"></div>
  246. <img :style="'opacity:' + ( QvPanelStore().obj.vague * 0.5 ) + ';'"
  247. class="vagueImg" src="./assets/img/mohu.png" alt="" />
  248. <div v-show="QvPanelStore().obj.powerOpen == false" class="power"></div>
  249. <!-- 平板电脑边框,最顶部 -->
  250. <img class="bgImg" src="./assets/img/mian_ban_wai_kuang.webp" />
  251. <div class="mainEvent">
  252. <div class="stepDiv" v-if="QvPanelStore().obj.step == 0 && QvPanelStore().obj.wifiListMainOpen == false" >请先连接WIFI</div>
  253. <div class="stepDiv" v-if="QvPanelStore().obj.step == 1 && QvPanelStore().obj.wifiListMainOpen == false" v-on:click="powerOpenEvent()" >WIFI连接成功,请点击屏幕连接摄像头</div>
  254. <!-- 连接wifi列表 -->
  255. <div class="wifiListMain" v-show="QvPanelStore().obj.wifiListMainOpen == true" >
  256. <img v-on:click="wifiListMainOpenEvent(false)" class="wifiClose" src="./assets/img/wifi/close.svg" />
  257. <div class="wifiList" >
  258. <div class="wifiListTitle" >
  259. WIFI列表
  260. </div>
  261. <div class="wifiListContent commonsScrollbar">
  262. <div v-on:click="wifiListEvent(item, index)"
  263. class="list" v-for="(item, index) of wifiList" :key="index" >
  264. <!-- {{ item.name }}
  265. <div :class="'rightTxt ' + (item.connectBool == true ? 'rightTxtYes' : '')" >
  266. {{ item.connectBool == true ? '已连接' : '未连接' }}
  267. </div> -->
  268. <img class="wifiImgLeft" v-show="item.connectBool == false" src="./assets/img/wifi/wifi_no.svg" />
  269. <img class="wifiImgLeft" v-show="item.connectBool == true" src="./assets/img/wifi/wifi_yes.svg" />
  270. <div class="listCenter" >{{ item.name }}</div>
  271. <img class="wifiImgRight" src="./assets/img/wifi/lock.svg" />
  272. </div>
  273. </div>
  274. </div>
  275. </div>
  276. <!-- 弹出输入wifi密码 -->
  277. <div class="wifiEditMain" v-show="QvPanelStore().obj.wifiEditMainOpen == true" >
  278. <!-- <img v-on:click="eidtSubmit('no')" class="wifiEditClose" src="./assets/img/wifi/close.svg" /> -->
  279. <div class="wifiEdit">
  280. <img class="vectorImg" src="./assets/img/wifiEdit/Vector.svg" />
  281. <div class="wifiEditTitle" v-if="wifiListEventJson != null" >wi-fi网络“{{ wifiListEventJson.name }}”需要WPA2密码。</div>
  282. <div class="wifiEditContent">
  283. 密码:
  284. <input class="wifiEditContentInput" placeholder="请填写wifi密码" />
  285. </div>
  286. <div class="wifiEditBottom">
  287. <div v-on:click="eidtSubmit('no')" class="wifiBtn wifiBtnClose">取消</div>
  288. <div v-on:click="eidtSubmit('yes')" class="wifiBtn">确定</div>
  289. </div>
  290. </div>
  291. </div>
  292. <!-- 弹出灯光选项 -->
  293. <div class="selectLight" v-show="QvPanelStore().obj.lightEditOpen == true" >
  294. <div class="edit">
  295. <div class="l_2 vanFieldNew_1">
  296. <van-field name="switch" label="近光" style="top: 0rem;" >
  297. <template #input>
  298. <van-switch v-model="QvPanelStore().obj.lightNearOpen" />
  299. </template>
  300. </van-field>
  301. </div>
  302. <div class="l_2 vanFieldNew_1" >
  303. <van-field name="switch" label="远光" style="top: 0rem;" >
  304. <template #input>
  305. <van-switch v-model="QvPanelStore().obj.lightFarOpen" />
  306. </template>
  307. </van-field>
  308. </div>
  309. </div>
  310. <div class="editLine" ></div>
  311. <div class="edit">
  312. <div class="eidtFontCom" >透光</div>
  313. <div class="eidtFontCom" >{{ QvPanelStore().obj.lightVal }} % </div>
  314. </div>
  315. <div class="edit vanFieldNew_1">
  316. <div class="editLeft" >
  317. <img
  318. v-on:touchend="lightValUpdateEventEnd()"
  319. v-on:mouseover="lightValUpdateEventEnd()"
  320. v-on:mouseout="lightValUpdateEventEnd()"
  321. v-on:mouseup="lightValUpdateEventEnd()"
  322. v-on:mousedown="lightValUpdateEventClick(1)"
  323. class="delImg" src="./assets/img/light/del.svg" />
  324. </div>
  325. <div class="editCenter" >
  326. <van-field name="slider">
  327. <template #input>
  328. <van-slider v-model="QvPanelStore().obj.lightVal" :min="0" :max="100" :step="0.1" />
  329. </template>
  330. </van-field>
  331. </div>
  332. <div class="editRight" >
  333. <img
  334. v-on:touchend="lightValUpdateEventEnd()"
  335. v-on:mouseover="lightValUpdateEventEnd()"
  336. v-on:mouseout="lightValUpdateEventEnd()"
  337. v-on:mouseup="lightValUpdateEventEnd()"
  338. v-on:mousedown="lightValUpdateEventClick(0)"
  339. class="addImg" src="./assets/img/light/add.svg" />
  340. </div>
  341. </div>
  342. </div>
  343. <div class="leftTop">
  344. <img v-on:click="wifiListMainOpenEvent(true)" v-show="QvPanelStore().obj.wifiOkName != null"
  345. class="btnWifi" src="./assets/img/wifi.svg" />
  346. <img v-on:click="wifiListMainOpenEvent(true)" v-show="QvPanelStore().obj.wifiOkName == null"
  347. class="btnWifi" src="./assets/img/wifi_no_2.svg" />
  348. <div class="electricity_1">
  349. <span class="sp_1" >67</span><span class="sp_2" >%</span><span class="sp_3">终端电量</span>
  350. </div>
  351. <div class="electricity_2">
  352. <span class="sp_1" >95</span><span class="sp_2" >%</span><span class="sp_3">主机电量</span>
  353. </div>
  354. </div>
  355. <div class="rightTop">
  356. <img class="btnImg" src="./assets/img/set.svg" v-on:click="wifiListMainOpenEvent(true)" />
  357. <img v-on:click="exitEvent()"
  358. class="btnImg" src="./assets/img/exit.svg" />
  359. </div>
  360. <div class="left">
  361. <img class="leftBtnImg" src="./assets/img/left_1.svg" v-on:click="sceneConfigEvent(true)" />
  362. <img class="leftBtnImg" src="./assets/img/left_2.svg" v-on:click="sceneConfigEvent(false)" />
  363. <img class="leftBtnImg" src="./assets/img/left_3.svg" />
  364. <img class="leftBtnImg" src="./assets/img/left_4.svg" />
  365. <img class="leftBtnImg" src="./assets/img/left_5.svg"
  366. v-on:click="lightEditOpenEvent()" v-show="QvPanelStore().obj.lightEditOpen == false" />
  367. <img class="leftBtnImg" src="./assets/img/left_5_2.svg"
  368. v-on:click="lightEditOpenEvent()" v-show="QvPanelStore().obj.lightEditOpen == true" />
  369. </div>
  370. <div class="leftBottom">
  371. <div
  372. v-on:touchend="targetVagueUpdateEventEnd()"
  373. v-on:mouseover="targetVagueUpdateEventEnd()"
  374. v-on:mouseout="targetVagueUpdateEventEnd()"
  375. v-on:mouseup="targetVagueUpdateEventEnd();"
  376. v-on:mousedown="targetVagueUpdateEventClick(0)"
  377. class="leftBottomBtn">
  378. <img class="btnImg" src="./assets/img/left_bottom_add.svg" />
  379. </div>
  380. <div class="leftBottomBtn">
  381. AF
  382. </div>
  383. <div
  384. v-on:touchend="targetVagueUpdateEventEnd()"
  385. v-on:mouseover="targetVagueUpdateEventEnd()"
  386. v-on:mouseout="targetVagueUpdateEventEnd()"
  387. v-on:mouseup="targetVagueUpdateEventEnd();"
  388. v-on:mousedown="targetVagueUpdateEventClick(1)"
  389. class="leftBottomBtn">
  390. <img class="btnImg" src="./assets/img/left_bottom_del.svg" />
  391. </div>
  392. </div>
  393. <div class="rightBtn rightTop_1" >
  394. <img class="btnImg" src="./assets/img/video-on-fill.svg" />
  395. </div>
  396. <div class="rightBtn rightTop_2" >
  397. <img class="btnImg" src="./assets/img/camera-fill.svg" />
  398. </div>
  399. <div class="rightCenter">
  400. <div
  401. v-on:touchend="targetFovUpdateEventEnd()"
  402. v-on:mouseover="targetFovUpdateEventEnd()"
  403. v-on:mouseout="targetFovUpdateEventEnd()"
  404. v-on:mouseup="targetFovUpdateEventEnd();"
  405. v-on:mousedown="targetFovUpdateEventClick(0)"
  406. class="rightCenterBtn rightCenterBtn_1">
  407. <img class="btnImg" src="./assets/img/right_add.svg" />
  408. </div>
  409. <div class="rightCenterBtn rightCenterBtn_2">
  410. 大管道
  411. </div>
  412. <div
  413. v-on:touchend="targetFovUpdateEventEnd()"
  414. v-on:mouseover="targetFovUpdateEventEnd()"
  415. v-on:mouseout="targetFovUpdateEventEnd()"
  416. v-on:mouseup="targetFovUpdateEventEnd();"
  417. v-on:mousedown="targetFovUpdateEventClick(1)"
  418. class="rightCenterBtn rightCenterBtn_3">
  419. <img class="btnImg" src="./assets/img/right_del.svg" />
  420. </div>
  421. </div>
  422. <div class="rightBottom">
  423. <div class="rightBottomBtn"
  424. v-on:touchend="targetPointerRotateZUpdateEventEent()"
  425. v-on:mouseover="targetPointerRotateZUpdateEventEent()"
  426. v-on:mouseout="targetPointerRotateZUpdateEventEent()"
  427. v-on:mouseup="targetPointerRotateZUpdateEventEent();"
  428. v-on:mousedown="targetPointerRotateZUpdateEventClick(0)" >
  429. <img class="btnImg" src="./assets/img/up.svg" />
  430. </div>
  431. <div class="rightBottomBtn" v-on:click="targetPointerRotateZResetEvent()" >
  432. <img class="btnImg" src="./assets/img/reset.svg" />
  433. </div>
  434. <div class="rightBottomBtn"
  435. v-on:touchend="targetPointerRotateZUpdateEventEent()"
  436. v-on:mouseover="targetPointerRotateZUpdateEventEent()"
  437. v-on:mouseout="targetPointerRotateZUpdateEventEent()"
  438. v-on:mouseup="targetPointerRotateZUpdateEventEent();"
  439. v-on:mousedown="targetPointerRotateZUpdateEventClick(1)" >
  440. <img class="btnImg" src="./assets/img/down.svg" />
  441. </div>
  442. </div>
  443. <div class="rightBottomWheel">
  444. <div class="pointerDiv" :style="'transform: rotateZ(' + QvPanelStore().obj.pointerRotateZ + 'deg);'" >
  445. <img class="pointer" src="./assets/img/pointer.svg" />
  446. </div>
  447. <div class="txt_1">90°</div>
  448. <div class="txt_2">45°</div>
  449. <div class="txt_3">0°</div>
  450. <div class="txt_4">-45°</div>
  451. <div class="txt_5">-90°</div>
  452. </div>
  453. </div>
  454. </div>
  455. </div>
  456. </template>
  457. <style lang="scss" scoped>
  458. @import "./css/commonsScrollbar.scss";
  459. // $myScale: 1;
  460. $myScale: 0.7;
  461. .QvPanel * {
  462. -moz-user-select: none;
  463. -webkit-user-select: none;
  464. -ms-user-select: none;
  465. -khtml-user-select: none;
  466. user-select: none;
  467. }
  468. .QvPanel {
  469. position: fixed;
  470. top: 0px;
  471. left: 0px;
  472. width: 100%;
  473. height: 100%;
  474. // background-color: #00000090;
  475. background-color: transparent;
  476. z-index: 9;
  477. .main {
  478. // position: absolute;
  479. // width: 62.5%;
  480. // height: 81%;
  481. // left: 18.75%;
  482. // top: 9.5%;
  483. position: absolute;
  484. width: 85.71rem * $myScale;
  485. height: 62.5rem * $myScale;
  486. top: 50%;
  487. left: 50%;
  488. margin: -31.25rem * $myScale 0px 0px -42.855rem * $myScale;
  489. z-index: 1;
  490. .mainBottomTop, .mainBottomLeft, .mainBottomRight, .mainBottomBottom {
  491. position: absolute;
  492. background-color: #000000;
  493. width: 300rem * $myScale;
  494. height: 200rem * $myScale;
  495. z-index: 0;
  496. }
  497. .mainBottomTop {
  498. left: -90rem * $myScale;
  499. top: -197rem * $myScale;
  500. }
  501. .mainBottomLeft {
  502. left: -296rem * $myScale;
  503. top: 0rem * $myScale;
  504. }
  505. .mainBottomRight {
  506. right: -296rem * $myScale;
  507. top: 0rem * $myScale;
  508. }
  509. .mainBottomBottom {
  510. left: -90rem * $myScale;
  511. bottom: -197rem * $myScale;
  512. }
  513. .power {
  514. position: absolute;
  515. width: 80rem * $myScale;
  516. height: 56rem * $myScale;
  517. background-color: #000000;
  518. border-radius: 2rem * $myScale;
  519. z-index: 0;
  520. top: 50%;
  521. left: 50%;
  522. margin: -28rem * $myScale 0px 0px -40rem * $myScale;
  523. color: #ffffff;
  524. font-size: 2rem * $myScale;
  525. font-weight: 600;
  526. }
  527. .vagueImg {
  528. position: absolute;
  529. width: 80rem * $myScale;
  530. height: 56rem * $myScale;
  531. background-color: #000000;
  532. border-radius: 2rem * $myScale;
  533. z-index: 0;
  534. top: 50%;
  535. left: 50%;
  536. margin: -28rem * $myScale 0px 0px -40rem * $myScale;
  537. /* 注意这里必须是被允许穿透点击的,否则堆叠高于了 canvas,则会出现无法点击到canvas了。加了这个即可解决这个问题 */
  538. pointer-events: none;
  539. }
  540. .bgImg {
  541. position: absolute;
  542. z-index: 100;
  543. width: 100%;
  544. height: 100%;
  545. top: 0px;
  546. left: 0px;
  547. /* 注意这里必须是被允许穿透点击的,否则堆叠高于了 canvas,则会出现无法点击到canvas了。加了这个即可解决这个问题 */
  548. pointer-events: none;
  549. }
  550. .mainEvent {
  551. position: absolute;
  552. z-index: 1;
  553. width: 100%;
  554. height: 100%;
  555. top: 0px;
  556. left: 0px;
  557. .leftTop {
  558. position: absolute;
  559. width: 45rem * $myScale;
  560. height: 4.5rem * $myScale;
  561. top: 6.07rem * $myScale;
  562. // left: 6.35rem * $myScale;
  563. left: 6.07rem * $myScale;
  564. background-image: url("./assets/img/left_top.svg");
  565. -webkit-background-size: 100% 100%;
  566. -moz-background-size: 100% 100%;
  567. -o-background-size: 100% 100%;
  568. background-size: 100% 100%;
  569. // background-image: url("img/bg.png");
  570. // -webkit-background-size: cover;
  571. // -moz-background-size: cover;
  572. // -o-background-size: cover;
  573. // background-size: cover;
  574. // background-position: center center;
  575. .btnWifi {
  576. position: absolute;
  577. top: 0.64rem * $myScale;
  578. left: 1.42rem * $myScale;
  579. width: 3.64rem * $myScale;
  580. // 手势
  581. cursor:pointer;
  582. }
  583. .electricity_1, .electricity_2 {
  584. position: absolute;
  585. bottom: 0.71rem * $myScale;
  586. .sp_1 {
  587. font-size: 2.85rem * $myScale;
  588. font-weight: 500;
  589. color: #26D8EF;
  590. }
  591. .sp_2 {
  592. color: #B6EAF1;
  593. font-size: 1.57rem * $myScale;
  594. margin: 0px 1rem * $myScale 0px 1rem * $myScale;
  595. }
  596. .sp_3 {
  597. color: #B6EAF1;
  598. font-size: 1.57rem * $myScale;
  599. }
  600. }
  601. .electricity_1 {
  602. left: 9.3rem * $myScale;
  603. }
  604. .electricity_2 {
  605. left: 25.0rem * $myScale;
  606. }
  607. }
  608. .rightTop {
  609. position: absolute;
  610. top: 6.21rem * $myScale;
  611. right: 7.57rem * $myScale;
  612. .btnImg {
  613. width: 4.78rem * $myScale;
  614. // 手势
  615. cursor:pointer;
  616. margin: 0px 0.85rem * $myScale 0px 0.85rem * $myScale;
  617. }
  618. }
  619. .left {
  620. position: absolute;
  621. width: 5.42rem * $myScale;
  622. height: 28.07rem * $myScale;
  623. background-image: url("./assets/img/left.svg");
  624. -webkit-background-size: 100% 100%;
  625. -moz-background-size: 100% 100%;
  626. -o-background-size: 100% 100%;
  627. background-size: 100% 100%;
  628. top: 12.92rem * $myScale;
  629. left: 6.07rem * $myScale;
  630. .leftBtnImg {
  631. // 手势
  632. cursor:pointer;
  633. width: 2.85rem * $myScale;
  634. float: left;
  635. margin: 1.25rem * $myScale 1.35rem * $myScale 1.25rem * $myScale 1.35rem * $myScale;
  636. }
  637. }
  638. .leftBottom {
  639. position: absolute;
  640. width: 5.42rem * $myScale;
  641. height: 13.85rem * $myScale;
  642. background-image: url("./assets/img/left_bottom.svg");
  643. -webkit-background-size: 100% 100%;
  644. -moz-background-size: 100% 100%;
  645. -o-background-size: 100% 100%;
  646. background-size: 100% 100%;
  647. left: 6.07rem * $myScale;
  648. bottom: 5.42rem * $myScale;
  649. .leftBottomBtn {
  650. width: 2.85rem * $myScale;
  651. height: 2.85rem * $myScale;
  652. margin: 1.25rem * $myScale 1.35rem * $myScale 1.25rem * $myScale 1.35rem * $myScale;
  653. // 手势
  654. cursor:pointer;
  655. /* 水平垂直居中,支持文字自动换行 */
  656. display: flex;
  657. flex-direction: column;
  658. justify-content: center;
  659. align-items: center;
  660. color: #CBDEE7;
  661. font-size: 1rem * $myScale;
  662. font-weight: 500;
  663. .btnImg {
  664. width: auto;
  665. height: auto;
  666. max-width: 100%;
  667. max-height: 100%;
  668. }
  669. }
  670. }
  671. .rightBtn {
  672. width: 5.42rem * $myScale;
  673. height: 5.42rem * $myScale;
  674. // 手势
  675. cursor:pointer;
  676. /* 水平垂直居中,支持文字自动换行 */
  677. display: flex;
  678. flex-direction: column;
  679. justify-content: center;
  680. align-items: center;
  681. background-image: url("./assets/img/common.svg");
  682. -webkit-background-size: 100% 100%;
  683. -moz-background-size: 100% 100%;
  684. -o-background-size: 100% 100%;
  685. background-size: 100% 100%;
  686. .btnImg {
  687. // width: auto;
  688. // height: auto;
  689. // max-width: 100%;
  690. // max-height: 100%;
  691. width: 2.85rem * $myScale;
  692. }
  693. }
  694. .rightTop_1, .rightTop_2 {
  695. position: absolute;
  696. right: 6.07rem * $myScale;
  697. }
  698. .rightTop_1 {
  699. top: 12.64rem * $myScale;
  700. }
  701. .rightTop_2 {
  702. top: 20rem * $myScale;
  703. }
  704. .rightCenter {
  705. position: absolute;
  706. width: 5.42rem * $myScale;
  707. height: 13.85rem * $myScale;
  708. right: 6.07rem * $myScale;
  709. bottom: 21.28rem * $myScale;
  710. background-image: url("./assets/img/right.svg");
  711. -webkit-background-size: 100% 100%;
  712. -moz-background-size: 100% 100%;
  713. -o-background-size: 100% 100%;
  714. background-size: 100% 100%;
  715. .rightCenterBtn {
  716. float: left;
  717. width: 5.42rem * $myScale;
  718. height: 3.8rem * $myScale;
  719. // 手势
  720. cursor:pointer;
  721. /* 水平垂直居中,支持文字自动换行 */
  722. display: flex;
  723. flex-direction: column;
  724. justify-content: center;
  725. align-items: center;
  726. color: #26D8EF;
  727. font-size: 1rem * $myScale;
  728. font-weight: 500;
  729. .btnImg {
  730. // width: auto;
  731. // height: auto;
  732. // max-width: 100%;
  733. // max-height: 100%;
  734. width: 2.85rem * $myScale;
  735. }
  736. }
  737. .rightCenterBtn_1 {
  738. position: absolute;
  739. top: 1rem * $myScale;
  740. }
  741. .rightCenterBtn_2 {
  742. position: absolute;
  743. bottom: 5rem * $myScale;
  744. }
  745. .rightCenterBtn_3 {
  746. position: absolute;
  747. bottom: 1rem * $myScale;
  748. }
  749. }
  750. .rightBottom {
  751. position: absolute;
  752. width: 5.42rem * $myScale;
  753. height: 13.85rem * $myScale;
  754. right: 6.07rem * $myScale;
  755. bottom: 5.5rem * $myScale;
  756. background-image: url("./assets/img/right_bottom.svg");
  757. -webkit-background-size: 100% 100%;
  758. -moz-background-size: 100% 100%;
  759. -o-background-size: 100% 100%;
  760. background-size: 100% 100%;
  761. .rightBottomBtn {
  762. width: 2.85rem * $myScale;
  763. height: 2.85rem * $myScale;
  764. margin: 1.25rem * $myScale 1.35rem * $myScale 1.25rem * $myScale 1.35rem * $myScale;
  765. // 手势
  766. cursor:pointer;
  767. /* 水平垂直居中,支持文字自动换行 */
  768. display: flex;
  769. flex-direction: column;
  770. justify-content: center;
  771. align-items: center;
  772. .btnImg {
  773. width: auto;
  774. height: auto;
  775. max-width: 100%;
  776. max-height: 100%;
  777. }
  778. }
  779. }
  780. .rightBottomWheel {
  781. position: absolute;
  782. width: 6.78rem * $myScale;
  783. height: 13.5rem * $myScale;
  784. right: 12.07rem * $myScale;
  785. bottom: 5.64rem * $myScale;
  786. overflow: hidden;
  787. background-image: url("./assets/img/compass.svg");
  788. -webkit-background-size: 100% 100%;
  789. -moz-background-size: 100% 100%;
  790. -o-background-size: 100% 100%;
  791. background-size: 100% 100%;
  792. .pointerDiv {
  793. position: absolute;
  794. width: 13.5rem * $myScale;
  795. height: 13.5rem * $myScale;
  796. top: 0px;
  797. left: 0px;
  798. transform: rotateZ(0deg);
  799. .pointer {
  800. position: absolute;
  801. width: 4.35rem * $myScale;
  802. height: 0.64rem * $myScale;
  803. top: 50%;
  804. margin: -0.32rem * $myScale 0px 0px -4.35rem * $myScale;
  805. left: 50%;
  806. }
  807. }
  808. .txt_1, .txt_2, .txt_3, .txt_4, .txt_5 {
  809. position: absolute;
  810. font-size: 0.71rem * $myScale;
  811. color: #B9C5CA;
  812. }
  813. .txt_1 {
  814. top: 0.65rem * $myScale;
  815. right: 0.42rem * $myScale;
  816. }
  817. .txt_2 {
  818. top: 2.5rem * $myScale;
  819. right: 3.65rem * $myScale;
  820. }
  821. .txt_3 {
  822. top: 6.42rem * $myScale;
  823. right: 5.57rem * $myScale;
  824. }
  825. .txt_4 {
  826. bottom: 2.5rem * $myScale;
  827. right: 3.65rem * $myScale;
  828. }
  829. .txt_5 {
  830. bottom: 0.65rem * $myScale;
  831. right: 0.42rem * $myScale;
  832. }
  833. }
  834. .wifiListMain {
  835. position: absolute;
  836. z-index: 3;
  837. background-color: #00000090;
  838. top: 2rem * $myScale;
  839. bottom: 2rem * $myScale;
  840. left: 3rem * $myScale;
  841. right: 3rem * $myScale;
  842. .wifiClose {
  843. position: absolute;
  844. width: 1.71rem * $myScale;
  845. height: 1.71rem * $myScale;
  846. // 手势
  847. cursor:pointer;
  848. top: 18.5rem * $myScale;
  849. right: 26.5rem * $myScale;
  850. }
  851. .wifiList {
  852. position: absolute;
  853. width: 22.6rem * $myScale;
  854. height: 18rem * $myScale;
  855. top: 50%;
  856. left: 50%;
  857. margin: -9rem * $myScale 0px 0px -11.3rem * $myScale;
  858. background-image: url("./assets/img/wifi/wifi_list_bg.svg");
  859. -webkit-background-size: 100% 100%;
  860. -moz-background-size: 100% 100%;
  861. -o-background-size: 100% 100%;
  862. background-size: 100% 100%;
  863. .wifiListTitle {
  864. position: absolute;
  865. top: 0px;
  866. left: 0px;
  867. width: 100%;
  868. font-size: 1.28rem * $myScale;
  869. height: 3.57rem * $myScale;
  870. line-height: 3.57rem * $myScale;
  871. border-bottom: 1px solid #1e3f4b;
  872. font-weight: 400;
  873. color: #FFFFFF;
  874. padding: 0px 0px 0px 1.92rem * $myScale;
  875. }
  876. .wifiListContent {
  877. position: absolute;
  878. top: 3.57rem * $myScale;
  879. left: 0px;
  880. width: 100%;
  881. bottom: 0px;
  882. .list {
  883. position: relative;
  884. font-size: 1.28rem * $myScale;
  885. height: 1.85rem * $myScale;
  886. line-height: 1.85rem * $myScale;
  887. font-weight: 400;
  888. color: #FFFFFF;
  889. margin: 0.35rem * $myScale 0px 0.35rem * $myScale 0px;
  890. .wifiImgLeft {
  891. position: absolute;
  892. width: 1.85rem * $myScale;
  893. height: 1.85rem * $myScale;
  894. top: 0px;
  895. left: 1.92rem * $myScale;
  896. }
  897. .listCenter {
  898. position: absolute;
  899. left: 4.85rem * $myScale;
  900. height: 100%;
  901. height: 1.85rem * $myScale;
  902. }
  903. .wifiImgRight {
  904. position: absolute;
  905. width: 1.57rem * $myScale;
  906. height: 1.57rem * $myScale;
  907. top: 0.14rem * $myScale;
  908. right: 2rem * $myScale;
  909. }
  910. }
  911. }
  912. }
  913. }
  914. .wifiEditMain {
  915. position: absolute;
  916. z-index: 3;
  917. background-color: #00000090;
  918. top: 2rem * $myScale;
  919. bottom: 2rem * $myScale;
  920. left: 3rem * $myScale;
  921. right: 3rem * $myScale;
  922. /* 水平垂直居中,支持文字自动换行 */
  923. display: flex;
  924. flex-direction: column;
  925. justify-content: center;
  926. align-items: center;
  927. .wifiEditClose {
  928. position: absolute;
  929. width: 1.71rem * $myScale;
  930. height: 1.71rem * $myScale;
  931. // 手势
  932. cursor:pointer;
  933. top: 18.5rem * $myScale;
  934. right: 22.5rem * $myScale;
  935. }
  936. .wifiEdit {
  937. position: relative;
  938. background-image: url("./assets/img/wifiEdit/bg.svg");
  939. -webkit-background-size: 100% 100%;
  940. -moz-background-size: 100% 100%;
  941. -o-background-size: 100% 100%;
  942. background-size: 100% 100%;
  943. width: 31.64rem * $myScale;
  944. height: 17.92rem * $myScale;
  945. .vectorImg {
  946. position: absolute;
  947. width: 3.61rem * $myScale;
  948. top: 2.07rem * $myScale;
  949. left: 2.35rem * $myScale;
  950. }
  951. .wifiEditTitle {
  952. position: absolute;
  953. top: 2.42rem * $myScale;
  954. left: 7.14rem * $myScale;
  955. width: 21.78rem * $myScale;
  956. font-size: 1.14rem * $myScale;
  957. color: #FFFFFF;
  958. // 换行
  959. word-break: break-all;
  960. /** 让文本带有 \n 自动换行 */
  961. white-space: pre-wrap;
  962. // text-wrap: normal;
  963. // white-space: normal;
  964. }
  965. .wifiEditContent {
  966. position: absolute;
  967. top: 8.42rem * $myScale;
  968. left: 7.28rem * $myScale;
  969. height: 4rem * $myScale;
  970. // background-color: brown;
  971. color: #ffffff;
  972. .wifiEditContentInput {
  973. // 重置所有样式
  974. all: initial;
  975. position: relative;
  976. border: 1px solid #2474a9;
  977. width: 16rem * $myScale;
  978. height: 1.57rem * $myScale;
  979. line-height: 1.57rem * $myScale;
  980. border-radius: 0.0rem * $myScale;
  981. color: #ffffff;
  982. font-size: 1.14rem * $myScale;
  983. padding: 0px 0.5rem * $myScale 0px 0.5rem * $myScale;
  984. &:hover {
  985. border: 1px solid #00aeff;
  986. }
  987. }
  988. .wifiEditContentInput::placeholder {
  989. font-size: 1.14rem * $myScale;
  990. color: #d3c5c5;
  991. }
  992. }
  993. .wifiEditBottom {
  994. position: absolute;
  995. bottom: 3.85rem * $myScale;
  996. right: 2.5rem * $myScale;
  997. .wifiBtn {
  998. background-color: #0894FF;
  999. border-radius: 0.21rem * $myScale;
  1000. color: #ffffff;
  1001. display: inline-block;
  1002. padding: 0.21rem * $myScale 1rem * $myScale 0.21rem * $myScale 1rem * $myScale;
  1003. margin: 0px 0.89rem * $myScale 0px 0.89rem * $myScale;
  1004. }
  1005. .wifiBtnClose {
  1006. background-color: #D9D9D9;
  1007. color: #0F333F;
  1008. }
  1009. }
  1010. }
  1011. }
  1012. .stepDiv {
  1013. position: absolute;
  1014. width: 50rem * $myScale;
  1015. height: 20rem * $myScale;
  1016. background-color: #000000;
  1017. border-radius: 2rem * $myScale;
  1018. z-index: 3;
  1019. top: 50%;
  1020. left: 50%;
  1021. margin: -10rem * $myScale 0px 0px -25rem * $myScale;
  1022. color: #ffffff;
  1023. font-size: 2rem * $myScale;
  1024. font-weight: 600;
  1025. // 手势
  1026. cursor:pointer;
  1027. /* 水平垂直居中,支持文字自动换行 */
  1028. display: flex;
  1029. flex-direction: column;
  1030. justify-content: center;
  1031. align-items: center;
  1032. }
  1033. .selectLight {
  1034. position: absolute;
  1035. width: 31.64rem * $myScale;
  1036. height: 17.92rem * $myScale;
  1037. bottom: 8rem * $myScale;
  1038. left: 14rem * $myScale;
  1039. z-index: 3;
  1040. background-image: url("./assets/img/light/bg.webp");
  1041. -webkit-background-size: 100% 100%;
  1042. -moz-background-size: 100% 100%;
  1043. -o-background-size: 100% 100%;
  1044. background-size: 100% 100%;
  1045. .edit {
  1046. position: relative;
  1047. width: 100%;
  1048. height: 5.66rem * $myScale;
  1049. .l_2 {
  1050. display: inline-block;
  1051. height: 100%;
  1052. width: 49.5%;
  1053. }
  1054. .eidtFontCom {
  1055. display: inline-flex;
  1056. align-items: center;
  1057. height: 100%;
  1058. color: #FFFFFF;
  1059. font-size: 1.57rem * $myScale;
  1060. margin: 0px 2.85rem * $myScale 0px 2.85rem * $myScale;
  1061. }
  1062. .editLeft, .editCenter, .editRight {
  1063. position: absolute;
  1064. top: 0px;
  1065. height: 100%;
  1066. }
  1067. .editLeft {
  1068. left: 1rem * $myScale;
  1069. width: 6rem * $myScale;
  1070. /* 水平垂直居中,支持文字自动换行 */
  1071. display: flex;
  1072. flex-direction: column;
  1073. justify-content: center;
  1074. align-items: center;
  1075. }
  1076. .editCenter {
  1077. left: 6rem * $myScale;
  1078. right: 6rem * $myScale;
  1079. }
  1080. .editRight {
  1081. right: 1rem * $myScale;
  1082. width: 6rem * $myScale;
  1083. /* 水平垂直居中,支持文字自动换行 */
  1084. display: flex;
  1085. flex-direction: column;
  1086. justify-content: center;
  1087. align-items: center;
  1088. }
  1089. .delImg, .addImg {
  1090. width: 2.14rem * $myScale;
  1091. // 手势
  1092. cursor:pointer;
  1093. }
  1094. }
  1095. .editLine {
  1096. position: relative;
  1097. width: 90%;
  1098. left: 5%;
  1099. height: 1px;
  1100. background-color: #264751;
  1101. }
  1102. }
  1103. }
  1104. }
  1105. }
  1106. </style>