grid task

This commit is contained in:
caoqianming 2020-09-21 22:27:27 +08:00
parent c4d54ad573
commit 2f2c1a0398
3 changed files with 61 additions and 61 deletions

View File

@ -1,7 +1,7 @@
<view class="head">共{{total}}条风险</view>
<view class="weui-cells weui-cells_after-title">
<block wx:for="{{alllist}}" wx:key="unique">
<view class="weui-media-box weui-media-box_appmsg" hover-class="weui-cell_active">
<view class="weui-media-box weui-media-box_appmsg">
<view class="weui-media-box__bd weui-media-box__bd_in-appmsg" >
<view class="weui-media-box__title">
<span wx:if="{{item.level == '低风险'}}" style="background-color:blue;color:white">低风险</span>
@ -10,10 +10,10 @@
<span wx:if="{{item.level == '重大风险'}}" style="background-color:red;color:white">重大风险</span>
{{item.step}}
</view>
<view>
<navigator url="/pages/risk/detail?id={{item.id}}">
<span style="background-color:orange;color:white">标准/危害因素</span>
{{item.hazard}}
</view>
</navigator>
<view class="weui-media-box__desc">
<span style="background-color:green;color:white">工程技术</span>
<span wx:if="{{item.measure1!=null}}">{{item.measure1}}</span>

View File

@ -52,7 +52,7 @@
<view>
<navigator url="/pages/risk/detail?id={{item.risk}}" hover-class="navigator-hover">风险详情</navigator>
<navigator url="/pages/trouble/troubledetail?troubleid={{item.trouble}}" hover-class="navigator-hover">隐患详情</navigator>
<navigator url="/pages/trouble/troubledetail?troubleid={{item.trouble}}" hover-class="navigator-hover" wx:if="{{item.trouble}}">隐患详情</navigator>
</view>
</view>
</block>

View File

@ -3,7 +3,9 @@
"setting": {
"urlCheck": false,
"es6": true,
"enhance": false,
"postcss": true,
"preloadBackgroundData": false,
"minified": true,
"newFeature": true,
"coverView": true,
@ -11,23 +13,21 @@
"autoAudits": false,
"showShadowRootInWxmlPanel": true,
"scopeDataCheck": false,
"uglifyFileName": false,
"checkInvalidKey": true,
"checkSiteMap": true,
"uploadWithSourceMap": true,
"compileHotReLoad": false,
"useMultiFrameRuntime": false,
"useApiHook": false,
"babelSetting": {
"ignore": [],
"disablePlugins": [],
"outputPath": ""
},
"useCompilerModule": false,
"userConfirmedUseCompilerModuleSwitch": false,
"enhance": false,
"preloadBackgroundData": false,
"uglifyFileName": false,
"compileHotReLoad": false,
"useMultiFrameRuntime": true,
"useApiHook": false,
"useIsolateContext": true,
"useCompilerModule": true,
"userConfirmedUseCompilerModuleSwitch": false,
"packNpmManually": false,
"packNpmRelationList": []
},