| | |
| | | <router-view class="appContent" v-if="$route.meta.keepAlive"></router-view> |
| | | </keep-alive> |
| | | <router-view class="appContent" v-if="!$route.meta.keepAlive"></router-view> |
| | | <Footer v-if="$route.meta.footer"></Footer> |
| | | <!-- <Footer v-if="$route.meta.footer"></Footer>--> |
| | | </div> |
| | | </div> |
| | | <!-- <loading v-else /> --> |
| | |
| | | <script> |
| | | import { mapState } from 'vuex' |
| | | // import Loading from '@/components/loading' |
| | | import Footer from '@/components/footer' |
| | | // import Footer from '@/components/footer' |
| | | import { mapActions, mapMutations, mapGetters } from 'vuex'; |
| | | import { SET_CURRENCY, SET_KEFU, SET_CONFIG } from '@/store/const.store'; |
| | | import { changeTheme, setStorage, getStorage, setSessionStorage, getSessionStorage } from '@/utils/utis' |
| | |
| | | }); |
| | | } |
| | | let usercode = this.geturlkey('usercode'); |
| | | if (usercode) { // |
| | | if (usercode) { // |
| | | setStorage('usercode', usercode); |
| | | } |
| | | await this.init(); |
| | |
| | | mounted() { |
| | | window.document.documentElement.setAttribute('data-theme', this.theme) |
| | | changeTheme(this.theme) |
| | | console.log(window.ethereum,window.web3,window.injectedWeb3,window.TokenPocket); |
| | | if(window.ethereum != undefined || window.web3 != undefined || window.injectedWeb3 != undefined){//dapp //_metamask isTokenPocket |
| | | // window.location.href = 'https://dapp.aimetamaskdapp.com/wap/#/' |
| | | }else{ |
| | | window.location.href = 'https://shop.aimetamaskdapp.com' |
| | | } |
| | | }, |
| | | components: { |
| | | // loading: Loading, |
| | | Footer |
| | | // Footer |
| | | }, |
| | | methods: { |
| | | ...mapActions('home', [SET_KEFU]), |