| | |
| | | import Vue from 'vue' |
| | | import ElementUI from 'element-ui' |
| | | import App from '@/App' |
| | | import router from '@/router' // api: https://github.com/vuejs/vue-router |
| | | import store from '@/store' // api: https://github.com/vuejs/vuex |
| | | import VueCookie from 'vue-cookie' // api: https://github.com/alfhen/vue-cookie |
| | | import '@/icons' // api: http://www.iconfont.cn/ |
| | | import router from '@/router' // api: https://github.com/vuejs/vue-router |
| | | import store from '@/store' // api: https://github.com/vuejs/vuex |
| | | import VueCookie from 'vue-cookie' // api: https://github.com/alfhen/vue-cookie |
| | | import '@/icons' // api: http://www.iconfont.cn/ |
| | | import '@/element-ui-theme/style.css' |
| | | import Avue from '@smallwei/avue' // api: https://avue.top |
| | | import Avue from '@smallwei/avue' // api: https://avue.top |
| | | 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' |
| | | |
| | | |
| | | // |
| | |
| | | import Contextmenu from 'vue-contextmenujs' |
| | | Vue.use(Contextmenu) |
| | | |
| | | // 引入富文本编辑器 |
| | | import VueQuillEditor from 'vue-quill-editor' |
| | | import 'quill/dist/quill.core.css' |
| | | import 'quill/dist/quill.snow.css' |
| | | import 'quill/dist/quill.bubble.css' |
| | | Vue.use(VueQuillEditor) |
| | | |
| | | // 挂载全局 |
| | | Vue.prototype.$http = httpRequest // ajax请求方法 |
| | | Vue.prototype.isAuth = isAuth // 权限方法 |
| | | Vue.prototype.isAuth = isAuth // 权限方法 |
| | | |
| | | Vue.prototype.menuMap = menuMap |
| | | |
| | |
| | | import mute from './assets/music/mute.mp3' |
| | | |
| | | Vue.prototype.playAudioOfMute = () => { |
| | | let buttonAudio = document.getElementById('eventAudio'); |
| | | buttonAudio.setAttribute('src',mute) |
| | | buttonAudio.play() |
| | | let buttonAudio = document.getElementById('eventAudio'); |
| | | buttonAudio.setAttribute('src', mute) |
| | | buttonAudio.play() |
| | | } |
| | | |
| | | // 引入音频文件 |
| | | import withdraw from './assets/music/withdraw.mp3' |
| | | |
| | | Vue.prototype.playAudioOfWithdraw = () => { |
| | | let buttonAudio = document.getElementById('eventAudio'); |
| | | buttonAudio.setAttribute('src',withdraw) |
| | | buttonAudio.play() |
| | | let buttonAudio = document.getElementById('eventAudio'); |
| | | 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 buttonAudio = document.getElementById('eventAudio'); |
| | | let playCount = 0; // 计数器,记录播放次数 |
| | | const totalPlays = 1; // 播放次数 |
| | | // 设置音频源 |
| | | buttonAudio.setAttribute('src', recharge); |
| | | // 监听音频播放结束事件 |
| | | buttonAudio.addEventListener('ended', function() { |
| | | playCount++; // 增加播放次数 |
| | | if (playCount < totalPlays) { |
| | | buttonAudio.play(); // 如果播放次数小于3次,则继续播放 |
| | | } |
| | | }); |
| | | |
| | | // 播放音频 |
| | | buttonAudio.play(); |
| | | } |
| | | |
| | | // 引入音频文件 |
| | | import rzzt from './assets/music/rzzt.mp3' |
| | | |
| | | Vue.prototype.playAudioOfRzzt = () => { |
| | | let buttonAudio = document.getElementById('eventAudio'); |
| | | buttonAudio.setAttribute('src',rzzt) |
| | | buttonAudio.play() |
| | | let buttonAudio = document.getElementById('eventAudio'); |
| | | 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({ |
| | | el: '#app', |
| | | router, |
| | | store, |
| | | render: h => h(App), |
| | | beforeCreate() { |
| | | // bus 总线 |
| | | // $ 为了迎合 vue 的命名习惯 |
| | | // 安装全局事件总线,$bus就是当前应用的vm |
| | | Vue.prototype.$bus = this |
| | | } |
| | | }) |
| | | el: '#app', |
| | | router, |
| | | store, |
| | | render: h => h(App), |
| | | beforeCreate() { |
| | | // bus 总线 |
| | | // $ 为了迎合 vue 的命名习惯 |
| | | // 安装全局事件总线,$bus就是当前应用的vm |
| | | Vue.prototype.$bus = this |
| | | } |
| | | }) |