mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
Update index.html
This commit is contained in:
parent
e888a8af78
commit
20507bfd03
@ -97,20 +97,12 @@
|
||||
var value = $(this).val(), $form = $(this).parents('form');
|
||||
var $current = $form.find('[data-keys-type="' + value + '"]').removeClass('hide');
|
||||
$form.find('[data-keys-type]').not($current).addClass('hide');
|
||||
switch (value) {
|
||||
case 'news':
|
||||
return $('[name="news_id"]').trigger('change');
|
||||
case 'text':
|
||||
return $('[name="content"]').trigger('change');
|
||||
case 'image':
|
||||
return $('[name="image_url"]').trigger('change');
|
||||
case 'video':
|
||||
return $('[name="video_url"]').trigger('change');
|
||||
case 'music':
|
||||
return $('[name="music_url"]').trigger('change');
|
||||
case 'voice':
|
||||
return $('[name="voice_url"]').trigger('change');
|
||||
}
|
||||
if (value === 'news') return $('[name="news_id"]').trigger('change');
|
||||
if (value === 'text') return $('[name="content"]').trigger('change');
|
||||
if (value === 'image') return $('[name="image_url"]').trigger('change');
|
||||
if (value === 'video') return $('[name="video_url"]').trigger('change');
|
||||
if (value === 'voice') return $('[name="voice_url"]').trigger('change');
|
||||
if (value === 'music') return $('[name="music_url"]').trigger('change');
|
||||
});
|
||||
|
||||
function showReview(params) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user