<template>
<view class="page">
<web-view :src="data.url" :update-title="false" @message="loadWebData"></web-view>
</view>
</template>
<script>
export default {
name: '',
data() {
return {
data: {
url: ''
},
}
},
onShow() {
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
this.data.url = this.data.options.url
},
methods: {
loadWebData(res) {
//console.log(128,res)
if (this.isAlarm && res.detail && res.detail.data[0] == 3) {
this.$store.state.globalData.alarmHandleMap.set(this.guid, this.guid)
}
},
},
}
</script>
<style>
</style>