index.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839
  1. <template>
  2. <view class="container">
  3. <view style="color: #f4f4f4;margin: 3vh;">
  4. <!-- <view style="display: flex;">
  5. <text>{{ i18('设备端口') }}:</text>
  6. <view class="dportitem " v-for="item in curPort" @click="selectPort(item.id);" style="display: contents;">
  7. <p class="dpropitem-title "> {{ item.text }}</p>
  8. <view style="position: absolute;right: 0px;z-index: 9999" v-if="item.id == choosePort">
  9. </view>
  10. <view class="dpropitem-block dportitem-block-2" v-if="item.status == 2">
  11. <view class="dpropitem-status">{{ i18('充电中') }}</view>
  12. </view>
  13. <view class="dpropitem-block dportitem-block-1" v-if="item.status == 1 || item.status == 7">
  14. <view class="dpropitem-status">{{ i18('空闲中') }}</view>
  15. </view>
  16. <view class="dpropitem-block dportitem-block-3" style="background: rgb(247,238,240);color:#FF6868"
  17. v-if="item.status == 3">
  18. <view class="dpropitem-status">{{ i18('禁用中') }}</view>
  19. </view>
  20. <view class="dpropitem-block dportitem-block-3" style="background: rgb(248,244,230);color:#FFAA00"
  21. v-if="item.status == 4">
  22. <view class="dpropitem-status">{{ i18('故障中') }}</view>
  23. </view>
  24. <view class="dpropitem-block dportitem-block-3" style=";" v-if="item.status == 5">
  25. <view class="dpropitem-status">{{ i18('已连接') }}</view>
  26. </view>
  27. <view class="dpropitem-block dportitem-block-3" style="background: rgb(239,235,254);color:#A552FF"
  28. v-if="item.status == 6">
  29. <view class="dpropitem-status">{{ i18('已预约') }}</view>
  30. </view>
  31. </view>
  32. </view> -->
  33. </view>
  34. <view>
  35. </view>
  36. <view class="dboxs dport">
  37. <view class="dboxtitle">
  38. <image class="portimg" src="../../../static/images/new/starts/mine/symbol1.png" />
  39. <view class="dboxtitle-text"> {{ i18('设备端口') }}</view>
  40. </view>
  41. <view class="dportitems">
  42. <view class="dportitem " v-for="item in curPort" @click="selectPort(item.id);">
  43. <p class="dpropitem-title "> {{ item.text }}</p>
  44. <view style="position: absolute;right: 0px;z-index: 9999" v-if="item.id == choosePort">
  45. <image class="dportitem-img" style="width: 15px;height: 15px"
  46. src="/static/images/new/start/choose.png" />
  47. </view>
  48. <view class="dpropitem-block dportitem-block-2" v-if="item.status == 2">
  49. <image class="dportitem-img" src="/static/images/new/starts/charnging.png" />
  50. <view class="dpropitem-status">{{ i18('充电中') }}</view>
  51. </view>
  52. <view class="dpropitem-block dportitem-block-1" v-if="item.status == 1 || item.status == 7">
  53. <image class="dportitem-img" src="/static/images/new/starts/free.png" />
  54. <view class="dpropitem-status">{{ i18('空闲中') }}</view>
  55. </view>
  56. <view class="dpropitem-block dportitem-block-3" style="background: rgb(247,238,240);color:#FF6868"
  57. v-if="item.status == 3">
  58. <image class="dportitem-img" src="/static/images/new/starts/ban.png" />
  59. <view class="dpropitem-status">{{ i18('禁用中') }}</view>
  60. </view>
  61. <view class="dpropitem-block dportitem-block-3" style="background: rgb(248,244,230);color:#FFAA00"
  62. v-if="item.status == 4">
  63. <image class="dportitem-img" src="/static/images/new/starts/bad.png" />
  64. <view class="dpropitem-status">{{ i18('故障中') }}</view>
  65. </view>
  66. <view class="dpropitem-block dportitem-block-3" style=";" v-if="item.status == 5">
  67. <image class="dportitem-img" src="/static/images/new/port.png" />
  68. <view class="dpropitem-status">{{ i18('已连接') }}</view>
  69. </view>
  70. <view class="dpropitem-block dportitem-block-3" style="background: rgb(239,235,254);color:#A552FF"
  71. v-if="item.status == 6">
  72. <image class="dportitem-img" src="/static/images/new/start/yuyue.png" />
  73. <view class="dpropitem-status">{{ i18('已预约') }}</view>
  74. </view>
  75. </view>
  76. </view>
  77. </view>
  78. <view class="dboxs dport" style="height: 100px" @click="planCharge">
  79. <view class="dboxtitle">
  80. <image class="portimg" src="../../../static/images/new/starts/mine/yuyue.png" />
  81. <view class="dboxtitle-text">{{ i18('预约充电') }}</view>
  82. </view>
  83. <view class="port-text" v-if="planInfo != null" style="left:40px;top:48px;font-size: 14px">
  84. {{ i18('已预约') }} {{planInfo.runTime}}
  85. </view>
  86. <view class="port-text" style="left:40px;top:55px;font-size: 14px" v-else>
  87. {{ i18('点击预约充电') }}
  88. </view>
  89. <view class="port-num" style="left:40px;top:70px;font-size: 12px" v-if="planInfo != null">
  90. {{ i18('可点击取消预约') }}
  91. </view>
  92. <!-- <view class="port-icon" v-if="planInfo == null" style="width: 50px;height: 50px;right:10px;top:28%">
  93. <image class="btn-image" src="../../../static/images/new/starts/index/yuyue.png">
  94. </image>
  95. </view>
  96. <view class="port-icon" v-if="planInfo != null" style="width: 50px;height: 50px;right:10px;top:28%">
  97. <image class="btn-image" src="/static/images/new/start/del.png">
  98. </image>
  99. </view> -->
  100. </view>
  101. <view class="dboxs dport" style="height: 25vh">
  102. <view class="dboxtitle">
  103. <image class="portimg" src="../../../static/images/new/starts/mine/list.png" />
  104. <view class="dboxtitle-text"> {{ i18('设备操作') }}</view>
  105. </view>
  106. <view class="control-btn" @click="trigger()">
  107. <view v-if="portDetail.portStatus == 2">
  108. <image class="btn-image" src="../../../static/images/new/start/stop.png">
  109. </image>
  110. <view>{{ i18('停止充电') }}</view>
  111. </view>
  112. <view v-else>
  113. <image class="btn-image" src="../../../static/images/new/starts/index/using.png"> </image>
  114. <view>{{ i18('立即充电') }}</view>
  115. </view>
  116. </view>
  117. <!-- <view class="control-btn" @click="trigger()" v-else-if="portDetail.portStatus != 2">
  118. <view>
  119. <image class="btn-image" src="../../../static/images/new/starts/index/using.png"
  120. </image>
  121. <view>{{ i18('立即充电') }}{{portDetail.portStatus}}</view>
  122. </view>
  123. </view> -->
  124. <view class="control-btn" @click="getInfo">
  125. <image class="btn-image" src="../../../static/images/new/starts/index/icon_pull.png">
  126. </image>
  127. <view>{{ i18('获取状态') }}</view>
  128. </view>
  129. <view class="control-btn" @click="toSet">
  130. <image class="btn-image" src="../../../static/images/new/starts/index/list.png">
  131. </image>
  132. <view>{{ i18('设备控制') }}</view>
  133. </view>
  134. <!-- <view class="control-btn" @click="goBack">
  135. <image class="btn-image" src="../../../static/images/new/starts/index/return.png">
  136. </image>
  137. <view>{{ i18('查看状态') }}</view>
  138. </view> -->
  139. <view class="control-btn" @click="restart">
  140. <image class="btn-image" src="../../../static/images/new/starts/index/return.png">
  141. </image>
  142. <view>{{ i18('重置设备') }}</view>
  143. </view>
  144. </view>
  145. <u-picker @cancel="showPort=false" @confirm="confirmPort" :show="showPort" :columns="portList"
  146. keyName="text"></u-picker>
  147. <view style="width: 100%;text-align: center;">
  148. <image style="height: 3vh;width: 30vw;position: absolute;bottom: 10vh;left: 35vw;"
  149. src="../../../static/images/new/starts/login/backImg2.png"></image>
  150. </view>
  151. </view>
  152. </template>
  153. <script>
  154. import {
  155. getDeviceInfo,
  156. getPortDetail,
  157. startCharge,
  158. stopCharge,
  159. sendPortDetailCmd,
  160. checkStatusChange,
  161. getPlanInfo,
  162. cancelPlan
  163. } from "@/api/device/device";
  164. import {
  165. restart
  166. } from '@/api/device/current.js'
  167. import websocket from '@/utils/websocket'
  168. import i18 from '@/utils/i18.js'
  169. export default {
  170. data() {
  171. return {
  172. deviceInfo: {},
  173. visitTime: "",
  174. timer: null,
  175. showPort: false,
  176. portDetail: {
  177. portStatus: 0,
  178. POWER: 0,
  179. voltage: 0
  180. },
  181. statusTimer: "",
  182. connected: false,
  183. scriptTask: null,
  184. choosePort: 1,
  185. portList: [
  186. [{
  187. port: 1,
  188. text: "端口一"
  189. }]
  190. ],
  191. planInfo: null,
  192. days: ["", "周一", "周二", "周三", "周四", "周五", "周六", "周日"],
  193. curPort: []
  194. }
  195. },
  196. computed: {
  197. imgUrl() {
  198. return getApp().globalData.config.imgUrl;
  199. }
  200. },
  201. onLoad(opt) {
  202. this.deviceInfo.deviceId = opt.id;
  203. this.deviceInfo.ccid = opt.ccid;
  204. this.deviceInfo.qrcode = opt.qrcode;
  205. },
  206. onShow() {
  207. this.getInfo();
  208. this.getPlanInfo();
  209. },
  210. onUnload() {
  211. this.closeSocket();
  212. },
  213. methods: {
  214. i18(text) {
  215. return i18(text)
  216. },
  217. restart() {
  218. let deviceId = this.deviceInfo.deviceId;
  219. this.$modal.loading("正在重置中,请稍等...");
  220. // 重启充电桩
  221. let self = this;
  222. restart({
  223. deviceId: deviceId,
  224. ccid: this.deviceInfo.ccid
  225. }).then(res => {
  226. this.$modal.loading("正在重置中,请稍等...");
  227. setTimeout(function() {
  228. self.getInfo()
  229. }, 5000)
  230. })
  231. },
  232. goBack() {
  233. uni.navigateBack({});
  234. },
  235. planCharge() {
  236. if (this.planInfo != null) {
  237. this.$modal.confirm("确认取消预约?").then(res => {
  238. this.cancelPlan();
  239. })
  240. } else {
  241. this.toPlan()
  242. }
  243. },
  244. cancelPlan() {
  245. cancelPlan(this.planInfo.id).then(res => {
  246. this.$modal.msg("取消成功");
  247. this.planInfo = null;
  248. this.getPlanInfo();
  249. })
  250. },
  251. getPlanInfo() {
  252. getPlanInfo(this.deviceInfo.deviceId, this.choosePort).then(res => {
  253. let data = res.data;
  254. if (data != null) {
  255. let planType = data.planType;
  256. if (planType == 1) { //单次预约
  257. let planInfo = {};
  258. planInfo.runTime = data.runTime;
  259. this.planInfo = planInfo;
  260. this.planInfo.id = data.id;
  261. } else {
  262. let planInfo = {};
  263. planInfo.runTime = data.runTime;
  264. let repeatDays = data.repeatDays;
  265. let days = repeatDays.split(",")
  266. let strs = "";
  267. for (let i = 0; i < days.length; i++) {
  268. if (strs.length > 0) {
  269. strs += ",";
  270. }
  271. strs += i18(this.days[days[i]]);
  272. }
  273. this.planInfo = planInfo;
  274. this.planInfo.runTime = strs + " " + data.repeatTime;
  275. this.planInfo.id = data.id;
  276. }
  277. }
  278. })
  279. },
  280. confirmPort(e) {
  281. let value = e.value[0]
  282. this.choosePort = value.port;
  283. this.showPort = false;
  284. this.getInfo()
  285. },
  286. parsePortCmd(real_data) {
  287. let self = this;
  288. self.portDetail = real_data
  289. self.curPort = [];
  290. let port_first_status = self.portDetail["port_first_status"];
  291. let port_second_status = self.portDetail["port_second_status"]
  292. if (port_first_status) {
  293. self.portList[0].push({
  294. port: 1,
  295. text: i18("端口一")
  296. });
  297. self.curPort.push({
  298. text: i18("端口一"),
  299. status: port_first_status,
  300. id: 1,
  301. })
  302. }
  303. if (port_second_status) {
  304. self.portList[0].push({
  305. port: 2,
  306. text: i18("端口二")
  307. });
  308. self.curPort.push({
  309. text: i18("端口二"),
  310. status: port_second_status,
  311. id: 2
  312. })
  313. }
  314. let choosePort = self.choosePort
  315. if (choosePort == 1) {
  316. self.portDetail.portStatus = port_first_status;
  317. } else if (choosePort == 2) {
  318. self.portDetail.portStatus = port_second_status;
  319. }
  320. self.$modal.closeLoading();
  321. },
  322. initSocket(key) {
  323. let self = this;
  324. let socketUrl = getApp().globalData.config.socketUrl
  325. this.scriptTask = websocket({
  326. url: "/" + key + "/",
  327. });
  328. let scriptTask = this.scriptTask;
  329. scriptTask.onOpen(function(res) {
  330. console.log('WebSocket连接已打开!');
  331. self.connected = true;
  332. });
  333. scriptTask.onError(function(res) {
  334. self.connected = false;
  335. console.log(res);
  336. });
  337. scriptTask.onMessage(function(res) {
  338. let data = JSON.parse(res.data);
  339. let type = data.type;
  340. let real_data = data.real_data;
  341. if (type == 103) {
  342. self.parsePortCmd(real_data);
  343. }
  344. if (type == 116) {
  345. self.$modal.closeLoading();
  346. self.getInfo();
  347. }
  348. if (type == 113) {
  349. self.$modal.closeLoading();
  350. self.getInfo();
  351. }
  352. if (type == 96) {
  353. self.mainBoardInfo = real_data;
  354. self.formatMainboardData();
  355. self.$modal.closeLoading();
  356. }
  357. self.$forceUpdate();
  358. console.log('收到服务器内容:' + JSON.stringify(data));
  359. });
  360. scriptTask.onClose(function(res) {
  361. console.log('WebSocket 已关闭!');
  362. });
  363. },
  364. toSet() {
  365. this.closeSocket();
  366. uni.navigateTo({
  367. url: '/pages/weitiandi/device/setting?id=' + this.deviceInfo.deviceId + "&ccid=" + this
  368. .deviceInfo.ccid
  369. });
  370. },
  371. toPlan() {
  372. uni.navigateTo({
  373. url: '/pages/weitiandi/device/plan?port=' + this.choosePort + '&id=' + this.deviceInfo
  374. .deviceId + "&ccid=" + this.deviceInfo.ccid
  375. });
  376. },
  377. trigger() {
  378. let portStatus = this.portDetail.portStatus;
  379. if (portStatus == 2) { //需要停止充电
  380. this.$modal.confirm("需要停止充电么?").then(res => {
  381. this.stopCharge();
  382. })
  383. } else {
  384. if (portStatus == 1) {
  385. this.$modal.msg("请先将充电枪插入后再点击充电");
  386. }
  387. if (portStatus == 5) {
  388. this.$modal.confirm("确认开始充电么?").then(res => {
  389. this.startCharge();
  390. })
  391. }
  392. }
  393. },
  394. getInfo() {
  395. let self = this;
  396. this.$modal.loading("正在获取状态,请稍等...");
  397. sendPortDetailCmd(this.deviceInfo).then(res => {
  398. this.$modal.loading("正在获取状态,请稍等...");
  399. this.visitTime = res.msg;
  400. if (!this.visitTime) {
  401. this.$modal.msg("请重新进入页面");
  402. return;
  403. }
  404. if (!this.scriptTask) {
  405. this.initSocket(this.deviceInfo.deviceId);
  406. }
  407. setTimeout(function() {
  408. getPortDetail(self.deviceInfo, self.visitTime).then(res => {
  409. let data = res.data;
  410. if (data != null) {
  411. self.parsePortCmd(data);
  412. } else {}
  413. });
  414. }, 500)
  415. })
  416. },
  417. stopCharge() {
  418. let self = this;
  419. this.deviceInfo.port = this.choosePort;
  420. stopCharge(this.deviceInfo).then(() => {
  421. self.$modal.loading("停止成功");
  422. setTimeout((() => {
  423. self.getInfo();
  424. }), 1000);
  425. })
  426. },
  427. startCharge() {
  428. let self = this;
  429. this.deviceInfo.port = this.choosePort;
  430. startCharge(this.deviceInfo).then(res => {
  431. self.$modal.loading("启动成功");
  432. setTimeout((() => {
  433. self.getInfo();
  434. }), 1000);
  435. })
  436. },
  437. getPortInfo() {
  438. this.startPortDetailTimer();
  439. },
  440. startPortDetailTimer() {
  441. let self = this;
  442. this.timer = setTimeout(function() {
  443. getPortDetail(self.deviceInfo, self.visitTime).then(res => {
  444. let data = res.data;
  445. if (data != null) {
  446. self.portDetail = data;
  447. self.checkStatusCheck();
  448. self.$modal.closeLoading();
  449. } else {
  450. self.startPortDetailTimer();
  451. }
  452. });
  453. }, 1000);
  454. },
  455. checkStatusCheck() {
  456. this.statusChangeTimer();
  457. },
  458. checkOnPage() {
  459. var pages = getCurrentPages() // 获取栈实例
  460. let currentRoute = pages[pages.length - 1].route; // 获取当前页面路由
  461. if ("pages/weitiandi/device/index" != currentRoute) {
  462. return false;
  463. }
  464. return true;
  465. },
  466. closeSocket() {
  467. this.scriptTask.close();
  468. this.scriptTask = null;
  469. },
  470. statusChangeTimer() {
  471. let self = this;
  472. this.statusTimer = setTimeout(function() {
  473. if (!this.checkOnPage()) {
  474. return;
  475. }
  476. checkStatusChange(self.deviceInfo, self.visitTime).then(res => {
  477. let data = res.data;
  478. if (data != null) {
  479. self.getInfo();
  480. } else {
  481. self.statusChangeTimer();
  482. }
  483. });
  484. }, 3000);
  485. }
  486. }
  487. }
  488. </script>
  489. <style>
  490. .container {
  491. /* background: rgb(213, 213, 213); */
  492. background-image: url('../../../static/images/new/starts/bg2.jpg');
  493. inset: 0;
  494. position: absolute;
  495. background-size: cover;
  496. background-repeat: no-repeat;
  497. }
  498. .header {
  499. position: relative;
  500. margin-top: 4vw;
  501. }
  502. .header-status-desc {
  503. position: absolute;
  504. text-align: center;
  505. width: 100%;
  506. bottom: 1vh;
  507. font-size: 5vw;
  508. font-weight: bold;
  509. color: #0E9F9B;
  510. margin-bottom: 5vw;
  511. }
  512. .header-status {
  513. font-weight: bold;
  514. text-align: center;
  515. }
  516. .chong-active {
  517. color: #0E9F9B
  518. }
  519. .header-img {
  520. width: 100%;
  521. padding: 5% 10%;
  522. text-align: center;
  523. }
  524. .header-img image {
  525. width: 100%;
  526. height: 23vh;
  527. }
  528. .info-body {
  529. background: #0E9F9B;
  530. height: 20vh;
  531. margin: 0 2%;
  532. border-radius: 1vw;
  533. margin-top: 2vh;
  534. color: #F8FCFF;
  535. line-height: 3vh;
  536. }
  537. .info-content {
  538. display: inline-block;
  539. width: 23%;
  540. text-align: center;
  541. margin: 1%;
  542. margin-top: 2.5vh;
  543. }
  544. .info-content-value {
  545. font-weight: bold;
  546. }
  547. .info-content-text {}
  548. .info-summary {
  549. display: flex;
  550. flex-direction: row;
  551. text-align: center;
  552. margin: 3vh 0;
  553. }
  554. .summary {
  555. width: 33%;
  556. line-height: 2.5vh;
  557. }
  558. .charge-num {
  559. color: #0E9F9B;
  560. font-weight: bold;
  561. font-size: 4.5vw;
  562. }
  563. .charge-title {
  564. color: #B2B2B2;
  565. font-weight: 400;
  566. }
  567. .btn-image {
  568. width: 90%;
  569. height: 100%;
  570. }
  571. .info-bottom-btn {
  572. display: flex;
  573. flex-direction: row;
  574. text-align: center;
  575. position: relative;
  576. margin-top: 10vh;
  577. }
  578. .btn-area {
  579. width: 50%;
  580. height: 50px;
  581. }
  582. .left {
  583. position: relative;
  584. left: 10px;
  585. text-align: right;
  586. }
  587. .right {
  588. text-align: left;
  589. position: relative;
  590. right: 10px;
  591. }
  592. .info-plan {
  593. text-align: center;
  594. color: #0E9F9B;
  595. margin-top: 1vh;
  596. font-weight: 400;
  597. }
  598. .setting {
  599. position: fixed;
  600. right: -1px;
  601. top: 10vh;
  602. z-index: 999;
  603. background: rgb(227, 243, 245);
  604. color: #0E9F9B;
  605. font-size: 10px;
  606. border-radius: 5px;
  607. padding: 3px;
  608. }
  609. .port {
  610. height: 70px;
  611. background: #F8FCFF;
  612. border: 0px solid #F8FCFF;
  613. box-shadow: 0px 0px 10px 1px rgba(52, 52, 52, 0.3);
  614. border-radius: 4px;
  615. margin: 0 10px;
  616. position: relative;
  617. margin-top: 10px;
  618. }
  619. .plan {
  620. height: 70px;
  621. background: #F8FCFF;
  622. border: 0px solid #F8FCFF;
  623. box-shadow: 0px 0px 6px 1px rgba(101, 101, 101, 0.29);
  624. border-radius: 4px;
  625. margin: 0 10px;
  626. position: relative;
  627. margin-top: 15px;
  628. }
  629. .dpropitem-block {
  630. padding: 0.12rem 0.37rem;
  631. /* background: #e6f6f1; */
  632. display: flex;
  633. width: 70px;
  634. height: 70px;
  635. flex-direction: column;
  636. justify-content: center;
  637. align-items: center;
  638. position: relative;
  639. }
  640. .port-image {
  641. height: 40px;
  642. width: 40px;
  643. position: absolute;
  644. top: 15px;
  645. left: 20px;
  646. }
  647. .port-text {
  648. position: absolute;
  649. top: 13px;
  650. left: 75px;
  651. font-weight: bold;
  652. }
  653. .port-num {
  654. position: absolute;
  655. top: 38px;
  656. left: 75px;
  657. color: #B2B2B2;
  658. }
  659. .port-icon {
  660. position: absolute;
  661. top: 30px;
  662. right: 5px;
  663. width: 10px;
  664. height: 16px;
  665. }
  666. .port-icon image {
  667. width: 90%;
  668. }
  669. .body-bottom {
  670. padding: 0 22px;
  671. }
  672. .body-bottom .info-content {
  673. width: 30%;
  674. }
  675. .bottom-control {
  676. height: 22vh;
  677. margin: 0 2%;
  678. margin-top: 2vh;
  679. line-height: 3vh;
  680. background: #F8FCFF;
  681. border: 0px solid #F8FCFF;
  682. box-shadow: 0px 0px 6px 1px rgba(101, 101, 101, 0.29);
  683. border-radius: 4px;
  684. padding: 3%;
  685. }
  686. .control-btn {
  687. display: inline-block;
  688. ;
  689. height: 60px;
  690. width: 25%;
  691. padding: 10px 20px;
  692. text-align: center;
  693. font-size: 12px;
  694. color: black;
  695. }
  696. .control-btn .btn-image {}
  697. .dportitem {
  698. color: #60af7b
  699. }
  700. .dboxs {
  701. background: linear-gradient(#1e1e1e, #050609);
  702. border: 0px solid #F8FCFF;
  703. box-shadow: 0px 0px 6px 1px rgba(101, 101, 101, 0.29);
  704. border-radius: 4px;
  705. padding: 20px;
  706. font-size: 0.24rem;
  707. color: #57B03D;
  708. margin: 20px;
  709. position: relative;
  710. }
  711. .portimg {
  712. width: 20px;
  713. height: 20px;
  714. }
  715. .dportitem-img {
  716. width: 50px;
  717. height: 50px;
  718. }
  719. .dpropitem-block {
  720. /* padding: 0.12rem 0.37rem;
  721. background: #e6f6f1; */
  722. margin-left: 10px;
  723. }
  724. .dportitem {
  725. margin: 10px 10px 0 16px;
  726. width: 70px;
  727. position: relative;
  728. display: inline-block;
  729. }
  730. .dportitem-block-2 {
  731. /* background: #f9f4e5; */
  732. color: #FFAA00;
  733. }
  734. .dpropitem-title {
  735. text-align: center;
  736. margin-bottom: 5px;
  737. font-size: 16px;
  738. }
  739. .dpropitem-status {
  740. font-size: 14px;
  741. }
  742. .dboxtitle {
  743. font-size: 18px;
  744. position: relative;
  745. }
  746. .dboxtitle-text {
  747. display: inline-block;
  748. position: absolute;
  749. top: -2px;
  750. left: 25px;
  751. color: #e7e7e7;
  752. }
  753. .btn-image {
  754. width: 30px;
  755. height: 30px;
  756. }
  757. .control-btn {
  758. font-size: 14px;
  759. color: #d8d8d8;
  760. }
  761. </style>