|
@@ -14,21 +14,21 @@
|
|
|
</video>
|
|
|
</view>
|
|
|
<view class="gb-box">
|
|
|
- <view class="radio-box">
|
|
|
+ <!-- <view class="radio-box">
|
|
|
<view class="radio-title">播报方式</view>
|
|
|
<radio-group @change="radioChange" class="radio-max-button">
|
|
|
<label class="radio-button" v-for="(item, index) in items" :key="item.value">
|
|
|
<radio :value="item.value" color="#007AFF" :checked="item.value == current" />{{item.name}}
|
|
|
</label>
|
|
|
</radio-group>
|
|
|
- </view>
|
|
|
- <view class="input-box" v-if="current == 1">
|
|
|
+ </view> -->
|
|
|
+ <!-- <view class="input-box" v-if="current == 1">
|
|
|
<view class="textarea-title">广播内容</view>
|
|
|
<textarea placeholder="请输入广播内容" v-model="text" maxlength="100"></textarea>
|
|
|
<view class="input-button" @click="voiceButton">确定</view>
|
|
|
- </view>
|
|
|
- <view class="device-box" v-if="current == 2">
|
|
|
- <view class="device-title">设备</view>
|
|
|
+ </view> -->
|
|
|
+ <view class="device-box" v-if="current == 2 && trumpetList[0]">
|
|
|
+ <view class="device-title">广播设备</view>
|
|
|
<view class="device-for-max-box">
|
|
|
<view @click="trumpetClick(index)"
|
|
|
class="trumpet-for-box" :class="item.type?'trumpet-color-a':'trumpet-color-b'"
|
|
@@ -52,6 +52,9 @@
|
|
|
<view class="broadcast_m_b" v-if="liveType">松开发送,向上滑动取消发送</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
+ <view class="null-device-box" v-if="!trumpetList[0]">
|
|
|
+ 暂无广播设备
|
|
|
+ </view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</template>
|
|
@@ -79,7 +82,7 @@ export default {
|
|
|
},
|
|
|
],
|
|
|
|
|
|
- current:1,
|
|
|
+ current:2,
|
|
|
trumpetList:[],
|
|
|
//滑动记录
|
|
|
startPoint:{},
|
|
@@ -566,6 +569,11 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+ .null-device-box{
|
|
|
+ text-align: center;
|
|
|
+ color:#999;
|
|
|
+ line-height:100rpx;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
</style>
|