Code modification of issue 191 of zentao.

This commit is contained in:
leiyong
2020-03-03 13:47:52 +08:00
parent aa70c177cc
commit 8ed43fc9b4
13 changed files with 149 additions and 121 deletions

View File

@@ -3,12 +3,12 @@ $(function()
$('#type').change(function()
{
var type = $(this).val();
$('#sendTypeTR').toggle(type != 'dingding' && type != 'dingapi');
$('#secretTR').toggle(type == 'dingding');
$('#urlTR').toggle(type != 'dingapi' && type != 'wechatApi');
$('.dingapiTR').toggle(type == 'dingapi');
$('.wechatTR').toggle(type == 'wechatApi');
$('#paramsTR').toggle(type != 'bearychat' && type != 'dingding' && type != 'dingapi' && type != 'wechatApi' && type != 'weixin');
$('#sendTypeTR').toggle(type != 'dinggroup' && type != 'dinguser' && type != 'wechatuser' && type != 'wechatgroup');
$('#secretTR').toggle(type == 'dinggroup');
$('#urlTR').toggle(type != 'dinguser' && type != 'wechatuser');
$('.dinguserTR').toggle(type == 'dinguser');
$('.wechatTR').toggle(type == 'wechatuser');
$('#paramsTR').toggle(type != 'bearychat' && type != 'dinggroup' && type != 'dinguser' && type != 'wechatuser' && type != 'wechatgroup');
$('#urlNote').html(urlNote[type]);
});