新版交易所前段管理后台
1
PC-20250623MANY\Administrator
2025-10-17 15a0e50e48ef7c165140f3bf315a0a7f9ee742c3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
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 '@/element-ui-theme/style.css'
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 VueClipboard from 'vue-clipboard2'
 
import {
    menuMap
} from './config'
 
 
//
 
// import './core/lazy-use'
import './core/global-component'
// import './core/filter'
// import './core/directives'
// import '@/permission'
// import '@/icons'
 
// 引入自定义全局css
// import '@/assets/css/global.less'
 
// import cloneDeep from 'lodash/cloneDeep'
VueClipboard.config.autoSetContainer = true // add this line
Vue.use(VueClipboard)
Vue.use(Avue)
Vue.use(VueCookie)
Vue.use(ElementUI)
Vue.config.productionTip = false
 
 
import Contextmenu from 'vue-contextmenujs'
Vue.use(Contextmenu)
 
// 挂载全局
Vue.prototype.$http = httpRequest // ajax请求方法
Vue.prototype.isAuth = isAuth // 权限方法
 
Vue.prototype.menuMap = menuMap
 
Vue.prototype.$login = false
 
Vue.prototype.IS_DEBUG = false;
 
Vue.prototype.$isKefu = false;
console.log("================================");
 
// 保存整站vuex本地储存初始状态
// process.env.VUE_APP_RESOURCES_URL['storeState'] = cloneDeep(store.state)
 
// 引入音频文件
import mute from './assets/music/mute.mp3'
 
Vue.prototype.playAudioOfMute = () => {
    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');
    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');
    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');
    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
    }
})