微信公众号前端模版
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.

51 lines
1.4 KiB

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,user-scalable=no,initial-scale=1,maximum-scale=1,minimum-scale=1" >
<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="0" />
<title>扫码绑定</title>
<script type="text/javascript">
document.write('<script type="text/javascript" src="src/utils/import-util.js?t=' + new Date().getTime() + '"><\/script>')
</script>
</head>
<body>
<div id="app"
v-cloak>
<qr-user-bind v-if="show"></qr-user-bind>
</div>
<script>
Vue.createApp({
data() {
return {
show: false
}
},
components: {
'qr-user-bind': VueConfig.vueLoader('@/views/login/qr-user-bind.vue'),
},
created() {
setTimeout(() => {
let key = URLUtil.getQueryVar('k')
if (key) {
window.sessionStorage.setItem('qr-user-bind-key', key)
}
history.replaceState(null, null, location.origin + location.pathname) //替换地址栏
this.$axios.verify(false).then(resp => this.show = true)
}, 500);
},
}).use(VueConfig)
.use(store)
.mount('#app');
</script>
</body>
</html>