47 lines
2.2 KiB
Plaintext
47 lines
2.2 KiB
Plaintext
<!--pages/home/additive/additive.wxml-->
|
|
<view class="main">
|
|
<view class="main-item">
|
|
<view class="title">
|
|
<image class="logo-image" src="../../../images/additive.jpg" mode="aspectFit"></image>
|
|
<view style="margin-left: 10px; margin-top: 10px;">
|
|
<view class="title-name">{{additiveData.name ? additiveData.name : 'XXX'}}</view>
|
|
<view class="title-enname">{{additiveData.enName ? additiveData.enName : 'xxx'}}</view>
|
|
</view>
|
|
</view>
|
|
<view style="display: flex; margin: 20px;">
|
|
<text style="width: 50%;">cns: {{additiveData.cns ? additiveData.cns : '-'}}</text>
|
|
<text style="width: 50%;">ins: {{additiveData.ins ? additiveData.ins : '-'}}</text>
|
|
</view>
|
|
<view style="display: flex; margin-left: 20px; margin-right: 20px; flex-wrap: wrap;">
|
|
<t-tag wx:for="{{additiveData.functions}}" wx:key="index" wx:for-item="item" variant="light-outline" theme="primary" style="margin-right: 5px; margin-bottom: 5px;">{{item}}</t-tag>
|
|
</view>
|
|
</view>
|
|
<view wx:if="{{additiveData.description != ''}}" class="main-item">
|
|
<view class="main-title">描述</view>
|
|
<view style="margin: 10px;">{{additiveData.description}}</view>
|
|
</view>
|
|
<view class="main-item" wx:if="{{additiveData.chemicals.length != 0}}">
|
|
<view class="main-title">包含物质</view>
|
|
<view class="chemical-item" wx:for="{{additiveData.chemicals}}" wx:key="index" wx:for-item="item" data-chemical="{{item.id}}" bindtap="onGoChemical">
|
|
<view>
|
|
<view class="chemical-name">{{item.name}}</view>
|
|
<view class="chemical-cas">{{item.cas}}</view>
|
|
</view>
|
|
<view>
|
|
<t-icon data-name="chevron-right-double" name="chevron-right-double" size="64rpx" />
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="main-item">
|
|
<view class="main-title">相关文档</view>
|
|
<view class="chemical-item" wx:for="{{additiveData.docs}}" wx:key="index" wx:for-item="item">
|
|
<view>
|
|
<view class="chemical-name">{{item.type}}</view>
|
|
<view class="chemical-cas" style="font-size: 0.75rem;">{{item.name}}</view>
|
|
</view>
|
|
<view style="margin-left: 5px;">
|
|
<t-icon data-name="browse" name="browse" size="64rpx" />
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view> |