Files
dvcp_v2_wechat_app/src/mods/work/AppServiceOnline/AppServiceOnline.vue

98 lines
1.8 KiB
Vue
Raw Normal View History

2022-02-15 16:26:32 +08:00
<template>
<div class="servie">
2022-03-03 16:44:55 +08:00
<div v-if="list.length>0">
<div class="serviceItem" v-for="(op,i) in list" :key="i" @click="toServiceList(op)" hover-class="bg-hover">
<img :src="op.icon"/>
<div class="fill flex1">
<div>{{ op.name }}</div>
<u-gap height="6"/>
<span>{{ op.desc }}</span>
</div>
<i class="iconfont">&#xe697;</i>
2022-02-15 16:26:32 +08:00
</div>
</div>
2022-03-03 16:44:55 +08:00
<AiEmpty v-else/>
2022-02-15 16:26:32 +08:00
</div>
</template>
<script>
2022-03-03 16:44:55 +08:00
export default {
name: "AppServiceOnline",
appName: "网上办事",
data() {
return {
list: []
}
},
onLoad() {
this.getList()
},
methods: {
toServiceList(item) {
this.$linkTo(`./serviceList?id=${item.id}&title=${item.name}&subTitle=${item.desc}`)
2022-02-15 16:26:32 +08:00
},
2022-03-03 16:44:55 +08:00
getList() {
this.$instance.post("/app/zwspapprovalclassification/list-xcx", null, {
params: {size: 999},
withoutToken: true
}).then(res => {
if (res?.data) {
this.list = res.data.records || []
}
})
2022-02-15 16:26:32 +08:00
}
}
2022-03-03 16:44:55 +08:00
}
2022-02-15 16:26:32 +08:00
</script>
<style lang="scss" scoped>
2022-03-03 16:44:55 +08:00
.servie {
min-height: 100vh;
background: #fff;
}
.serviceItem {
width: 100%;
height: 160px;
padding: 28px 40px 28px;
display: flex;
align-items: center;
box-sizing: border-box;
img {
width: 80px;
height: 80px;
2022-02-15 16:26:32 +08:00
}
2022-03-03 16:44:55 +08:00
.fill {
2022-02-15 16:26:32 +08:00
display: flex;
2022-03-03 16:44:55 +08:00
flex-direction: column;
font-size: 30px;
font-weight: 600;
color: #3C435C;
margin: 0 16px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
2022-02-15 16:26:32 +08:00
2022-03-03 16:44:55 +08:00
span {
display: block;
width: 100%;
margin-right: 20px;
font-size: 28px;
font-weight: 500;
color: #BEC1D0;
2022-02-15 16:26:32 +08:00
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
2022-03-03 16:44:55 +08:00
}
2022-02-15 16:26:32 +08:00
2022-03-03 16:44:55 +08:00
i {
font-size: 44px;
color: #979797;
2022-02-15 16:26:32 +08:00
}
2022-03-03 16:44:55 +08:00
}
2022-02-15 16:26:32 +08:00
</style>