manageWorkbench.vue 27 KB

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