<loading id="loading"/>
<van-sticky>
    <header>
        <view slot="content" class="header-title flex_row">
            <view class='goback' bindtap="goBack">
                <van-icon name="arrow-left" size="20px"/>
            </view>
            <text class="titlename">{{paramName}}</text>
            <text class="righttext"></text>
        </view>
    </header>
</van-sticky>
<view class="chartlenged flex_row">
    <view class="flex_row"><image src="../../static/images/lenged.png"/>{{paramName}}</view>
    <view class="flex_row"><view></view>合格区间</view>
</view>
<!-- <view class="chart_contant flex_row"> -->
    <view class="nodate flex_row" wx:if="{{tragetChart&&!tragetChart.length}}">暂无数据</view>
    <envchart tragetChart="{{tragetChart}}" envType="{{envType}}" envName="{{paramName}}" wx:if="{{tragetChart&&tragetChart.length}}"/>
<!-- </view> -->
<view class="param_mian">
    <text class="param_txt">
        根据{{localName}}检测网的新标准，24小时平均值标准值分布如下：
    </text>
    <view class="param_list flex_row">
        <view class="param_icon">
            <!-- <image src="" /> -->
        </view>
        <view class="param_line {{envType=='hcho'?'hcho_line':''}} {{envType=='co2'?'co2_line':''}}  {{envType=='humidity'?'humidity_line':''}} {{seasonNum=='1'?'temperature_line':''}} {{seasonNum=='2'?'temperature_line':''}} {{seasonNum=='3'?'temperature_line3':''}} {{seasonNum=='4'?'temperature_line':''}}"  style="height:{{tableHight}}px">
            <view class="pointer" style="top:{{pointerTop}}px">
                <image src="../../static/images/envPointer.png"/>
            </view>
        </view>
        <view class="param_table">
            <view class="table_header">
                <text class="header_title_one">{{localName}}等级</text>
                <text class="header_title_two">24小时{{localName}}平均值标准值</text>
            </view>
            <block wx:for="{{envLevel[envType+seasonType]}}" wx:for-index="key">
                <view class="table_body">
                    <text class="header_title_one {{item.active?'header_title_one_active':''}}">{{item.name}}</text>
                    <text class="header_title_two">{{item.value}}</text>
                </view>
            </block>

        </view>
    </view>
</view>