修改日志记录方式
parent
426761164f
commit
4dc01cea38
@ -1,4 +1,4 @@
|
|||||||
ENV = 'production'
|
ENV = 'production'
|
||||||
VITE_APP_API = 'https://www.yanzai.vip/common/laravel/public/api/'
|
VITE_APP_API = 'http://223.71.106.251:33581/common/la/public/api/'
|
||||||
VITE_APP_FILE = 'https://www.yanzai.vip/common/laravel/public'
|
VITE_APP_FILE = 'http://223.71.106.251:33581/common/la/public'
|
||||||
|
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
ENV = 'production'
|
ENV = 'production'
|
||||||
VITE_APP_API = 'https://www.yanzai.vip/common/laravel/public/api/'
|
VITE_APP_API = 'http://223.71.106.251:33581/common/la/public/api/'
|
||||||
VITE_APP_WXCODE_URL = 'http://www.yanzai.vip/common/laravel/public/wxLogin/production'
|
VITE_APP_WXCODE_URL = 'http://223.71.106.251:33581/common/la/public/wxLogin/production'
|
||||||
VITE_APP_FILE_URL= 'http://www.yanzai.vip/common/laravel/public/'
|
VITE_APP_FILE_URL= 'http://223.71.106.251:33581/common/la/public/'
|
||||||
VITE_APPID = "wx526430047d34c85c"
|
VITE_APPID = "wx526430047d34c85c"
|
||||||
|
|||||||
@ -0,0 +1,133 @@
|
|||||||
|
<template>
|
||||||
|
<div class="LoginMain">
|
||||||
|
<div class="info">
|
||||||
|
<div class="tip">查询体检信息</div>
|
||||||
|
<div class="label">身份证</div>
|
||||||
|
<div>
|
||||||
|
<van-field v-model="info.sfz" placeholder="请输入用户名" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="label">电话</div>
|
||||||
|
<div>
|
||||||
|
<van-field v-model="info.tel" placeholder="请输入用户名" />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<van-button type="primary" class="button" round @click="SearchInfo()">查询</van-button>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script setup>
|
||||||
|
import {
|
||||||
|
ref,
|
||||||
|
onMounted
|
||||||
|
} from 'vue';
|
||||||
|
import {
|
||||||
|
useRoute,
|
||||||
|
useRouter
|
||||||
|
} from "vue-router"
|
||||||
|
import { H5GetPersonReportDetail} from "@/api/api.js";
|
||||||
|
import { showToast } from 'vant';
|
||||||
|
const route = useRoute()
|
||||||
|
const router = useRouter();
|
||||||
|
const login = () => {
|
||||||
|
loading.value=true
|
||||||
|
window.location.replace(import.meta.env.VITE_APP_WXCODE_URL)
|
||||||
|
}
|
||||||
|
let loading=ref(false)
|
||||||
|
let info=ref({
|
||||||
|
sfz:'',
|
||||||
|
tel:''
|
||||||
|
})
|
||||||
|
let buttonText=ref('开始预约')
|
||||||
|
const SearchInfo=()=>{
|
||||||
|
if(info.value.sfz=='' || info.value.tel==''){
|
||||||
|
showToast('请输入身份证和手机号码');
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
H5GetPersonReportDetail({info:info.value}).then(res => {
|
||||||
|
loading.value=false
|
||||||
|
if (res.status) {
|
||||||
|
sessionStorage.setItem('sfz', info.value.sfz);
|
||||||
|
sessionStorage.setItem('token', res.data.token);
|
||||||
|
sessionStorage.setItem('refreshToken', res.data.refresh_token);
|
||||||
|
var token = sessionStorage.getItem('token');
|
||||||
|
if (token == res.data.token){
|
||||||
|
router.push('/showReport')
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
showToast(res.msg);
|
||||||
|
}
|
||||||
|
|
||||||
|
})
|
||||||
|
}
|
||||||
|
onMounted(() => {
|
||||||
|
|
||||||
|
let tijian_num =route.query.tijian_num
|
||||||
|
let logintype =route.query.logintype
|
||||||
|
|
||||||
|
sessionStorage.setItem('loginType', logintype);
|
||||||
|
sessionStorage.setItem('tijian_num', tijian_num);
|
||||||
|
let sloginType=sessionStorage.getItem('loginType');
|
||||||
|
console.log(sloginType)
|
||||||
|
if(sloginType=='undefined'){
|
||||||
|
console.log('denglu')
|
||||||
|
buttonText.value='开始预约'
|
||||||
|
}else{
|
||||||
|
console.log('report')
|
||||||
|
buttonText.value='查看报告'
|
||||||
|
}
|
||||||
|
//router.replace('/selectOrganization')
|
||||||
|
//window.location.href="http://localhostcommon/wxLogin"
|
||||||
|
|
||||||
|
})
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
.LoginMain {
|
||||||
|
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
height: 100vh;
|
||||||
|
background-image: url('../assets/image/login.jpg');
|
||||||
|
background-size: 100%;
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
background-color: #afeefd;
|
||||||
|
background-position: top center;
|
||||||
|
|
||||||
|
}
|
||||||
|
.button{
|
||||||
|
width: 60%;
|
||||||
|
margin-top: 50%;
|
||||||
|
background-color: #33cdc9;
|
||||||
|
color:#fff;
|
||||||
|
border: 3px solid #e6f5fd;
|
||||||
|
}
|
||||||
|
.info {
|
||||||
|
position: relative;
|
||||||
|
top: -10px;
|
||||||
|
/* border: 1px solid red; */
|
||||||
|
border-radius: 10px;
|
||||||
|
background-color: #fff;
|
||||||
|
padding: 20px 20px;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.info .van-field {
|
||||||
|
border-bottom: 1px solid #ccc;
|
||||||
|
}
|
||||||
|
.info .label{
|
||||||
|
font-size: 18px;
|
||||||
|
color: #3f3f3f;
|
||||||
|
font-weight: 700;
|
||||||
|
margin: 20px auto 0px auto;
|
||||||
|
}
|
||||||
|
.button{
|
||||||
|
width: 100%;
|
||||||
|
background-color: #33cdc9;
|
||||||
|
border: 0px;
|
||||||
|
margin-top: 40px;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
Loading…
Reference in New Issue