index.vue 20 KB

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