OutputBar.wxml 675 Bytes
<view class="bar-wrap">
    <view class="searchList">
        <block wx:for="{{opts.barList}}" wx:for-item="item" wx:key="index">
            <view class="search-text {{dataType==item.type?'active':''}}" data-condition="dataType" data-type="{{item.type}}" bindtap="selectCondition">{{item.title}}</view>
        </block>
        <view class="search-unit">单位:{{(dataType == 3&&opts.barList.length == 3) || (opts.barList.length == 2&&dataType==1) ?'元':'张'}}</view>
    </view>

    <view class="container">
        <bar-echart class="f2-chart" keys="{{opts.keys}}" chartData="{{chartData}}" color="{{opts.color}}" tickCount="{{opts.tickCount}}" />
    </view>
</view>