2021-12-23 11:03:06 +08:00
|
|
|
<template>
|
|
|
|
|
<section class="AppListPage">
|
2021-12-23 15:25:33 +08:00
|
|
|
<div class="header" :style="`backgroundImage: url(${headerBg});`">
|
|
|
|
|
<p>{{label}}</p>
|
|
|
|
|
</div>
|
2021-12-23 11:03:06 +08:00
|
|
|
<div class="content">
|
|
|
|
|
<div class="title">{{label}}</div>
|
|
|
|
|
<div class="app-list">
|
2023-10-27 14:29:06 +08:00
|
|
|
<div class="item" v-for="(item, index) in appList" :key="index" @click="linkTo(item.url)" >
|
2021-12-23 11:03:06 +08:00
|
|
|
<div class="icon" :style="`backgroundImage: url(${item.icon});`"></div>
|
|
|
|
|
<p>{{item.name}}</p>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</section>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
name: "AppListPage",
|
|
|
|
|
props: {
|
|
|
|
|
label: String,
|
|
|
|
|
appList: Array,
|
2021-12-23 15:25:33 +08:00
|
|
|
headerBg: String
|
2021-12-23 11:03:06 +08:00
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
linkTo(url) {
|
2023-10-27 14:22:01 +08:00
|
|
|
console.log(111)
|
2021-12-23 11:03:06 +08:00
|
|
|
console.log(url)
|
|
|
|
|
uni.navigateTo({url})
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
|
.AppListPage {
|
|
|
|
|
padding-top: 20px;
|
2021-12-23 15:25:33 +08:00
|
|
|
.header{
|
|
|
|
|
width: calc(100% - 36px);
|
|
|
|
|
height: 240px;
|
|
|
|
|
margin: 0 18px 20px 18px;
|
|
|
|
|
background-size: 100% 100%;
|
|
|
|
|
p{
|
|
|
|
|
font-size: 46px;
|
|
|
|
|
font-family: PingFangSC-Semibold, PingFang SC;
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
color: #26385C;
|
|
|
|
|
line-height: 64px;
|
|
|
|
|
padding: 48px 50px 0 50px;
|
|
|
|
|
word-break: break-all;
|
|
|
|
|
}
|
|
|
|
|
}
|
2021-12-23 11:03:06 +08:00
|
|
|
.content{
|
|
|
|
|
margin: 0 20px 20px;
|
|
|
|
|
width: calc(100% - 40px);
|
|
|
|
|
background: #FFF;
|
|
|
|
|
border-radius: 16px;
|
|
|
|
|
.title{
|
|
|
|
|
line-height: 70px;
|
|
|
|
|
border-bottom: 1px solid #eee;
|
|
|
|
|
padding-left: 20px;
|
|
|
|
|
font-size: 26px;
|
|
|
|
|
font-family: PingFangSC-Medium, PingFang SC;
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
color: #999;
|
|
|
|
|
}
|
|
|
|
|
.app-list{
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
.item{
|
|
|
|
|
text-align: center;
|
|
|
|
|
padding-bottom: 38px;
|
|
|
|
|
border-right: 1px solid #eee;
|
2023-10-27 14:36:45 +08:00
|
|
|
border-top: 1px solid #eee;
|
2021-12-23 11:03:06 +08:00
|
|
|
width: calc(33% - 1px);
|
|
|
|
|
float: left;
|
|
|
|
|
.icon{
|
|
|
|
|
display: inline-block;
|
|
|
|
|
width: 58px;
|
|
|
|
|
height: 58px;
|
|
|
|
|
margin: 40px 0 18px 0;
|
|
|
|
|
background-size: 100% 100%;
|
|
|
|
|
text-align: center;
|
|
|
|
|
}
|
|
|
|
|
p{
|
|
|
|
|
font-size: 28px;
|
|
|
|
|
font-family: PingFangSC-Regular, PingFang SC;
|
|
|
|
|
font-weight: 400;
|
|
|
|
|
color: #3D434A;
|
|
|
|
|
line-height: 40px;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.item:nth-of-type(3n) {
|
|
|
|
|
border-right: 0;
|
|
|
|
|
}
|
2023-10-27 14:36:45 +08:00
|
|
|
.item:nth-of-type(1),
|
|
|
|
|
.item:nth-of-type(2),
|
|
|
|
|
.item:nth-of-type(3) {
|
|
|
|
|
border-top: 0;
|
|
|
|
|
}
|
2021-12-23 11:03:06 +08:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</style>
|