<view class=‘device-state-content’>
<view class=‘sign’>
<view class=‘sign-item {{isHighlight==“温度”?“highlight”:false}}’ data-name=“温度” bindtap=‘signTap’>温度 (摄氏度)</view>
<view class=‘sign-item {{isHighlight==“湿度”?“highlight”:false}}’ data-name=“湿度” bindtap=‘signTap’>湿度 (百分比)</view>
<view class=‘sign-item {{isHighlight==“位置”?“highlight”:false}}’ data-name=“位置” bindtap=‘signTap’>位置</view>
</view>
<view class=‘sign-content’>
<view style=‘width:325px;’ data-isShowT=’’ wx:if="{{isHighlight==‘温度’&&geo_info[0].info.t}}">
<canvas style=‘width:100%;height:100px’ canvas-id=‘lineCanvas’ disable-scroll=“true” bindtouchstart=“touchHandlerT”></canvas>
</view>
<view wx:if="{{!geo_info[0].info.t}}">暂无温度数据!</view>
</view>
</view>
本来我的canvas会显示,但是当我点击完湿度又点击温度之后canvas的display还是none