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

View File

@ -52,7 +52,7 @@
<view> <view>
<navigator url="/pages/risk/detail?id={{item.risk}}" hover-class="navigator-hover">风险详情</navigator> <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>
</view> </view>
</block> </block>

View File

@ -1,59 +1,59 @@
{ {
"description": "项目配置文件。", "description": "项目配置文件。",
"setting": { "setting": {
"urlCheck": false, "urlCheck": false,
"es6": true, "es6": true,
"postcss": true, "enhance": false,
"minified": true, "postcss": true,
"newFeature": true, "preloadBackgroundData": false,
"coverView": true, "minified": true,
"nodeModules": true, "newFeature": true,
"autoAudits": false, "coverView": true,
"showShadowRootInWxmlPanel": true, "nodeModules": true,
"scopeDataCheck": false, "autoAudits": false,
"checkInvalidKey": true, "showShadowRootInWxmlPanel": true,
"checkSiteMap": true, "scopeDataCheck": false,
"uploadWithSourceMap": true, "uglifyFileName": false,
"babelSetting": { "checkInvalidKey": true,
"ignore": [], "checkSiteMap": true,
"disablePlugins": [], "uploadWithSourceMap": true,
"outputPath": "" "compileHotReLoad": false,
}, "useMultiFrameRuntime": false,
"useCompilerModule": false, "useApiHook": false,
"userConfirmedUseCompilerModuleSwitch": false, "babelSetting": {
"enhance": false, "ignore": [],
"preloadBackgroundData": false, "disablePlugins": [],
"uglifyFileName": false, "outputPath": ""
"compileHotReLoad": false, },
"useMultiFrameRuntime": true, "useIsolateContext": true,
"useApiHook": false, "useCompilerModule": true,
"useIsolateContext": true, "userConfirmedUseCompilerModuleSwitch": false,
"packNpmManually": false, "packNpmManually": false,
"packNpmRelationList": [] "packNpmRelationList": []
}, },
"compileType": "miniprogram", "compileType": "miniprogram",
"libVersion": "2.9.4", "libVersion": "2.9.4",
"appid": "wx5c39b569f01c27db", "appid": "wx5c39b569f01c27db",
"projectname": "aqyj", "projectname": "aqyj",
"isGameTourist": false, "isGameTourist": false,
"simulatorType": "wechat", "simulatorType": "wechat",
"simulatorPluginLibVersion": {}, "simulatorPluginLibVersion": {},
"condition": { "condition": {
"search": { "search": {
"current": -1, "current": -1,
"list": [] "list": []
}, },
"conversation": { "conversation": {
"current": -1, "current": -1,
"list": [] "list": []
}, },
"game": { "game": {
"currentL": -1, "currentL": -1,
"list": [] "list": []
}, },
"miniprogram": { "miniprogram": {
"current": -1, "current": -1,
"list": [] "list": []
} }
} }
} }