Files
dvcp_v2_wxcp_app/src/apps/AppBroadcast/AppBroadcast.vue

185 lines
4.1 KiB
Vue
Raw Normal View History

2021-11-15 10:29:05 +08:00
<template>
2021-12-16 18:30:17 +08:00
<div class="AppBroadcast">
2021-11-15 10:29:05 +08:00
<div class="header">
2021-12-27 08:58:42 +08:00
<img src="./img/bigHorn-bg.png" alt="">
2021-11-15 10:29:05 +08:00
<div class="content">
<div class="item" @click="linkTo('./onlineList')">
2021-12-27 08:58:42 +08:00
<img src="./img/bigHorn-icon1@2x.png" alt="">
2021-11-15 10:29:05 +08:00
<div>在线设备</div>
<!-- <h2>1</h2> -->
</div>
<div class="item" @click="linkTo('./playList')">
2021-12-27 08:58:42 +08:00
<img src="./img/bigHorn-icon2@2x.png" alt="">
2021-11-15 10:29:05 +08:00
<div>播放记录</div>
</div>
2021-12-22 16:57:20 +08:00
<!-- <div class="item" @click="linkTo('./onlinePlayList')">
2021-11-15 10:29:05 +08:00
<img src="./img/bigHorn-icon3@2x.png" alt="">
<div>在播设备</div>
2021-12-22 16:57:20 +08:00
</div> -->
2021-11-15 10:29:05 +08:00
</div>
</div>
<div class="banner">
2021-12-15 14:37:20 +08:00
<div class="item" :class="item.bgClass" v-for="(item, index) in bannerList" :key="index"
@click="linkTo(item.path)">
<h2>{{ item.title }}</h2>
<div>{{ item.text }}</div>
2021-11-15 10:29:05 +08:00
<img :src="item.imgUrl" alt="">
</div>
</div>
</div>
</template>
2021-12-15 14:37:20 +08:00
<script>
2021-11-15 10:29:05 +08:00
export default {
2022-06-07 09:24:01 +08:00
name: "AppBroadcast2",
appName: "云广播2",
2021-11-15 10:29:05 +08:00
data() {
return {
bannerList: [
{
title: '素材播放',
text: '支持音频立即播发和定时播发',
imgUrl: require('./img/bigHorn-icon11@2x.png'),
2021-12-16 18:30:17 +08:00
path: './addPlay',
2021-11-15 10:29:05 +08:00
bgClass: 'bg-67A3F4'
},
2022-06-06 18:26:15 +08:00
{
title: '实时喊话',
text: '实时在线喊话,远程广播通知',
imgUrl: require('./img/bigHorn-icon22@2x.png'),
bgClass: 'bg-4ED5BB'
},
2021-11-15 10:29:05 +08:00
{
title: '音频录制',
text: '音频文件的录制',
2021-12-16 18:30:17 +08:00
path: '/apps/AppResourcesManage/addPlay?type=1',
2021-11-15 10:29:05 +08:00
imgUrl: require('./img/bigHorn-icon33@2x.png'),
bgClass: 'bg-E5B565'
},
{
title: '媒资管理',
2021-12-16 18:30:17 +08:00
path: '/apps/AppResourcesManage/AppResourcesManage',
2021-11-15 10:29:05 +08:00
text: '支持音频文件和录音内容添加',
imgUrl: require('./img/bigHorn-icon44@2x.png'),
bgClass: 'bg-F19661'
}
]
}
},
methods: {
linkTo(url) {
uni.navigateTo({url})
}
},
2021-12-24 15:27:36 +08:00
onShow() {
2021-12-24 21:20:52 +08:00
document.title = '云广播'
2021-12-24 15:27:36 +08:00
},
2021-11-15 10:29:05 +08:00
}
</script>
<style lang="scss" scoped>
2021-12-16 18:30:17 +08:00
.AppBroadcast {
2021-12-15 14:37:20 +08:00
.header {
2021-11-15 10:29:05 +08:00
position: relative;
2021-12-15 14:37:20 +08:00
img {
2021-11-15 10:29:05 +08:00
width: 100%;
height: 306px;
}
2021-12-15 14:37:20 +08:00
.content {
2021-11-15 10:29:05 +08:00
width: 686px;
padding: 40px 0;
background: #FFFFFF;
2021-12-16 18:30:17 +08:00
box-shadow: 0 4px 8px 4px rgba(0, 0, 0, 0.06);
2021-11-15 10:29:05 +08:00
border-radius: 12px;
position: absolute;
top: 210px;
left: 50%;
transform: translateX(-50%);
display: flex;
2021-12-15 14:37:20 +08:00
.item {
2021-11-15 10:29:05 +08:00
text-align: center;
flex: 1;
2021-12-15 14:37:20 +08:00
img {
2021-11-15 10:29:05 +08:00
width: 64px;
height: 64px;
margin-bottom: 18px;
}
2021-12-15 14:37:20 +08:00
div {
2021-11-15 10:29:05 +08:00
font-size: 30px;
font-family: PingFang-SC-Medium, PingFang-SC;
font-weight: 500;
color: #333;
line-height: 42px;
margin-bottom: 10px;
}
2021-12-15 14:37:20 +08:00
h2 {
2021-11-15 10:29:05 +08:00
font-size: 40px;
font-family: DINAlternate-Bold, DINAlternate;
font-weight: bold;
color: #333;
line-height: 48px;
}
}
}
}
2021-12-15 14:37:20 +08:00
.banner {
2021-11-15 10:29:05 +08:00
margin-top: 150px;
2021-12-15 14:37:20 +08:00
.item {
2021-11-15 10:29:05 +08:00
width: 686px;
height: 190px;
border-radius: 12px;
margin: 0 auto 24px auto;
padding: 40px 46px 0 80px;
box-sizing: border-box;
color: #FFF;
position: relative;
2021-12-15 14:37:20 +08:00
h2 {
2021-11-15 10:29:05 +08:00
font-size: 42px;
font-family: PingFangSC-Medium, PingFang SC;
font-weight: 500;
line-height: 60px;
margin-bottom: 16px;
}
2021-12-15 14:37:20 +08:00
div {
2021-11-15 10:29:05 +08:00
font-size: 26px;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: #FFF;
line-height: 32px;
}
2021-12-15 14:37:20 +08:00
img {
2021-11-15 10:29:05 +08:00
width: 160px;
position: absolute;
top: 10px;
right: 30px;
}
}
2021-12-15 14:37:20 +08:00
.bg-67A3F4 {
2021-11-15 10:29:05 +08:00
background: #67A3F4;
}
2021-12-15 14:37:20 +08:00
.bg-4ED5BB {
2021-11-15 10:29:05 +08:00
background: #4ED5BB;
}
2021-12-15 14:37:20 +08:00
.bg-E5B565 {
2021-11-15 10:29:05 +08:00
background: #E5B565;
}
2021-12-15 14:37:20 +08:00
.bg-F19661 {
2021-11-15 10:29:05 +08:00
background: #F19661;
}
}
}
</style>