代码片段:
<template>
<view class="container">
<map id="carmap" :show-location="false" :latitude="latitude" :longitude="longitude" scale="10" :markers="covers" @markertap="mark" @callouttap="mark">
<cover-view class="search">
<u-search placeholder="搜索企业" :show-action="false" :disabled="true" @click="showList=true"></u-search>
</cover-view>
<cover-view class="controls controls-report">
<u-icon name="bell-fill" color="#FFA800" size="28" label="告警信息" label-color="#3D4060" label-size="24" @click="toAlarm"></u-icon>
</cover-view>
<cover-view class="controls controls-voice">
<u-icon name="mic" color="#15A182" size="48" label="语音播报" label-color="#3D4060" label-size="24" label-pos="bottom" @click="toVoice"></u-icon>
</cover-view>
<cover-view class="controls controls-list">
<u-icon name="list-dot" color="#3F6FFE" size="48" label="列表模式" label-size="24" label-color="#3F6FFE" @click.stop="showList=true"></u-icon>
</cover-view>
</map>
</view>
</template>
唬唬唬 (作者)
你好
2020-11-19 17:01
唬唬唬 (作者)
可以回答一下吗?
2020-11-19 17:02
DCloud_UNI_Anne
回复 唬唬唬: 报错:Property or method "carAlarm" is not defined on the instance but referenced during render.,请提供一下完整示例
2020-11-19 18:47
唬唬唬 (作者)
回复 DCloud_UNI_Anne: 这怎么提供完整示例?carAlarm 是后台的数据 问题是其它的(列表模式、语音播报、告警信息)也是空白的
2020-11-20 09:54