1
0
forked from dyf/APP

6170增加强制报警页面功能

This commit is contained in:
fengerli
2025-08-02 16:32:48 +08:00
parent d0aca9e730
commit c15e7b4aad
9 changed files with 855 additions and 241 deletions

View File

@ -19,7 +19,7 @@
</view>
</view>
<view class="sendFlex" v-if="activeTab && activeTab.id !== ''&& activeTabInfo.communicationMode==0">
<!-- <view class="callpolice">报警</view> -->
<view class="callpolice" @click="callpolice">报警</view>
<view class="Sendmessage" @click="location">位置</view>
<view class="Sendmessage" @click="handleSend">发送信息</view>
</view>
@ -402,6 +402,23 @@
}
})
},
// 报警
callpolice(){
const currentTab = this.tabs[this.activeTab];
const deviceType = currentTab.id || 'all';
console.log(`跳转到发送信息页面\n当前设备类型: ${deviceType}\n设备类型名称: ${currentTab.typeName}`);
uni.navigateTo({
url: '/pages/6170/callPolice/index',
events: {
ack: function(data) {}
},
success: (res) => {
res.eventChannel.emit('devicePolice', {
data: deviceType
});
}
})
},
// 发生短信
handleSend() {
const currentTab = this.tabs[this.activeTab];