manageWorkbench.vue 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014
  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' && this.tenantId!=1){//气瓶管理
  432. uni.navigateTo({
  433. url: '/pages_manage/gasManage/gasManage',
  434. });
  435. }else if(type == 'none'){
  436. uni.showToast({
  437. title: '暂未开放',
  438. icon:"none",
  439. mask:true,
  440. duration: 2000
  441. });
  442. }
  443. },//获取拍照检查配置
  444. async outSubjectPhoto(){
  445. const {data} = await outSubjectPhoto();
  446. if(data.code == 200){
  447. if(data.data == null){
  448. //需要检查(重新填写)
  449. let obj = {
  450. sub:"实验室照片",
  451. subUrl:"",
  452. garbage:"垃圾桶清理后照片",
  453. garbageUrl:"",
  454. dangerous:"使用危险设备照片(选填)",
  455. dangerousUrl:"",
  456. sourceRisk:"危险源设备使用登记本照片(选填)",
  457. sourceRiskUrl:"",
  458. };
  459. uni.navigateTo({
  460. url: '/pages_student/workbench/photoInspection?newData='+encodeURIComponent(JSON.stringify(obj)),
  461. });
  462. }else if(data.data == false){
  463. //不需要检查
  464. uni.showToast({
  465. title: '暂无检查数据',
  466. icon:"none",
  467. mask:true,
  468. duration: 2000
  469. });
  470. }else{
  471. //需要检查(修改内容)
  472. let obj = {
  473. id:data.data.id,
  474. sub:"实验室照片",
  475. subUrl:data.data.subUrl,
  476. garbage:"垃圾桶清理后照片",
  477. garbageUrl:data.data.garbageUrl,
  478. dangerous:"使用危险设备照片(选填)",
  479. dangerousUrl:data.data.dangerousUrl,
  480. sourceRisk:"危险源设备使用登记本照片(选填)",
  481. sourceRiskUrl:data.data.sourceRiskUrl,
  482. };
  483. uni.navigateTo({
  484. url: '/pages_student/workbench/photoInspection?newData='+encodeURIComponent(JSON.stringify(obj)),
  485. });
  486. }
  487. }
  488. },
  489. },
  490. beforeDestroy(){
  491. //断开mqtt连接
  492. getApp().offMQTT();
  493. //删除报警监听
  494. getApp().deleteAlarmWatch();
  495. //删除传感器监听
  496. getApp().deleteSensorWatch();
  497. }
  498. }
  499. </script>
  500. <style lang="stylus" scoped>
  501. .manage-workbench{
  502. height:100%;
  503. width:100%;
  504. overflow-y:scroll;
  505. box-sizing: border-box;
  506. .top-big-img{
  507. height:342rpx;
  508. width:750rpx;
  509. }
  510. .min-icon-button-box{
  511. display flex;
  512. justify-content: flex-start;
  513. flex-wrap: wrap;
  514. width:710rpx;
  515. margin:20rpx;
  516. background :#ffffff;
  517. border-radius:20rpx;
  518. padding-bottom: 20rpx;
  519. view{
  520. width: 176rpx;
  521. img{
  522. height:75rpx;
  523. width:75rpx;
  524. margin:30rpx auto 10rpx;
  525. }
  526. view{
  527. text-align center
  528. font-size:24rpx;
  529. }
  530. }
  531. }
  532. .big-icon-button-box{
  533. display flex;
  534. margin:20rpx;
  535. img{
  536. width:350rpx;
  537. height:150rpx;
  538. }
  539. img:nth-child(2){
  540. margin-left:10rpx;
  541. }
  542. }
  543. /* 分级管控 */
  544. .grading{
  545. width :712rpx;
  546. height :80rpx;
  547. background: #FFFFFF;
  548. border-radius: 20rpx;
  549. margin-left:20rpx;
  550. margin-bottom :20rpx;
  551. display:flex;
  552. justify-content :flex-start;
  553. align-items :center;
  554. .grading_l{
  555. width :34rpx;
  556. height :34rpx;
  557. margin-left:16rpx;
  558. }
  559. .grading_c{
  560. font-size: 28rpx;
  561. font-family: PingFang SC;
  562. font-weight: 500;
  563. color: #333333;
  564. margin-left:16rpx;
  565. }
  566. .grading_r{
  567. width :504rpx;
  568. height :80rpx;
  569. font-size: 26rpx;
  570. font-family: PingFang SC;
  571. font-weight: 500;
  572. color: #EE3A3A;
  573. display :flex;
  574. justify-content :flex-end;
  575. align-items: center;
  576. >img{
  577. width: 20rpx;
  578. height: 20rpx;
  579. margin-left :20rpx;
  580. margin-top :8rpx;
  581. }
  582. }
  583. }
  584. .top-max-box{
  585. height:300rpx;
  586. .top-min-box{
  587. display: flex
  588. margin:20rpx;
  589. .left-box{
  590. background #fff
  591. height:130rpx;
  592. width:345rpx;
  593. border-radius: 10px;
  594. display flex
  595. .left-img{
  596. height:80rpx;
  597. width:80rpx;
  598. margin:25rpx 30rpx;
  599. }
  600. view{
  601. line-height:130rpx;
  602. font-size: 28rpx;
  603. color:#333;
  604. flex:1;
  605. }
  606. .right-img{
  607. width:20rpx;
  608. height:20rpx;
  609. margin:55rpx 30rpx 0 0;
  610. }
  611. }
  612. .right-box{
  613. background #fff
  614. height:130rpx;
  615. width:345rpx;
  616. margin-left:20rpx;
  617. border-radius: 10rpx;
  618. display flex
  619. .left-img{
  620. height:80rpx;
  621. width:80rpx;
  622. margin:25rpx 30rpx;
  623. }
  624. .right-min-view{
  625. flex:1;
  626. .right-min-title{
  627. line-height:28rpx;
  628. font-size: 28rpx;
  629. margin-top:32rpx;
  630. color: #333333;
  631. }
  632. .right-bottom-min-box{
  633. display flex
  634. view{
  635. flex:1;
  636. text-align right
  637. margin:25rpx 14rpx 0 0;
  638. font-size: 22rpx;
  639. color: #999999;
  640. line-height: 22rpx;
  641. }
  642. img{
  643. width:20rpx;
  644. height:20rpx;
  645. margin:27rpx 80rpx 0 0;
  646. }
  647. }
  648. }
  649. }
  650. }
  651. .bottom-min-box{
  652. background #fff
  653. height:130rpx;
  654. width:710rpx;
  655. border-radius: 10px;
  656. margin:0 20rpx;
  657. display flex
  658. .left-img{
  659. height:80rpx;
  660. width:80rpx;
  661. margin:25rpx 30rpx;
  662. }
  663. view{
  664. flex:1;
  665. line-height:130rpx;
  666. }
  667. view:nth-child(2){
  668. font-size: 28rpx;
  669. color:#333;
  670. }
  671. view:nth-child(3){
  672. text-align right
  673. font-size: 22rpx;
  674. color:#999;
  675. margin-right:12rpx;
  676. }
  677. .right-img{
  678. width:20rpx;
  679. height:20rpx;
  680. margin:55rpx 30rpx 0 0;
  681. }
  682. }
  683. }
  684. .for-title-p{
  685. border-top-left-radius 20rpx
  686. border-top-right-radius 20rpx
  687. background #fff
  688. padding-left:25rpx;
  689. display flex
  690. margin:0 20rpx;
  691. border-bottom:1rpx solid #e0e0e0;
  692. .left-img{
  693. height:34rpx;
  694. width:34rpx;
  695. margin:22rpx 10rpx 0 0;
  696. }
  697. .name-view{
  698. line-height:77rpx;
  699. font-size:30rpx;
  700. color:#333;
  701. }
  702. .num-view{
  703. width:28rpx;
  704. height:28rpx;
  705. font-size:20rpx;
  706. background:#EE3A3A;
  707. border-radius:50%;
  708. text-align :center;
  709. line-height:24rpx;
  710. color:#fff;
  711. margin:26rpx 0 0 10rpx;
  712. }
  713. .null-view{
  714. flex:1;
  715. }
  716. .right-img{
  717. height:20rpx;
  718. width:10rpx;
  719. margin:28rpx 19rpx 0 0;
  720. }
  721. }
  722. .for-max-box-one{
  723. margin:0 20rpx;
  724. border-bottom-left-radius 20rpx
  725. border-bottom-right-radius 20rpx
  726. .for-box:nth-child(1){
  727. border-top:none;
  728. }
  729. .for-box{
  730. border-top:4rpx solid #dedede;
  731. background #fff
  732. margin-bottom:20rpx;
  733. overflow: hidden
  734. .title-box{
  735. margin:20rpx 20rpx 0;
  736. display flex
  737. view:nth-child(1){
  738. height:40rpx;
  739. line-height:40rpx;
  740. font-size:20rpx;
  741. border-radius:10rpx;
  742. padding:0 20rpx;
  743. color:#fff;
  744. margin-right:20rpx;
  745. }
  746. view:nth-child(2){
  747. line-height:42rpx;
  748. font-size:30rpx;
  749. color:#333;
  750. max-width:600rpx;
  751. flex:1;
  752. }
  753. .colorA{
  754. background:#aa2315;
  755. }
  756. .colorB{
  757. background:#ff9b09;
  758. }
  759. .colorC{
  760. background:#3ea3e9;
  761. }
  762. .colorD{
  763. background:#3ea34c;
  764. }
  765. }
  766. .address-box{
  767. margin:20rpx 20rpx;
  768. font-size:26rpx;
  769. color:#999999;
  770. span{
  771. margin-right:60rpx;
  772. }
  773. }
  774. .address-box-two{
  775. display flex
  776. margin:0 20rpx 20rpx 20rpx;
  777. img{
  778. width:28rpx;
  779. height:30rpx;
  780. margin-right:18rpx;
  781. }
  782. view{
  783. line-height:30rpx;
  784. font-size:24rpx;
  785. color:#999999;
  786. }
  787. }
  788. .for-img-box{
  789. border-top:1rpx solid #e0e0e0;
  790. margin:0 20rpx;
  791. .for-img-min-box{
  792. display flex
  793. img{
  794. width:30rpx;
  795. height:27rpx;
  796. margin-top:24rpx;
  797. margin-right:10rpx;
  798. }
  799. view{
  800. line-height:74rpx;
  801. text-align center
  802. font-size:28rpx;
  803. color:#EE3A3A;
  804. }
  805. }
  806. }
  807. .button-view{
  808. margin:0 20rpx;
  809. border-top:1rpx dashed #e0e0e0;
  810. line-height:90rpx;
  811. text-align :center;
  812. font-size:26rpx;
  813. color:#333;
  814. }
  815. }
  816. .get-null-box{
  817. height:100rpx;
  818. line-height:100rpx;
  819. color:#999;
  820. text-align center
  821. }
  822. }
  823. .for-max-box{
  824. margin:0 20rpx 120rpx;
  825. background: #fff
  826. overflow: hidden
  827. border-bottom-left-radius 20rpx
  828. border-bottom-right-radius 20rpx
  829. .null-img{
  830. display block
  831. width:276rpx;
  832. height:321rpx;
  833. margin:40rpx auto;
  834. }
  835. .for-box:nth-child(1){
  836. border-top:none;
  837. }
  838. .for-box{
  839. border-top:4rpx solid #dedede;
  840. overflow hidden
  841. background #ffffff
  842. margin-bottom:20rpx;
  843. .title-box{
  844. margin:20rpx 20rpx 0;
  845. display flex
  846. view:nth-child(1){
  847. height:40rpx;
  848. line-height:40rpx;
  849. font-size:20rpx;
  850. border-radius:10rpx;
  851. padding:0 20rpx;
  852. color:#fff;
  853. margin-right:20rpx;
  854. }
  855. view:nth-child(2){
  856. line-height:42rpx;
  857. font-size:30rpx;
  858. color:#333;
  859. max-width:600rpx;
  860. flex:1;
  861. }
  862. img{
  863. width:12rpx;
  864. height:20rpx;
  865. margin-top:11rpx;
  866. }
  867. .colorA{
  868. background:#aa2315;
  869. }
  870. .colorB{
  871. background:#ff9b09;
  872. }
  873. .colorC{
  874. background:#3ea3e9;
  875. }
  876. .colorD{
  877. background:#3ea34c;
  878. }
  879. }
  880. .address-box{
  881. margin:20rpx 20rpx;
  882. font-size:26rpx;
  883. color:#999999;
  884. span{
  885. margin-right:60rpx;
  886. }
  887. }
  888. .address-box-two{
  889. display flex
  890. margin:0 20rpx 20rpx 20rpx;
  891. img{
  892. width:28rpx;
  893. height:30rpx;
  894. margin-right:18rpx;
  895. }
  896. view{
  897. line-height:30rpx;
  898. font-size:24rpx;
  899. color:#999999;
  900. }
  901. }
  902. .text-box{
  903. /*border-top:1rpx dashed #e0e0e0;*/
  904. border-top:1rpx solid #E0E0E0;
  905. padding:20rpx 20rpx 0;
  906. /*
  907. overflow-x:scroll;
  908. overflow-y:hidden;
  909. white-space: nowrap;
  910. */
  911. .min-box{
  912. display inline-block
  913. /*padding:0 30rpx 0 10rpx;*/
  914. width:335rpx;
  915. .min-min-box{
  916. display: flex
  917. img{
  918. width:30rpx;
  919. height:27rpx;
  920. margin-top:24rpx;
  921. margin-right:10rpx;
  922. }
  923. view{
  924. line-height:74rpx;
  925. text-align center
  926. font-size:28rpx;
  927. color:#333;
  928. }
  929. .colorA{
  930. color:#EE3A3A;
  931. }
  932. }
  933. }
  934. }
  935. .sensor-max-box{
  936. margin:0 20rpx;
  937. border-top:1rpx solid #e0e0e0;
  938. border-bottom:1rpx solid #e0e0e0;
  939. display flex
  940. .for-sensor-box{
  941. flex:1;
  942. display flex
  943. font-size:28rpx;
  944. line-height:94rpx;
  945. view{
  946. margin-left:20rpx;
  947. font-size:25rpx;
  948. line-height:94rpx;
  949. color:#0183FA;
  950. }
  951. }
  952. }
  953. .button-max-box{
  954. .button-box{
  955. display flex
  956. view:nth-child(1){
  957. flex:1;
  958. line-height:90rpx;
  959. color:#333333;
  960. margin-left:30rpx;
  961. font-size:28rpx;
  962. }
  963. view:nth-child(2){
  964. width:142rpx;
  965. line-height:42rpx;
  966. border:4rpx solid #0183FA;
  967. border-radius:25rpx;
  968. color: #0183FA;
  969. font-size: 30rpx;
  970. text-align center;
  971. margin:20rpx 20rpx 20rpx 0;
  972. }
  973. }
  974. .for-button-box{
  975. display flex
  976. view{
  977. flex:1;
  978. line-height:90rpx;
  979. color:#333333;
  980. margin-left:30rpx;
  981. font-size:28rpx;
  982. }
  983. img{
  984. height:50rpx;
  985. width:100rpx;
  986. margin:20rpx 20rpx 20rpx 0;
  987. }
  988. view:nth-child(2){
  989. text-align right
  990. color:#999;
  991. margin-right:30rpx;
  992. }
  993. }
  994. }
  995. }
  996. }
  997. }
  998. </style>