manageWorkbench.vue 27 KB

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