js

//radio_btn的定义
//***实时视频开关
// 开启实时视频
var realTimeVideoOpenRadio = new Ext.form.Radio({
    boxLabel: '开启查看实时视频',
    inputValue: '2',
    listeners: {
        'check': function () {
            if (realTimeVideoOpenRadio.getValue()) {
                realTimeVideoCloseRadio.setValue(false);
                realTimeVideoOpenRadio.setValue(true);
            }
        }
    }
});
//关闭实时视频
var realTimeVideoCloseRadio = new Ext.form.Radio({
    boxLabel: '关闭查看实时视频',
    inputValue: '4',
    listeners: {
        'check': function () {
            if (realTimeVideoCloseRadio.getValue()) {
                realTimeVideoOpenRadio.setValue(false);
                realTimeVideoCloseRadio.setValue(true);
            }
        }
    }
});

//***历史视频开关
// 开启历史视频
var historyVideoOpenRadio = new Ext.form.Radio({
    boxLabel: '开启查看历史视频',
    inputValue: '8',
    listeners: {
        'check': function () {
            if (historyVideoOpenRadio.getValue()) {
                historyVideoCloseRadio.setValue(false);
                historyVideoOpenRadio.setValue(true);
            }
        }
    }
});
//关闭历史视频
var historyVideoCloseRadio = new Ext.form.Radio({
    boxLabel: '关闭查看历史视频',
    inputValue: '16',
    listeners: {
        'check': function () {
            if (historyVideoCloseRadio.getValue()) {
                historyVideoOpenRadio.setValue(false);
                historyVideoCloseRadio.setValue(true);
            }
        }
    }
});

//***超流量实时视频开关
// 开启超流量实时视频
var exceedRealTimeVideoOpenRadio = new Ext.form.Radio({
    boxLabel: '允许超流量查看实时视频',
    inputValue: '32',
    listeners: {
        'check': function () {
            if (exceedRealTimeVideoOpenRadio.getValue()) {
                exceedRealTimeVideoCloseRadio.setValue(false);
                exceedRealTimeVideoOpenRadio.setValue(true);
            }
        }
    }
});
//关闭超流量实时视频
var exceedRealTimeVideoCloseRadio = new Ext.form.Radio({
    boxLabel: '禁止超流量查看实时视频',
    inputValue: '64',
    listeners: {
        'check': function () {
            if (exceedRealTimeVideoCloseRadio.getValue()) {
                exceedRealTimeVideoOpenRadio.setValue(false);
                exceedRealTimeVideoCloseRadio.setValue(true);
            }
        }
    }
});

//***超流量历史视频开关
// 开启超流量历史视频
var exceedHistoryVideoOpenRadio = new Ext.form.Radio({
    boxLabel: '允许超流量查看历史视频',
    inputValue: '128',
    listeners: {
        'check': function () {
            if (exceedHistoryVideoOpenRadio.getValue()) {
                exceedHistoryVideoCloseRadio.setValue(false);
                exceedHistoryVideoOpenRadio.setValue(true);
            }
        }
    }
});
//关闭超流量历史视频
var exceedHistoryVideoCloseRadio = new Ext.form.Radio({
    boxLabel: '禁止超流量查看历史视频',
    inputValue: '256',
    listeners: {
        'check': function () {
            if (exceedHistoryVideoCloseRadio.getValue()) {
                exceedHistoryVideoOpenRadio.setValue(false);
                exceedHistoryVideoCloseRadio.setValue(true);
            }
        }
    }
});
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值