| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="UTF-8">
- <title>黑名单管理</title>
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <script src="../../Script/Common/huayi.load.js"></script>
- <script src="../../Script/Common/huayi.config.js"></script>
- <script src="../../Script/Common/huayi.http.js"></script>
- <style>
- * {
- margin: 0;
- padding: 0;
- box-sizing: border-box;
- font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
- }
-
- body {
- justify-content: center;
- align-items: center;
- min-height: 100vh;
- padding: 20px;
- }
-
- .modal-header {
- text-align: center;
- margin-bottom: 25px;
- position: relative;
- }
-
- .modal-header h2 {
- font-size: 28px;
- font-weight: 600;
- background: linear-gradient(90deg, #00c9ff, #92fe9d);
- -webkit-background-clip: text;
- -webkit-text-fill-color: transparent;
- letter-spacing: 0.5px;
- text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
- }
-
- .audio-container {
- background: rgba(255, 255, 255, 0.08);
- border-radius: 12px;
- padding: 20px;
- margin-bottom: 25px;
- }
-
- .audio-info {
- display: flex;
- align-items: center;
- margin-bottom: 20px;
- padding-bottom: 15px;
- border-bottom: 1px solid rgba(255, 255, 255, 0.1);
- }
-
- .audio-icon {
- width: 60px;
- height: 60px;
- background: linear-gradient(135deg, #3498db, #8e44ad);
- border-radius: 50%;
- display: flex;
- align-items: center;
- justify-content: center;
- margin-right: 15px;
- animation: pulse 2s infinite;
- }
-
- .audio-icon i {
- font-size: 28px;
- color: white;
- }
-
- .audio-details {
- flex: 1;
- }
-
- .audio-title {
- font-size: 18px;
- font-weight: 500;
- margin-bottom: 5px;
- white-space: nowrap;
- overflow: hidden;
- text-overflow: ellipsis;
- }
-
- .audio-artist {
- font-size: 14px;
- color: #aaa;
- }
-
- .progress-container {
- margin-bottom: 20px;
- }
-
- .progressBar {
- height: 6px;
- background: rgba(0, 0, 0, 0.1);
- border-radius: 3px;
- overflow: hidden;
- margin-bottom: 5px;
- cursor: pointer;
- width: 100%;
- display: inline-block;
- }
-
- .progress {
- height: 100%;
- background: linear-gradient(90deg, #00c9ff, #92fe9d);
- border-radius: 3px;
- width: 0%;
- transition: width 0.1s;
- }
-
- .time-info {
- display: flex;
- justify-content: space-between;
- font-size: 12px;
- color: #aaa;
- }
-
- .controls {
- display: flex;
- justify-content: space-between;
- align-items: center;
- margin-top: 20px;
- width: 300px;
- margin: 0 auto;
- }
-
- .play-btn {
- width: 60px;
- height: 60px;
- border-radius: 50%;
- background: linear-gradient(135deg, #3498db, #8e44ad);
- display: flex;
- align-items: center;
- justify-content: center;
- cursor: pointer;
- box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
- transition: all 0.3s;
- }
-
- .play-btn:hover {
- transform: scale(1.05);
- box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
- }
-
- .play-btn i {
- font-size: 28px;
- color: white;
- }
-
- .volume-container {
- display: flex;
- align-items: center;
- width: 120px;
- }
-
- .volume-container i {
- margin-right: 10px;
- color: #aaa;
- }
-
- .volume-slider {
- flex: 1;
- height: 5px;
- background: rgba(255, 255, 255, 0.1);
- border-radius: 3px;
- position: relative;
- cursor: pointer;
- }
-
- .volume-level {
- height: 100%;
- background: linear-gradient(90deg, #3498db, #8e44ad);
- border-radius: 3px;
- width: 80%;
- }
-
- .download-section {
- display: flex;
- justify-content: space-between;
- align-items: center;
- background: rgba(255, 255, 255, 0.08);
- padding: 15px;
- border-radius: 12px;
- margin-top: 10px;
- }
-
- .toggle-container {
- display: flex;
- align-items: center;
- }
-
- .toggle-label {
- margin-right: 10px;
- font-size: 14px;
- color: #aaa;
- }
-
- .toggle-switch {
- position: relative;
- width: 50px;
- height: 24px;
- }
-
- .toggle-switch input {
- opacity: 0;
- width: 0;
- height: 0;
- }
-
- .slider {
- position: absolute;
- cursor: pointer;
- top: 0;
- left: 0;
- right: 0;
- bottom: 0;
- background: rgba(255, 255, 255, 0.1);
- transition: .4s;
- border-radius: 34px;
- }
-
- .slider:before {
- position: absolute;
- content: "";
- height: 18px;
- width: 18px;
- left: 3px;
- bottom: 3px;
- background-color: #3498db;
- transition: .4s;
- border-radius: 50%;
- }
-
- input:checked+.slider {
- background: rgba(52, 152, 219, 0.3);
- }
-
- input:checked+.slider:before {
- transform: translateX(26px);
- background: #92fe9d;
- }
-
- .download-btn {
- padding: 10px 25px;
- background: linear-gradient(90deg, #00c9ff, #92fe9d);
- color: #1a1a2e;
- border: none;
- border-radius: 30px;
- font-weight: 600;
- cursor: pointer;
- display: flex;
- align-items: center;
- transition: all 0.3s;
- opacity: 1;
- transform: scale(1);
- }
-
- .download-btn.hidden {
- opacity: 0;
- transform: scale(0.8);
- pointer-events: none;
- }
-
- .download-btn i {
- margin-right: 8px;
- font-size: 16px;
- }
-
- .download-btn:hover {
- box-shadow: 0 0 15px rgba(146, 254, 157, 0.5);
- transform: translateY(-2px);
- }
-
- .url-input {
- margin-top: 20px;
- text-align: center;
- }
-
- .url-input input {
- width: 100%;
- padding: 12px 15px;
- background: rgba(255, 255, 255, 0.08);
- border: 1px solid rgba(255, 255, 255, 0.1);
- border-radius: 8px;
- color: #000000;
- font-size: 14px;
- }
-
- .url-input input::placeholder {
- /*color: rgba(255, 255, 255, 0.4);*/
- }
-
- @keyframes pulse {
- 0% {
- box-shadow: 0 0 0 0 rgba(52, 152, 219, 0.7);
- }
- 70% {
- box-shadow: 0 0 0 10px rgba(52, 152, 219, 0);
- }
- 100% {
- box-shadow: 0 0 0 0 rgba(52, 152, 219, 0);
- }
- }
-
- .wave {
- position: absolute;
- bottom: 0;
- left: 0;
- width: 100%;
- height: 100px;
- background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1200 120" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" fill="rgba(255,255,255,0.03)" /><path d="M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z" fill="rgba(255,255,255,0.05)" /></svg>');
- background-size: cover;
- opacity: 0.5;
- }
- </style>
- </head>
- <body>
- <div>
- <div class="audio-container">
- <div class="progress-container">
- <div class="progressBar">
- <div class="progress" id="progress"></div>
- </div>
- <div class="time-info">
- <span id="current-time">0:00</span>
- <span id="duration">0:00</span>
- </div>
- </div>
- <div class="controls">
- <div class="play-btn" id="play-btn">
- <i id="play-icon">▶</i>
- </div>
- <div class="volume-container">
- <i>🔊</i>
- <div class="volume-slider">
- <div class="volume-level" id="volume-level"></div>
- </div>
- </div>
- <button class="download-btn" style="display: none;">
- <i>↓</i> 下载音频
- </button>
- </div>
-
- <div class="url-input" style="display: none;">
- <div id="audio-url" placeholder="输入音频URL地址" value="">
- </div>
- </div>
- <a id="downloadLink" style="display: none;"></a>
- </div>
- <script>
- var audioUrl = helper.request.queryString("audioUrl");
- var roleCode = localStorage.getItem('roleCode')
- // JCRY 稽查角色 JCLD 稽查领导
- $(".download-btn").click(function(){
- downloadFile(audioUrl)
- })
-
- $(document).ready(function() {
- console.log('roleCode',roleCode)
- if (roleCode !== 'JCRY' ) {
- $(".download-btn").show()
- $(".url-input").show()
- }
- $("#audio-url").text(audioUrl)
- // 创建音频元素
- const audio = new Audio();
- let isPlaying = false;
- // DOM元素
- const playBtn = $("#play-btn");
- const playIcon = $("#play-icon");
- const progressBar = $("#progress");
- const currentTimeEl = $("#current-time");
- const durationEl = $("#duration");
- const volumeSlider = $(".volume-slider");
- const volumeLevel = $("#volume-level");
- const toggleDownload = $("#toggle-download");
- // 设置初始音量
- audio.volume = 0.8;
- // 播放/暂停功能
- playBtn.click(function() {
- if(audio.src) {
- if(isPlaying) {
- audio.pause();
- playIcon.text("▶");
- } else {
- audio.play();
- playIcon.text("❚❚");
- }
- isPlaying = !isPlaying;
- } else {
- loadAudio();
- }
- });
- // 加载音频
- function loadAudio() {
- const url = audioUrl;
- if(url) {
- audio.src = url;
- audio.load();
- // 当音频加载后更新信息
- audio.addEventListener('loadedmetadata', function() {
- durationEl.text(formatTime(audio.duration));
- });
- audio.play();
- playIcon.text("❚❚");
- isPlaying = true;
- } else {
- alert("请输入有效的音频URL");
- }
- }
- // 更新进度条
- audio.addEventListener('timeupdate', function() {
- const currentTime = audio.currentTime;
- const duration = audio.duration;
- if(duration) {
- const progressPercent = (currentTime / duration) * 100;
- progressBar.css('width', progressPercent + '%');
- currentTimeEl.text(formatTime(currentTime));
- }
- });
- // 点击进度条跳转
- $(".progressBar").click(function(e) {
- const width = $(this).width();
- const clickX = e.offsetX;
- const duration = audio.duration;
- audio.currentTime = (clickX / width) * duration;
- });
- // 音量控制
- volumeSlider.click(function(e) {
- const width = $(this).width();
- const clickX = e.offsetX;
- const volume = clickX / width;
- audio.volume = volume;
- volumeLevel.css('width', volume * 100 + '%');
- });
- // 格式化时间 (秒 -> MM:SS)
- function formatTime(seconds) {
- const min = Math.floor(seconds / 60);
- const sec = Math.floor(seconds % 60);
- return `${min}:${sec < 10 ? '0' : ''}${sec}`;
- }
-
- // 初始加载音频
- // loadAudio();
- });
-
- function downloadFile(url, filename) {
- fetch(url).then(response => response.blob()) .then(blob => {
- const url = window.URL.createObjectURL(blob);
- const a = document.createElement('a');
- a.style.display = 'none';
- a.href = url;
-
- // 如果没有提供文件名,尝试从URL中提取
- const inferredFilename = url.substring(url.lastIndexOf('/') + 1);
- a.download = filename || inferredFilename;
-
- document.body.appendChild(a);
- a.click();
- document.body.removeChild(a);
- window.URL.revokeObjectURL(url);
- })
- .catch(() => alert('下载失败'));
- }
- </script>
- </body>
- </html>
|