Commit beb64137 authored by salitedfish's avatar salitedfish

怎么跳转默认浏览器提示遮罩层

parent 6deb5c11
<template>
<div id="app" class="bg-font-black">
<van-overlay :show="is_neizhi">
<div class=" text-white text-center leading-10 text-lg">请在默认浏览器中打开</div>
</van-overlay>
<van-overlay :show="appState.overlay.show" class="">
<div class="overlay items-start flex flex-col text-font-white w-full px-6 relative">
<div class="text-xl py-12 pt-28">
......@@ -85,13 +88,22 @@ export default Vue.extend({
}
})
this.closeNFT()
}
},
},
computed: {
appState: function () {
return this.$store.state.app;
},
is_neizhi(){
const ua = navigator.userAgent.toLowerCase() as any;
if (ua.match(/MicroMessenger/i) == "micromessenger") {
return "weixin";
} else if (ua.match(/QQ/i) == "qq") {
return "QQ";
}
return false;
}
},
});
</script>
......
......@@ -14,6 +14,7 @@ import { Toast,Empty,Dialog,Lazyload } from 'vant'
import VConsole from 'vconsole';
const vconsole = process.env.VUE_APP_ENV === 'TEST'?new VConsole():''
// const vconsole = new VConsole()
window.console.log(vconsole,'移动console');
Vue.use(Lazyload);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment