index.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890
  1. <template>
  2. <view class="container">
  3. <view class="dboxs dport">
  4. <view class="dboxtitle"><image class="portimg" src="/static/images/new/start/port.png"/>
  5. <view class="dboxtitle-text"> 设备端口</view>
  6. </view>
  7. <view class="dportitems">
  8. <view class="dportitem " v-for="item in curPort" @click="selectPort(item.id);">
  9. <p class="dpropitem-title "> {{ item.text }}</p>
  10. <view style="position: absolute;right: 0px;z-index: 9999" v-if="item.id == choosePort">
  11. <image class="dportitem-img" style="width: 15px;height: 15px" src="/static/images/new/start/choose.png"/>
  12. </view>
  13. <view class="dpropitem-block dportitem-block-2" v-if="item.status == 2">
  14. <image class="dportitem-img" src="/static/images/new/start/using.png"/>
  15. <view class="dpropitem-status">充电中</view>
  16. </view>
  17. <view class="dpropitem-block dportitem-block-1" v-if="item.status == 1">
  18. <image class="dportitem-img" src="/static/images/new/start/free.png"/>
  19. <view class="dpropitem-status">空闲中</view>
  20. </view>
  21. <view class="dpropitem-block dportitem-block-3" style="background: rgb(247,238,240);color:#FF6868" v-if="item.status == 3">
  22. <image class="dportitem-img" src="/static/images/new/start/ban.png"/>
  23. <view class="dpropitem-status">禁用中</view>
  24. </view>
  25. <view class="dpropitem-block dportitem-block-3" style="background: rgb(248,244,230);color:#FFAA00" v-if="item.status == 4">
  26. <image class="dportitem-img" src="/static/images/new/start/bad.png"/>
  27. <view class="dpropitem-status">故障中</view>
  28. </view>
  29. <view class="dpropitem-block dportitem-block-3" style=";" v-if="item.status == 5">
  30. <image class="dportitem-img" src="/static/images/new/start/lianjie.png"/>
  31. <view class="dpropitem-status">已连接</view>
  32. </view>
  33. <view class="dpropitem-block dportitem-block-3" style="background: rgb(239,235,254);color:#A552FF" v-if="item.status == 6">
  34. <image class="dportitem-img" src="/static/images/new/start/yuyue.png"/>
  35. <view class="dpropitem-status">已预约</view>
  36. </view>
  37. </view>
  38. </view>
  39. </view>
  40. <view class="dboxs dport" style="height: 100px" @click="planCharge">
  41. <view class="dboxtitle"><image class="portimg" src="/static/images/new/start/clock.png"/>
  42. <view class="dboxtitle-text">预约充电</view>
  43. </view>
  44. <view class="port-text" v-if="portDetail.portStatus == 6" style="left:40px;top:48px;font-size: 14px">
  45. 已预约
  46. </view>
  47. <view class="port-text" style="left:40px;top:55px;font-size: 14px" v-else>
  48. 点击预约充电
  49. </view>
  50. <view class="port-num" style="left:40px;top:70px;font-size: 12px" v-if="portDetail.portStatus == 6">
  51. 可点击取消预约
  52. </view>
  53. <view class="port-icon" v-if="portDetail.portStatus !=6" style="width: 50px;height: 50px;right:10px;top:28%">
  54. <image class="btn-image" src="/static/images/new/start/clock.png" >
  55. </image>
  56. </view>
  57. <view class="port-icon" v-if="portDetail.portStatus == 6" style="width: 50px;height: 50px;right:10px;top:28%">
  58. <image class="btn-image" src="/static/images/new/start/del.png" >
  59. </image>
  60. </view>
  61. </view>
  62. <u-picker @cancel="showPort=false" @confirm="confirmPort" :show="showPort" :columns="portList" keyName="text"></u-picker>
  63. <view class="dboxs dport" style="height: 200px">
  64. <view class="dboxtitle"><image class="portimg" src="/static/images/new/start/oper.png"/>
  65. <view class="dboxtitle-text">设备操作</view>
  66. </view>
  67. <view class="control-btn" @click="trigger()" v-if="portDetail.portStatus == 2">
  68. <image class="btn-image" src="/static/images/new/start/stop.png" >
  69. </image>
  70. <view>停止充电</view>
  71. </view>
  72. <view class="control-btn" @click="trigger()" v-if="portDetail.portStatus != 2">
  73. <image class="btn-image" src="/static/images/new/start/using.png" >
  74. </image>
  75. <view>立即充电</view>
  76. </view>
  77. <view class="control-btn" @click="getInfo">
  78. <image class="btn-image" src="/static/images/new/start/get.png" >
  79. </image>
  80. <view>获取状态</view>
  81. </view>
  82. <view class="control-btn" @click="toSet">
  83. <image class="btn-image" src="/static/images/new/start/oper.png" >
  84. </image>
  85. <view>设备控制</view>
  86. </view>
  87. <view class="control-btn" @click="goBack">
  88. <image class="btn-image" src="/static/images/new/start/back.png" >
  89. </image>
  90. <view>返回</view>
  91. </view>
  92. <!-- <view class="control-btn">-->
  93. <!-- <image class="btn-image" :src="imgUrl+'/control/record.png'" >-->
  94. <!-- </image>-->
  95. <!-- <view>使用记录</view>-->
  96. <!-- </view>-->
  97. </view>
  98. <u-picker @cancel="cancelPicker" @confirm="confirm" :show="showPlan" :columns="planCols" @change="changeHandler"></u-picker>
  99. <u-modal :show="showPwd" @confirm="inputPwd" @cancel="cancel" :showCancelButton="true" title="修改密码" >
  100. <view class="slot-content">
  101. <view>
  102. <u--input
  103. type="number"
  104. placeholder="原密码"
  105. border="surround"
  106. v-model="oldPwd"
  107. ></u--input>
  108. </view>
  109. <view style="margin-top:5px">
  110. <u--input
  111. type="number"
  112. placeholder="6位数字新密码"
  113. border="surround"
  114. v-model="pwd"
  115. ></u--input>
  116. </view>
  117. </view>
  118. </u-modal>
  119. </view>
  120. </template>
  121. <script>
  122. import {getDeviceInfo,getPortDetail,startCharge,stopCharge,sendPortDetailCmd,checkStatusChange,getPlanInfo,cancelPlan,parseDataObj,planCharge,getPwd,setPwd} from "@/utils/weitiandi/device/device.js";
  123. // #ifdef APP
  124. import ecUI from '@/utils/ecUI.js'
  125. import ecBLE from '@/utils/ecBLE/ecBLE.js'
  126. // #endif
  127. // #ifdef MP
  128. const ecUI = require('@/utils/ecUI.js')
  129. const ecBLE = require('@/utils/ecBLE/ecBLE.js')
  130. // #endif
  131. let ctx
  132. let isCheckScroll = true
  133. let isCheckRevHex = false
  134. let isCheckSendHex = false
  135. let sendData = ''
  136. export default {
  137. data() {
  138. return {
  139. oldPwd:"",
  140. pwd:"",
  141. showPwd:false,
  142. planCols:[ ],
  143. columnData:[],
  144. showPlan:false,
  145. deviceInfo:{},
  146. visitTime:"",
  147. timer:null,
  148. showPort:false,
  149. portDetail:{portStatus:0,POWER:0,voltage:0},
  150. statusTimer:"",
  151. connected:false,
  152. scriptTask:null,
  153. choosePort:1,
  154. portList:[[{port:1,text:"端口一"}]],
  155. planInfo:null,
  156. days:["","周一","周二","周三","周四","周五","周六","周日"],
  157. textRevData: '',
  158. picker:null,
  159. firstInit:false,
  160. hasRight:false,
  161. startAutoCharge:true,
  162. curPort:[]
  163. }
  164. },
  165. computed: {
  166. imgUrl() {
  167. return getApp().globalData.config.imgUrl;
  168. }
  169. },
  170. onLoad(opt) {
  171. this.deviceInfo.deviceId = opt.id;
  172. this.deviceInfo.ccid = opt.ccid;
  173. this.deviceInfo.qrcode = opt.qrcode;
  174. this.checkPassword();
  175. },
  176. onShow(){
  177. this.buletooth();
  178. },
  179. onUnload (){
  180. this.closeSocket();
  181. },
  182. methods: {
  183. selectPort(id){
  184. this.choosePort = id;
  185. console.log(this.choosePort)
  186. },
  187. cancel(){
  188. this.showPwd = false;
  189. },
  190. modifyPwd(){
  191. this.showPwd = true;
  192. },
  193. inputPwd(){
  194. let rightPwd = uni.getStorageSync("pwd");
  195. if(!this.oldPwd){
  196. this.$modal.showToast("原密码不能为空");
  197. return;
  198. }
  199. if(rightPwd != this.oldPwd){
  200. this.$modal.showToast("原密码不能对");
  201. return;
  202. }
  203. if(!this.pwd){
  204. this.$modal.showToast("密码不能为空");
  205. }else {
  206. setPwd(this.pwd);
  207. this.$modal.showToast("密码修改成功");
  208. this.goBack();
  209. }
  210. },
  211. confirm(e) {
  212. let value = e.value;
  213. console.log('confirm', value)
  214. let day = value[0];
  215. let date = new Date();
  216. let nowDay = date.getDate();
  217. let hour = value[1]+"";
  218. hour = parseInt(hour.substr(0,hour.length-1),10);
  219. let min = value[2]+"";
  220. min = parseInt(min.substr(0,min.length-1),10);
  221. let todayTotalMin = 0;
  222. let planDate = {min:min,hour:hour};
  223. let nowHour = date.getHours();
  224. let nowMin = date.getMinutes();
  225. let nowDate ={min:nowMin,hour:nowHour};
  226. if("今日" == day){
  227. todayTotalMin = this.getGapMin(planDate,nowDate)
  228. }else {
  229. let nowHour = date.getHours();
  230. let min = date.getMinutes();
  231. let maxDate ={min:59,hour:23};
  232. todayTotalMin = this.getGapMin(maxDate,nowDate);
  233. let minDate = {min:0,hour:0};
  234. todayTotalMin +=this.getGapMin(planDate,minDate);
  235. }
  236. console.log(todayTotalMin);
  237. this.cancelPicker();
  238. if(todayTotalMin<=0 || todayTotalMin>1440){
  239. this.$modal.showToast("最大预约时间为24小时");
  240. }else{
  241. planCharge(this.choosePort,todayTotalMin).then(res=>{
  242. this.getInfo(true);
  243. });
  244. }
  245. },
  246. getGapMin(date1,date2){
  247. let min1 = date1.min;
  248. let hour1 = date1.hour;
  249. let min2 = date2.min;
  250. let hour2 = date2.hour;
  251. let total1 = min1+hour1*60;
  252. let total2 = min2+hour2*60;
  253. return total1-total2;
  254. },
  255. cancelPicker(e) {
  256. this.showPlan = false
  257. },
  258. changeHandler(e){
  259. const {
  260. columnIndex,
  261. value,
  262. values, // values为当前变化列的数组内容
  263. index,
  264. // 微信小程序无法将picker实例传出来,只能通过ref操作
  265. picker = this.$refs.uPicker
  266. } = e
  267. let day = e.value[0];
  268. // 当第一列值发生变化时,变化第二列(后一列)对应的选项
  269. this.picker = picker;
  270. if (columnIndex === 0) {
  271. // picker为选择器this实例,变化第二列对应的选项
  272. if(day == "今日"){
  273. picker.setColumnValues(1, this.columnData[1])
  274. }else{
  275. picker.setColumnValues(1, this.columnData[0])
  276. }
  277. }
  278. },
  279. checkPassword(){
  280. },
  281. recon(){
  282. let self = this;
  283. ecUI.showLoading('设备连接中')
  284. let blueid = uni.getStorageSync('blueid');
  285. ecBLE.onBLEConnectionStateChange(res => {
  286. ecUI.hideLoading()
  287. if (res.ok) {
  288. self.buletooth();
  289. } else {
  290. uni.removeStorageSync('blueid');
  291. ecUI.showModal(
  292. '提示',
  293. '连接失败,errCode=' + res.errCode + ',errMsg=' + res.errMsg
  294. )
  295. }
  296. })
  297. ecBLE.createBLEConnection(blueid);
  298. },
  299. buletooth(){
  300. let self = this;
  301. ctx = this
  302. isCheckScroll = true
  303. isCheckRevHex = false
  304. isCheckSendHex = false
  305. sendData = ''
  306. //on disconnect
  307. ecBLE.onBLEConnectionStateChange(() => {
  308. uni.showModal({
  309. title: '提示',
  310. content: '蓝牙断开连接',
  311. confirmText:"点击重连",
  312. showCancel:false,
  313. success: function (res) {
  314. if (res.confirm) {
  315. self.recon()
  316. } else if (res.cancel) {
  317. console.log('用户点击取消');
  318. }
  319. }
  320. });
  321. })
  322. //receive data
  323. ecBLE.onBLECharacteristicValueChange((str, strHex) => {
  324. isCheckRevHex = true;
  325. let data =
  326. (isCheckRevHex ? strHex.replace(/[0-9a-fA-F]{2}/g, ' $&') : str)
  327. // console.log(data)
  328. self.$modal.closeLoading();
  329. console.log("收到消息:"+data);
  330. //AA 67 0D 05 00 00 00 00 00 00 00 00 00 25 E2 00 80
  331. data = parseDataObj(data);
  332. self.messageCallback(data);
  333. })
  334. self.getInfo();
  335. },
  336. messageCallback(data){
  337. let self = this;
  338. console.log(data);
  339. let type = data.type;
  340. let real_data = data.real_data;
  341. if(type == 103){
  342. self.portDetail = real_data
  343. self.portList = [[]];
  344. self.curPort = [];
  345. let port_first_status = self.portDetail["port_first_status"];
  346. let port_second_status = self.portDetail["port_second_status"]
  347. if(port_first_status){
  348. self.portList[0].push({port:1,text:"端口一"});
  349. self.curPort.push({
  350. text:"端口一",
  351. status:port_first_status,
  352. id:1,
  353. })
  354. }
  355. if(port_second_status){
  356. self.portList[0].push({port:2,text:"端口二"});
  357. self.curPort.push({
  358. text:"端口二",
  359. status:port_second_status,
  360. id:2
  361. })
  362. }
  363. let choosePort = self.choosePort
  364. if(choosePort == 1){
  365. self.portDetail.portStatus = port_first_status;
  366. }else if(choosePort == 2){
  367. self.portDetail.portStatus = port_second_status;
  368. }
  369. self.$modal.closeLoading();
  370. }
  371. if(type == 116){
  372. self.$modal.closeLoading();
  373. self.getInfo();
  374. }
  375. if(type == 113){
  376. self.$modal.closeLoading();
  377. self.getInfo();
  378. }
  379. if(type == 96){
  380. }
  381. self.$forceUpdate();
  382. console.log('收到服务器内容:' + JSON.stringify(data));
  383. if(!this.firstInit){
  384. this.firstInit = true;
  385. if(self.portDetail.portStatus == 5){
  386. self.startCharge();
  387. }
  388. }
  389. },
  390. planCharge(){
  391. if(this.portDetail.portStatus == 6){
  392. this.$modal.confirm("确认取消预约?").then(res=>{
  393. this.cancelPlan();
  394. })
  395. }else{
  396. this.toPlan()
  397. }
  398. },
  399. sendBlueData(){
  400. ecBLE.writeBLECharacteristicValue(tempSendData, false)
  401. },
  402. cancelPlan(){
  403. cancelPlan(this.choosePort).then(res=>{
  404. this.$modal.msg("取消成功");
  405. this.getInfo(true);
  406. })
  407. },
  408. getPlanInfo(){
  409. getPlanInfo(this.deviceInfo.deviceId,this.choosePort).then(res=>{
  410. let data = res.data;
  411. if(data != null){
  412. let planType = data.planType;
  413. if(planType == 1){//单次预约
  414. let planInfo = {};
  415. planInfo.runTime = data.runTime;
  416. this.planInfo = planInfo;
  417. this.planInfo.id = data.id;
  418. }else{
  419. let planInfo = {};
  420. planInfo.runTime = data.runTime;
  421. let repeatDays = data.repeatDays;
  422. let days = repeatDays.split(",")
  423. let strs = "";
  424. for (let i = 0; i < days.length; i++) {
  425. if(strs.length>0){
  426. strs+=",";
  427. }
  428. strs +=this.days[days[i]];
  429. }
  430. this.planInfo = planInfo;
  431. this.planInfo.runTime = strs+" "+data.repeatTime;
  432. this.planInfo.id = data.id;
  433. }
  434. }
  435. })
  436. },
  437. confirmPort(e){
  438. let value = e.value[0]
  439. this.choosePort = value.port;
  440. this.showPort = false;
  441. this.getInfo()
  442. },
  443. initSocket(key){
  444. let self = this;
  445. },
  446. toSet(){
  447. // this.closeSocket();
  448. uni.navigateTo({
  449. url: '/pages/weitiandi/bluetooth/setting'
  450. });
  451. },
  452. toPlan(){
  453. let arr = [];
  454. let date = new Date();
  455. let min = date.getMinutes();
  456. let hour = date.getHours();
  457. let arr1 = ["今日", "明日"];
  458. let arr2 = []
  459. let arr3 = [];
  460. let arr4 = [];
  461. for (let i = 0; i < hour; i++) {
  462. arr2.push(i+"时")
  463. }
  464. this.columnData[0] = arr2;
  465. for (let i = hour+1; i < 24; i++) {
  466. arr3.push(i+"时")
  467. }
  468. this.columnData[1] = arr3;
  469. for (let i = 0; i <= 59; i++) {
  470. arr4.push(i+"分")
  471. }
  472. this.planCols = [arr1, arr3, arr4]
  473. this.showPlan = true;
  474. },
  475. trigger(){
  476. let portStatus = this.portDetail.portStatus;
  477. if(portStatus == 2){//需要停止充电
  478. this.$modal.confirm("需要停止充电么?").then(res=>{
  479. this.stopCharge();
  480. })
  481. }else{
  482. if(portStatus == 1){
  483. this.$modal.msg("请先将充电枪插入后再点击充电");
  484. }
  485. if(portStatus == 5){
  486. this.$modal.confirm("确认开始充电么?").then(res=>{
  487. this.startCharge();
  488. })
  489. }else {
  490. this.$modal.msg("端口无法开始充电");
  491. }
  492. }
  493. },
  494. getInfo(flag) {
  495. // let str = "AA 67 0D 01 00 00 00 00 00 00 00 00 00 25 E2 00 80";
  496. // let data = parseDataObj(str);
  497. // this.messageCallback(data);
  498. //
  499. //
  500. this.$modal.loading("正在获取状态,请稍等...");
  501. if(flag){
  502. setTimeout(function (){
  503. sendPortDetailCmd().then(res => {
  504. })
  505. },500)
  506. }else{
  507. sendPortDetailCmd().then(res => {
  508. })
  509. }
  510. },
  511. stopCharge(){
  512. let self = this;
  513. this.deviceInfo.port = this.choosePort;
  514. stopCharge(this.deviceInfo).then(()=>{
  515. self.$modal.loading("停止成功");
  516. setTimeout((()=>{
  517. self.getInfo();
  518. }),1000);
  519. })
  520. },
  521. startCharge(){
  522. let self = this;
  523. this.deviceInfo.port = this.choosePort;
  524. startCharge(this.deviceInfo).then(res=>{
  525. self.$modal.loading("启动成功");
  526. setTimeout((()=>{
  527. self.getInfo();
  528. }),1000);
  529. })
  530. },
  531. getPortInfo(){
  532. this.startPortDetailTimer();
  533. },
  534. startPortDetailTimer(){
  535. let self = this;
  536. this.timer = setTimeout(function (){
  537. getPortDetail(self.deviceInfo,self.visitTime).then(res=>{
  538. let data = res.data;
  539. if(data != null){
  540. self.portDetail = data;
  541. self.checkStatusCheck();
  542. self.$modal.closeLoading();
  543. }else{
  544. self.startPortDetailTimer();
  545. }
  546. });
  547. },1000);
  548. },
  549. checkStatusCheck(){
  550. this.statusChangeTimer();
  551. },
  552. checkOnPage(){
  553. var pages = getCurrentPages() // 获取栈实例
  554. let currentRoute = pages[pages.length - 1].route; // 获取当前页面路由
  555. if("pages/weitiandi/device/index" != currentRoute){
  556. return false;
  557. }
  558. return true;
  559. },
  560. goBack(){
  561. this.closeSocket();
  562. uni.navigateBack({
  563. });
  564. },
  565. closeSocket(){
  566. ecBLE.onBLEConnectionStateChange(() => {})
  567. ecBLE.onBLECharacteristicValueChange(() => {})
  568. },
  569. statusChangeTimer(){
  570. let self = this;
  571. this.statusTimer = setTimeout(function(){
  572. if(!this.checkOnPage()){
  573. return;
  574. }
  575. checkStatusChange(self.deviceInfo,self.visitTime).then(res=>{
  576. let data = res.data;
  577. if(data != null){
  578. self.getInfo();
  579. }else{
  580. self.statusChangeTimer();
  581. }
  582. });
  583. },3000);
  584. }
  585. }
  586. }
  587. </script>
  588. <style>
  589. .container {
  590. background: rgb(249, 252, 255);
  591. inset: 0;
  592. position: absolute;
  593. }
  594. .header {
  595. position: relative;
  596. margin-top:4vw;
  597. }
  598. .header-status-desc {
  599. position: absolute;
  600. text-align: center;
  601. width: 100%;
  602. bottom:1vh;
  603. font-size: 5vw;
  604. font-weight: bold;
  605. color: #0E9F9B;
  606. margin-bottom: 5vw;
  607. }
  608. .header-status {
  609. font-weight: bold;
  610. text-align: center;
  611. }
  612. .chong-active {
  613. color: #0E9F9B
  614. }
  615. .header-img {
  616. width: 100%;
  617. padding: 5% 10%;
  618. text-align: center;
  619. }
  620. .header-img image {
  621. width: 100%;
  622. height: 23vh;
  623. }
  624. .info-body{
  625. background: #0E9F9B;
  626. height: 20vh;
  627. margin: 0 2%;
  628. border-radius: 1vw;
  629. margin-top:2vh;
  630. color: #F8FCFF;
  631. line-height: 3vh;
  632. }
  633. .info-content{
  634. display: inline-block;
  635. width: 23%;
  636. text-align: center;
  637. margin: 1%;
  638. margin-top:2.5vh;
  639. }
  640. .info-content-value{
  641. font-weight: bold;
  642. }
  643. .info-content-text{
  644. }
  645. .info-summary{
  646. display: flex;
  647. flex-direction: row;
  648. text-align: center;
  649. margin:3vh 0;
  650. }
  651. .summary{
  652. width: 33%;
  653. line-height: 2.5vh;
  654. }
  655. .charge-num{
  656. color: #0E9F9B;
  657. font-weight: bold;
  658. font-size: 4.5vw;
  659. }
  660. .charge-title{
  661. color: #B2B2B2;
  662. font-weight: 400;
  663. }
  664. .btn-image{
  665. width: 90%;
  666. height: 100%;
  667. }
  668. .info-bottom-btn{
  669. display: flex;
  670. flex-direction: row;
  671. text-align: center;
  672. position: relative;
  673. margin-top: 10vh
  674. ;
  675. }
  676. .btn-area{
  677. width: 50%;
  678. height: 50px;
  679. }
  680. .left{
  681. position: relative;
  682. left: 10px;
  683. text-align: right;
  684. }
  685. .right{
  686. text-align: left;
  687. position: relative;
  688. right: 10px;
  689. }
  690. .info-plan{
  691. text-align: center;
  692. color: #0E9F9B;
  693. margin-top:1vh;
  694. font-weight: 400;
  695. }
  696. .setting{
  697. position: fixed;
  698. right: -1px;
  699. top: 10vh;
  700. z-index: 999;
  701. background: rgb(227,243,245);
  702. color: #0E9F9B;
  703. font-size: 10px;
  704. border-radius: 5px;
  705. padding: 3px;
  706. }
  707. .port{
  708. height: 70px;
  709. background: #F8FCFF;
  710. border: 0px solid #F8FCFF;
  711. box-shadow: 0px 0px 6px 1px rgba(101,101,101,0.29);
  712. border-radius: 4px;
  713. margin:0 10px;
  714. position: relative;
  715. margin-top:10px;
  716. }
  717. .plan{
  718. height: 70px;
  719. background: #F8FCFF;
  720. border: 0px solid #F8FCFF;
  721. box-shadow: 0px 0px 6px 1px rgba(101,101,101,0.29);
  722. border-radius: 4px;
  723. margin:0 10px;
  724. position: relative;
  725. margin-top:15px;
  726. }
  727. .port-image{
  728. height: 40px;
  729. width: 40px;
  730. position: absolute;
  731. top:15px;
  732. left:20px;
  733. }
  734. .port-text{
  735. position: absolute;
  736. top:13px;
  737. left:75px;
  738. font-weight: bold;
  739. }
  740. .port-num{
  741. position: absolute;
  742. top:38px;
  743. left:75px;
  744. color: #B2B2B2;
  745. }
  746. .port-icon{
  747. position: absolute;
  748. top:30px;
  749. right:5px;
  750. width: 10px;
  751. height: 16px;
  752. }
  753. .port-icon image{
  754. width: 90%;
  755. }
  756. .body-bottom{
  757. padding:0 22px;
  758. }
  759. .body-bottom .info-content{
  760. width: 30%;
  761. }
  762. .bottom-control{
  763. height: 22vh;
  764. margin: 0 2%;
  765. margin-top:2vh;
  766. line-height: 3vh;
  767. background: #F8FCFF;
  768. border: 0px solid #F8FCFF;
  769. box-shadow: 0px 0px 6px 1px rgba(101,101,101,0.29);
  770. border-radius: 4px;
  771. padding:3%;
  772. }
  773. .control-btn{
  774. display: inline-block;;
  775. height: 60px;
  776. width: 25%;
  777. padding:10px 20px;
  778. text-align: center;
  779. font-size: 12px;
  780. color: black;
  781. }
  782. .control-btn .btn-image{
  783. }
  784. .dportitem{
  785. color: #60af7b
  786. }
  787. .dboxs{
  788. background: #F8FCFF;
  789. border: 0px solid #F8FCFF;
  790. box-shadow: 0px 0px 6px 1px rgba(101,101,101,0.29);
  791. border-radius: 4px;
  792. padding: 20px;
  793. font-size: 0.24rem;
  794. color: #1A87FF;
  795. margin:20px;
  796. position: relative;
  797. }
  798. .portimg{
  799. width: 20px;
  800. height: 20px;
  801. }
  802. .dportitem-img{
  803. width: 30px;
  804. height: 30px;
  805. }
  806. .dpropitem-block{
  807. padding: 0.12rem 0.37rem;
  808. background: #e6f6f1;
  809. display: flex;
  810. width: 70px;
  811. height: 70px;
  812. flex-direction: column;
  813. justify-content: center;
  814. align-items: center;
  815. position: relative;
  816. }
  817. .dportitem{
  818. margin:10px;
  819. width: 70px;
  820. position: relative;
  821. display: inline-block;
  822. }
  823. .dportitem-block-2{
  824. background: #f9f4e5;
  825. color: #FFAA00;
  826. }
  827. .dpropitem-title{
  828. text-align: center;
  829. margin-bottom: 5px;
  830. font-size: 16px;
  831. }
  832. .dpropitem-status{
  833. font-size: 14px;
  834. }
  835. .dboxtitle{
  836. font-size: 18px;
  837. position: relative;
  838. }
  839. .dboxtitle-text{
  840. display: inline-block;
  841. position: absolute;
  842. top: -2px;
  843. left: 25px;
  844. }
  845. .btn-image{
  846. width: 30px;
  847. height: 30px;
  848. }
  849. .control-btn{
  850. font-size: 14px;
  851. }
  852. </style>