statistics.wxml 3.7 KB

1
  1. <view><view class="status_bar"></view><view style="position:relative;top:44px;"><view style="position:fixed;z-index:100;"><uni-nav-bar vue-id="1eb49e68-1" left-icon="back" title="害虫统计" data-event-opts="{{[['^clickLeft',[['clickLeft']]]]}}" bind:clickLeft="__e" bind:__l="__l"></uni-nav-bar></view><view class="statistics"><view class="top_text"><block wx:for="{{toptext}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['changeindex',[index]]]]]}}" class="{{[topindex==index?'title_text_color':'tltle_text']}}" bindtap="__e">{{''+item+''}}</view></block></view><view class="shuju_one"><view class="shuju_one_title _p">害虫趋势统计</view><view class="shuju_one_btn"><view class="schedule_box"><view data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" class="schedule" bindtap="__e"><view class="schedule_value _p">{{titletext[indexone]}}</view><view class="schedule_icon _p"><u-icon vue-id="1eb49e68-2" name="arrow-down" bind:__l="__l"></u-icon></view></view><u-picker vue-id="1eb49e68-3" mode="selector" default-selector="{{[indexone]}}" range="{{titletext}}" value="{{pickertfone}}" data-event-opts="{{[['^confirm',[['confirmFun']]],['^input',[['__set_model',['','pickertfone','$event',[]]]]]]}}" bind:confirm="__e" bind:input="__e" bind:__l="__l"></u-picker><block wx:if="{{tishitf}}"><view data-event-opts="{{[['tap',[['e1',['$event']]]]]}}" class="schedule" bindtap="__e"><view class="schedule_value _p">{{wormdata[indextwo]}}</view><view class="schedule_icon _p"><u-icon vue-id="1eb49e68-4" name="arrow-down" bind:__l="__l"></u-icon></view><u-picker vue-id="1eb49e68-5" mode="selector" default-selector="{{[indextwo]}}" range="{{wormdata}}" value="{{pickertftwo}}" data-event-opts="{{[['^confirm',[['confirmFun2']]],['^input',[['__set_model',['','pickertftwo','$event',[]]]]]]}}" bind:confirm="__e" bind:input="__e" bind:__l="__l"></u-picker></view></block></view></view><block wx:if="{{!canvastishiTF}}"><view class="canvastishi">暂无数据</view></block><block wx:if="{{canvastishiTF}}"><canvas class="charts" style="{{'width:'+(cWidth*pixelRatio+'px')+';'+('height:'+(cHeight*pixelRatio+'px')+';')+('transform:'+('scale('+1/pixelRatio+')')+';')+('margin-left:'+(-cWidth*(pixelRatio-1)/2+'px')+';')+('margin-top:'+(-cHeight*(pixelRatio-1)/2+'px')+';')}}" canvas-id="canvasColumnA" id="canvasColumnA" disable-scroll="true" data-event-opts="{{[['touchstart',[['touchLineA',['$event']]]],['touchmove',[['moveLineA',['$event']]]],['touchend',[['touchEndLineA',['$event']]]]]}}" bindtouchstart="__e" bindtouchmove="__e" bindtouchend="__e"></canvas></block></view><view class="shuju_two"><view class="shuju_one_title _p">害虫比例</view><block wx:if="{{!canvastishiTF}}"><view class="canvastishi">暂无数据</view></block><block wx:if="{{canvastishiTF}}"><canvas class="charts" style="{{'width:'+(cWidth*pixelRatio+'px')+';'+('height:'+(cHeight*pixelRatio+'px')+';')+('transform:'+('scale('+1/pixelRatio+')')+';')+('margin-left:'+(-cWidth*(pixelRatio-1)/2+'px')+';')+('margin-top:'+(-cHeight*(pixelRatio-1)/2+'px')+';')}}" canvas-id="canvasRing" id="canvasRing" data-event-opts="{{[['touchstart',[['touchRing',['$event']]]]]}}" bindtouchstart="__e"></canvas></block></view><block wx:if="{{tableval.length}}"><view class="shuju_table"><view class="table _table"><view class="tr _tr"><view class="_th">害虫名称</view><view class="_th">害虫数量</view><view class="_th">害虫比例</view></view><block wx:for="{{$root.l0}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="tr _tr"><view class="td _td">{{item.$orig.name}}</view><view class="td _td">{{item.$orig.data}}</view><view class="td _td">{{item.g0+"%"}}</view></view></block></view></view></block></view></view></view>