emergencyEvacuationBig.vue 41 KB

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