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

57 lines
1.6 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>loading</title>
<script src="lib/base64/base64.min.js"></script>
<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>
</div>
<script>
Vue.createApp({
created() {
this.$axios.verify().then(resp => {
// type:1是体检预约,2是报告查询
let type = URLUtil.getQueryVar('type')
if (!type) type = 1
const users = []
resp.patients.forEach(item => {
users.push({
name: encodeURI(item.name),
phone: item.tel,
idCard: item.idCardNo
})
})
if (users.length === 0) {
return vant.Notify({ type: 'danger', message: '请您先绑定信息' })
}
try {
const userJson = window.btoa(JSON.stringify(users))
window.location.href = `/peis/#/?type=${type}&users=${userJson}`
} catch (e) {
alert(e)
}
})
},
}).use(VueConfig)
.use(store)
.mount('#app');
</script>
</body>
</html>