autodoor.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741
  1. <template>
  2. <view style="overflow: auto; height: 100%">
  3. <!-- 建议放在外层 -->
  4. <u-navbar
  5. :title="name"
  6. @leftClick="backPage"
  7. :bgImage="backPic"
  8. :bgStatusImage="backPic0"
  9. >
  10. <view class="u-nav-slot" slot="left">
  11. <u-icon name="arrow-left" size="20"> </u-icon>
  12. </view>
  13. </u-navbar>
  14. <view class="main">
  15. <view class="u-page container">
  16. <div class="button-grid flcard" v-if="this.TabCur == 'gate'">
  17. <u-button
  18. type="primary"
  19. text="打开前门"
  20. @click="showPasswordDialog('frontGateOpen_S')"
  21. ></u-button>
  22. <u-button
  23. type="primary"
  24. text="关闭前门"
  25. @click="showPasswordDialog('frontGateClose_S')"
  26. ></u-button>
  27. <u-button
  28. type="primary"
  29. text="打开后门"
  30. @click="showPasswordDialog('rearGateOpen_S')"
  31. ></u-button>
  32. <u-button
  33. type="primary"
  34. text="关闭后门"
  35. @click="showPasswordDialog('rearGateClose_S')"
  36. ></u-button>
  37. <u-button
  38. type="primary"
  39. text="打开前后门"
  40. @click="showPasswordDialog('sameTimeOpen')"
  41. ></u-button>
  42. <u-button
  43. type="primary"
  44. text="关闭前后门"
  45. @click="showPasswordDialog('sameTimeClose')"
  46. ></u-button>
  47. </div>
  48. <div
  49. class="button-grid flcard"
  50. v-if="this.TabCur == 'window' && this.nwindownum == 1"
  51. >
  52. <u-button
  53. type="primary"
  54. text="设定面积"
  55. @click="showPasswordDialog('frontSetValue')"
  56. ></u-button>
  57. </div>
  58. <div
  59. class="button-grid flcard"
  60. v-if="this.TabCur == 'window' && this.nwindownum == 2"
  61. >
  62. <u-button
  63. type="primary"
  64. text="设定前窗面积"
  65. @click="showPasswordDialog('frontSetValue')"
  66. ></u-button>
  67. <u-button
  68. type="primary"
  69. text="设定后窗面积"
  70. @click="showPasswordDialog('rearSetValue')"
  71. ></u-button>
  72. </div>
  73. <div class="flcard" v-if="this.TabCur == 'gate'">
  74. <doorAnimate
  75. :gatestate1="frontGateStatus"
  76. :gatestate2="midGateStatus"
  77. :gatestate3="rearGateStatus"
  78. :cameralist="cameralist"
  79. :height="height"
  80. :doorcount="ndoorcount"
  81. ></doorAnimate>
  82. </div>
  83. <div class="flcard" v-if="this.TabCur == 'windrect'">
  84. <windrectAnimate
  85. :state="state"
  86. :title="title"
  87. :videoURL="viedeoUrl"
  88. :height="height"
  89. :type="deviceType"
  90. ></windrectAnimate>
  91. </div>
  92. <div class="flcard" v-if="this.TabCur == 'fanlocal'">
  93. <fanlocalAnimate
  94. :fan1State="fan1State"
  95. :fan2State="fan2State"
  96. :title="title"
  97. :videoURL="viedeoUrl"
  98. :height="height"
  99. ></fanlocalAnimate>
  100. </div>
  101. <div class="flcard" v-if="this.TabCur == 'fanmain'">
  102. <fanmainAnimate
  103. ref="fanpage"
  104. style="width: 100%; min-width: 550px; height: calc(68vh - 220px)"
  105. :door1="door1"
  106. :topdoor1="topdoor1"
  107. :fundoor1="fundoor1"
  108. :door2="door2"
  109. :topdoor2="topdoor2"
  110. :fundoor2="fundoor2"
  111. :nowfengji="qidongfengji"
  112. ></fanmainAnimate>
  113. </div>
  114. <div
  115. class="flcard"
  116. v-if="this.TabCur == 'window' && this.nwindownum == 1"
  117. >
  118. <windowAnimate
  119. :windowAngle="windowAngle"
  120. :height="height"
  121. :windowcount="nwindownum"
  122. ></windowAnimate>
  123. </div>
  124. <div
  125. class="flcard"
  126. v-if="this.TabCur == 'window' && this.nwindownum == 2"
  127. >
  128. <windowAnimate
  129. :windowAngle="windowAngle"
  130. :windowAngle1="windowAngle1"
  131. :height="height"
  132. :windowcount="nwindownum"
  133. ></windowAnimate>
  134. </div>
  135. <div class="flcard">
  136. <div class="flex-container">
  137. <div
  138. class="itemback"
  139. v-for="(item, index) in typeList"
  140. :key="index"
  141. v-show="item.appShow == 1"
  142. >
  143. <div class="datacardtime" v-if="item.monitorcode == 'readTime'">
  144. <view
  145. class="demo-layout bg-purple-light"
  146. style="padding: 20rpx; color: #3787fe"
  147. >
  148. {{ readTime }}
  149. </view>
  150. </div>
  151. <div class="datacard" v-if="item.monitorcode !== 'readTime'">
  152. <div class="left-content">
  153. <view
  154. v-if="item.monitorcode == 'ndoortype'"
  155. class="demo-layout bg-purple-light"
  156. style="margin-top: 10rpx; color: #3787fe"
  157. >
  158. {{
  159. tableData[item.monitorcode] == "1"
  160. ? "行人"
  161. : tableData[item.monitorcode] == "2"
  162. ? "行车"
  163. : "-"
  164. }}
  165. </view>
  166. <view
  167. v-else-if="item.monitorcode == 'netStatus'"
  168. class="demo-layout bg-purple-light"
  169. style="margin-top: 10rpx; color: #3787fe"
  170. >
  171. {{ doorNetStatus == "1" ? "正常" : "异常" }}
  172. </view>
  173. <view
  174. v-else-if="item.monitorcode == 'warnFlag'"
  175. class="demo-layout bg-purple-light"
  176. style="margin-top: 10rpx; color: #3787fe"
  177. >
  178. {{ warnFlag == "1" ? "正常" : "异常" }}
  179. </view>
  180. <view
  181. v-else
  182. class="demo-layout bg-purple-light"
  183. style="margin-top: 10rpx; color: #3787fe"
  184. >
  185. {{
  186. tableData[item.monitorcode] == null ||
  187. tableData[item.monitorcode] == ""
  188. ? "-"
  189. : tableData[item.monitorcode]
  190. }}
  191. </view>
  192. <div class="spacer"></div>
  193. <!-- 间距 -->
  194. <view
  195. class="demo-layout bg-purple-light"
  196. style="color: #677799"
  197. >
  198. {{ item.des }}
  199. </view>
  200. </div>
  201. <div
  202. class="right-content"
  203. :style="{
  204. backgroundImage:
  205. item.monitorcode === 'frontRearDP' ||
  206. item.monitorcode === 'frontRearDifference'
  207. ? 'url(\'../../../../static/model/Pa.png\')'
  208. : item.monitorcode === 'sourcePressure'
  209. ? 'url(\'../../../../static/model/MPa.png\')'
  210. : item.monitorcode === 'frontGateOpen'
  211. ? 'url(\'../../../../static/model/doorNet.png\')'
  212. : item.monitorcode === 'rearGateOpen'
  213. ? 'url(\'../../../../static/model/doorNet.png\')'
  214. : item.monitorcode === 'midGateOpen'
  215. ? 'url(\'../../../../static/model/doorNet.png\')'
  216. : item.monitorcode === 'warnFlag'
  217. ? 'url(\'../../../../static/model/9432.png\')'
  218. : item.monitorcode === 'netStatus'
  219. ? 'url(\'../../../../static/model/9431.png\')'
  220. : item.monitorcode === 'm3'
  221. ? 'url(\'../../../../static/model/windM3.png\')'
  222. : item.monitorcode === 'fsectarea'
  223. ? 'url(\'../../../../static/model/duanArea.png\')'
  224. : item.monitorcode === 'incipientWindSpeed1' ||
  225. item.monitorcode === 'incipientWindSpeed2' ||
  226. item.monitorcode === 'incipientWindSpeed3' ||
  227. item.monitorcode === 'va'
  228. ? 'url(\'../../../../static/model/fengsu.png\')'
  229. : 'url(\'\')',
  230. backgroundSize: '100% 100%',
  231. }"
  232. ></div>
  233. </div>
  234. </div>
  235. </div>
  236. </div>
  237. </view>
  238. </view>
  239. <u-popup :show="show" mode="bottom" :safeAreaInsetBottom="false">
  240. <div class="containers">
  241. <view class="passWordName">
  242. <view
  243. class="title"
  244. style="margin-top: 15px"
  245. v-if="this.TabCur == 'window'"
  246. >风窗面积</view
  247. >
  248. <u-input
  249. class="passArea"
  250. style="margin-top: 15px; border-color: #2a94ff"
  251. v-model="windowArea"
  252. type="text"
  253. v-if="this.TabCur == 'window'"
  254. ></u-input>
  255. </view>
  256. <view class="passWordInput">
  257. <view style="margin-top: 15px" class="title">输入密码</view>
  258. <u-input
  259. style="margin-top: 15px; border-color: #2a94ff"
  260. v-model="password"
  261. type="password"
  262. ></u-input
  263. ></view>
  264. </div>
  265. <view class="btns">
  266. <u-button
  267. style="margin: 20px"
  268. type="primary"
  269. @click="confirmPassword()"
  270. color="linear-gradient(to right, rgb(53, 138, 254), rgb(38, 171, 244))"
  271. >确认</u-button
  272. >
  273. <u-button
  274. style="margin: 20px"
  275. type="primary"
  276. :plain="true"
  277. @click="cancelPassword()"
  278. >取消</u-button
  279. >
  280. </view>
  281. </u-popup>
  282. </view>
  283. </template>
  284. <script>
  285. import api from "@/api/api";
  286. import initDictOptions from "@/common/util/dictUtil.js";
  287. import doorAnimate from "../doorAnimate/doorAnimate.vue";
  288. import windowAnimate from "../windowAnimate/windowAnimate.vue";
  289. import windrectAnimate from "../windrectAnimate/windrectAnimate.vue";
  290. import fanlocalAnimate from "../fanlocalAnimate/fanlocalAnimate2.vue";
  291. import fanmainAnimate from "../fanmainAnimate/fanmainAnimate.vue";
  292. export default {
  293. data() {
  294. return {
  295. tableData: [], //监测数据
  296. typeList: [], //展示字段
  297. itemId: "", // 初始化 itemId
  298. name: "", // 初始化 name
  299. deviceid: "", //初始化设备id
  300. TabCur: "",
  301. checked: [],
  302. backPic0: "url(/static/topnavbar0.png)",
  303. backPic: "url(/static/topnavbar.png)",
  304. frontAngle: "", //风窗打开角度
  305. nwindownum: "", //风窗道数
  306. ndoorcount: "", //风门道数
  307. deviceType: "", //设备类型
  308. show: false, //密码弹窗是否显示
  309. password: "", //控制设备密码
  310. paramcode: "", //控制字段
  311. height: "200px",
  312. popupStyle: {
  313. // 弹窗样式
  314. "background-color": "#fff",
  315. padding: "20px",
  316. "box-shadow": "0 2px 4px rgba(0, 0, 0, 0.1)",
  317. },
  318. frontGateStatus: "", //前门状态
  319. rearGateStatus: "", //后门状态
  320. midGateStatus: "", //状态
  321. doorNetStatus: "", //风门通信状态
  322. warnFlag: "", //风门报警
  323. readTime: "", //时间
  324. windowAngle: 0, //前窗打开角度
  325. windowAngle1: 0, //后窗打开角度
  326. windowArea: "", //风窗面积设定值
  327. viedeoUrl: "", //监控url
  328. sign: "",
  329. title: "测风设备",
  330. fan1State: "",
  331. fan2State: "",
  332. deviceid: "", //ID
  333. cameralist: [], //摄像数据
  334. };
  335. },
  336. onLoad(query) {
  337. //保存id到 data 中 可以在整个页面中使用
  338. this.itemId = query.id;
  339. this.name = query.name;
  340. this.TabCur = query.type;
  341. this.ndoorcount = 2;
  342. },
  343. components: {
  344. doorAnimate,
  345. windowAnimate,
  346. windrectAnimate,
  347. fanlocalAnimate,
  348. fanmainAnimate,
  349. },
  350. created() {
  351. this.getShowList(this.TabCur);
  352. this.getDeviceInfo(this.itemId);
  353. this.getVideoUrlById(this.itemId);
  354. },
  355. mounted() {
  356. this.startTimer();
  357. },
  358. methods: {
  359. startTimer() {
  360. this.timer = setInterval(() => {
  361. // 执行定时任务
  362. this.getDeviceInfo(this.itemId);
  363. }, 5000);
  364. },
  365. stopTimer() {
  366. // 停止定时器
  367. clearInterval(this.timer);
  368. },
  369. // 返回上一个页面
  370. backPage() {
  371. this.$destroy();
  372. uni.navigateBack({
  373. delta: 1,
  374. });
  375. },
  376. //获取app展示字段数据
  377. getShowList(type) {
  378. const params = {
  379. devicekind: type,
  380. pagetype: "detail",
  381. pageNo: 1,
  382. pageSize: 100,
  383. };
  384. new Promise((resolve, reject) => {
  385. api
  386. .getShowColumList(params)
  387. .then((response) => {
  388. if (response.data.code == 200) {
  389. this.typeList = response.data.result.records;
  390. } else {
  391. resolve(response);
  392. }
  393. })
  394. .catch((error) => {
  395. reject(error);
  396. });
  397. });
  398. },
  399. //获取详情数据
  400. getDeviceInfo(ID) {
  401. let IDString = String(ID); // 将 ID 转换为字符串
  402. new Promise((resolve, reject) => {
  403. api
  404. .getDeviceMonitor({ devicetype: this.TabCur, ids: IDString })
  405. .then((response) => {
  406. if (
  407. response.data.code == 200 &&
  408. response.data.result.msgTxt[0].datalist.length > 0
  409. ) {
  410. var result = response.data.result.msgTxt[0].datalist[0];
  411. this.tableData = result.readData;
  412. if (this.tableData.frontGateOpen == "1") {
  413. this.tableData.frontGateOpen = "打开";
  414. } else {
  415. this.tableData.frontGateOpen = "关闭";
  416. }
  417. if (this.tableData.midGateOpen == "1") {
  418. this.tableData.midGateOpen = "打开";
  419. } else {
  420. this.tableData.midGateOpen = "关闭";
  421. }
  422. if (this.tableData.rearGateOpen == "1") {
  423. this.tableData.rearGateOpen = "打开";
  424. } else {
  425. this.tableData.rearGateOpen = "关闭";
  426. }
  427. this.fan1State = result.readData.Fan1StartStatus;
  428. this.fan2State = result.readData.Fan2StartStatus;
  429. this.nwindownum = result.nwindownum;
  430. this.ndoorcount = result.ndoorcount;
  431. this.deviceType = result.deviceType;
  432. this.state = result.readData.sign;
  433. this.frontGateStatus = this.tableData.frontGateOpen;
  434. this.midGateStatus = this.tableData.midGateOpen;
  435. this.rearGateStatus = this.tableData.rearGateOpen;
  436. this.doorNetStatus = result.netStatus;
  437. this.warnFlag = result.warnLevel_str;
  438. this.readTime = result.readTime;
  439. var maxarea = result.maxarea;
  440. this.windowAngle =
  441. (this.tableData.forntArea / maxarea) * 100 * 0.9;
  442. this.windowAngle1 =
  443. (this.tableData.rearArea / maxarea) * 100 * 0.9;
  444. this.deviceid = result.deviceID;
  445. this.$forceUpdate();
  446. } else {
  447. resolve(response);
  448. }
  449. })
  450. .catch((error) => {
  451. reject(error);
  452. });
  453. });
  454. },
  455. //获取监控URL 通过ID获取
  456. getVideoUrlById(ID) {
  457. let IDString = String(ID); // 将 ID 转换为字符串
  458. new Promise((resolve, reject) => {
  459. api
  460. .getCameraById({ deviceid: IDString })
  461. .then((response) => {
  462. if (response.data.code == 200) {
  463. if (response.data.result.records.length > 0) {
  464. this.cameralist = response.data.result.records[0];
  465. }
  466. } else {
  467. resolve(response);
  468. }
  469. })
  470. .catch((error) => {
  471. reject(error);
  472. });
  473. });
  474. },
  475. //设备控制
  476. ctrlDevice(pass) {
  477. let IDString = String(this.itemId); // 将 ID 转换为字符串
  478. const params = {
  479. deviceid: IDString,
  480. devicetype: this.deviceType,
  481. paramcode: this.paramcode,
  482. password: pass,
  483. value: this.windowArea,
  484. };
  485. new Promise((resolve, reject) => {
  486. api
  487. .controlDevice(params)
  488. .then((response) => {
  489. if (response.data.code == 200) {
  490. this.getDeviceInfo(IDString);
  491. // console.log("操作成功");
  492. } else {
  493. resolve(response);
  494. }
  495. })
  496. .catch((error) => {
  497. reject(error);
  498. });
  499. });
  500. },
  501. // 显示密码输入弹窗
  502. showPasswordDialog(controlCode) {
  503. this.paramcode = controlCode;
  504. this.show = true;
  505. },
  506. // 取消密码输入
  507. cancelPassword() {
  508. this.show = false;
  509. },
  510. confirmPassword() {
  511. this.ctrlDevice(this.password);
  512. // 发起请求后关闭密码输入弹窗
  513. this.show = false;
  514. },
  515. },
  516. destroyed() {
  517. // 停止定时器
  518. this.stopTimer();
  519. },
  520. };
  521. </script>
  522. <style lang="scss" scoped>
  523. .top-nav {
  524. background-image: url(../../../../static/topnavbar.png);
  525. background-size: cover; /* 背景图片大小适应 */
  526. height: 100%;
  527. }
  528. .top-nav2 {
  529. background-color: #ffffff;
  530. }
  531. .main {
  532. margin-top: 80px;
  533. }
  534. .container {
  535. display: flex;
  536. flex-direction: column;
  537. }
  538. .button-grid {
  539. display: grid;
  540. grid-template-columns: repeat(4, 1fr);
  541. gap: 5px; /* 可以根据需要调整行列之间的间距 */
  542. }
  543. .flcard {
  544. padding: 20rpx;
  545. background-color: #ffffff;
  546. margin-bottom: 5rpx;
  547. }
  548. .additional-div {
  549. grid-column: span 2; /* 让附加内容跨越三列 */
  550. display: flex;
  551. align-items: center;
  552. }
  553. .checkbox-group {
  554. margin-left: 10px; /* 可以根据需要调整间距 */
  555. }
  556. .card {
  557. background-color: #ffffff;
  558. margin: auto;
  559. margin-top: 20rpx;
  560. width: 90%;
  561. height: 280rpx;
  562. border: 1rpx solid #000000;
  563. border-radius: 20rpx;
  564. }
  565. .flex-containe {
  566. display: flex;
  567. flex-direction: row;
  568. flex-wrap: wrap;
  569. }
  570. .itemback {
  571. flex: 0 0 calc(33.33% - 10px); /* 使用calc函数计算每个项目的宽度,减去间距 */
  572. margin: 5px; /* 间距设置为5px */
  573. }
  574. .datacardtime {
  575. display: flex;
  576. width: 100%;
  577. flex: 1;
  578. margin: 1%;
  579. float: left;
  580. height: 50rpx;
  581. text-align: center;
  582. background: linear-gradient(
  583. to right,
  584. rgba(55, 135, 254, 0.08),
  585. rgba(4, 184, 255, 0.08),
  586. rgba(60, 161, 237, 0.08)
  587. );
  588. }
  589. .datacard {
  590. display: flex;
  591. width: 48%;
  592. flex: 1;
  593. margin: 1%;
  594. float: left;
  595. height: 100rpx;
  596. text-align: center;
  597. background: linear-gradient(
  598. to right,
  599. rgba(55, 135, 254, 0.08),
  600. rgba(4, 184, 255, 0.08),
  601. rgba(60, 161, 237, 0.08)
  602. );
  603. }
  604. .left-content {
  605. width: 50%;
  606. display: flex;
  607. flex-direction: column;
  608. }
  609. .spacer {
  610. height: 10rpx;
  611. }
  612. .right-content {
  613. width: 50%; /* 右侧内容占据50%宽度 */
  614. background-image: url(../../../../static/model/Pa.png);
  615. background-size: 100% 125%;
  616. }
  617. /*风窗样式*/
  618. div.autowindow_new {
  619. width: 200px;
  620. height: 200px;
  621. background-image: url(../../../../static/window/window-bk.png);
  622. background-size: 100% 100%;
  623. perspective: 800px;
  624. }
  625. /*风窗1 2 3 4*/
  626. div.window_new_1 {
  627. margin-top: 12px;
  628. margin-left: 15px;
  629. width: 170px;
  630. height: 30px;
  631. background-color: crimson;
  632. box-sizing: border-box;
  633. float: left;
  634. z-index: 1;
  635. /* transition: all 2s; */
  636. background-image: url(../../../../static/window/window_new1.png);
  637. background-size: 100% 100%;
  638. }
  639. div.window_new_2 {
  640. margin-top: 2px;
  641. margin-left: 15px;
  642. width: 170px;
  643. height: 29px;
  644. background-color: crimson;
  645. box-sizing: border-box;
  646. float: left;
  647. z-index: 1;
  648. /* transition: all 2s; */
  649. background-image: url(../../../../static/window/window_new1.png);
  650. background-size: 100% 100%;
  651. }
  652. div.window_new_3 {
  653. margin-top: 2px;
  654. margin-left: 15px;
  655. width: 170px;
  656. height: 29px;
  657. background-color: crimson;
  658. box-sizing: border-box;
  659. float: left;
  660. z-index: 1;
  661. /* transition: all 2s; */
  662. background-image: url(../../../../static/window/window_new1.png);
  663. background-size: 100% 100%;
  664. }
  665. div.window_new_4 {
  666. margin-top: 2px;
  667. margin-left: 15px;
  668. width: 170px;
  669. height: 29px;
  670. background-color: crimson;
  671. box-sizing: border-box;
  672. float: left;
  673. z-index: 1;
  674. /* transition: all 2s; */
  675. background-image: url(../../../../static/window/window_new1.png);
  676. background-size: 100% 100%;
  677. }
  678. div.window_new_5 {
  679. margin-top: 2px;
  680. margin-left: 15px;
  681. width: 170px;
  682. height: 29px;
  683. background-color: crimson;
  684. box-sizing: border-box;
  685. float: left;
  686. z-index: 1;
  687. /* transition: all 2s; */
  688. background-image: url(../../../../static/window/window_new1.png);
  689. background-size: 100% 100%;
  690. }
  691. div.window_new_1 {
  692. transition: all 2s ease;
  693. transform-origin: center center;
  694. }
  695. div.window_new_2 {
  696. transition: all 2s ease;
  697. transform-origin: center center;
  698. }
  699. div.window_new_3 {
  700. transition: all 2s ease;
  701. transform-origin: center center;
  702. }
  703. div.window_new_4 {
  704. transition: all 2s ease;
  705. transform-origin: center center;
  706. }
  707. div.window_new_5 {
  708. transition: all 2s ease;
  709. transform-origin: center center;
  710. }
  711. .btns {
  712. display: flex;
  713. }
  714. .containers {
  715. background-color: #fff;
  716. }
  717. .passWordName {
  718. margin: 20px;
  719. display: flex;
  720. flex-direction: row;
  721. justify-content: space-around;
  722. }
  723. .title {
  724. margin-right: 20px;
  725. line-height: 40px;
  726. }
  727. .passWordInput {
  728. margin: 20px;
  729. display: flex;
  730. flex-direction: row;
  731. justify-content: space-around;
  732. }
  733. .passArea {
  734. border-color: red;
  735. }
  736. </style>