manageWorkbench.vue 27 KB

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