qa-prevention-xgf-app/pages/eight_assignments/index.vue

127 lines
2.9 KiB
Vue
Raw Normal View History

2024-06-25 18:01:18 +08:00
<template>
2024-07-05 18:01:23 +08:00
<view class="content">
<view class="card">
<view class="items">
<view class="item" v-for="(item,index) in baseList" :key="index" @click="fnNavigator(index)">
<image :src="item.img" mode=""></image>
<view class="text">
<text>{{ item.title }}</text>
</view>
</view>
</view>
</view>
</view>
2024-06-25 18:01:18 +08:00
</template>
<script>
2024-07-05 18:01:23 +08:00
export default {
data() {
return {
baseList: [
{
img: require('../../static/icon-apps/i1.png'),
title: '受限空间安全作业',
url: '/pages/eight_assignments/subordinate_index',
params: {
2024-07-08 17:59:08 +08:00
type: 'confinedSpace',
2024-07-05 18:01:23 +08:00
}
},
{
img: require('../../static/icon-apps/i2.png'),
title: '盲板抽堵作业',
url: '/pages/eight_assignments/subordinate_index',
params: {
2024-07-08 17:59:08 +08:00
type: 'blindBoard',
2024-07-05 18:01:23 +08:00
}
},
{
img: require('../../static/icon-apps/i3.png'),
title: '动土作业',
url: '/pages/eight_assignments/subordinate_index',
params: {
2024-07-08 17:59:08 +08:00
type: 'breakGround',
2024-07-05 18:01:23 +08:00
}
},
{
img: require('../../static/icon-apps/i4.png'),
title: '高处作业',
url: '/pages/eight_assignments/subordinate_index',
params: {
2024-07-08 17:59:08 +08:00
type: 'highWork',
2024-07-05 18:01:23 +08:00
}
},
{
img: require('../../static/icon-apps/i5.png'),
title: '吊装作业',
url: '/pages/eight_assignments/subordinate_index',
params: {
type: 'hoisting',
}
},
{
img: require('../../static/icon-apps/i6.png'),
title: '临时用电作业',
url: '/pages/eight_assignments/subordinate_index',
params: {
type: 'electricity',
}
},
{
img: require('../../static/icon-apps/i7.png'),
title: '动火作业',
url: '/pages/eight_assignments/subordinate_index',
params: {
2024-07-08 17:59:08 +08:00
type: 'hotWork',
2024-07-05 18:01:23 +08:00
}
},
{
img: require('../../static/icon-apps/i8.png'),
title: '断路作业',
url: '/pages/eight_assignments/subordinate_index',
params: {
2024-07-08 17:59:08 +08:00
type: 'cutRoad',
2024-07-05 18:01:23 +08:00
}
},
]
};
},
methods: {
fnNavigator(e) {
uni.$u.route({
url: this.baseList[e].url,
params: {
title: this.baseList[e].title,
...this.baseList[e].params
}
})
},
}
}
2024-06-25 18:01:18 +08:00
</script>
<style lang="scss" scoped>
2024-07-05 18:01:23 +08:00
.items {
background-color: #fff;
display: flex;
flex-wrap: wrap;
margin-top: -20upx;
2024-06-25 18:01:18 +08:00
2024-07-05 18:01:23 +08:00
.item {
flex-basis: 25%;
text-align: center;
margin-top: 20upx;
2024-06-25 18:01:18 +08:00
2024-07-05 18:01:23 +08:00
image {
width: 110upx;
height: 110upx;
}
2024-06-25 18:01:18 +08:00
2024-07-05 18:01:23 +08:00
.text {
width: 130upx;
font-size: 28upx;
margin: auto;
}
}
}
2024-07-04 17:57:31 +08:00
</style>