云广播
This commit is contained in:
212
src/apps/AppBroadcast1/AppEquipment/detail.vue
Normal file
212
src/apps/AppBroadcast1/AppEquipment/detail.vue
Normal file
@@ -0,0 +1,212 @@
|
||||
<template>
|
||||
<div class="detail">
|
||||
<AiTopFixed>
|
||||
<div class="tab">
|
||||
<u-tabs :list="tab" :is-scroll="false" :current="currIndex" @change="change" height="96" :bar-style="barStyle"></u-tabs>
|
||||
</div>
|
||||
</AiTopFixed>
|
||||
<div class="content">
|
||||
<div class="info-content" v-if="currIndex != 1">
|
||||
<p>村头大喇叭</p>
|
||||
<div class="info">
|
||||
<span>设备编号</span>
|
||||
<span class="color-333">121312312312</span>
|
||||
</div>
|
||||
<div class="info">
|
||||
<span>设备状态</span>
|
||||
<span style="color: #4E8EEE">在线</span>
|
||||
</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"></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="list-content" v-else>
|
||||
<div class="list">
|
||||
<div class="item" @click="toTaskDetail">
|
||||
<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>
|
||||
</div>
|
||||
|
||||
<div class="btn">设置音量</div>
|
||||
<u-popup v-model="isShow" mode="bottom">
|
||||
|
||||
</u-popup>
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
|
||||
export default {
|
||||
name: "detail",
|
||||
data() {
|
||||
return {
|
||||
barStyle: {width: '98px', bottom: '-3px', left: '-38px'},
|
||||
tab: [{name: '基本信息'}, {name: '播发任务'}],
|
||||
list: [],
|
||||
currIndex: 1,
|
||||
current: 1,
|
||||
isShow: false,
|
||||
}
|
||||
},
|
||||
onLoad(query) {
|
||||
|
||||
},
|
||||
|
||||
onShow() {
|
||||
document.title = '设备详情'
|
||||
},
|
||||
|
||||
methods: {
|
||||
change(index) {
|
||||
this.currIndex = index
|
||||
this.getListInit()
|
||||
},
|
||||
toTaskDetail(item) {
|
||||
uni.navigateTo({url: `./taskDetail`})
|
||||
}
|
||||
},
|
||||
|
||||
onReachBottom() {
|
||||
if(this.currIndex == 1) {
|
||||
this.current ++
|
||||
this.getList()
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
.detail {
|
||||
padding-bottom: 128px;
|
||||
::v-deep .AiTopFixed{
|
||||
.content{
|
||||
padding: 0;
|
||||
}
|
||||
}
|
||||
.tab {
|
||||
border-bottom: 1px solid #ddd;
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
.content{
|
||||
margin-top: 8px;
|
||||
.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;
|
||||
}
|
||||
}
|
||||
}
|
||||
.list-content{
|
||||
.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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
.btn {
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 112px;
|
||||
line-height: 112px;
|
||||
text-align: center;
|
||||
background: #3975C6;
|
||||
font-size: 32px;
|
||||
font-family: PingFangSC-Medium, PingFang SC;
|
||||
font-weight: 500;
|
||||
color: #FFFFFF;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user