emergencyEvacuationBig.vue 41 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608
  1. <!-- 应急疏散 -->
  2. <template>
  3. <view id="emergencyEvacuationBig">
  4. <view class="setUpEvacuation" v-if="pageType == 1">
  5. <view class="evacuation-max-box">
  6. <view class="picker-max-box">
  7. <view class="picker-title-box">
  8. <view></view>
  9. <view>学院楼栋</view>
  10. </view>
  11. <picker @change="buildingChange"
  12. :range-key="'label'" :value="value" :range="buildingList">
  13. <view class="picker-min-box">
  14. <view>{{buildingName?buildingName:'请选择学院楼栋'}}</view>
  15. <img src="@/images/icon_06.png">
  16. </view>
  17. </picker>
  18. </view>
  19. <view class="picker-max-box">
  20. <view class="picker-title-box">
  21. <view></view>
  22. <view>楼层</view>
  23. </view>
  24. <picker @change="floorChange" :disabled="!buildingId"
  25. :range-key="'name'" :value="id" :range="floorList">
  26. <view class="picker-min-box">
  27. <view>{{floorName?floorName:'请选择楼层'}}</view>
  28. <img src="@/images/icon_06.png">
  29. </view>
  30. </picker>
  31. </view>
  32. <view class="picker-max-box">
  33. <view class="picker-title-box">
  34. <view></view>
  35. <view>实验室</view>
  36. </view>
  37. <picker @change="fjListChange" :disabled="!floorId"
  38. :range-key="'subjectName'" :value="id" :range="fjListArray">
  39. <view class="picker-min-box">
  40. <view>{{subName?subName:'请选择实验室'}}</view>
  41. <img src="@/images/icon_06.png">
  42. </view>
  43. </picker>
  44. </view>
  45. <!-- <view class="picker-max-box">
  46. <view class="picker-title-box">
  47. <view>*</view>
  48. <view>疏散路径:</view>
  49. </view>
  50. <picker @change="buttonChangeTwo"
  51. :range-key="'name'" :value="id" :range="buttonArray">
  52. <view class="picker-min-box">
  53. <view>{{buttonArrayIndex?buttonArray[buttonArrayIndex].name:'请选择疏散路径'}}</view>
  54. <img src="@/images/icon_06.png">
  55. </view>
  56. </picker>
  57. </view> -->
  58. </view>
  59. <view class="setUpEvacuation-bottom-button" @click="confirmBtn">确认</view>
  60. </view>
  61. <view class="implementEvacuation" v-if="pageType == 2">
  62. <view class="evacuation-max-box">
  63. <!-- 头部 -->
  64. <view class="evacuation-title-box">
  65. <view class="evacuation-title-name-box">{{subName}}</view>
  66. <view class="site"><img src="@/images/icon_14.png">{{address}}</view>
  67. </view>
  68. <!-- 视频监控-选择疏散路径 -->
  69. <!-- <view class="monito">
  70. <view class="monito_li">
  71. 视频监控
  72. <view class="monito_li_r monito_li_r_text" @click="goVideo()">查看监控<img src="@/images/icon_04.png"></view>
  73. </view>
  74. <view class="monito_li" style="border:0;">
  75. 选择疏散路径
  76. <view class="monito_li_r">
  77. <picker @change="buttonChange"
  78. :range-key="'name'" :value="id" :range="buttonArray">
  79. <view class="evacuation-title-button-box">
  80. <view :class="buttonArrayIndex?'colorB':'colorA'">{{buttonArrayIndex?buttonArray[buttonArrayIndex].name:'修改疏散路径'}}</view>
  81. <img src="@/images/icon_06.png">
  82. </view>
  83. </picker>
  84. </view>
  85. </view>
  86. </view> -->
  87. <!-- 滚动部分 -->
  88. <!-- <view class="evacuation-scroll-box">
  89. <view :class="videoIndex == index?'scroll-box-color':''"
  90. @click="scrollBoxClick(index)"
  91. v-for="(item,index) in videoList" :key="index">{{item.name}}</view>
  92. </view> -->
  93. <!-- 视频部分 -->
  94. <!-- <view class="evacuation-video-box">
  95. <video
  96. :class="index == videoIndex?'video-a':'video-b'"
  97. v-for="(item,index) in videoList" :key="index"
  98. :id="urlList.id" :src="item.url"
  99. poster="http://lab.sxitdlc.com:9300/statics/logo/logo.png"
  100. :custom-cache='false' :autoplay="true" :controls="true"
  101. :enable-danmu="false" :muted="true" :show-fullscreen-btn="true"
  102. :show-center-play-btn="false" :show-play-btn="false"
  103. @error="videoErrorCallback" >
  104. </video>
  105. </view> -->
  106. <!-- 地图部分 -->
  107. <view class="roadmap">
  108. <view class="roadmap_t">
  109. <view class="monito_li_r_l">选择疏散路径</view>
  110. <view class="monito_li_r">
  111. <picker @change="buttonChange"
  112. :range-key="'name'" :value="id" :range="buttonArray">
  113. <view class="evacuation-title-button-box">
  114. <view :class="buttonArrayIndex?'colorB':'colorA'">{{buttonArrayIndex?buttonArray[buttonArrayIndex].name:'修改疏散路径'}}</view>
  115. <img src="@/images/icon_06.png">
  116. </view>
  117. </picker>
  118. </view>
  119. </view>
  120. <view class="evacuation-map-box">
  121. <view class="evacuation-map-big-box" :class="floorId==5?'map-1':(floorId==6?'map-2':(floorId==7?'map-3':''))">
  122. <view class="evacuation-map-min-for-box" :class="subId == item.subjectId?'evacuation-map-min-for-box-color':''"
  123. v-for="(item,index) in fjList" :key="index">{{item.room}}</view>
  124. <img class="map-min-img" src="@/images/Version2.3/icon_zjt.gif" v-show="lightList[0].type">
  125. <img class="map-min-img" src="@/images/Version2.3/icon_yjt.gif" v-show="lightList[1].type">
  126. <img class="map-min-img" src="@/images/Version2.3/icon_zjt.gif" v-show="lightList[2].type">
  127. <img class="map-min-img" src="@/images/Version2.3/icon_yjt.gif" v-show="lightList[3].type">
  128. <img class="map-min-img" src="@/images/Version2.3/icon_zjt.gif" v-show="lightList[4].type">
  129. <img class="map-min-img" src="@/images/Version2.3/icon_yjt.gif" v-show="lightList[5].type">
  130. </view>
  131. </view>
  132. </view>
  133. <!-- 视频部分 -->
  134. <view class="video-max-box" v-if="urlList[0]">
  135. <video
  136. v-for="(item,index) in urlList" :key="index" :id="urlList.id" :src="item.url"
  137. poster="http://lab.sxitdlc.com:9300/statics/logo/logo.png"
  138. :custom-cache='false' :autoplay="true" :controls="true"
  139. :enable-danmu="false" :muted="true" :show-fullscreen-btn="true"
  140. :show-center-play-btn="false" :show-play-btn="false"
  141. @error="videoErrorCallback" >
  142. </video>
  143. </view>
  144. <view class="bottom-button-box">
  145. <view @click="shadeTypeClick()">语音广播</view>
  146. <view @click="lineEvacuate" v-if="isEvacuate">执行疏散</view>
  147. <view @click="closireButton" v-if="!isEvacuate">结束疏散</view>
  148. </view>
  149. </view>
  150. <view class="shade-max-big-box" v-if="broadcastType">
  151. <view class="null-box" @click="shadeTypeClick()"></view>
  152. <!-- 语音广播-执行疏散 -->
  153. <view class="broadcast">
  154. <view class="broadcast_t">语音广播<label>选择喇叭位置</label></view>
  155. <!-- 按钮部分 -->
  156. <view class="trumpet-max-box">
  157. <view @click="trumpetClick(index)"
  158. class="trumpet-for-box" :class="item.type?'trumpet-color-a':'trumpet-color-b'"
  159. v-for="(item,index) in trumpetList" :key="index">
  160. <img src="@/images/icon_sskz_zc.png" v-if="!item.type">
  161. <img src="@/images/icon_sskz_xz.png" v-if="item.type">
  162. {{item.name}}
  163. </view>
  164. </view>
  165. <view class="broadcast_m">
  166. <view class="broadcast_m_t" :class="liveType?'broadcast_m_t_back_a':'broadcast_m_t_back_b'" @longpress.stop="recordButton" @touchmove.stop="cancelButton" @touchend.stop="sendButton">
  167. <!-- <img src="@/images/icon_sskz_azsh.png" v-if="!liveType">
  168. <img src="@/images/icon_sskz_skfs.png" v-if="liveType"> -->
  169. <!-- <label class="slip_color" v-if="!liveType">按住说话</label>
  170. <label class="press_color" v-if="liveType">松开发送</label> -->
  171. {{liveType?'松开发送':'按住说话'}}
  172. </view>
  173. <view class="broadcast_m_b" v-if="!liveType">按住说话,录入广播内容</view>
  174. <view class="broadcast_m_b" v-if="liveType">松开发送,向上滑动取消发送</view>
  175. </view>
  176. </view>
  177. </view>
  178. <!-- <view class="live-button" :class="liveType?'live-color-a':'live-color-b'"
  179. @longpress.stop="recordButton" @touchmove.stop="cancelButton" @touchend.stop="sendButton">开始广播</view> -->
  180. </view>
  181. </view>
  182. </template>
  183. <script>
  184. import { config } from '@/api/request/config.js'
  185. import { lablayout,evacuate,closure,lineEvacuate,getRedis,getDeviceList,textParseUrlIps,laboratoryInfo,
  186. getCameraByFloor,jinanGetStartList,nanhuGetStartList,wenchangGetStartList,lineEvacuateTow,treeselectByUser,getBuilding} from '@/api/index.js'
  187. export default {
  188. data() {
  189. return {
  190. //页面状态
  191. pageType:"",
  192. deptIndex:0,
  193. //院系楼栋数据
  194. buildingList:[],
  195. buildingName:"",
  196. buildingId:"",
  197. //楼层数据
  198. floorList:[],
  199. floorName:"",
  200. floorId:"",
  201. //实验室
  202. fjListArray:[],
  203. //疏散方向
  204. buttonArray:[
  205. {name:"向左疏散",id:"1"},
  206. {name:"向右疏散",id:"2"},
  207. {name:"两侧疏散",id:"0"},
  208. ],
  209. buttonArrayIndex:"2",
  210. //视频数据
  211. urlList:[],
  212. //布局数据
  213. fjList:[],
  214. lightList:[
  215. {
  216. id:"5",
  217. type:false,
  218. },
  219. {
  220. id:"2",
  221. type:false,
  222. },
  223. {
  224. id:"3",
  225. type:false,
  226. },
  227. {
  228. id:"4",
  229. type:false,
  230. },
  231. {
  232. id:"1",
  233. type:false,
  234. },
  235. {
  236. id:"6",
  237. type:false,
  238. },
  239. ],
  240. //接收参数
  241. subId:"",
  242. subName:"",
  243. title:"",
  244. type:"",
  245. //喇叭数据
  246. trumpetList:[],
  247. //广播相关
  248. liveType:false,
  249. sendLock: true, //发送锁,当为true时上锁,false时解锁发送
  250. recorderManager : wx.getRecorderManager(),
  251. isEvacuate:true,//疏散按钮控制,当为true时候执行疏散
  252. //滑动记录
  253. startPoint:{},
  254. //摄像头信息
  255. deptId:'',
  256. itemData:{
  257. hardwareNUM:'',
  258. name:'',
  259. },
  260. broadcastType:false,
  261. address:"",
  262. videoHardwareNUM:[],//实验室和楼道摄像头编码
  263. }
  264. },
  265. onLoad(option) {
  266. this.treeselectByUser(option);
  267. this.getAppExitLine();
  268. getApp().watch(this.getMqttLineData,'lineData');
  269. let self = this;
  270. //判断入口(执行疏散)
  271. },
  272. onShow(){
  273. // this.lablayout();
  274. // this.getCameraByFloor();
  275. },
  276. methods: {
  277. //根据账户信息查询学院楼栋数据
  278. async treeselectByUser(option){
  279. const {data} = await treeselectByUser()
  280. let list = [];
  281. for(let i=0;i<data.data.length;i++){
  282. for(let o=0;o<data.data[i].children.length;o++){
  283. let obj = {
  284. label:data.data[i].label+'-'+data.data[i].children[o].label,
  285. value:data.data[i].children[o].id,
  286. }
  287. list.push(obj);
  288. // if(i==0&&o==0){
  289. // this.$set(this,'buildingId',obj.value);
  290. // this.$set(this,'deptId',obj.value);
  291. // this.$set(this,'buildingName',obj.label);
  292. // }
  293. }
  294. }
  295. this.$set(this,'buildingList',list);
  296. this.$set(this,'buildingName',"");
  297. this.$set(this,'buildingId',"");
  298. this.$set(this,'deptId',"");
  299. this.$set(this,'floorList',[]);
  300. this.$set(this,'floorName',"");
  301. this.$set(this,'floorId',"");
  302. this.$set(this,'fjListArray',[]);
  303. this.$set(this,'subName',"");
  304. this.$set(this,'subId',"");
  305. // this.getBuilding(this.buildingId);
  306. if(option.item){
  307. let item = JSON.parse(decodeURIComponent(option.item));
  308. console.log("item",item)
  309. this.subId = item.subId;
  310. this.subName = item.subjectName;
  311. this.address = item.address
  312. this.buildingId = item.buildingId;
  313. this.deptId = item.buildingId;
  314. this.floorId = item.floorId;
  315. this.title = item.title;
  316. this.type = item.type;
  317. this.lablayout(this.buildingId,this.floorId);
  318. this.evacuateTwo();
  319. this.itemData.subjectId = item.subId;
  320. this.laboratoryInfo();
  321. }else{
  322. //判断入口(首页按钮)
  323. this.getRedis();
  324. }
  325. },
  326. //根据账户信息查询学院楼栋数据
  327. async getBuilding(buildingId){
  328. const {data} = await getBuilding(buildingId)
  329. // 过滤了三楼
  330. let list = [];
  331. for(let i=0;i<data.data.length;i++){
  332. if(data.data[i].id != 7){
  333. list.push(data.data[i]);
  334. }
  335. }
  336. this.$set(this,'floorList',list);
  337. this.$set(this,'floorName',"");
  338. this.$set(this,'floorId',"");
  339. this.$set(this,'fjListArray',[]);
  340. this.$set(this,'subName',"");
  341. this.$set(this,'subId',"");
  342. // if(data.data[0]){
  343. // this.$set(this,'floorName',data.data[0].name);
  344. // this.$set(this,'floorId',data.data[0].id);
  345. // this.lablayout(this.buildingId,this.floorId);
  346. // }
  347. },
  348. //获取实验室布局
  349. async lablayout(buildingId,floorId){
  350. console.log('buildingId',buildingId)
  351. console.log('floorId',floorId)
  352. let self = this;
  353. const {data} = await lablayout(buildingId)
  354. if(data.code == 200){
  355. for(let i=0;i<data.data.length;i++){
  356. if(data.data[i].id == floorId){
  357. let newList = [];
  358. self.fjList = data.data[i].list;
  359. for(let o=0;o<data.data[i].list.length;o++){
  360. if(data.data[i].list[o].subjectId != -1){
  361. newList.push(data.data[i].list[o]);
  362. }
  363. }
  364. this.$set(this,'fjListArray',newList);
  365. // if(newList[0]){
  366. // console.log("newList",newList[0])
  367. // this.$set(this,'subName',newList[0].subjectName);
  368. // this.$set(this,'subId',newList[0].subjectId);
  369. // }
  370. }
  371. }
  372. }
  373. },
  374. //学院楼栋选中
  375. buildingChange(e){
  376. // this.$set(this,'buildingIndex',e.detail.value);
  377. this.$set(this,'buildingName',this.buildingList[e.detail.value].label);
  378. this.$set(this,'buildingId',this.buildingList[e.detail.value].value);
  379. this.$set(this,'deptId',this.buildingList[e.detail.value].value);
  380. this.getBuilding(this.buildingList[e.detail.value].value);
  381. },
  382. //楼层选中
  383. floorChange(e){
  384. // this.$set(this,'floorIndex',e.detail.value);
  385. this.$set(this,'floorName',this.floorList[e.detail.value].name);
  386. this.$set(this,'floorId',this.floorList[e.detail.value].id);
  387. this.lablayout(this.buildingId,this.floorList[e.detail.value].id);
  388. },
  389. //实验室选择
  390. fjListChange(e){
  391. this.$set(this,'subName',this.fjListArray[e.detail.value].subjectName);
  392. this.$set(this,'subId',this.fjListArray[e.detail.value].subjectId);
  393. this.itemData.name=this.fjListArray[e.detail.value].subjectName
  394. this.itemData.floorId=this.fjListArray[e.detail.value].floorId
  395. this.itemData.id=this.fjListArray[e.detail.value].id
  396. this.itemData.subjectId=this.fjListArray[e.detail.value].subjectId
  397. },
  398. getAppExitLine(){
  399. let list = [{type:"lab/exit/line"}];
  400. getApp().appMqttOn(1,list);
  401. },
  402. shadeTypeClick(){
  403. this.broadcastType = !this.broadcastType
  404. },
  405. async evacuateTwo(){
  406. const {data} = await lineEvacuateTow(this.subId,0)
  407. if(data.code == 200){
  408. if(data.data){
  409. this.pageType = 2;
  410. uni.showToast({
  411. title: '执行成功',
  412. icon:"none",
  413. mask:true,
  414. duration: 2000
  415. });
  416. this.initialization(data.data);
  417. }
  418. }
  419. },
  420. //跳转摄像头列表
  421. goVideo(){
  422. uni.navigateTo({
  423. url:'/pages_manage/workbench/laboratory/monitor?item='+encodeURIComponent(JSON.stringify(this.itemData))+'&deptId='+this.deptId
  424. })
  425. },
  426. //获取实验室摄像头
  427. async laboratoryInfo(){
  428. let _this = this;
  429. const {data} = await laboratoryInfo(_this.itemData.subjectId);
  430. if(data.code == 200){
  431. let list = data.data[0];
  432. list.labHardwareVOList.forEach(function(item){
  433. if(item.hardwareTypeEnum.enumName=='VIDEO_MONITOR'){
  434. console.log(item.hardwareNUM)
  435. _this.videoHardwareNUM.push(item.hardwareNUM)
  436. }
  437. })
  438. this.getCameraByFloor();
  439. }
  440. },
  441. //获取楼层摄像头列表
  442. async getCameraByFloor(){
  443. let _this=this;
  444. const {data} = await getCameraByFloor({floorId:this.floorId})
  445. if(data.code == 200){
  446. if(data.data[0]){
  447. let list=_this.videoHardwareNUM.concat(data.data)
  448. let qc=[]
  449. for(var i = 0; i < list.length-1; i++){
  450. for(var j = i+1; j < list.length; j++){
  451. if(list[i]===list[j]){
  452. list.splice(j,1);
  453. j--;
  454. }
  455. }
  456. }
  457. console.log(list)
  458. this.wenchangGetStartList(list);
  459. }
  460. }
  461. },
  462. async wenchangGetStartList(rows){
  463. let self = this;
  464. let list = "";
  465. for(let i=0;i<rows.length;i++){
  466. list = list + rows[i]+","
  467. }
  468. let obj = {
  469. page:"1",
  470. count:"100",
  471. deviceIds:list,
  472. // deviceIds:'440102004920000000011111,2C440102004920000000011112',
  473. };
  474. const {data} = await jinanGetStartList(obj)
  475. if(data.code == 200){
  476. let list = [];
  477. for(let i=0;i<data.data.length;i++){
  478. let text = 'https://lab.sxitdlc.com/wenchang/stream/';
  479. let url = data.data[i].result.body.data.hls;
  480. url = url.split("rtp/");
  481. let newUrl = text+'rtp/'+url[1];
  482. let obj = {
  483. name:"楼道监控"+(i+1),
  484. id:data.data[i].result.body.data.deviceID,
  485. url:newUrl,
  486. }
  487. list.push(obj)
  488. }
  489. this.urlList = list;
  490. }
  491. },
  492. //点击选择喇叭
  493. trumpetClick(index){
  494. this.trumpetList[index].type = !this.trumpetList[index].type
  495. },
  496. //录制
  497. recordButton(e){
  498. console.log("按下")
  499. let self = this;
  500. let num = 0;
  501. for(let i=0;i<self.trumpetList.length;i++){
  502. if(self.trumpetList[i].type){
  503. num++
  504. }
  505. }
  506. if(num == 0){
  507. uni.showToast({
  508. title: '请选择喇叭',
  509. icon:"none",
  510. mask:true,
  511. duration: 2000
  512. });
  513. return
  514. }
  515. this.liveType=true;
  516. console.log('录制',e)
  517. this.startPoint = e.touches[0];//记录长按时开始点信息,后面用于计算上划取消时手指滑动的距离。
  518. const options = {
  519. duration: 10000,
  520. sampleRate: 16000,
  521. numberOfChannels: 1,
  522. encodeBitRate: 48000,
  523. format: 'mp3',
  524. frameSize: 50
  525. }
  526. this.recorderManager.start(options);//开始录音
  527. this.recorderManager.onStart(() => {
  528. console.log('recorder start')
  529. })
  530. this.recorderManager.onError((res) => {
  531. console.log(res);
  532. })
  533. wx.showToast({
  534. title: "正在录音,上划取消发送",
  535. icon: "none",
  536. duration: 60000//先定义个60秒,后面可以手动调用wx.hideToast()隐藏
  537. });
  538. this.sendLock = false;//长按时是不上锁的。
  539. },
  540. //取消
  541. cancelButton(e){
  542. console.log("移动")
  543. let self = this;
  544. let num = 0;
  545. for(let i=0;i<self.trumpetList.length;i++){
  546. if(self.trumpetList[i].type){
  547. num++
  548. }
  549. }
  550. if(num == 0){
  551. return
  552. }
  553. this.liveType=false;
  554. console.log('取消',e)
  555. let moveLenght = e.touches[e.touches.length - 1].clientY - this.startPoint.clientY; //移动距离
  556. if (Math.abs(moveLenght) > 50) {
  557. wx.showToast({
  558. title: "松开手指,取消发送",
  559. icon: "none",
  560. duration: 60000
  561. });
  562. this.sendLock = true;//触发了上滑取消发送,上锁
  563. } else {
  564. wx.showToast({
  565. title: "正在录音,上划取消发送",
  566. icon: "none",
  567. duration: 60000
  568. });
  569. this.sendLock = false;//上划距离不足,依然可以发送,不上锁
  570. }
  571. },
  572. //发送
  573. sendButton(e){
  574. console.log("松开")
  575. let self = this;
  576. let num = 0;
  577. for(let i=0;i<self.trumpetList.length;i++){
  578. if(self.trumpetList[i].type){
  579. num++
  580. }
  581. }
  582. if(num == 0){
  583. return
  584. }
  585. this.liveType=false;
  586. console.log('发送',e)
  587. wx.hideToast();//结束录音、隐藏Toast提示框
  588. this.recorderManager.stop();//结束录音
  589. this.recorderManager.onStop((res) => {
  590. if(!this.sendLock){
  591. console.log('1', this.recorderManager)
  592. this.uploadImg(res.tempFilePath);
  593. }
  594. console.log('停止录音', res.tempFilePath)
  595. console.log("sendLock",this.sendLock);
  596. })
  597. },
  598. //上传MP3
  599. async uploadImg(tempFilePaths){
  600. var self = this;
  601. uni.uploadFile({
  602. url: config.base_url+'/file/upload', //仅为示例,非真实的接口地址
  603. header:{'Authorization':uni.getStorageSync('token')},
  604. filePath: tempFilePaths,
  605. name: 'file',
  606. formData: {
  607. 'user': 'test'
  608. },
  609. success: (uploadFileRes) => {
  610. let res = JSON.parse(uploadFileRes.data);
  611. if(res.code == 200){
  612. console.log("上传成功",res)
  613. // self.textParseUrlIps(res.data.url);
  614. self.textParseUrlIps(config.base_url+ '/' +res.data.url);
  615. // self.newData.imgList.push(res.data.url);
  616. }else{
  617. uni.showToast({
  618. title: res.msg,
  619. icon:"none",
  620. mask:true,
  621. duration: 2000
  622. });
  623. }
  624. },
  625. fail: err => {
  626. uni.hideLoading()
  627. },
  628. complete: () => {
  629. }
  630. });
  631. },
  632. //发送语音
  633. async textParseUrlIps(text){
  634. let self = this;
  635. let newList = [];
  636. for(let i=0;i<self.trumpetList.length;i++){
  637. if(self.trumpetList[i].type){
  638. let obj = {
  639. sn:self.trumpetList[i].deviceSn,
  640. port:self.trumpetList[i].port,
  641. deviceIp:self.trumpetList[i].deviceIp,
  642. type:"",
  643. name:"",
  644. speed:"",
  645. params:{
  646. tid:"",
  647. vol:self.trumpetList[i].deviceVol,
  648. urls:[]
  649. }
  650. };
  651. newList.push(obj);
  652. }
  653. }
  654. const {data} = await textParseUrlIps(newList,text)
  655. if(data.code == 200){
  656. uni.showToast({
  657. title: '发送成功',
  658. icon:"none",
  659. mask:true,
  660. duration: 2000
  661. });
  662. }
  663. },
  664. //监听应急疏散数据变更
  665. getMqttLineData(val){
  666. console.log('收到疏散MQTT')
  667. let self = this;
  668. if(val.EXIT_LINE_MESSAGE){
  669. console.log('数据改变')
  670. this.evacuate();
  671. }else{
  672. console.log('应急疏散已结束')
  673. uni.showToast({
  674. title: '应急疏散已结束',
  675. icon:"none",
  676. mask:true,
  677. duration: 2000
  678. });
  679. setTimeout(function(){
  680. uni.navigateBack();
  681. },2000);
  682. }
  683. },
  684. //获取当前疏散数据
  685. async getRedis(){
  686. let self = this;
  687. const {data} = await getRedis()
  688. if(data.code == 200){
  689. if(data.data){
  690. this.isEvacuate=false;
  691. this.deptId = data.data.deptId;
  692. this.buildingId = data.data.buildId;
  693. this.floorId = data.data.floorId;
  694. this.subId = data.data.subId;
  695. this.subName = data.data.subName;
  696. this.address = data.data.deptName+'-'+data.data.buildName+'-'+data.data.floorName
  697. // this.lablayout(data.data.buildId,data.data.floorId);
  698. this.lablayout(this.buildingId,this.floorId);
  699. this.evacuate();
  700. this.itemData.subjectId = data.data.subId;
  701. this.laboratoryInfo();
  702. // this.getBuilding(this.buildingId);
  703. }else{
  704. this.pageType = 1;
  705. this.isEvacuate=true;
  706. }
  707. }
  708. },
  709. //疏散路线选择
  710. buttonChangeTwo(e){
  711. this.buttonArrayIndex = e.detail.value;
  712. },
  713. //执行疏散
  714. async evacuate(){
  715. console.log("执行疏散")
  716. const {data} = await evacuate(this.subId)
  717. if(data.code == 200){
  718. if(data.data){
  719. this.initialization(data.data);
  720. }
  721. }
  722. },
  723. //结束疏散
  724. closireButton(){
  725. let self = this;
  726. uni.showModal({
  727. content: '确认结束疏散吗?',
  728. cancelColor:"#999",
  729. confirmColor:"#0183FA",
  730. success: function (res) {
  731. if (res.confirm) {
  732. self.closure();
  733. this.isEvacuate=true;
  734. console.log('用户点击确定');
  735. } else if (res.cancel) {
  736. console.log('用户点击取消');
  737. }
  738. }
  739. });
  740. },
  741. async closure(){
  742. const {data} = await closure(this.subId)
  743. if(data.code == 200){
  744. uni.showToast({
  745. title: '操作成功',
  746. icon:"none",
  747. mask:true,
  748. duration: 2000
  749. });
  750. setTimeout(function(){
  751. uni.navigateBack();
  752. },2000);
  753. }
  754. },
  755. buttonChange(e){
  756. this.buttonArrayIndex = e.detail.value;
  757. this.lineEvacuate();
  758. },
  759. /* 确认 */
  760. confirmBtn(){
  761. if(!this.subId){
  762. uni.showToast({
  763. title: '请选择实验室',
  764. icon:"none",
  765. mask:true,
  766. duration: 2000
  767. });
  768. return
  769. }
  770. this.address = this.buildingName+''+this.floorName
  771. this.lineEvacuateTow();
  772. this.laboratoryInfo();
  773. },
  774. /* 2.5获取疏散线路 */
  775. async lineEvacuateTow(){
  776. if(!this.buttonArrayIndex){
  777. uni.showToast({
  778. title: '请选择疏散路线',
  779. icon:"none",
  780. mask:true,
  781. duration: 2000
  782. });
  783. return
  784. }
  785. const {data} = await lineEvacuateTow(this.subId,this.buttonArray[this.buttonArrayIndex].id)
  786. if(data.code == 200){
  787. if(data.data){
  788. this.pageType = 2;
  789. uni.showToast({
  790. title: '执行成功',
  791. icon:"none",
  792. mask:true,
  793. duration: 2000
  794. });
  795. this.initialization(data.data);
  796. }
  797. }
  798. },
  799. //执行疏散
  800. async lineEvacuate(){
  801. if(!this.subId){
  802. uni.showToast({
  803. title: '请选择实验室',
  804. icon:"none",
  805. mask:true,
  806. duration: 2000
  807. });
  808. return
  809. }
  810. if(!this.buttonArrayIndex){
  811. uni.showToast({
  812. title: '请选择疏散路线',
  813. icon:"none",
  814. mask:true,
  815. duration: 2000
  816. });
  817. return
  818. }
  819. const {data} = await lineEvacuate(this.subId,this.buttonArray[this.buttonArrayIndex].id)
  820. if(data.code == 200){
  821. if(data.data){
  822. console.log('执行疏散')
  823. this.isEvacuate=false;
  824. uni.showToast({
  825. title: '执行成功',
  826. icon:"none",
  827. mask:true,
  828. duration: 2000
  829. });
  830. this.initialization(data.data);
  831. }
  832. }
  833. },
  834. //灯初始化
  835. initialization(list){
  836. console.log('灯数据',list);
  837. let self = this;
  838. let newList = [
  839. {
  840. id:"5",
  841. type:false,
  842. },
  843. {
  844. id:"2",
  845. type:false,
  846. },
  847. {
  848. id:"3",
  849. type:false,
  850. },
  851. {
  852. id:"4",
  853. type:false,
  854. },
  855. {
  856. id:"1",
  857. type:false,
  858. },
  859. {
  860. id:"6",
  861. type:false,
  862. },
  863. ];
  864. for(let i=0;i<list.length;i++){
  865. for(let o=0;o<newList.length;o++){
  866. if(list[i].lightId == newList[o].id){
  867. newList[o].type = true;
  868. }
  869. }
  870. }
  871. this.lightList = newList;
  872. console.log('灯数据改变',this.lightList);
  873. this.pageType = 2;
  874. this.$forceUpdate();
  875. this.getDeviceList();
  876. },
  877. async getDeviceList(){
  878. let obj ={
  879. floorId:this.floorId,
  880. page:1,
  881. pageSize:100,
  882. };
  883. const {data} = await getDeviceList(obj)
  884. if(data.code == 200){
  885. for(let i=0;i<data.data.length;i++){
  886. data.data[i].type = false;
  887. }
  888. this.$set(this,'trumpetList',data.data)
  889. }
  890. },
  891. //摄像头切换
  892. scrollBoxClick(index){
  893. this.videoIndex = index;
  894. },
  895. },
  896. beforeDestroy(){
  897. //断开mqtt连接
  898. getApp().offMQTT();
  899. //删除应急疏散监听
  900. getApp().deleteLineData();
  901. }
  902. }
  903. </script>
  904. <style lang="stylus" scoped>
  905. #emergencyEvacuationBig{
  906. height:100%;
  907. width:100%;
  908. display:flex;
  909. flex-direction:column;
  910. overflow-y:scroll;
  911. .setUpEvacuation{
  912. flex:1;
  913. display:flex;
  914. flex-direction:column;
  915. overflow-y:scroll;
  916. .evacuation-max-box{
  917. width:710rpx;
  918. margin:20rpx 20rpx;
  919. background #fff
  920. border-radius:20rpx;
  921. padding:20rpx 0;
  922. .picker-max-box{
  923. .picker-title-box{
  924. padding:0 20rpx;
  925. display flex
  926. view{
  927. line-height:80rpx;
  928. font-size:28rpx;
  929. }
  930. view:nth-child(1){
  931. color:red;
  932. }
  933. view:nth-child(2){
  934. }
  935. view:nth-child(3){
  936. color:#999;
  937. }
  938. }
  939. .picker-min-box{
  940. display flex;
  941. height:80rpx;
  942. width:667rpx;
  943. border:1rpx solid #a2a2a2;
  944. border-radius:10rpx;
  945. margin:0 20rpx;
  946. view{
  947. flex:1;
  948. line-height:80rpx;
  949. padding:0 20rpx;
  950. color:#999;
  951. font-size:28rpx;
  952. overflow: hidden
  953. }
  954. img{
  955. width:24rpx;
  956. height:12rpx;
  957. margin:35rpx 23rpx;
  958. }
  959. }
  960. }
  961. }
  962. }
  963. .implementEvacuation{
  964. flex:1;
  965. display:flex;
  966. flex-direction:column;
  967. overflow-y:scroll;
  968. .evacuation-max-box{
  969. width:710rpx;
  970. margin:20rpx 20rpx;
  971. /* background #fff */
  972. border-radius:20rpx;
  973. padding:20rpx 0 30rpx;
  974. .evacuation-title-box{
  975. // height:150rpx;
  976. //border-bottom:1rpx solid #dedede;
  977. background: #FFFFFF;
  978. border-radius: 20rpx;
  979. padding:34rpx 22rpx;
  980. box-sizing :border-box;
  981. .evacuation-title-name-box{
  982. font-size: 30rpx;
  983. font-family: PingFang SC;
  984. font-weight: 500;
  985. color: #333333;
  986. line-height: 30rpx;
  987. }
  988. .site{
  989. font-size: 28rpx;
  990. font-family: PingFang SC;
  991. font-weight: 500;
  992. color: #999999;
  993. line-height: 30rpx;
  994. margin-top:32rpx;
  995. display :flex;
  996. justify-content :flex-start;
  997. align-items center;
  998. >img{
  999. width: 28rpx;
  1000. height: 30rpx;
  1001. margin-right:18rpx;
  1002. }
  1003. }
  1004. }
  1005. /* 视频监控-选择疏散路线 */
  1006. .monito{
  1007. width: 710rpx;
  1008. height: 161rpx;
  1009. background: #FFFFFF;
  1010. border-radius: 20rpx;
  1011. padding :0 14rpx;
  1012. box-sizing border-box;
  1013. margin-top :20rpx;
  1014. .monito_li{
  1015. width: 680rpx;
  1016. height: 80rpx;
  1017. font-size: 30rpx;
  1018. font-family: PingFang SC;
  1019. font-weight: 500;
  1020. color: #333333;
  1021. line-height: 80rpx;
  1022. border-bottom: 1rpx solid #E0E0E0;
  1023. display :flex;
  1024. justify-content :space-between;
  1025. .monito_li_r_text{
  1026. font-size:28rpx!important;
  1027. padding-right:37rpx;
  1028. }
  1029. .monito_li_r{
  1030. width :380rpx;
  1031. font-size: 24rpx;
  1032. font-family: PingFang SC;
  1033. font-weight: 500;
  1034. color: #0183FA;
  1035. line-height: 80rpx;
  1036. display :flex;
  1037. justify-content :flex-end;
  1038. align-items center;
  1039. >img{
  1040. width: 9rpx;
  1041. height: 22rpx;
  1042. margin-left :20rpx;
  1043. }
  1044. .evacuation-title-button-box{
  1045. display flex
  1046. overflow hidden
  1047. view{
  1048. line-height:61rpx;
  1049. font-size:28rpx;
  1050. }
  1051. .colorA{
  1052. color: #0183FA;
  1053. }
  1054. .colorB{
  1055. color:#0183FA;
  1056. }
  1057. img{
  1058. margin:28rpx 20rpx 0;
  1059. width:24rpx;
  1060. height:9rpx;
  1061. }
  1062. }
  1063. }
  1064. }
  1065. }
  1066. .evacuation-scroll-box{
  1067. height:95rpx;
  1068. overflow-x scroll
  1069. overflow-y hidden
  1070. white-space:nowrap;
  1071. margin:0 20rpx;
  1072. view{
  1073. line-height:95rpx;
  1074. font-size:28rpx;
  1075. display inline-block
  1076. margin-right:45rpx;
  1077. }
  1078. .scroll-box-color{
  1079. color:#0183FA;
  1080. }
  1081. }
  1082. .evacuation-video-box{
  1083. width:668rpx;
  1084. height:341rpx;
  1085. margin:0 auto;
  1086. position relative
  1087. video{
  1088. position absolute
  1089. top:0;
  1090. left:0;
  1091. width:668rpx;
  1092. height:341rpx;
  1093. margin:0 auto;
  1094. }
  1095. .video-a{
  1096. z-index:100;
  1097. }
  1098. .video-b{
  1099. z-index:0;
  1100. }
  1101. }
  1102. /* 路线图 */
  1103. .roadmap{
  1104. width: 710rpx;
  1105. height: 464rpx;
  1106. background: #FFFFFF;
  1107. border-radius: 20rpx;
  1108. padding :20rpx 20rpx 0;
  1109. box-sizing :border-box;
  1110. margin-top :20rpx;
  1111. .roadmap_t{
  1112. font-size: 30rpx;
  1113. font-family: PingFang SC;
  1114. font-weight: 500;
  1115. color: #333333;
  1116. line-height: 30rpx;
  1117. display:flex;
  1118. .monito_li_r_l{
  1119. flex:1;
  1120. line-height:61rpx;
  1121. font-size:28rpx;
  1122. }
  1123. .monito_li_r{
  1124. width :380rpx;
  1125. font-size: 24rpx;
  1126. font-family: PingFang SC;
  1127. font-weight: 500;
  1128. color: #0183FA;
  1129. line-height: 80rpx;
  1130. display :flex;
  1131. justify-content :flex-end;
  1132. align-items center;
  1133. >img{
  1134. width: 9rpx;
  1135. height: 22rpx;
  1136. margin-left :20rpx;
  1137. }
  1138. .evacuation-title-button-box{
  1139. display flex
  1140. overflow hidden
  1141. view{
  1142. line-height:61rpx;
  1143. font-size:28rpx;
  1144. }
  1145. .colorA{
  1146. color: #0183FA;
  1147. }
  1148. .colorB{
  1149. color:#0183FA;
  1150. }
  1151. img{
  1152. margin:28rpx 20rpx 0;
  1153. width:24rpx;
  1154. height:9rpx;
  1155. }
  1156. }
  1157. }
  1158. }
  1159. .evacuation-map-box{
  1160. width:668rpx;
  1161. height:348rpx;
  1162. margin:0 auto;
  1163. overflow:hidden;
  1164. border:1rpx solid #E0E0E0;
  1165. margin-top:20rpx;
  1166. .map-1{
  1167. background:url(../images/kuangdaMap/map1.png);
  1168. .evacuation-map-min-for-box:nth-child(1){
  1169. margin:4rpx 0 0 0;
  1170. width:54rpx;
  1171. height:102rpx;
  1172. }
  1173. .evacuation-map-min-for-box:nth-child(2){
  1174. margin:4rpx 54rpx 0 0;
  1175. width:54rpx;
  1176. height:102rpx;
  1177. }
  1178. .evacuation-map-min-for-box:nth-child(3){
  1179. margin:4rpx 54rpx 0 0;
  1180. width:100rpx;
  1181. height:102rpx;
  1182. }
  1183. .evacuation-map-min-for-box:nth-child(4){
  1184. margin:4rpx 0 0 0;
  1185. width:135rpx;
  1186. height:102rpx;
  1187. }
  1188. .evacuation-map-min-for-box:nth-child(5){
  1189. margin:4rpx 0 0 0;
  1190. width:95rpx;
  1191. height:102rpx;
  1192. }
  1193. .evacuation-map-min-for-box:nth-child(6){
  1194. margin:4rpx 0 0 0;
  1195. width:54rpx;
  1196. height:102rpx;
  1197. }
  1198. .evacuation-map-min-for-box:nth-child(7){
  1199. margin:78rpx 0 0 0;
  1200. width:130rpx;
  1201. height:102rpx;
  1202. }
  1203. .evacuation-map-min-for-box:nth-child(8){
  1204. margin:78rpx 0 0 0;
  1205. width:149rpx;
  1206. height:102rpx;
  1207. }
  1208. .evacuation-map-min-for-box:nth-child(9){
  1209. margin:78rpx 0 0 0;
  1210. width:84rpx;
  1211. height:102rpx;
  1212. }
  1213. .evacuation-map-min-for-box:nth-child(10){
  1214. margin:78rpx 0 0 0;
  1215. width:84rpx;
  1216. height:102rpx;
  1217. }
  1218. .evacuation-map-min-for-box:nth-child(11){
  1219. margin:78rpx 0 0 0;
  1220. width:94rpx;
  1221. height:102rpx;
  1222. }
  1223. .evacuation-map-min-for-box:nth-child(12){
  1224. margin:78rpx 0 0 0;
  1225. width:44rpx;
  1226. height:102rpx;
  1227. }
  1228. .evacuation-map-min-for-box:nth-child(13){
  1229. margin:78rpx 0 0 0;
  1230. width:64rpx;
  1231. height:102rpx;
  1232. }
  1233. .map-min-img:nth-child(14){
  1234. top: 134rpx;
  1235. left: 80rpx;
  1236. }
  1237. .map-min-img:nth-child(15){
  1238. top: 134rpx;
  1239. left: 160rpx;
  1240. }
  1241. .map-min-img:nth-child(16){
  1242. top: 134rpx;
  1243. left:280rpx;
  1244. }
  1245. .map-min-img:nth-child(17){
  1246. top: 134rpx;
  1247. left:340rpx;
  1248. }
  1249. .map-min-img:nth-child(18){
  1250. top: 134rpx;
  1251. left:460rpx;
  1252. }
  1253. .map-min-img:nth-child(19){
  1254. top: 134rpx;
  1255. left:540rpx;
  1256. }
  1257. }
  1258. .map-2{
  1259. background:url(../images/kuangdaMap/map2.png);
  1260. .evacuation-map-min-for-box:nth-child(1){
  1261. margin:4rpx 0 0 0;
  1262. width:54rpx;
  1263. height:102rpx;
  1264. }
  1265. .evacuation-map-min-for-box:nth-child(2){
  1266. margin:4rpx 54rpx 0 0;
  1267. width:54rpx;
  1268. height:102rpx;
  1269. }
  1270. .evacuation-map-min-for-box:nth-child(3){
  1271. margin:4rpx 54rpx 0 0;
  1272. width:100rpx;
  1273. height:102rpx;
  1274. }
  1275. .evacuation-map-min-for-box:nth-child(4){
  1276. margin:4rpx 0 0 0;
  1277. width:135rpx;
  1278. height:102rpx;
  1279. }
  1280. .evacuation-map-min-for-box:nth-child(5){
  1281. margin:4rpx 0 0 0;
  1282. width:145rpx;
  1283. height:102rpx;
  1284. }
  1285. .evacuation-map-min-for-box:nth-child(6){
  1286. margin:4rpx 0 0 0;
  1287. width:106rpx;
  1288. height:102rpx;
  1289. }
  1290. .evacuation-map-min-for-box:nth-child(7){
  1291. margin:78rpx 0 0 0;
  1292. width:106rpx;
  1293. height:102rpx;
  1294. }
  1295. .evacuation-map-min-for-box:nth-child(8){
  1296. margin:78rpx 0 0 0;
  1297. width:100rpx;
  1298. height:102rpx;
  1299. }
  1300. .evacuation-map-min-for-box:nth-child(9){
  1301. margin:78rpx 0 0 0;
  1302. width:100rpx;
  1303. height:102rpx;
  1304. }
  1305. .evacuation-map-min-for-box:nth-child(10){
  1306. margin:78rpx 0 0 0;
  1307. width:92rpx;
  1308. height:102rpx;
  1309. }
  1310. .evacuation-map-min-for-box:nth-child(11){
  1311. margin:78rpx 0 0 0;
  1312. width:90rpx;
  1313. height:102rpx;
  1314. }
  1315. .evacuation-map-min-for-box:nth-child(12){
  1316. margin:78rpx 0 0 0;
  1317. width:53rpx;
  1318. height:102rpx;
  1319. }
  1320. .map-min-img:nth-child(13){
  1321. top: 134rpx;
  1322. left: 80rpx;
  1323. }
  1324. .map-min-img:nth-child(14){
  1325. top: 134rpx;
  1326. left: 160rpx;
  1327. }
  1328. .map-min-img:nth-child(15){
  1329. top: 134rpx;
  1330. left:280rpx;
  1331. }
  1332. .map-min-img:nth-child(16){
  1333. top: 134rpx;
  1334. left:340rpx;
  1335. }
  1336. .map-min-img:nth-child(17){
  1337. top: 134rpx;
  1338. left:460rpx;
  1339. }
  1340. .map-min-img:nth-child(18){
  1341. top: 134rpx;
  1342. left:540rpx;
  1343. }
  1344. }
  1345. .map-3{
  1346. background:url(../images/kuangdaMap/map3.png);
  1347. }
  1348. .evacuation-map-big-box{
  1349. height:293rpx;
  1350. width:644rpx;
  1351. // background:url(../images/Version2.3/icon_bj_syspmtcy_jinan.png);
  1352. background-size 100%
  1353. margin:28rpx 13rpx ;
  1354. position relative
  1355. .evacuation-map-min-for-box{
  1356. overflow: hidden;
  1357. display: inline-block;
  1358. line-height:70rpx;
  1359. text-align: center;
  1360. font-size:14rpx;
  1361. }
  1362. .evacuation-map-min-for-box-color{
  1363. background: rgba(0,189,255,0.3);
  1364. }
  1365. .map-min-img{
  1366. position: absolute;
  1367. width:34rpx;
  1368. height:22rpx;
  1369. }
  1370. }
  1371. }
  1372. }
  1373. .video-max-box{
  1374. width: 710rpx;
  1375. height: 780rpx;
  1376. overflow-y scroll;
  1377. background: #FFFFFF;
  1378. border-radius: 20rpx;
  1379. padding :22rpx 30rpx 30rpx;
  1380. box-sizing :border-box;
  1381. margin-top :20rpx;
  1382. margin-bottom:120rpx;
  1383. video{
  1384. width:645rpx;
  1385. height:355rpx;
  1386. }
  1387. }
  1388. .bottom-button-box{
  1389. position absolute;
  1390. bottom:20rpx;
  1391. display flex;
  1392. width:670rpx;
  1393. margin:20rpx;
  1394. view{
  1395. width:335rpx;
  1396. height:100rpx;
  1397. line-height:100rpx;
  1398. text-align center;
  1399. color:#fff;
  1400. font-size:28rpx;
  1401. }
  1402. view:nth-child(1){
  1403. border-top-left-radius :50rpx;
  1404. border-bottom-left-radius :50rpx;
  1405. background:#FF9C00;
  1406. }
  1407. view:nth-child(2){
  1408. border-top-right-radius :50rpx;
  1409. border-bottom-right-radius :50rpx;
  1410. background:#0183FA;
  1411. }
  1412. }
  1413. }
  1414. .live-button{
  1415. width:650rpx;
  1416. height:100rpx;
  1417. line-height:100rpx;
  1418. text-align center;
  1419. font-size:28rpx;
  1420. margin:50rpx auto 0;
  1421. border-radius:20rpx;
  1422. }
  1423. .live-color-a{
  1424. color:#fff;
  1425. background:#FF8686;
  1426. }
  1427. .live-color-b{
  1428. color:#fff;
  1429. background:#25C95B;
  1430. }
  1431. .shade-max-big-box{
  1432. height:100%;
  1433. width:100%;
  1434. position fixed
  1435. display flex;
  1436. flex-direction column
  1437. z-index:10;
  1438. background :rgba(0,0,0,0.2);
  1439. .null-box{
  1440. flex:1;
  1441. }
  1442. /* 语音广播-执行疏散 */
  1443. .broadcast{
  1444. width: 100%;
  1445. // height: 532rpx;
  1446. background: #FFFFFF;
  1447. border-top-left-radius :20rpx;
  1448. border-top-right-radius :20rpx
  1449. padding :22rpx 30rpx 30rpx;
  1450. box-sizing :border-box;
  1451. margin-top:20rpx;
  1452. .broadcast_t{
  1453. font-size: 30rpx;
  1454. font-family: PingFang SC;
  1455. font-weight: 500;
  1456. color: #333333;
  1457. line-height: 30rpx;
  1458. >label{
  1459. font-size: 24rpx;
  1460. font-family: PingFang SC;
  1461. font-weight: 500;
  1462. color: #999999;
  1463. line-height: 30rpx;
  1464. margin-left :16rpx;
  1465. }
  1466. }
  1467. .trumpet-max-box{
  1468. display :flex;
  1469. justify-content :flex-start;
  1470. margin-top :22rpx;
  1471. flex-wrap: wrap;
  1472. .trumpet-for-box{
  1473. display:inline-block;
  1474. width:200rpx;
  1475. height:60rpx;
  1476. line-height:60rpx;
  1477. font-size:24rpx;
  1478. text-align center;
  1479. cursor: pointer;
  1480. overflow: hidden;
  1481. border: 1rpx solid #E0E0E0;
  1482. border-radius:10rpx;
  1483. color: #E0E0E0;
  1484. display :flex;
  1485. justify-content :center;
  1486. margin-right :20rpx;
  1487. margin-bottom: 10rpx;
  1488. >img{
  1489. width:36rpx;
  1490. height:34rpx;
  1491. margin :12rpx 20rpx 0 25rpx;
  1492. }
  1493. }
  1494. .trumpet-color-a{
  1495. border:1px solid #0183FA;
  1496. color:#0183FA;
  1497. }
  1498. .trumpet-color-b{
  1499. border:1px solid #CCCCCC;
  1500. color:#999;
  1501. }
  1502. }
  1503. .broadcast_m{
  1504. width :100%;
  1505. .broadcast_m_t{
  1506. width: 142rpx;
  1507. height: 142rpx;
  1508. margin :30rpx 0 0 258rpx;
  1509. position :relative;
  1510. font-size: 24rpx;
  1511. font-family: PingFang SC;
  1512. font-weight: 500;
  1513. line-height: 170rpx;
  1514. text-align center
  1515. >img{
  1516. width: 142rpx;
  1517. height: 142rpx;
  1518. position :absolute;
  1519. }
  1520. >label{
  1521. width :100%;
  1522. font-size: 24rpx;
  1523. font-family: PingFang SC;
  1524. font-weight: 500;
  1525. color: #0183FA;
  1526. line-height: 24rpx;
  1527. display :inline-block;
  1528. text-align :center;
  1529. position :absolute;
  1530. top:76rpx;
  1531. }
  1532. /* 按下 */
  1533. .press_color{
  1534. color: #FFFFFF;
  1535. }
  1536. /* 松开 */
  1537. .slip_color{
  1538. color: #0183FA;
  1539. }
  1540. }
  1541. .broadcast_m_t_back_a{
  1542. background:url(@/images/icon_sskz_skfs.png);
  1543. background-size 100%
  1544. color: #FFFFFF;
  1545. }
  1546. .broadcast_m_t_back_b{
  1547. background:url(@/images/icon_sskz_azsh.png);
  1548. background-size 100%
  1549. color: #0183FA;
  1550. }
  1551. .broadcast_m_b{
  1552. font-size: 24rpx;
  1553. font-family: PingFang SC;
  1554. font-weight: 500;
  1555. color: #999999;
  1556. line-height: 24rpx;
  1557. text-align center;
  1558. margin-top :14rpx;
  1559. }
  1560. }
  1561. /* 疏散按钮 */
  1562. .evacuation-button-box{
  1563. width:650rpx;
  1564. height:100rpx;
  1565. background #0183FA
  1566. color:#fff;
  1567. text-align center;
  1568. line-height:100rpx;
  1569. font-size:28rpx;
  1570. margin:88rpx auto 0;
  1571. border-radius:20rpx;
  1572. }
  1573. }
  1574. }
  1575. }
  1576. .setUpEvacuation-bottom-button{
  1577. width:650rpx;
  1578. height:100rpx;
  1579. background #0183FA
  1580. color:#fff;
  1581. text-align center;
  1582. line-height:100rpx;
  1583. font-size:28rpx;
  1584. margin:50rpx auto;
  1585. border-radius:20rpx;
  1586. }
  1587. }
  1588. </style>