manageWorkbench.vue 28 KB

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