examtest_mp/pages/main/threshold/threshold.wxml

59 lines
3.1 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<view class="page">
<view class="weui-flex searchWrap">
<picker bindchange="bindPickerChange" value="{{arrayIndex}}" range="{{array}}" class="pickers">
<view class="picker">
<text wx:if="{{arrayIndex==null}}" style="color: #aaaaaa;">化合物分类</text>
{{array[arrayIndex]}}
</view>
</picker>
<input class="weui-input searchInput" type="text" value="{{query.search}}" maxlength="10" bindinput="searchChange" placeholder="输入名称或CAS号查询阈值"/>
<icon class="weui-icon-clear" style="width: 70rpx;height: 70rpx;z-index: 100;" bindtap="searchClear"></icon>
</view>
<view class="lists">
<view wx:if="{{listData.length>0}}">
<block wx:for="{{listData}}" wx:key="unique">
<view class="weui-media-box weui-media-box_appmsg" data-id="{{item.id}}" data-name="{{item.name}}">
<view class="weui-media-box__bd">
<h4 class="weui-media-box__title">
{{item.chinese_name}}
<span class="toptip">{{item.compound_cate}}</span>
</h4>
<view>
<text class="listItemLable">10-6(v/v)</text>
<text wx:if="{{item.ppm_sign!= '='}}">{{item.ppm_sign}}</text> {{item.ppm}}
</view>
<view>
<text class="listItemLable">μg/m3</text>
<text wx:if="{{item.mass_sign!= '='}}">{{item.mass_sign}}</text>{{item.mass}}
</view>
<view><text class="listItemLable">M(g/mol)</text> {{item.molecular}}</view>
<view><text class="listItemLable">CAS号</text>{{item.cas}}</view>
<view wx:if="{{item.odor_type!=null}}">
<text class="listItemLable">气味类型</text>
<span style="color:darkblue" wx:if="{{item.odor_type!=null}}">{{item.odor_type}}</span>
</view>
<view>
<text class="listItemLable">阈值类型</text>{{item.threshold_type}}
</view>
<view>
<text class="listItemLable">毒性信息</text>
<!-- 剧毒0.005681 -->
<text wx:if="{{item.toxicity_type!=null}}">({{item.toxicity_type}})</text>
<text wx:if="{{item.toxicity!=null}}">{{item.toxicity}}</text>
</view>
<view style="font-size: 24rpx;color: #aaaaaa;" wx:if="{{item.source_}}">
<text class="listItemLable">阈值说明</text>
<text>d感知阈值r识别阈值d&r感知阈值和识别阈值相同ng未明确</text>
</view>
<view style="font-size: 24rpx;color: #aaaaaa;" wx:if="{{item.source_}}">
<text class="listItemLable">阈值来源</text>{{item.source_.name}}
<span wx:if="{{item.source_.author!=null}}">——{{item.source_.author}}</span>
<span wx:if="{{item.source_.publish_year!=null}}">——{{item.source_.publish_year}}</span>
</view>
</view>
</view>
</block>
</view>
<view wx:else style="text-align: center;font-size: 30rpx;color: #333333;"> 输入名称或CAS号查询阈值进行搜索</view>
</view>
</view>