equipmentStatusList.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745
  1. <!-- 机器状态页面 -->
  2. <template>
  3. <view v-if="merchantList.length>1">
  4. <uni-collapse :accordion="true">
  5. <view class="titleFlag">
  6. <image class="img" src="../../static/img/red.png"></image>
  7. <font class="wenziT">红色代表机器报警</font>
  8. <image class="img" src="../../static/img/green.png"></image>
  9. <font class="wenziT">绿色代表机器正常</font>
  10. </view>
  11. <view class="titlelist" v-for="(merchant,index) in merchantList" :key="merchant.id">
  12. <uni-collapse-item :title="getMerchantTitle(merchant)" :open="index===0">
  13. <view style="padding: 20upx;background-color: aliceblue;">
  14. <view v-if="merchant.equipmentList.length==0" style="text-align: center;">暂无数据</view>
  15. <view v-if="merchant.equipmentList.length>0">
  16. <uni-collapse :show-animation="true">
  17. <view style="position: relative;" v-for="equipment in merchant.equipmentList" :key="equipment.id">
  18. <span class="status-css" :class="equipment.hasTodayAlarm===true?statusError : statusNormal"></span>
  19. <uni-collapse-item :title="getEquipmentTitle(equipment)">
  20. <view style="padding: 20upx;background-color: antiquewhite;">
  21. <view class="swithBox" v-if="equipment.isSleep">
  22. <view class="swichFont">睡眠状态:机器已睡眠</view>
  23. <view class="switch">
  24. <switch style="transform:scale(0.65)" checked @change="change(equipment.id,0)" />
  25. </view>
  26. </view>
  27. <view class="swithBox" v-else>
  28. <view class="swichFont">睡眠状态:未睡眠</view>
  29. <view class="switch">
  30. <switch style="transform:scale(0.65)" :checked="sleepChecked" @change="change(equipment.id,1)" />
  31. </view>
  32. </view>
  33. <view class="line1"></view>
  34. <view class="swithBox" v-if="equipment.eqeStatus==0">
  35. <view class="swichFont">关机:已关机</view>
  36. <view class="switch">
  37. <switch style="transform:scale(0.65)" checked @change="OnOff(equipment.id,1)" />
  38. </view>
  39. </view>
  40. <view class="swithBox" v-else>
  41. <view class="swichFont">关机:未关机</view>
  42. <view class="switch">
  43. <switch style="transform:scale(0.65)" :checked="onffChecked" @change="OnOff(equipment.id,0)" />
  44. </view>
  45. </view>
  46. <view class="line1"></view>
  47. <view><span>机器唯一码:</span><span>{{equipment.clientId}}</span></view>
  48. <view><span>所在地:</span><span>{{equipment.fullName?equipment.fullName:''}}</span></view>
  49. <view><span>炉头温度:</span><span>{{equipment.furnaceTm?equipment.furnaceTm:''}}</span></view>
  50. <view><span>柜内湿度:</span><span>{{equipment.cabinetHd?equipment.cabinetHd:''}}</span></view>
  51. <view><span>柜内温度:</span><span>{{equipment.cabinetTm?equipment.cabinetTm:''}}</span></view>
  52. <view v-if="equipment.hasTodayAlarm">
  53. <view><span>报警内容:</span></view>
  54. <view v-for="(alarm,index) in equipment.alarmList" :key="index">
  55. <view><span class="baojing">{{alarm.occurrenceTime?alarm.occurrenceTime:''}} {{alarm.alarmContent}}
  56. <button v-if="alarm.isEliminate==1" style="color:#BEBEBE;" @click="eliminate(alarm.id)" class="eliminateButton">
  57. <p class="p">已消除</p>
  58. </button>
  59. <button v-if="alarm.isEliminate!=1" type="primary" @click="eliminate(alarm.id)" class="eliminateButton">
  60. <p class="p">消除</p>
  61. </button>
  62. </span></view>
  63. </view>
  64. </view>
  65. <view v-else>
  66. <view><span>报警内容:</span><span>{{equipment.occurrenceTime?equipment.occurrenceTime:''}}
  67. {{equipment.alarmContent}}</span></view>
  68. </view>
  69. </view>
  70. </uni-collapse-item>
  71. </view>
  72. </uni-collapse>
  73. </view>
  74. </view>
  75. </uni-collapse-item>
  76. </view>
  77. </uni-collapse>
  78. </view>
  79. <view v-else>
  80. <uni-collapse :show-animation="true">
  81. <view class="titleFlag">
  82. <image class="img" src="../../static/img/red.png"></image>
  83. <font class="wenziT">{{$t('equipmentStatusList.red')}}</font>
  84. <image class="img" src="../../static/img/green.png"></image>
  85. <font class="wenziT">{{$t('equipmentStatusList.green')}}</font>
  86. </view>
  87. <view class="titlelist" style="position: relative;" v-for="equipment in merchantList[0].equipmentList" :key="equipment.id">
  88. <span class="status-css" :class="equipment.hasTodayAlarm===true?statusError : statusNormal"></span>
  89. <uni-collapse-item :title="getEquipmentTitle(equipment)">
  90. <!-- 睡眠 -->
  91. <view style="padding: 20upx;background-color: antiquewhite;">
  92. <view class="swithBox" v-if="equipment.isSleep">
  93. <view class="swichFont">{{$t('equipmentStatusList.sleep')}}</view>
  94. <view class="switch">
  95. <switch style="transform:scale(0.65)" checked @change="change(equipment.id,0)" />
  96. </view>
  97. </view>
  98. <view class="swithBox" v-else>
  99. <view class="swichFont">{{$t('equipmentStatusList.unsleep')}}</view>
  100. <view class="switch">
  101. <switch style="transform:scale(0.65)" :checked="sleepChecked" @change="change(equipment.id,1)" />
  102. </view>
  103. </view>
  104. <view class="line1"></view>
  105. <!-- 一键重启 -->
  106. <view class="opendoor"><span>{{$t('equipmentStatusList.reboot')}}:</span>
  107. <view class="">
  108. <button type="primary" @click="reboot(equipment.id)" class="button">
  109. <p class="p">{{$t('equipmentStatusList.reset')}}</p>
  110. </button>
  111. </view>
  112. </view>
  113. <view class="line1"></view>
  114. <!-- 关机 -->
  115. <view class="" v-if="globalUser.open==0">
  116. <!-- 已关机 -->
  117. <view class="swithBox" v-if="equipment.eqeStatus==0">
  118. <view class="swichFont1">{{$t('equipmentStatusList.off')}}</view>
  119. <view class="switch1">
  120. <!-- <switch style="transform:scale(0.65)" checked @change="OnOff(equipment.id,1)" /> -->
  121. <button style="color:#BEBEBE;" @click="OnOff(equipment.id,1)" class="button">
  122. <p class="p">{{$t('equipmentStatusList.kaiqi')}}</p>
  123. </button>
  124. <button type="primary" @click="OnOff(equipment.id,0)" class="button">
  125. <p class="p">{{$t('equipmentStatusList.guanbi')}}</p>
  126. </button>
  127. </view>
  128. </view>
  129. <!-- 已开机 -->
  130. <view class="swithBox" v-else>
  131. <view class="swichFont1">{{$t('equipmentStatusList.on')}}</view>
  132. <view class="switch1">
  133. <!-- <switch style="transform:scale(0.65)" :checked="onffChecked" @change="OnOff(equipment.id,0)" /> -->
  134. <button type="primary" @click="OnOff(equipment.id,1)" class="button">
  135. <p class="p">{{$t('equipmentStatusList.kaiqi')}}</p>
  136. </button>
  137. <button style="color:#BEBEBE;" @click="OnOff(equipment.id,0)" class="button">
  138. <p class="p">{{$t('equipmentStatusList.guanbi')}}</p>
  139. </button>
  140. </view>
  141. </view>
  142. </view>
  143. <view class="line1"></view>
  144. <!-- 一键重启 -->
  145. <!-- <view class="opendoor"><span>{{$t('equipmentStatusList.reboot')}}:</span>
  146. <view class="">
  147. <button type="primary" @click="reboot(equipment.id)" class="button">
  148. <p class="p">{{$t('equipmentStatusList.reset')}}</p>
  149. </button>
  150. </view>
  151. </view>
  152. <view class="line1"></view> -->
  153. <!-- 远程开门 -->
  154. <view class="opendoor"><span>{{$t('equipmentStatusList.door')}}:</span>
  155. <view class="">
  156. <button type="primary" @click="openDoor(equipment.id)" class="button">
  157. <p class="p">{{$t('equipmentStatusList.open')}}</p>
  158. </button>
  159. </view>
  160. </view>
  161. <!-- 查看定位 -->
  162. <view class="opendoor"><span>{{$t('equipmentStatusList.gps')}}:</span>
  163. <view class="">
  164. <button type="primary" @click="lookMap(equipment.id,equipment.longitude,equipment.latitude)" class="button">
  165. <p class="p">{{$t('equipmentStatusList.look')}}</p>
  166. </button>
  167. </view>
  168. </view>
  169. <view><span>{{$t('equipmentStatusList.equipmentNo')}}:</span><span>{{equipment.clientId}}</span></view>
  170. <view><span>{{$t('equipmentStatusList.area')}}:</span><span>{{equipment.fullName?equipment.fullName:''}}</span></view>
  171. <view><span>{{$t('equipmentStatusList.temperature')}}:</span><span>{{equipment.furnaceTm?equipment.furnaceTm:''}}</span></view>
  172. <view><span>{{$t('equipmentStatusList.humidity')}}:</span><span>{{equipment.cabinetHd?equipment.cabinetHd:''}}</span></view>
  173. <view><span>{{$t('equipmentStatusList.equipmentTemperature')}}:</span><span>{{equipment.cabinetTm?equipment.cabinetTm:''}}</span></view>
  174. <view><span>{{$t('equipmentStatusList.refreshTime')}}:</span><span>{{equipment.lastUpdateTime}}</span></view>
  175. <view><span>{{$t('equipmentStatusList.volume')}}:</span><span>{{equipment.volume?equipment.volume:''}}</span></view>
  176. <view class="" v-if="equipment.hasTodayAlarm">
  177. <view><span>{{$t('equipmentStatusList.alarm')}}:</span></view>
  178. <view v-for="(alarm,index) in equipment.alarmList" :key="index">
  179. <view>
  180. <span class="baojing">{{alarm.occurrenceTime?alarm.occurrenceTime:''}} {{alarm.alarmContent}}
  181. <button v-if="alarm.isEliminate==1" style="color:#BEBEBE;" @click="eliminate(alarm.id)" class="eliminateButton">
  182. <p class="p">{{$t('equipmentStatusList.yixiaochu')}}</p>
  183. </button>
  184. <button v-if="alarm.isEliminate!=1" type="primary" @click="eliminate(alarm.id)" class="eliminateButton">
  185. <p class="p">{{$t('equipmentStatusList.xiaochu')}}</p>
  186. </button>
  187. </span>
  188. </view>
  189. </view>
  190. </view>
  191. <view class="" v-else>
  192. <view><span>{{$t('equipmentStatusList.alarm')}}:</span><span>{{equipment.occurrenceTime?equipment.occurrenceTime:''}}
  193. {{equipment.alarmContent}}</span></view>
  194. </view>
  195. </view>
  196. </uni-collapse-item>
  197. </view>
  198. </uni-collapse>
  199. </view>
  200. </template>
  201. <script>
  202. import {
  203. mapState,
  204. mapActions,
  205. mapMutations
  206. } from 'vuex'
  207. import uniCollapse from '@/components/uni-collapse/uni-collapse.vue'
  208. import uniCollapseItem from '@/components/uni-collapse-item/uni-collapse-item.vue'
  209. import uniList from '@/components/uni-list/uni-list.vue'
  210. import uniListItem from '@/components/uni-list-item/uni-list-item.vue'
  211. import {
  212. dateUtils
  213. } from '@/common/util.js';
  214. export default {
  215. components: {
  216. uniCollapse,
  217. uniCollapseItem,
  218. uniList,
  219. uniListItem,
  220. },
  221. data() {
  222. return {
  223. globalUser: {},
  224. merchantList: [{
  225. equipmentList: []
  226. }],
  227. extraIcon: {
  228. color: '#4cd964',
  229. size: '22',
  230. type: 'spinner'
  231. },
  232. statusNormal: 'status-normal',
  233. statusError: 'status-error',
  234. sleepChecked: null,
  235. onffChecked: null,
  236. time: null,
  237. timeAll: {
  238. },
  239. input: 0,
  240. }
  241. },
  242. computed: {
  243. ...mapState(['loginUser']),
  244. },
  245. onPullDownRefresh() {
  246. this.getEquipmentListData();
  247. },
  248. onShow() {
  249. this.input = this.input + 1;
  250. this.globalUser = uni.getStorageSync("globalUser");
  251. uni.setNavigationBarTitle({
  252. title: this.$t('equipmentStatusList.title')
  253. });
  254. uni.setTabBarItem({
  255. index: 3,
  256. text: this.$t('tabs.tab4')
  257. });
  258. var token = uni.getStorageSync("token");
  259. if (token.length > 1) {
  260. this.getEquipmentListData();
  261. } else {
  262. uni.reLaunch({
  263. url: '../Login/Login',
  264. });
  265. }
  266. },
  267. methods: {
  268. ...mapActions('chart', ['getEquipmentListByUser']),
  269. getMerchantTitle(merchant) {
  270. return merchant.name ? merchant.name : merchant.username;
  271. },
  272. getEquipmentTitle(equipment) {
  273. return equipment.name ? equipment.name : '暂无名称';
  274. },
  275. getEquipmentListData() {
  276. this.getEquipmentListByUser(this.globalUser)
  277. .then(data => {
  278. this.merchantList = data;
  279. var listName = data[0].equipmentList;
  280. var times = new Map;
  281. if (this.input == 1) {
  282. for (var i = 0; i < listName.length; i++) {
  283. var k = listName[i].id;
  284. times.set(k, null);
  285. }
  286. this.timeAll = times;
  287. }
  288. var listId = data[0].id;
  289. if (listId != null && listId != '1') {
  290. uni.setStorageSync("listName", listName);
  291. }
  292. uni.stopPullDownRefresh();
  293. }, _ => void uni.stopPullDownRefresh());
  294. },
  295. //查看经纬度
  296. lookMap(id,longitude,latitude){
  297. var item={};
  298. item["id"] = id;
  299. item["longitude"] = longitude;
  300. item["latitude"] = latitude;
  301. uni.navigateTo({
  302. // url:'map?item='+ encodeURIComponent(JSON.stringify(item))
  303. url:'../../packageA/pages/equipmentStatus/map?item='+ encodeURIComponent(JSON.stringify(item))
  304. // url:'GoogleMap?item='+ encodeURIComponent(JSON.stringify(item))
  305. // url: '/pages/user/map?item='+ encodeURIComponent(JSON.stringify(item))
  306. });
  307. },
  308. //一键重启
  309. reboot(id){
  310. var that = this;
  311. uni.showModal({
  312. title: that.$t('equipmentStatusList.tip'),
  313. content: that.$t('equipmentStatusList.rebootTip'),
  314. success: function(res) {
  315. if (res.confirm) {
  316. var serverurl = that.serverurl;
  317. var code = "1";
  318. var equipmentId = id;
  319. var token = uni.getStorageSync("token");
  320. uni.request({
  321. url: serverurl + '/TEquipment/onOff',
  322. data: {
  323. "adminId": code,
  324. "equipmentId": equipmentId
  325. },
  326. method: "POST",
  327. header: {
  328. 'token': token
  329. },
  330. success: (res) => {
  331. var list = res.data.data;
  332. if (list == "SUCCESS") {
  333. uni.showModal({
  334. title: that.$t('equipmentStatusList.kaiji'),
  335. content: '发送成功',
  336. success: function(res) {
  337. }
  338. })
  339. } else {
  340. uni.showModal({
  341. title: that.$t('equipmentStatusList.error'),
  342. content: that.$t('equipmentStatusList.kaijierror'),
  343. success: function(res) {
  344. }
  345. })
  346. }
  347. }
  348. });
  349. }
  350. }
  351. })
  352. },
  353. OnOff(id, code) {
  354. var that = this;
  355. var ddd = this.timeAll.get(id);
  356. if (that.timeAll.get(id) != null) {
  357. var stamp = Date.parse(new Date());
  358. var t = (stamp - that.timeAll.get(id)) / 1000;
  359. if (t < 30) {
  360. var s = 30 - t;
  361. uni.showModal({
  362. title: that.$t('equipmentStatusList.onoff'),
  363. content: that.$t('equipmentStatusList.remainingtime') + s + "s",
  364. success: function(res) {
  365. that.getEquipmentListData();
  366. }
  367. });
  368. return;
  369. }
  370. }
  371. var code1 = code;
  372. if (code1 == 0) {
  373. uni.showModal({
  374. title: that.$t('equipmentStatusList.tip'),
  375. content: that.$t('equipmentStatusList.onoffTip'),
  376. success: function(res) {
  377. if (res.confirm) {
  378. var serverurl = that.serverurl;
  379. var code2 = code1;
  380. var equipmentId = id;
  381. var token = uni.getStorageSync("token");
  382. uni.request({
  383. url: serverurl + '/TEquipment/onOff',
  384. data: {
  385. "adminId": code2,
  386. "equipmentId": equipmentId
  387. },
  388. method: "POST",
  389. header: {
  390. 'token': token
  391. },
  392. success: (res) => {
  393. var list = res.data.data;
  394. that.input = 2;
  395. var timestamp = Date.parse(new Date());
  396. that.timeAll.set(id, timestamp);
  397. var oo = that.timeAll;
  398. that.getEquipmentListData();
  399. if (list == 'SUCCESS') {
  400. uni.showModal({
  401. title: that.$t('equipmentStatusList.guanji'),
  402. content: that.$t('equipmentStatusList.tishi'),
  403. success: function(res) {
  404. that.getEquipmentListData();
  405. setTimeout(function() {
  406. that.network(id);
  407. }, 7000);
  408. }
  409. })
  410. } else {
  411. uni.showModal({
  412. title: that.$t('equipmentStatusList.error'),
  413. content: that.$t('equipmentStatusList.guanjierror'),
  414. success: function(res) {
  415. that.onffChecked = true;
  416. that.getEquipmentListData();
  417. }
  418. })
  419. }
  420. }
  421. });
  422. } else if (res.cancel) {
  423. that.onffChecked = false;
  424. that.getEquipmentListData();
  425. }
  426. }
  427. });
  428. } else {
  429. var serverurl = that.serverurl;
  430. var code = code;
  431. var equipmentId = id;
  432. var token = uni.getStorageSync("token");
  433. uni.request({
  434. url: serverurl + '/TEquipment/onOff',
  435. data: {
  436. "adminId": code,
  437. "equipmentId": equipmentId
  438. },
  439. method: "POST",
  440. header: {
  441. 'token': token
  442. },
  443. success: (res) => {
  444. that.input = 2;
  445. var list = res.data.data;
  446. that.getEquipmentListData();
  447. var timestamp = Date.parse(new Date());
  448. that.timeAll.set(id, timestamp);
  449. var oo = that.timeAll;
  450. if (list == "SUCCESS") {
  451. uni.showModal({
  452. title: that.$t('equipmentStatusList.kaiji'),
  453. content: that.$t('equipmentStatusList.tishi'),
  454. success: function(res) {
  455. that.getEquipmentListData();
  456. setTimeout(function() {
  457. that.network(id);
  458. }, 7000);
  459. }
  460. })
  461. } else {
  462. uni.showModal({
  463. title: that.$t('equipmentStatusList.error'),
  464. content: that.$t('equipmentStatusList.kaijierror'),
  465. success: function(res) {
  466. that.onffChecked = false;
  467. that.getEquipmentListData();
  468. }
  469. })
  470. }
  471. }
  472. });
  473. }
  474. },
  475. eliminate(id) {
  476. var token = uni.getStorageSync("token");
  477. uni.request({
  478. url: this.serverurl + '/TEquipment/eliminate',
  479. data: {
  480. "id": id
  481. },
  482. method: "POST",
  483. header: {
  484. 'token': token
  485. },
  486. success: (res) => {
  487. uni.showToast({
  488. title: "发送成功",
  489. icon: 'none',
  490. duration: 1000
  491. });
  492. this.getEquipmentListData();
  493. }
  494. });
  495. },
  496. network(id) {
  497. console.log("network");
  498. var token = uni.getStorageSync("token");
  499. var equipmentId = id;
  500. uni.request({
  501. url: this.serverurl + '/TEquipment/checkStatus',
  502. data: {
  503. "equipmentId": id
  504. },
  505. method: "POST",
  506. header: {
  507. 'token': token
  508. },
  509. success: (res) => {
  510. var data = res.data.data;
  511. if (data == 'fail') {
  512. uni.showToast({
  513. title: this.$t('equipmentStatusList.network'),
  514. icon: 'none',
  515. duration: 3000
  516. });
  517. this.getEquipmentListData();
  518. }
  519. }
  520. });
  521. },
  522. openDoor(id) {
  523. var token = uni.getStorageSync("token");
  524. uni.request({
  525. url: this.serverurl + '/TEquipment/openDoor',
  526. data: {
  527. "equipmentId": id
  528. },
  529. method: "POST",
  530. header: {
  531. 'token': token
  532. },
  533. success: (res) => {
  534. uni.showModal({
  535. title: this.$t('equipmentStatusList.open'),
  536. content: this.$t('equipmentStatusList.opensuccess'),
  537. success: function(res) {
  538. }
  539. })
  540. }
  541. });
  542. },
  543. change(id, code) {
  544. var that = this;
  545. var code1 = code;
  546. if (code1 == 1) {
  547. uni.showModal({
  548. title: that.$t('equipmentStatusList.tip'),
  549. content: that.$t('equipmentStatusList.sleepTip'),
  550. success: function(res) {
  551. if (res.confirm) {
  552. var serverurl = that.serverurl;
  553. var code2 = code1;
  554. var equipmentId = id;
  555. var token = uni.getStorageSync("token");
  556. uni.request({
  557. url: serverurl + '/TEquipment/sleep',
  558. data: {
  559. "adminId": code2,
  560. "equipmentId": equipmentId
  561. },
  562. method: "POST",
  563. header: {
  564. 'token': token
  565. },
  566. success: (res) => {
  567. var list = res.data.data;
  568. that.getEquipmentListData();
  569. }
  570. });
  571. } else if (res.cancel) {
  572. that.sleepChecked = false;
  573. that.getEquipmentListData();
  574. }
  575. }
  576. });
  577. } else {
  578. var serverurl = that.serverurl;
  579. var code = code;
  580. var equipmentId = id;
  581. var token = uni.getStorageSync("token");
  582. uni.request({
  583. url: serverurl + '/TEquipment/sleep',
  584. data: {
  585. "adminId": code,
  586. "equipmentId": equipmentId
  587. },
  588. method: "POST",
  589. header: {
  590. 'token': token
  591. },
  592. success: (res) => {
  593. var list = res.data.data;
  594. that.getEquipmentListData();
  595. }
  596. });
  597. }
  598. },
  599. }
  600. }
  601. </script>
  602. <style>
  603. .status-css {
  604. position: absolute;
  605. width: 30upx;
  606. height: 30upx;
  607. right: 86upx;
  608. top: 30upx;
  609. border-radius: 30upx;
  610. color: "#596D83";
  611. font-size: 12upx;
  612. }
  613. .status-error {
  614. background-color: #dd524d
  615. }
  616. .status-normal {
  617. background-color: #4cd964
  618. }
  619. .baojing {
  620. display: flex;
  621. flex-direction: row;
  622. padding-left: 20upx;
  623. }
  624. .titleFlag {
  625. height: 56upx;
  626. background-color: #F8F8F8;
  627. color: #8C959F;
  628. font-size: 22upx;
  629. display: flex;
  630. flex-direction: row;
  631. }
  632. .opendoor {
  633. /* #ifdef H5 */
  634. /* #endif */
  635. padding-top: 10upx;
  636. padding-bottom: 10upx;
  637. /* text-align: center; */
  638. display: flex;
  639. flex-direction: row;
  640. }
  641. .button {
  642. /* #ifdef H5 */
  643. text-align: center;
  644. height: 50upx;
  645. weight: 20upx;
  646. /* #endif */
  647. padding-left: 15upx;
  648. /* padding-top: 2upx; */
  649. }
  650. .eliminateButton {
  651. /* #ifdef H5 */
  652. text-align: center;
  653. height: 50upx;
  654. weight: 20upx;
  655. /* #endif */
  656. padding-left: 15upx;
  657. /* padding-top: 2upx; */
  658. }
  659. .p {
  660. /* #ifdef H5 */
  661. font-size: 28upx;
  662. height: 50upx;
  663. weight: 20upx;
  664. transform: translateY(-14upx);
  665. /* text-align: center; */
  666. /* #endif */
  667. /* padding-bottom: 50upx; */
  668. text-align: center;
  669. padding-left: 13upx;
  670. }
  671. .img {
  672. padding-top: 20upx;
  673. padding-left: 30upx;
  674. width: 15upx;
  675. height: 15upx;
  676. }
  677. .wenziT {
  678. padding-top: 10upx;
  679. padding-left: 10upx;
  680. }
  681. .titlelist {
  682. color: #363D44;
  683. font-size: 16upx;
  684. font-family: "PingFang-SC-Medium";
  685. }
  686. .swithBox {
  687. display: flex;
  688. flex-direction: row;
  689. padding-bottom: 15upx;
  690. padding-top: 5upx;
  691. }
  692. .switch {
  693. width: 100upx;
  694. height: 22upx;
  695. }
  696. .switch1 {
  697. display: flex;
  698. flex-direction: row;
  699. width: 35%;
  700. height: 42upx;
  701. padding-top: 13upx;
  702. padding-left: 72upx;
  703. }
  704. .swichFont {
  705. width: 85%;
  706. padding-top: 12upx;
  707. }
  708. .swichFont1 {
  709. width: 55%;
  710. padding-top: 12upx;
  711. }
  712. .line1 {
  713. width: 100%;
  714. height: 3upx;
  715. background: #000000;
  716. }
  717. </style>