You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
78 lines
1.8 KiB
78 lines
1.8 KiB
import Vue from 'vue'
|
|
import App from './App'
|
|
import uView from "uview-ui";
|
|
import VueClipboards from 'vue-clipboard2'
|
|
import VueI18n from 'vue-i18n'
|
|
import axios from './utils/axios.js'
|
|
import bip39 from 'bip39'
|
|
import bip32 from 'bip32'
|
|
import tronweb from 'tronweb'
|
|
import Tx from 'ethereumjs-tx'
|
|
import bitcoin from 'bitcoinjs-lib'
|
|
import ethers from 'ethers'
|
|
import util from 'ethereumjs-util'
|
|
|
|
import store from './store'
|
|
import walletUtil from './utils/WalletUtil.js'
|
|
import dataUtil from './utils/DataUtil.js'
|
|
Vue.prototype.$store = store
|
|
Vue.prototype.tronweb = tronweb
|
|
Vue.prototype.bip32 = bip32
|
|
Vue.prototype.bip39 = bip39
|
|
Vue.prototype.Tx = Tx
|
|
Vue.prototype.bitcoin = bitcoin
|
|
Vue.prototype.ethers = ethers
|
|
Vue.prototype.$axios = axios
|
|
Vue.prototype.$walletUtil = walletUtil
|
|
Vue.prototype.$dataUtil = dataUtil
|
|
|
|
// 自定义底部导航栏
|
|
import tabBar from 'components/tabBar/tabBar.vue'
|
|
Vue.component('tab-bar', tabBar)
|
|
|
|
Vue.use(uView);
|
|
Vue.use(VueClipboards);
|
|
Vue.use(VueI18n);
|
|
|
|
// 中英化
|
|
import ZH from './utils/locales/zh.js'
|
|
import ZHF from './utils/locales/zh-F.js'
|
|
import EN from './utils/locales/en.js'
|
|
|
|
const i18n = new VueI18n({
|
|
locale: store.state.language, // 默认选择的语言
|
|
// locale:'en',
|
|
// locale:'zh-CN',
|
|
messages: {
|
|
'zh-CN': ZH,
|
|
'zh-CNF': ZHF,
|
|
'en': EN
|
|
}
|
|
})
|
|
|
|
|
|
// 获取钱包相关方法
|
|
import TokenUtil from './utils/TokenUtil.js'
|
|
import EthUtil from './utils/EthUtil.js'
|
|
import TronUtil from './utils/TronUtil.js'
|
|
import api from './utils/api.js'
|
|
Vue.prototype.$Token = TokenUtil
|
|
Vue.prototype.$EthUtil = EthUtil
|
|
Vue.prototype.$TronUtil = TronUtil
|
|
Vue.prototype.$api = api
|
|
Vue.prototype.$_i18n = i18n
|
|
// Vue.prototype.$showDialog = true
|
|
App.mpType = 'app'
|
|
|
|
|
|
|
|
|
|
Vue.config.productionTip = false
|
|
|
|
const app = new Vue({
|
|
i18n,
|
|
store,
|
|
...App
|
|
})
|
|
|
|
app.$mount()
|
|
|