index.wxml 2.5 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="d7812190-1" left-icon="back" title="病虫害识别" data-event-opts="{{[['^clickLeft',[['clickLeft']]]]}}" bind:clickLeft="__e" bind:__l="__l"></uni-nav-bar></view><view class="image_box"><image class="image" src="{{path}}" mode data-event-opts="{{[['tap',[['examine',['$0'],['path']]]]]}}" bindtap="__e"></image></view><block wx:if="{{datasTF}}"><view class="recognition"><view class="recognition_title _p">{{name}}</view><view class="{{[tishi?'recognition_img':'recognition_img_two']}}"><image src="{{path2}}" mode data-event-opts="{{[['error',[['error',['$event']]]],['tap',[['examine',['$0'],['path2']]]]]}}" binderror="__e" bindtap="__e"></image></view><block wx:if="{{tishi}}"><button data-event-opts="{{[['tap',[['examines',['$event']]]]]}}" class="recognition_details" bindtap="__e">查看详情</button></block><block wx:if="{{!tishi}}"><button data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" class="recognition_details" bindtap="__e">再拍一张</button></block></view></block><block wx:else><view class="datas"><view class="datas_title _p">{{name}}</view><block wx:for="{{preventionArr}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="prevention"><view class="prevention_title"><u-icon vue-id="{{'d7812190-2-'+index}}" name="play-right-fill" size="24" color="#55A92D" bind:__l="__l"></u-icon><view class="_p">{{regexptitle[index]+":"}}</view></view><view class="prevention_con _p">{{item}}</view></view></block><block wx:if="{{tishi}}"><button data-event-opts="{{[['tap',[['examines',['$event']]]]]}}" class="recognition_details" bindtap="__e">查看图片</button></block></view></block><u-modal vue-id="d7812190-3" mask-close-able="{{true}}" title show-cancel-button="{{true}}" confirm-text="拍病害" cancel-text="拍虫害" content="拍照识别病虫害" value="{{show}}" data-event-opts="{{[['^confirm',[['confirm']]],['^cancel',[['cancel']]],['^input',[['__set_model',['','show','$event',[]]]]]]}}" bind:confirm="__e" bind:cancel="__e" bind:input="__e" bind:__l="__l"></u-modal></view><kps-image-cutter vue-id="d7812190-4" url="{{imgdata}}" fixed="{{false}}" blob="{{true}}" data-event-opts="{{[['^ok',[['onok']]],['^cancel',[['oncancle']]]]}}" bind:ok="__e" bind:cancel="__e" bind:__l="__l"></kps-image-cutter><block wx:if="{{loadTF}}"><view class="loading"><u-loading vue-id="d7812190-5" mode="flower" size="100" show="{{true}}" bind:__l="__l"></u-loading></view></block></view>