manageWorkbench.vue 28 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024
  1. <!-- 管理端工作台 -->
  2. <template>
  3. <view class="manage-workbench" :style="{paddingTop:navHeight+'rpx'}">
  4. <nav-bar :title="title"></nav-bar>
  5. <img class="top-big-img" :src="homepageBanner">
  6. <top-warn></top-warn>
  7. <view class="min-icon-button-box" style="margin-bottom: 0;">
  8. <view @click="goPage('casuallyPat')">
  9. <img src="@/images/Version2.2/icon_sy_ssp.png">
  10. <view>随手拍</view>
  11. </view>
  12. <view @click="goPage('safetyInspect')">
  13. <img src="@/images/Version2.2/icon_sy_aqjc.png">
  14. <view>安全检查</view>
  15. </view>
  16. <view @click="goPage('photoInspection')">
  17. <img src="@/images/icon_dzt_pzjc.png">
  18. <view>离开检查</view>
  19. </view>
  20. <view @click="goPage('accessQualification')">
  21. <img src="@/images/Version2.2/icon_sy_zrsq.png">
  22. <view>准入审核</view>
  23. </view>
  24. <view @click="goPage('gas')">
  25. <img src="@/images/Version3.0/icon_sy_qpgl.png">
  26. <view>气瓶管理</view>
  27. </view>
  28. <view @click="goPage('none')">
  29. <img src="@/images/Version3.0/icon_sy_hxp.png">
  30. <view>化学品管理</view>
  31. </view>
  32. <view @click="goPage('none')">
  33. <img src="@/images/Version3.0/icon_sy_tzsb.png">
  34. <view>特种设备</view>
  35. </view>
  36. <view @click="goPage('none')">
  37. <img src="@/images/Version3.0/icon_sy_aqxx.png">
  38. <view>安全档案</view>
  39. </view>
  40. </view>
  41. <view class=big-icon-button-box>
  42. <!-- 安全报警 -->
  43. <img src="@/images/Version2.3/button_1.png" @click="goPage('alarm')">
  44. <!-- 应急疏散 -->
  45. <img src="@/images/Version2.3/button_2.png" @click="goPage('emergencyEvacuation')">
  46. </view>
  47. <!-- 分级管控 -->
  48. <view class="grading">
  49. <img class="grading_l" src="@/images/icon_sy_fjgk.png"/>
  50. <view class="grading_c">分级管控</view>
  51. <view class="grading_r" @click="goPage('grading')">{{gradingCount>0?gradingCount+'项工作待完成':''}}<img src="@/images/icon_wdwg_gd.png"/></view>
  52. </view>
  53. <view class="for-title-p" @click="goSecurityAlertList" v-if="alarmList[0]">
  54. <img class="left-img" src="@/images/Version2.2/icon_aqbj.png">
  55. <view class="name-view">安全报警</view>
  56. <view class="num-view">{{securityAlertNum}}</view>
  57. <view class="null-view"></view>
  58. <img class="right-img" src="@/images/icon_04.png">
  59. </view>
  60. <view class="for-max-box-one" v-if="alarmList[0]">
  61. <view class="for-box" v-for="(item,index) in alarmList" :key="index">
  62. <view class="title-box">
  63. <view :style="'border:1rpx solid '+item.subDiyVo.fiedColor+';background:#fff;color:'+item.subDiyVo.fiedColor+';'">{{item.subDiyVo.levelName}}</view>
  64. <view>{{item.subDiyVo.name}}</view>
  65. </view>
  66. <view class="address-box"><span>{{item.subDiyVo.typeName}}</span>{{item.subDiyVo.deptName}}</view>
  67. <view class="address-box-two">
  68. <img src="@/images/icon_14.png">
  69. <view>{{item.subDiyVo.subAddrrStr}}</view>
  70. </view>
  71. <view class="for-img-box">
  72. <view class="for-img-min-box" v-for="(minItem,index) in item.sensorSet" :key="index">
  73. <img src="@/images/icon_15.png">
  74. <view>{{minItem}}</view>
  75. </view>
  76. </view>
  77. <view class="button-view" @click="laboratoryInfo(item)">查看详情</view>
  78. </view>
  79. </view>
  80. <view class="for-title-p" v-if="dataList[0]">
  81. <img class="left-img" src="@/images/Version2.2/icon_sy_wdsys.png">
  82. <view class="name-view">我的实验室</view>
  83. </view>
  84. <view class="for-max-box" v-if="dataList[0]">
  85. <img class="null-img" v-if="!dataList[0]" src="@/images/null-data-1.png">
  86. <view class="for-box" v-for="(item,index) in dataList" :key="index" @click="laboratoryInfoOne(item)">
  87. <view class="title-box">
  88. <view :style="'border:1rpx solid '+item.fiedColor+';background:#fff;color:'+item.fiedColor+';'">{{item.levelName}}</view>
  89. <view>{{item.name}}</view>
  90. <img src="@/images/icon_04.png">
  91. </view>
  92. <view class="address-box"><span>{{item.typeName}}</span>{{item.deptName}}</view>
  93. <view class="address-box-two" v-if='item.subAddrrStr!=" "'>
  94. <img src="@/images/icon_14.png">
  95. <view>{{item.subAddrrStr}}</view>
  96. </view>
  97. <view class="text-box" v-if="item.sensorFunctionList[0]">
  98. <view class="min-box" v-for="(minItem,index2) in item.sensorFunctionList" :key="index2">
  99. <view class="min-min-box">
  100. <img v-show="minItem.hasWarn" src="@/images/icon_15.png">
  101. <view :class="{'colorA':minItem.hasWarn}">{{minItem.funcName}}:{{minItem.formatVal?minItem.formatVal:'-'}}</view>
  102. </view>
  103. </view>
  104. </view>
  105. </view>
  106. </view>
  107. <tab-bar></tab-bar>
  108. </view>
  109. </template>
  110. <script>
  111. import $mqtt from '@/utils/mqtt.min.js';
  112. import { config } from '@/api/request/config.js'
  113. import { appReceivePhotoNote,getApprovalCount,subject_class,getSafeWarnList,laboratoryInfo,laboratoryList,getLoginUserInfo,outSubjectPhoto,gradingControl,listData} from '@/api/index.js'
  114. import { tabBar } from '@/component/tabBar.vue'
  115. import { topWarn } from '@/component/topWarn.vue'
  116. import { navBar } from '@/component/navbar.vue'
  117. export default {
  118. components: {
  119. tabBar,
  120. topWarn,
  121. navBar
  122. },
  123. data() {
  124. return {
  125. tenantId:uni.getStorageSync('tenantId'),//0 系统 1化学与材料学院 2环境气候研究院
  126. navHeight: uni.getStorageSync('navHeight'),
  127. title:'实验室安全智能监测与控制系统',
  128. //随手拍数量
  129. appReceivePhotoNoteNum:0,
  130. //准入数量
  131. passedNum:"",
  132. subject_classData:[],
  133. securityAlertNum:"",
  134. //MQTT请求参数
  135. mtopic:"lab/bigview",
  136. mtopicOne:"lab/function/data",
  137. msg:"",
  138. client:{},
  139. //报警数据
  140. alarmList:[],
  141. //实验室数据
  142. dataList:[],
  143. //用户信息数据(用来决定是否可以跳转检查项)
  144. userInfo:{
  145. isadmin:null,
  146. ischeck:null,
  147. list:null,
  148. },
  149. buttonArray:[],
  150. gradingCount:0,//分级管控未完成总数
  151. homepageBanner:uni.getStorageSync('homepageBanner'),
  152. fanList:[],//控制记录触发方式
  153. }
  154. },
  155. created() {
  156. },
  157. mounted(){
  158. this.appReceivePhotoNote();
  159. this.getApprovalCount();
  160. this.subject_class();
  161. this.laboratoryList();
  162. this.getSafeWarnList();
  163. this.getLoginUserInfo();
  164. this.getGrading();
  165. this.getListData();
  166. //监听报警信息
  167. getApp().watch(this.getSafeWarnList,'mqttAlarmData');
  168. },
  169. methods: {
  170. //查询控制记录触发方式
  171. async getListData() {
  172. let _this = this;
  173. let obj={
  174. pageNum:1,
  175. pageSize:20,
  176. dictType:'trigger_modes'
  177. }
  178. const {data} = await listData(obj)
  179. if (data.code == 200) {
  180. this.fanList=data.rows
  181. }
  182. },
  183. //暂无提示
  184. goCheckPage(){
  185. if(this.userInfo.isadmin){
  186. uni.navigateTo({
  187. url: '/pages_manage/workbench/problemRectification/rectifyList'
  188. });
  189. }else if(this.userInfo.ischeck == 1){
  190. uni.navigateTo({
  191. url: '/pages_manage/workbench/securityCheck/inspectionRecords'
  192. });
  193. }else{
  194. uni.showToast({
  195. title: '您没有该权限',
  196. icon:"none",
  197. mask:true,
  198. duration: 2000
  199. });
  200. }
  201. },
  202. //监听传感器信息
  203. getMqttSensorData(val){
  204. let self = this;
  205. if(val.subId){
  206. for(let i=0;i<self.dataList.length;i++){
  207. if(self.dataList[i].id == val.subId){
  208. self.$set(self.dataList[i],'sensorFunctionList',val.functionStatuses);
  209. }
  210. }
  211. }
  212. },
  213. //获取分级管控未完成总数
  214. async getGrading(){
  215. let obj = {
  216. }
  217. const {data} = await gradingControl(obj)
  218. if(data.code==200){
  219. this.gradingCount=data.data.length;
  220. }
  221. },
  222. async getLoginUserInfo(){
  223. const {data} = await getLoginUserInfo();
  224. if(data.code == 200){
  225. this.userInfo = data.data;
  226. let list = [];
  227. if(data.data.isadmin){
  228. //实验室负责人
  229. let obj = {
  230. id:"1",
  231. name:"检查记录",
  232. }
  233. list.push(obj)
  234. }
  235. if(data.data.ischeck == 1){
  236. //检查者
  237. let obj = {
  238. id:"2",
  239. name:"问题整改",
  240. }
  241. list.push(obj)
  242. }
  243. this.$set(this,'buttonArray',list);
  244. }
  245. },
  246. //获取报警信息详情
  247. async laboratoryInfo(item){
  248. let self=this;
  249. const {data} = await laboratoryInfo(item.subDiyVo.id);
  250. if(data.code == 200){
  251. let obj = data.data[0];
  252. obj.subClassVO = item.subDiyVo.subClassVO;
  253. obj.name = item.subDiyVo.name;
  254. obj.subTypeLable = item.subDiyVo.subTypeLable;
  255. obj.deptName = item.subDiyVo.deptName;
  256. obj.subAddrrStr = item.subDiyVo.subAddrrStr;
  257. //循环判断如果是排风扇的话,启动的时候是人工还是预案还是定时
  258. for(let i=0;i<obj.labHardwareVOList.length;i++){
  259. if(obj.labHardwareVOList[i].hardwareTypeEnum.hardwareTypeCode == '2'){
  260. for(let b=0;b<self.fanList.length;b++){
  261. if(self.fanList[b].dictValue==obj.labHardwareVOList[i].triggerModes){
  262. obj.labHardwareVOList[i].dictLabel=self.fanList[b].dictLabel
  263. }
  264. }
  265. }
  266. }
  267. uni.navigateTo({
  268. url: '/pages_manage/workbench/laboratory/laboratoryInfo?item='+encodeURIComponent(JSON.stringify(obj))+'&deptId='+obj.deptId
  269. });
  270. }
  271. },
  272. //获取实验室详情
  273. async laboratoryInfoOne(item){
  274. let self=this;
  275. const {data} = await laboratoryInfo(item.id);
  276. if(data.code == 200){
  277. let obj = data.data[0];
  278. obj.subClassVO = item.subClassVO;
  279. obj.name = item.name;
  280. obj.subTypeLable = item.subTypeLable;
  281. obj.deptName = item.deptName;
  282. obj.subAddrrStr = item.subAddrrStr;
  283. obj.sensorFunctionList = item.sensorFunctionList;
  284. //循环判断如果是排风扇的话,启动的时候是人工还是预案还是定时
  285. for(let i=0;i<obj.labHardwareVOList.length;i++){
  286. if(obj.labHardwareVOList[i].hardwareTypeEnum.hardwareTypeCode == '2'){
  287. for(let b=0;b<self.fanList.length;b++){
  288. if(self.fanList[b].dictValue==obj.labHardwareVOList[i].triggerModes){
  289. obj.labHardwareVOList[i].dictLabel=self.fanList[b].dictLabel
  290. }
  291. }
  292. }
  293. }
  294. uni.navigateTo({
  295. url: '/pages_manage/workbench/laboratory/laboratoryInfo?item='+encodeURIComponent(JSON.stringify(obj))+'&deptId='+item.deptId
  296. });
  297. }
  298. },
  299. //获取报警信息列表
  300. async getSafeWarnList(){
  301. let obj = {
  302. pageNum:1,
  303. pageSize:1,
  304. count:0,
  305. groupStatus:1,
  306. };
  307. const {data} = await getSafeWarnList(obj);
  308. if(data.code == 200){
  309. this.alarmList = data.rows;
  310. if(data.rows[0]){
  311. this.securityAlertNum = data.rows[0].todayHappenCount;
  312. }else{
  313. this.securityAlertNum = 0;
  314. }
  315. }
  316. },
  317. //获取实验室列表
  318. async laboratoryList(){
  319. let self = this;
  320. let obj = {
  321. deptId:this.facultyIndex?this.facultyList[this.facultyIndex].deptId:'',
  322. subDept:this.subjectIndex?this.subjectList[this.subjectIndex].dictValue:'',
  323. level:this.levelIndex?this.levelList[this.levelIndex].dictValue:'',
  324. };
  325. const {data} = await laboratoryList(obj);
  326. if(data.code == 200){
  327. for(let o=0;o<data.data.length;o++){
  328. if(data.data[o].labHardwareVOList){
  329. data.data[o].hardwareList = [];
  330. for(let i=0;i<data.data[o].labHardwareVOList.length;i++){
  331. if(data.data[o].labHardwareVOList[i].hardwareTypeEnum.code == 4 &&data.data[o].labHardwareVOList[i].hardwareNUM){
  332. if(data.data[o].hardwareNUM){
  333. data.data[o].hardwareNUM = data.data[o].hardwareNUM + ',' + data.data[o].labHardwareVOList[i].hardwareNUM
  334. }else{
  335. data.data[o].hardwareNUM = data.data[o].labHardwareVOList[i].hardwareNUM
  336. }
  337. }else{
  338. let obj = {
  339. name:"",
  340. type:"",
  341. };
  342. obj.name = data.data[o].labHardwareVOList[i].hardwareTypeEnum.hardwareTypeName
  343. obj.type = data.data[o].labHardwareVOList[i].state.code;
  344. obj.id = data.data[o].labHardwareVOList[i].id;
  345. data.data[o].hardwareList.push(obj);
  346. }
  347. }
  348. }
  349. }
  350. this.dataList = data.data;
  351. let list = [];
  352. let obj = {
  353. type:"lab/function/data",
  354. idList:[],
  355. }
  356. for(let i=0;i<self.dataList.length;i++){
  357. let num = 0;
  358. for(let o=0;o<obj.idList.length;o++){
  359. if(obj.idList[o] == self.dataList[i].id){
  360. num++
  361. }
  362. }
  363. if(num == 0){
  364. obj.idList.push(self.dataList[i].id)
  365. }
  366. }
  367. list.push({type:"lab/riskPlan/trigger/notice",});
  368. getApp().appMqttOn(1,list);
  369. }
  370. },
  371. //获取输入数量
  372. async getApprovalCount(){
  373. const {data} = await getApprovalCount()
  374. if(data.code == 200){
  375. this.passedNum = data.data.passed + '人已获得';
  376. }
  377. },
  378. //获取管理员工作台随手拍数量数据
  379. async appReceivePhotoNote(){
  380. const {data} = await appReceivePhotoNote();
  381. if(data.code == 200){
  382. this.appReceivePhotoNoteNum = data.data.photoCount;
  383. }
  384. },
  385. //获取学科字典
  386. async subject_class(){
  387. const {data} = await subject_class();
  388. if(data.code == 200){
  389. this.subject_classData = data.data;
  390. }
  391. },
  392. //去安全警报
  393. goSecurityAlertList(){
  394. uni.navigateTo({
  395. url: '/pages_manage/workbench/securityAlert/securityAlertList',//安全警报
  396. });
  397. },
  398. //页面跳转
  399. goPage(type){
  400. if(type=='casuallyPat'){
  401. uni.navigateTo({
  402. url: '/pages/casuallyPat',//随手拍
  403. });
  404. }else if(type=='receiveCasuallyPat'){//收到随手拍
  405. uni.navigateTo({
  406. url: '/pages_manage/workbench/receiveCasuallyPat/receiveCasuallyPat',
  407. });
  408. }else if(type=='accessQualification'){//收到随手拍
  409. uni.navigateTo({
  410. url: '/pages_manage/workbench/accessQualification/accessQualification',
  411. });
  412. }else if(type == 'safetyInspect'){//安全检查
  413. uni.navigateTo({
  414. url: '/pages_manage/workbench/securityCheck/inspectionRecords',//安全检查
  415. });
  416. }
  417. else if(type == 'alarm'){
  418. uni.navigateTo({
  419. url: '/pages/earlyWarningManage/earlyWarningList',//安全警报
  420. });
  421. }else if(type == 'emergencyEvacuation'){
  422. uni.navigateTo({
  423. url: '/pages_manage/emergencyEvacuationBig',//安全警报
  424. });
  425. }else if(type == 'photoInspection'){
  426. this.outSubjectPhoto();
  427. }else if(type == 'grading'){
  428. uni.navigateTo({
  429. url: '/pages_manage/gradingControl/gradingControl',//分级管控
  430. });
  431. }else if(type == 'gas'){//气瓶管理
  432. if(this.tenantId==1){
  433. uni.showToast({
  434. title: '暂未开放',
  435. icon:"none",
  436. mask:true,
  437. duration: 2000
  438. });
  439. }else{
  440. uni.navigateTo({
  441. url: '/pages_manage/gasManage/gasManage',
  442. });
  443. }
  444. }else if(type == 'none'){
  445. uni.showToast({
  446. title: '暂未开放',
  447. icon:"none",
  448. mask:true,
  449. duration: 2000
  450. });
  451. }
  452. },//获取拍照检查配置
  453. async outSubjectPhoto(){
  454. const {data} = await outSubjectPhoto();
  455. if(data.code == 200){
  456. if(data.data == null){
  457. //需要检查(重新填写)
  458. let obj = {
  459. sub:"实验室照片",
  460. subUrl:"",
  461. garbage:"垃圾桶清理后照片",
  462. garbageUrl:"",
  463. dangerous:"使用危险设备照片(选填)",
  464. dangerousUrl:"",
  465. sourceRisk:"危险源设备使用登记本照片(选填)",
  466. sourceRiskUrl:"",
  467. };
  468. uni.navigateTo({
  469. url: '/pages_student/workbench/photoInspection?newData='+encodeURIComponent(JSON.stringify(obj)),
  470. });
  471. }else if(data.data == false){
  472. //不需要检查
  473. uni.showToast({
  474. title: '暂无检查数据',
  475. icon:"none",
  476. mask:true,
  477. duration: 2000
  478. });
  479. }else{
  480. //需要检查(修改内容)
  481. let obj = {
  482. id:data.data.id,
  483. sub:"实验室照片",
  484. subUrl:data.data.subUrl,
  485. garbage:"垃圾桶清理后照片",
  486. garbageUrl:data.data.garbageUrl,
  487. dangerous:"使用危险设备照片(选填)",
  488. dangerousUrl:data.data.dangerousUrl,
  489. sourceRisk:"危险源设备使用登记本照片(选填)",
  490. sourceRiskUrl:data.data.sourceRiskUrl,
  491. };
  492. uni.navigateTo({
  493. url: '/pages_student/workbench/photoInspection?newData='+encodeURIComponent(JSON.stringify(obj)),
  494. });
  495. }
  496. }
  497. },
  498. },
  499. beforeDestroy(){
  500. //断开mqtt连接
  501. getApp().offMQTT();
  502. //删除报警监听
  503. getApp().deleteAlarmWatch();
  504. //删除传感器监听
  505. getApp().deleteSensorWatch();
  506. }
  507. }
  508. </script>
  509. <style lang="stylus" scoped>
  510. .manage-workbench{
  511. height:100%;
  512. width:100%;
  513. overflow-y:scroll;
  514. box-sizing: border-box;
  515. .top-big-img{
  516. height:342rpx;
  517. width:750rpx;
  518. }
  519. .min-icon-button-box{
  520. display flex;
  521. justify-content: flex-start;
  522. flex-wrap: wrap;
  523. width:710rpx;
  524. margin:20rpx;
  525. background :#ffffff;
  526. border-radius:20rpx;
  527. padding-bottom: 20rpx;
  528. view{
  529. width: 176rpx;
  530. img{
  531. height:75rpx;
  532. width:75rpx;
  533. margin:30rpx auto 10rpx;
  534. }
  535. view{
  536. text-align center
  537. font-size:24rpx;
  538. }
  539. }
  540. }
  541. .big-icon-button-box{
  542. display flex;
  543. margin:20rpx;
  544. img{
  545. width:350rpx;
  546. height:150rpx;
  547. }
  548. img:nth-child(2){
  549. margin-left:10rpx;
  550. }
  551. }
  552. /* 分级管控 */
  553. .grading{
  554. width :712rpx;
  555. height :80rpx;
  556. background: #FFFFFF;
  557. border-radius: 20rpx;
  558. margin-left:20rpx;
  559. margin-bottom :20rpx;
  560. display:flex;
  561. justify-content :flex-start;
  562. align-items :center;
  563. .grading_l{
  564. width :34rpx;
  565. height :34rpx;
  566. margin-left:16rpx;
  567. }
  568. .grading_c{
  569. font-size: 28rpx;
  570. font-family: PingFang SC;
  571. font-weight: 500;
  572. color: #333333;
  573. margin-left:16rpx;
  574. }
  575. .grading_r{
  576. width :504rpx;
  577. height :80rpx;
  578. font-size: 26rpx;
  579. font-family: PingFang SC;
  580. font-weight: 500;
  581. color: #EE3A3A;
  582. display :flex;
  583. justify-content :flex-end;
  584. align-items: center;
  585. >img{
  586. width: 20rpx;
  587. height: 20rpx;
  588. margin-left :20rpx;
  589. margin-top :8rpx;
  590. }
  591. }
  592. }
  593. .top-max-box{
  594. height:300rpx;
  595. .top-min-box{
  596. display: flex
  597. margin:20rpx;
  598. .left-box{
  599. background #fff
  600. height:130rpx;
  601. width:345rpx;
  602. border-radius: 10px;
  603. display flex
  604. .left-img{
  605. height:80rpx;
  606. width:80rpx;
  607. margin:25rpx 30rpx;
  608. }
  609. view{
  610. line-height:130rpx;
  611. font-size: 28rpx;
  612. color:#333;
  613. flex:1;
  614. }
  615. .right-img{
  616. width:20rpx;
  617. height:20rpx;
  618. margin:55rpx 30rpx 0 0;
  619. }
  620. }
  621. .right-box{
  622. background #fff
  623. height:130rpx;
  624. width:345rpx;
  625. margin-left:20rpx;
  626. border-radius: 10rpx;
  627. display flex
  628. .left-img{
  629. height:80rpx;
  630. width:80rpx;
  631. margin:25rpx 30rpx;
  632. }
  633. .right-min-view{
  634. flex:1;
  635. .right-min-title{
  636. line-height:28rpx;
  637. font-size: 28rpx;
  638. margin-top:32rpx;
  639. color: #333333;
  640. }
  641. .right-bottom-min-box{
  642. display flex
  643. view{
  644. flex:1;
  645. text-align right
  646. margin:25rpx 14rpx 0 0;
  647. font-size: 22rpx;
  648. color: #999999;
  649. line-height: 22rpx;
  650. }
  651. img{
  652. width:20rpx;
  653. height:20rpx;
  654. margin:27rpx 80rpx 0 0;
  655. }
  656. }
  657. }
  658. }
  659. }
  660. .bottom-min-box{
  661. background #fff
  662. height:130rpx;
  663. width:710rpx;
  664. border-radius: 10px;
  665. margin:0 20rpx;
  666. display flex
  667. .left-img{
  668. height:80rpx;
  669. width:80rpx;
  670. margin:25rpx 30rpx;
  671. }
  672. view{
  673. flex:1;
  674. line-height:130rpx;
  675. }
  676. view:nth-child(2){
  677. font-size: 28rpx;
  678. color:#333;
  679. }
  680. view:nth-child(3){
  681. text-align right
  682. font-size: 22rpx;
  683. color:#999;
  684. margin-right:12rpx;
  685. }
  686. .right-img{
  687. width:20rpx;
  688. height:20rpx;
  689. margin:55rpx 30rpx 0 0;
  690. }
  691. }
  692. }
  693. .for-title-p{
  694. border-top-left-radius 20rpx
  695. border-top-right-radius 20rpx
  696. background #fff
  697. padding-left:25rpx;
  698. display flex
  699. margin:0 20rpx;
  700. border-bottom:1rpx solid #e0e0e0;
  701. .left-img{
  702. height:34rpx;
  703. width:34rpx;
  704. margin:22rpx 10rpx 0 0;
  705. }
  706. .name-view{
  707. line-height:77rpx;
  708. font-size:30rpx;
  709. color:#333;
  710. }
  711. .num-view{
  712. width:28rpx;
  713. height:28rpx;
  714. font-size:20rpx;
  715. background:#EE3A3A;
  716. border-radius:50%;
  717. text-align :center;
  718. line-height:24rpx;
  719. color:#fff;
  720. margin:26rpx 0 0 10rpx;
  721. }
  722. .null-view{
  723. flex:1;
  724. }
  725. .right-img{
  726. height:20rpx;
  727. width:10rpx;
  728. margin:28rpx 19rpx 0 0;
  729. }
  730. }
  731. .for-max-box-one{
  732. margin:0 20rpx;
  733. border-bottom-left-radius 20rpx
  734. border-bottom-right-radius 20rpx
  735. .for-box:nth-child(1){
  736. border-top:none;
  737. }
  738. .for-box{
  739. border-top:4rpx solid #dedede;
  740. background #fff
  741. margin-bottom:20rpx;
  742. overflow: hidden
  743. .title-box{
  744. margin:20rpx 20rpx 0;
  745. display flex
  746. view:nth-child(1){
  747. height:40rpx;
  748. line-height:40rpx;
  749. font-size:20rpx;
  750. border-radius:10rpx;
  751. padding:0 20rpx;
  752. color:#fff;
  753. margin-right:20rpx;
  754. }
  755. view:nth-child(2){
  756. line-height:42rpx;
  757. font-size:30rpx;
  758. color:#333;
  759. max-width:600rpx;
  760. flex:1;
  761. }
  762. .colorA{
  763. background:#aa2315;
  764. }
  765. .colorB{
  766. background:#ff9b09;
  767. }
  768. .colorC{
  769. background:#3ea3e9;
  770. }
  771. .colorD{
  772. background:#3ea34c;
  773. }
  774. }
  775. .address-box{
  776. margin:20rpx 20rpx;
  777. font-size:26rpx;
  778. color:#999999;
  779. span{
  780. margin-right:60rpx;
  781. }
  782. }
  783. .address-box-two{
  784. display flex
  785. margin:0 20rpx 20rpx 20rpx;
  786. img{
  787. width:28rpx;
  788. height:30rpx;
  789. margin-right:18rpx;
  790. }
  791. view{
  792. line-height:30rpx;
  793. font-size:24rpx;
  794. color:#999999;
  795. }
  796. }
  797. .for-img-box{
  798. border-top:1rpx solid #e0e0e0;
  799. margin:0 20rpx;
  800. .for-img-min-box{
  801. display flex
  802. img{
  803. width:30rpx;
  804. height:27rpx;
  805. margin-top:24rpx;
  806. margin-right:10rpx;
  807. }
  808. view{
  809. line-height:74rpx;
  810. text-align center
  811. font-size:28rpx;
  812. color:#EE3A3A;
  813. }
  814. }
  815. }
  816. .button-view{
  817. margin:0 20rpx;
  818. border-top:1rpx dashed #e0e0e0;
  819. line-height:90rpx;
  820. text-align :center;
  821. font-size:26rpx;
  822. color:#333;
  823. }
  824. }
  825. .get-null-box{
  826. height:100rpx;
  827. line-height:100rpx;
  828. color:#999;
  829. text-align center
  830. }
  831. }
  832. .for-max-box{
  833. margin:0 20rpx 120rpx;
  834. background: #fff
  835. overflow: hidden
  836. border-bottom-left-radius 20rpx
  837. border-bottom-right-radius 20rpx
  838. .null-img{
  839. display block
  840. width:276rpx;
  841. height:321rpx;
  842. margin:40rpx auto;
  843. }
  844. .for-box:nth-child(1){
  845. border-top:none;
  846. }
  847. .for-box{
  848. border-top:4rpx solid #dedede;
  849. overflow hidden
  850. background #ffffff
  851. margin-bottom:20rpx;
  852. .title-box{
  853. margin:20rpx 20rpx 0;
  854. display flex
  855. view:nth-child(1){
  856. height:40rpx;
  857. line-height:40rpx;
  858. font-size:20rpx;
  859. border-radius:10rpx;
  860. padding:0 20rpx;
  861. color:#fff;
  862. margin-right:20rpx;
  863. }
  864. view:nth-child(2){
  865. line-height:42rpx;
  866. font-size:30rpx;
  867. color:#333;
  868. max-width:600rpx;
  869. flex:1;
  870. }
  871. img{
  872. width:12rpx;
  873. height:20rpx;
  874. margin-top:11rpx;
  875. }
  876. .colorA{
  877. background:#aa2315;
  878. }
  879. .colorB{
  880. background:#ff9b09;
  881. }
  882. .colorC{
  883. background:#3ea3e9;
  884. }
  885. .colorD{
  886. background:#3ea34c;
  887. }
  888. }
  889. .address-box{
  890. margin:20rpx 20rpx;
  891. font-size:26rpx;
  892. color:#999999;
  893. span{
  894. margin-right:60rpx;
  895. }
  896. }
  897. .address-box-two{
  898. display flex
  899. margin:0 20rpx 20rpx 20rpx;
  900. img{
  901. width:28rpx;
  902. height:30rpx;
  903. margin-right:18rpx;
  904. }
  905. view{
  906. line-height:30rpx;
  907. font-size:24rpx;
  908. color:#999999;
  909. }
  910. }
  911. .text-box{
  912. /*border-top:1rpx dashed #e0e0e0;*/
  913. border-top:1rpx solid #E0E0E0;
  914. padding:20rpx 20rpx 0;
  915. /*
  916. overflow-x:scroll;
  917. overflow-y:hidden;
  918. white-space: nowrap;
  919. */
  920. .min-box{
  921. display inline-block
  922. /*padding:0 30rpx 0 10rpx;*/
  923. width:335rpx;
  924. .min-min-box{
  925. display: flex
  926. img{
  927. width:30rpx;
  928. height:27rpx;
  929. margin-top:24rpx;
  930. margin-right:10rpx;
  931. }
  932. view{
  933. line-height:74rpx;
  934. text-align center
  935. font-size:28rpx;
  936. color:#333;
  937. }
  938. .colorA{
  939. color:#EE3A3A;
  940. }
  941. }
  942. }
  943. }
  944. .sensor-max-box{
  945. margin:0 20rpx;
  946. border-top:1rpx solid #e0e0e0;
  947. border-bottom:1rpx solid #e0e0e0;
  948. display flex
  949. .for-sensor-box{
  950. flex:1;
  951. display flex
  952. font-size:28rpx;
  953. line-height:94rpx;
  954. view{
  955. margin-left:20rpx;
  956. font-size:25rpx;
  957. line-height:94rpx;
  958. color:#0183FA;
  959. }
  960. }
  961. }
  962. .button-max-box{
  963. .button-box{
  964. display flex
  965. view:nth-child(1){
  966. flex:1;
  967. line-height:90rpx;
  968. color:#333333;
  969. margin-left:30rpx;
  970. font-size:28rpx;
  971. }
  972. view:nth-child(2){
  973. width:142rpx;
  974. line-height:42rpx;
  975. border:4rpx solid #0183FA;
  976. border-radius:25rpx;
  977. color: #0183FA;
  978. font-size: 30rpx;
  979. text-align center;
  980. margin:20rpx 20rpx 20rpx 0;
  981. }
  982. }
  983. .for-button-box{
  984. display flex
  985. view{
  986. flex:1;
  987. line-height:90rpx;
  988. color:#333333;
  989. margin-left:30rpx;
  990. font-size:28rpx;
  991. }
  992. img{
  993. height:50rpx;
  994. width:100rpx;
  995. margin:20rpx 20rpx 20rpx 0;
  996. }
  997. view:nth-child(2){
  998. text-align right
  999. color:#999;
  1000. margin-right:30rpx;
  1001. }
  1002. }
  1003. }
  1004. }
  1005. }
  1006. }
  1007. </style>