播放记录
@@ -3,12 +3,12 @@
|
||||
<div class="header">
|
||||
<img src="./img/bigHorn-bg.png" alt="">
|
||||
<div class="content">
|
||||
<div class="item" @click="linkTo('../AppEquipment/AppEquipment')">
|
||||
<div class="item" @click="linkTo('./AppEquipment/AppEquipment')">
|
||||
<img src="./img/bigHorn-icon1@2x.png" alt="">
|
||||
<div>广播设备</div>
|
||||
<!-- <h2>1</h2> -->
|
||||
</div>
|
||||
<div class="item" @click="linkTo('./playList')">
|
||||
<div class="item" @click="linkTo('./AppPlayList/AppPlayList')">
|
||||
<img src="./img/bigHorn-icon2@2x.png" alt="">
|
||||
<div>播放记录</div>
|
||||
</div>
|
||||
@@ -58,7 +58,7 @@ export default {
|
||||
},
|
||||
{
|
||||
title: '媒资管理',
|
||||
path: '../AppResourcesManage/AppResourcesManage',
|
||||
path: './AppResourcesManage/AppResourcesManage',
|
||||
text: '支持音频文件和录音内容添加',
|
||||
imgUrl: require('./img/bigHorn-icon44@2x.png'),
|
||||
bgClass: 'bg-F19661'
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
</AiTopFixed>
|
||||
<div class="record">
|
||||
<div class="item" @click="toDetail">
|
||||
<img src="./img/lb@2x.png" alt="" class="voice-img">
|
||||
<img src="../img/lb@2x.png" alt="" class="voice-img">
|
||||
<div class="info">
|
||||
<div class="text">
|
||||
<p>村头大喇叭</p>
|
||||
@@ -24,7 +24,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="item">
|
||||
<img src="./img/lb@2x.png" alt="" class="voice-img">
|
||||
<img src="../img/lb@2x.png" alt="" class="voice-img">
|
||||
<div class="info">
|
||||
<div class="text">
|
||||
<p>村头大喇叭</p>
|
||||
@@ -40,7 +40,6 @@
|
||||
import { mapState } from 'vuex'
|
||||
export default {
|
||||
name: "AppEquipment",
|
||||
appName: '设备管理',
|
||||
data() {
|
||||
return {
|
||||
areaId: '',
|
||||
189
src/project/beta/AppBroadcast1/AppPlayList/AppPlayList.vue
Normal file
@@ -0,0 +1,189 @@
|
||||
<template>
|
||||
<div class="AppPlayList">
|
||||
<AiTopFixed>
|
||||
<div class="currentLeft-top">
|
||||
<div class="left">
|
||||
<AiSelect @data="selectType" :list="typeList" v-model="type"></AiSelect>
|
||||
</div>
|
||||
<u-search v-model="keyword" :clearabled="true" placeholder="请输入素材名称/发布人员" :show-action="false" bg-color="#F5F5F5" search-icon-color="#ccc" color="#666" height="58" @search="getList" @clear="handerClear"></u-search>
|
||||
</div>
|
||||
</AiTopFixed>
|
||||
<div class="list">
|
||||
<div class="item" @click="toDetail">
|
||||
<div class="left">
|
||||
<p>韩红-我的祖国.mp3</p>
|
||||
<div>李毅 2022-06-09 09:43:05</div>
|
||||
<div>日常 立即播发</div>
|
||||
</div>
|
||||
<div class="right">
|
||||
<div class="status">已下发</div>
|
||||
<div class="cancel-btn">撤销</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- <AiEmpty v-if="!list.length"></AiEmpty> -->
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
|
||||
export default {
|
||||
name: "AppPlayList",
|
||||
data() {
|
||||
return {
|
||||
list: [],
|
||||
currIndex: 1,
|
||||
current: 1,
|
||||
type: '0',
|
||||
typeList: [{label: '全部', value: '0'}, {label: '我发布的', value: '1'}],
|
||||
isMore: false,
|
||||
keyword: ''
|
||||
}
|
||||
},
|
||||
onLoad(query) {
|
||||
|
||||
},
|
||||
|
||||
onShow() {
|
||||
document.title = '播放记录'
|
||||
},
|
||||
|
||||
methods: {
|
||||
selectType(selecteds) {
|
||||
this.type = selecteds?.[0]?.value
|
||||
this.getListInit()
|
||||
},
|
||||
getListInit() {
|
||||
this.isMore = false
|
||||
this.list = []
|
||||
this.current = 1
|
||||
this.getList()
|
||||
},
|
||||
|
||||
getList() {
|
||||
if (this.isMore) return
|
||||
|
||||
this.$http.post(`/app/appdlbresource/list`, null, {
|
||||
params: {
|
||||
...this.search,
|
||||
type: this.currIndex === 0 ? 1 : 3,
|
||||
current: this.current,
|
||||
size: 10
|
||||
}
|
||||
}).then(res => {
|
||||
if (res.code == 0) {
|
||||
if (this.current > 1) {
|
||||
this.list = [...this.list, ...res.data.records]
|
||||
} else {
|
||||
this.list = res.data.records
|
||||
}
|
||||
|
||||
uni.hideLoading()
|
||||
|
||||
if (res.data.records.length < 10) {
|
||||
this.isMore = true
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
this.current = this.current + 1
|
||||
} else {
|
||||
uni.hideLoading()
|
||||
}
|
||||
}).catch(() => {
|
||||
uni.hideLoading()
|
||||
})
|
||||
},
|
||||
toDetail(item) {
|
||||
uni.navigateTo({url: `./detail`})
|
||||
}
|
||||
},
|
||||
|
||||
onReachBottom() {
|
||||
if(this.currIndex == 1) {
|
||||
this.current ++
|
||||
this.getList()
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
.AppPlayList {
|
||||
// ::v-deep .AiTopFixed{
|
||||
// .content{
|
||||
// padding: 0;
|
||||
// }
|
||||
// }
|
||||
.currentLeft-top {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
.left {
|
||||
width: 200px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
img {
|
||||
width: 48px;
|
||||
height: 48px;
|
||||
}
|
||||
}
|
||||
}
|
||||
.list{
|
||||
padding-left: 32px;
|
||||
background-color: #fff;
|
||||
.item{
|
||||
display: flex;
|
||||
padding: 16px 40px 16px 0;
|
||||
box-sizing: border-box;
|
||||
border-bottom: 1px solid #ddd;
|
||||
.left{
|
||||
width: calc(100% - 176px);
|
||||
p{
|
||||
font-size: 34px;
|
||||
font-family: PingFang-SC-Medium, PingFang-SC;
|
||||
font-weight: 500;
|
||||
color: #333;
|
||||
line-height: 48px;
|
||||
word-break: break-all;
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
div{
|
||||
font-size: 26px;
|
||||
font-family: PingFang-SC-Medium, PingFang-SC;
|
||||
font-weight: 500;
|
||||
color: #999;
|
||||
line-height: 36px;
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
}
|
||||
.right{
|
||||
width: 160px;
|
||||
text-align: center;
|
||||
.status{
|
||||
font-size: 34px;
|
||||
font-family: PingFang-SC-Medium, PingFang-SC;
|
||||
font-weight: 500;
|
||||
color: #4E8EEE;
|
||||
line-height: 48px;
|
||||
margin-bottom: 28px;
|
||||
}
|
||||
.cancel-btn{
|
||||
width: 154px;
|
||||
height: 60px;
|
||||
line-height: 60px;
|
||||
text-align: center;
|
||||
background: #3975C6;
|
||||
border-radius: 8px;
|
||||
font-size: 30px;
|
||||
font-family: PingFang-SC-Medium, PingFang-SC;
|
||||
font-weight: 500;
|
||||
color: #FFF;
|
||||
}
|
||||
.bg-AFD0FC{
|
||||
background: #AFD0FC;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
213
src/project/beta/AppBroadcast1/AppPlayList/detail.vue
Normal file
@@ -0,0 +1,213 @@
|
||||
<template>
|
||||
<div class="detail">
|
||||
<div class="info-content">
|
||||
<div class="info border-none">
|
||||
<h2>播发任务</h2>
|
||||
<h3>已下发</h3>
|
||||
</div>
|
||||
<div class="info">
|
||||
<span>播发级别</span>
|
||||
<span class="color-333">121312312312</span>
|
||||
</div>
|
||||
<div class="info">
|
||||
<span>播放方式</span>
|
||||
<span style="color: #4E8EEE">在线</span>
|
||||
</div>
|
||||
<div>
|
||||
<div class="info">
|
||||
<span>播放天数</span>
|
||||
<span class="color-333">每周一、每周二、每周三</span>
|
||||
</div>
|
||||
<div class="info">
|
||||
<span>开始日期</span>
|
||||
<span class="color-333">2022-06-10</span>
|
||||
</div>
|
||||
<div class="info">
|
||||
<span>开始时间</span>
|
||||
<span class="color-333">18:00:00</span>
|
||||
</div>
|
||||
<div class="info">
|
||||
<span>结束时间</span>
|
||||
<span class="color-333">19:00:00</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="info">
|
||||
<span>创建人</span>
|
||||
<span class="color-333">一般</span>
|
||||
</div>
|
||||
<div class="info">
|
||||
<span>创建时间</span>
|
||||
<span class="color-333"></span>
|
||||
</div>
|
||||
<div class="info">
|
||||
<span>播发设备</span>
|
||||
<span class="color-333" @click="toEquipmentList">共<span style="color:#1174FE;">10</span>个设备<u-icon name="arrow-right" size="28" color="#999999" style="margin-left:8px;"></u-icon></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="media-content">
|
||||
<h2>播发素材</h2>
|
||||
<div class="media-item">
|
||||
<img :src="`${$cdn}video/play-icon.png`" alt="" @click="choose()">
|
||||
<div class="info">
|
||||
<p>五一活动唱红歌.mp3</p>
|
||||
<div>李毅 2022-06-09 09:43:05</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<u-popup v-model="isShow" mode="bottom">
|
||||
<div class="audio">
|
||||
<AiVideo :src="url" autoplay></AiVideo>
|
||||
<!-- <audio :src="url" ref="audio" :controls="true" :name="autioName" style="display: block;"></audio> -->
|
||||
</div>
|
||||
</u-popup>
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
|
||||
export default {
|
||||
name: "detail",
|
||||
data() {
|
||||
return {
|
||||
isShow: false,
|
||||
url: ''
|
||||
}
|
||||
},
|
||||
onLoad(query) {
|
||||
|
||||
},
|
||||
|
||||
onShow() {
|
||||
document.title = '任务详情'
|
||||
},
|
||||
|
||||
methods: {
|
||||
choose(item) {
|
||||
console.log(item.url)
|
||||
this.url = item.url
|
||||
this.isShow = tru
|
||||
},
|
||||
toEquipmentList() {
|
||||
uni.navigateTo({url: `./equipmentList`})
|
||||
}
|
||||
},
|
||||
}
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
.detail {
|
||||
.info-content{
|
||||
padding-left: 32px;
|
||||
background-color: #fff;
|
||||
p{
|
||||
padding: 32px 32px 32px 0;
|
||||
font-size: 38px;
|
||||
font-family: PingFangSC-Semibold, PingFang SC;
|
||||
font-weight: 600;
|
||||
color: #333;
|
||||
line-height: 56px;
|
||||
word-break: break-all;
|
||||
}
|
||||
.info{
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
font-size: 32px;
|
||||
font-family: PingFangSC-Regular, PingFang SC;
|
||||
color: #999;
|
||||
line-height: 44px;
|
||||
padding: 34px 32px 32px 0;
|
||||
border-bottom: 1px solid #ddd;
|
||||
.color-333{
|
||||
color: #333;
|
||||
}
|
||||
h2{
|
||||
font-size: 38px;
|
||||
font-family: PingFangSC-Semibold, PingFang SC;
|
||||
font-weight: 600;
|
||||
color: #333;
|
||||
line-height: 52px;
|
||||
}
|
||||
h3{
|
||||
font-size: 34px;
|
||||
font-family: PingFang-SC-Medium, PingFang-SC;
|
||||
font-weight: 500;
|
||||
color: #4E8EEE;
|
||||
line-height: 52px;
|
||||
}
|
||||
}
|
||||
.border-none{
|
||||
border-bottom: 0;
|
||||
}
|
||||
}
|
||||
.audio {
|
||||
width: 100%;
|
||||
height: 400px;
|
||||
box-sizing: border-box;
|
||||
padding: 104px 0 46px;
|
||||
}
|
||||
.media-content{
|
||||
margin-top: 16px;
|
||||
background-color: #fff;
|
||||
h2{
|
||||
padding: 32px;
|
||||
font-size: 38px;
|
||||
font-family: PingFangSC-Semibold, PingFang SC;
|
||||
font-weight: 600;
|
||||
color: #333;
|
||||
line-height: 52px;
|
||||
}
|
||||
.media-item {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
border-bottom: 1px solid #ddd;
|
||||
padding: 32px 30px;
|
||||
box-sizing: border-box;
|
||||
|
||||
img {
|
||||
width: 56px;
|
||||
height: 56px;
|
||||
margin-right: 14px;
|
||||
}
|
||||
|
||||
.info {
|
||||
width: calc(100% - 70px);
|
||||
line-height: 44px;
|
||||
font-size: 34px;
|
||||
font-family: PingFang-SC-Medium, PingFang-SC;
|
||||
font-weight: 500;
|
||||
color: #333;
|
||||
|
||||
p {
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
word-break: break-all;
|
||||
}
|
||||
div{
|
||||
font-size: 26px;
|
||||
font-family: PingFang-SC-Medium, PingFang-SC;
|
||||
font-weight: 500;
|
||||
color: #999;
|
||||
line-height: 36px;
|
||||
margin-top: 8px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
.btn {
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 112px;
|
||||
line-height: 112px;
|
||||
text-align: center;
|
||||
background: #fff;
|
||||
font-size: 32px;
|
||||
font-family: PingFangSC-Medium, PingFang SC;
|
||||
font-weight: 500;
|
||||
color: #F46;
|
||||
border-top: 1px solid #ddd;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
120
src/project/beta/AppBroadcast1/AppPlayList/equipmentList.vue
Normal file
@@ -0,0 +1,120 @@
|
||||
<template>
|
||||
<div class="equipmentList">
|
||||
<p class="title">播发设备<span class="mini-title">共<span style="color:#1174FE;">10</span>个设备</span></p>
|
||||
<div class="record">
|
||||
<div class="item">
|
||||
<img src="../img/lb@2x.png" alt="" class="voice-img">
|
||||
<div class="info">
|
||||
<div class="text">
|
||||
<p>村头大喇叭</p>
|
||||
<span>刘家河居委会</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="item">
|
||||
<img src="../img/lb@2x.png" alt="" class="voice-img">
|
||||
<div class="info">
|
||||
<div class="text">
|
||||
<p>村头大喇叭</p>
|
||||
<span>刘家河居委会</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
import { mapState } from 'vuex'
|
||||
export default {
|
||||
name: "equipmentList",
|
||||
data() {
|
||||
return {
|
||||
|
||||
}
|
||||
},
|
||||
computed: { ...mapState(['user']) },
|
||||
onLoad(option) {
|
||||
this.areaId = this.user.areaId
|
||||
this.areaName = this.user.areaName
|
||||
},
|
||||
methods: {
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
.equipmentList {
|
||||
.title{
|
||||
padding: 32px;
|
||||
background-color: #fff;
|
||||
font-size: 38px;
|
||||
font-family: PingFangSC-Semibold, PingFang SC;
|
||||
font-weight: 600;
|
||||
color: #333;
|
||||
line-height: 52px;
|
||||
.mini-title{
|
||||
font-size: 32px;
|
||||
font-family: PingFangSC-Regular, PingFang SC;
|
||||
font-weight: 400;
|
||||
margin-left: 16px;
|
||||
}
|
||||
}
|
||||
.record {
|
||||
padding-left: 32px;
|
||||
background-color: #fff;
|
||||
|
||||
.item {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
border-bottom: 1px solid #ddd;
|
||||
|
||||
.check-img {
|
||||
width: 44px;
|
||||
height: 44px;
|
||||
margin: 32px 32px 0 0;
|
||||
}
|
||||
|
||||
.voice-img {
|
||||
width: 48px;
|
||||
height: 48px;
|
||||
margin: 28px 16px 0 0;
|
||||
}
|
||||
|
||||
.info {
|
||||
width: calc(100% - 160px);
|
||||
padding: 18px 0;
|
||||
line-height: 44px;
|
||||
font-size: 34px;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
|
||||
.text {
|
||||
p {
|
||||
font-family: PingFang-SC-Medium, PingFang-SC;
|
||||
font-weight: 500;
|
||||
color: #333;
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
|
||||
span {
|
||||
font-size: 26px;
|
||||
font-family: PingFang-SC-Medium, PingFang-SC;
|
||||
font-weight: 500;
|
||||
color: #999;
|
||||
line-height: 36px;
|
||||
}
|
||||
}
|
||||
|
||||
.status {
|
||||
font-size: 34px;
|
||||
font-family: PingFang-SC-Medium, PingFang-SC;
|
||||
font-weight: 500;
|
||||
color: #4E8EEE;
|
||||
line-height: 48px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@@ -39,7 +39,6 @@
|
||||
|
||||
export default {
|
||||
name: "AppResourcesManage",
|
||||
appName: '媒资管理',
|
||||
data() {
|
||||
return {
|
||||
tab: [{name: '音频素材'}, {name: '文本素材'}],
|
||||
|
Before Width: | Height: | Size: 6.1 KiB After Width: | Height: | Size: 6.1 KiB |
|
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
|
Before Width: | Height: | Size: 979 B After Width: | Height: | Size: 979 B |
|
Before Width: | Height: | Size: 795 B After Width: | Height: | Size: 795 B |
|
Before Width: | Height: | Size: 4.7 KiB After Width: | Height: | Size: 4.7 KiB |
|
Before Width: | Height: | Size: 4.1 KiB After Width: | Height: | Size: 4.1 KiB |
|
Before Width: | Height: | Size: 269 B After Width: | Height: | Size: 269 B |
|
Before Width: | Height: | Size: 269 B After Width: | Height: | Size: 269 B |
|
Before Width: | Height: | Size: 3.6 KiB After Width: | Height: | Size: 3.6 KiB |
|
Before Width: | Height: | Size: 531 B After Width: | Height: | Size: 531 B |
|
Before Width: | Height: | Size: 577 B After Width: | Height: | Size: 577 B |
|
Before Width: | Height: | Size: 64 KiB |
|
Before Width: | Height: | Size: 6.1 KiB |
|
Before Width: | Height: | Size: 2.4 KiB |
|
Before Width: | Height: | Size: 3.9 KiB |
|
Before Width: | Height: | Size: 2.1 KiB |
|
Before Width: | Height: | Size: 6.1 KiB |
|
Before Width: | Height: | Size: 1.5 KiB |
|
Before Width: | Height: | Size: 3.5 KiB |
|
Before Width: | Height: | Size: 2.1 KiB |
|
Before Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 795 B |
|
Before Width: | Height: | Size: 2.1 KiB |
|
Before Width: | Height: | Size: 288 B |
|
Before Width: | Height: | Size: 766 B |
|
Before Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 14 KiB |
|
Before Width: | Height: | Size: 4.7 KiB |
|
Before Width: | Height: | Size: 269 B |