index.vue 19 KB

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