| | |
| | | import '@smallwei/avue/lib/index.css' |
| | | import '@/assets/scss/index.scss' |
| | | import httpRequest from '@/utils/httpRequest' // api: https://github.com/axios/axios |
| | | import { isAuth } from '@/utils' |
| | | import { |
| | | isAuth |
| | | } from '@/utils' |
| | | import VueClipboard from 'vue-clipboard2' |
| | | |
| | | import { menuMap } from './config' |
| | | import { |
| | | menuMap |
| | | } from './config' |
| | | |
| | | |
| | | // |
| | |
| | | |
| | | Vue.prototype.playAudioOfWithdraw = () => { |
| | | let buttonAudio = document.getElementById('eventAudio'); |
| | | buttonAudio.setAttribute('src',withdraw) |
| | | buttonAudio.play() |
| | | let playCount = 0; // 计数器,记录播放次数 |
| | | const totalPlays = 1; // 播放次数 |
| | | // 设置音频源 |
| | | buttonAudio.setAttribute('src', withdraw); |
| | | // 监听音频播放结束事件 |
| | | buttonAudio.addEventListener('ended', function() { |
| | | playCount++; // 增加播放次数 |
| | | if (playCount < totalPlays) { |
| | | buttonAudio.play(); // 如果播放次数小于3次,则继续播放 |
| | | } |
| | | }); |
| | | |
| | | // 播放音频 |
| | | buttonAudio.play(); |
| | | } |
| | | |
| | | // 引入音频文件 |
| | | import recharge from './assets/music/recharge.mp3' |
| | | |
| | | Vue.prototype.playAudioOfRecharge = () => { |
| | | // let buttonAudio = document.getElementById('eventAudio'); |
| | | // buttonAudio.setAttribute('src',recharge) |
| | | // buttonAudio.play() |
| | | let buttonAudio = document.getElementById('eventAudio'); |
| | | buttonAudio.setAttribute('src',recharge) |
| | | buttonAudio.play() |
| | | let playCount = 0; // 计数器,记录播放次数 |
| | | const totalPlays = 1; // 播放次数 |
| | | // 设置音频源 |
| | | buttonAudio.setAttribute('src', recharge); |
| | | // 监听音频播放结束事件 |
| | | buttonAudio.addEventListener('ended', function() { |
| | | playCount++; // 增加播放次数 |
| | | if (playCount < totalPlays) { |
| | | buttonAudio.play(); // 如果播放次数小于3次,则继续播放 |
| | | } |
| | | }); |
| | | |
| | | // 播放音频 |
| | | buttonAudio.play(); |
| | | } |
| | | |
| | | // 引入音频文件 |
| | |
| | | |
| | | Vue.prototype.playAudioOfRzzt = () => { |
| | | let buttonAudio = document.getElementById('eventAudio'); |
| | | buttonAudio.setAttribute('src',rzzt) |
| | | buttonAudio.play() |
| | | let playCount = 0; // 计数器,记录播放次数 |
| | | const totalPlays = 1; // 播放次数 |
| | | // 设置音频源 |
| | | buttonAudio.setAttribute('src', rzzt); |
| | | // 监听音频播放结束事件 |
| | | buttonAudio.addEventListener('ended', function() { |
| | | playCount++; // 增加播放次数 |
| | | if (playCount < totalPlays) { |
| | | buttonAudio.play(); // 如果播放次数小于3次,则继续播放 |
| | | } |
| | | }); |
| | | |
| | | // 播放音频 |
| | | buttonAudio.play(); |
| | | } |
| | | // 引入音频文件 |
| | | import contract from './assets/music/contract.mp3' |
| | | |
| | | Vue.prototype.playAudioOfContract = () => { |
| | | let buttonAudio = document.getElementById('eventAudio'); |
| | | let playCount = 0; // 计数器,记录播放次数 |
| | | const totalPlays = 1; // 播放次数 |
| | | // 设置音频源 |
| | | buttonAudio.setAttribute('src', contract); |
| | | // 监听音频播放结束事件 |
| | | buttonAudio.addEventListener('ended', function() { |
| | | playCount++; // 增加播放次数 |
| | | if (playCount < totalPlays) { |
| | | buttonAudio.play(); // 如果播放次数小于3次,则继续播放 |
| | | } |
| | | }); |
| | | |
| | | // 播放音频 |
| | | buttonAudio.play(); |
| | | } |
| | | |
| | | /* eslint-disable no-new */ |
| | | new Vue({ |