Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
@@ -1,7 +1,13 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="LiveBroadcast" @touchend="onTouchend" @touchmove="onTouchmove">
|
<div class="LiveBroadcast" @touchend="onTouchend" @touchmove="onTouchmove">
|
||||||
<div class="top" @click="toChoose" hover-class="bg-hover">
|
<div class="top" @click="toChoose" hover-class="bg-hover">
|
||||||
<h2>请选择设备</h2>
|
<div class="left">
|
||||||
|
<h2 v-if="!equipmentList.length">请选择设备</h2>
|
||||||
|
<h2>{{ equipmentStr }}</h2>
|
||||||
|
<h2 v-if="equipmentList.length > 2">...等</h2>
|
||||||
|
<span v-if="equipmentList.length > 2">{{ equipmentList.length }}</span>
|
||||||
|
<h2 v-if="equipmentList.length > 2">个设备</h2>
|
||||||
|
</div>
|
||||||
<image src="./img/right.png" />
|
<image src="./img/right.png" />
|
||||||
</div>
|
</div>
|
||||||
<div class="middle">
|
<div class="middle">
|
||||||
@@ -93,7 +99,15 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
computed: {
|
computed: {
|
||||||
...mapState(['user'])
|
...mapState(['user']),
|
||||||
|
|
||||||
|
equipmentStr () {
|
||||||
|
if (!this.equipmentList.length) {
|
||||||
|
return ''
|
||||||
|
}
|
||||||
|
|
||||||
|
return this.equipmentList.filter((item, index) => index < 2).map(v => v.serialName).join('、')
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
mounted () {
|
mounted () {
|
||||||
@@ -113,6 +127,10 @@
|
|||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
onLongtap () {
|
onLongtap () {
|
||||||
|
if (!this.equipmentList.length) {
|
||||||
|
return this.$u.toast('请选择播发设备')
|
||||||
|
}
|
||||||
|
|
||||||
this.isImpact = false
|
this.isImpact = false
|
||||||
this.startTime = new Date().getTime()
|
this.startTime = new Date().getTime()
|
||||||
this.isShow = true
|
this.isShow = true
|
||||||
@@ -327,6 +345,15 @@
|
|||||||
height: 128px;
|
height: 128px;
|
||||||
padding: 0 32px;
|
padding: 0 32px;
|
||||||
|
|
||||||
|
.left {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
span {
|
||||||
|
color: #1174FE;
|
||||||
|
}
|
||||||
|
|
||||||
h2 {
|
h2 {
|
||||||
color: #333333;
|
color: #333333;
|
||||||
font-size: 32px;
|
font-size: 32px;
|
||||||
|
|||||||
@@ -77,8 +77,8 @@ export default {
|
|||||||
this.list.map(item => {
|
this.list.map(item => {
|
||||||
if(item.isCheck) {
|
if(item.isCheck) {
|
||||||
var info = {
|
var info = {
|
||||||
serialNo: item.deviceName,
|
serialNo: item.serialNo,
|
||||||
serialName: item.serialNo
|
serialName: item.deviceName
|
||||||
}
|
}
|
||||||
this.selectList.push(info)
|
this.selectList.push(info)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user