|
@@ -1364,10 +1364,23 @@ export default {
|
|
|
if (data) {
|
|
|
if (topic == (this.evacuationTopic + this.floorId)) {
|
|
|
console.log('疏散通知', data)
|
|
|
+ let pages = getCurrentPages();
|
|
|
+ let currPage = pages[pages.length - 1]
|
|
|
+
|
|
|
+ console.log('pages',pages)
|
|
|
+ // let currPage = pages[pages.length - 1] //当前页面
|
|
|
+ // let prePage = pages[pages.length - 2] //上一个页面
|
|
|
+ // prePage.$vm.aaa()
|
|
|
//疏散消息
|
|
|
if (data.data == 'FLOOR_EXITLINE') {
|
|
|
this.getRedisEvacuation();
|
|
|
+ if(currPage.route == 'pages/emergencyEvacuationBigFullScreen'){
|
|
|
+ currPage.$vm.mqttPageFunction('FLOOR_EXITLINE')
|
|
|
+ }
|
|
|
} else if (data.data == 'FLOOR_OVER_EXITLINE') {
|
|
|
+ if(currPage.route == 'pages/emergencyEvacuationBigFullScreen'){
|
|
|
+ currPage.$vm.mqttPageFunction('FLOOR_OVER_EXITLINE')
|
|
|
+ }
|
|
|
uni.showToast({
|
|
|
title: '疏散已结束',
|
|
|
icon: "none",
|