- ID de l'analyse :
- c4451a94-9374-44ae-b94b-e42178f1cebfTerminée
- URL soumise :
- https://sgxt.hblgxy.edu.cn/Redirigé
- Fin du rapport :
Liens : 0 trouvé(s)
Liens sortants identifiés à partir de la page
Variables JavaScript : 7 trouvée(s)
Les variables JavaScript globales chargées dans l'objet fenêtre d'une page sont des variables déclarées en dehors des fonctions et accessibles depuis n'importe quel endroit du code au sein du champ d'application actuel
Nom | Type |
---|---|
onbeforetoggle | object |
documentPictureInPicture | object |
onscrollend | object |
Vue | function |
axios | function |
vant | object |
vm | object |
Messages de journal de console : 6 trouvé(s)
Messages consignés dans la console web
Type | Catégorie | Enregistrement |
---|---|---|
error | javascript |
|
error | network |
|
log | javascript |
|
error | javascript |
|
error | network |
|
log | javascript |
|
HTML
Le corps HTML de la page en données brutes
<!DOCTYPE html><html><head>
<meta charset="UTF-8">
<title>个人中心</title>
<meta name="viewport" content="width=device-width, initial-scale=1 user-scalable=0">
<link rel="stylesheet" href="css/vant.css">
<link rel="stylesheet" href="css/font-awesome/css/font-awesome.min.css">
<link rel="stylesheet" href="css/public.css">
<style>
.formBox{ background: #fff; }
.formBox .label{ display: flex; align-items: center; padding: 24px 12px; font-size: 20px; }
.formBox .bar{ width: 6px; height: 24px; background: #1989fa; margin-right: 8px; }
.formBox .btnBox{ text-align: center; margin: 30px 0; font-size: 18px; }
.formBox .stepBox{
overflow: hidden;
padding: 0 12px;
padding-bottom: 20px;
}
.formBox .stepBox .stepItem{
float: left;
width: calc(100% / 2);
text-align: center;
}
/*.formBox .stepBox .stepItem:first-child{*/
/* text-align: left;*/
/*}*/
/*.formBox .stepBox .stepItem:last-child{*/
/* text-align: right;*/
/*}*/
.formBox .numBox{
position: relative;
overflow: hidden;
height: 40px;
}
.formBox .numBox .line{
position: absolute; top: 12px;
float: left;
width: calc(50% - 32px); height: 2px;
background: #f4f4f4;
}
.formBox .numBox .num{
float: left;
position: absolute; left: 50%;
margin-left: -12px;
display: inline-block;
width: 24px; height: 24px;
line-height: 24px;
border-radius: 24px;
text-align: center;
background: #006fff;
color: #fff;
}
.formBox .numBox .num span{
font-size: 18px
}
.formBox .titleBox{
display: inline-block;
}
.formBox .title{
display: flex;
font-size: 13px;
overflow: hidden;
line-height: 18px;
}
.formBox .title span{
float: left;
}
.formBox .title .icon{
position: relative; top: 2px;
float: left;
background: #1ea159;
color: #fff;
width: 14px; height: 14px;
line-height: 17px;
text-align: center;
border-radius: 14px;
margin-left: 6px;
}
.formBox .navBox{
overflow: hidden;
margin: 0 12px;
box-shadow: 0 0 8px #eee;
padding: 10px 0;
}
.formBox .navBox .navItem{
float: left;
width: 25%;
text-align: center;
padding-top: 10px;
}
.formBox .navBox .navItem img{
width: 40px; height: 40px;
}
.formBox .navBox .navItem p{
margin-top: 6px;
font-size: 13px;
}
</style>
</head>
<body>
<!---->
<script type="text/javascript" src="js/vue.min.js"></script>
<script type="text/javascript" src="js/axios.min.js"></script>
<script type="text/javascript" src="js/vant.min.js"></script>
<script type="text/javascript">
var vm = new Vue ({
el: '#demo',
data: {
customer_service: '',
info: {},
first_state: false,
loading: false,
ifShowSize: false,
results: {
name: '王小红',
native: '湖南省长沙市',
qq: '12314192412',
mail: '[email protected]',
address: '广东省清远市新城区星星街道121号美丽家园7栋1023',
member1Name: '王大春',
member1Phone: '13433434334',
member2Name: '梅又开',
member2Phone: '15755757557',
clotheSize: 'S码'
},
inOperation: [],
sizeID: 0,
sizeOption: ['S码', 'M码', 'L码', 'XL码', 'XXL码'],
stepData: [{
title: '线上预报到',
url: 'checkList.html'
},
// {
// title: '现场报到',
// url: 'registerList.html'
// },
{
title: '线下报到',
url: 'waitList.html'
}],
navData: [{
title: '学校简介',
img_url: 'images/icon01.png',
url: ''
}, {
title: '专业介绍',
img_url: 'images/icon02.png',
url: ''
}, {
title: '延迟报到',
img_url: 'images/icon03.png',
url: 'greenWay.html'
}, {
title: '绿色通道',
img_url: 'images/icon04.png',
url: 'greenWay.html?type=1'
}, {
title: '院系报道',
img_url: 'images/icon05.png',
url: 'greenWay.html?type=2'
}, {
title: '物资领取',
img_url: 'images/icon06.png',
url: 'materialList.html'
}, {
title: '宿舍选择',
img_url: 'images/icon07.png',
url: 'roomChoose.html'
}, {
title: '校园导览',
img_url: 'images/icon08.png',
url: ''
}]
},
mounted () {
this.axiosGet('/api/index/setting/getInfo', { name: 'customer_service' })
this.axiosPost('/api/index/singe/detail', { id: 1 })
this.axiosPost('/api/user/detail', {})
},
methods: {
// 查值
storageGet(key) {
return JSON.parse(localStorage.getItem(key))
},
// 存值
storageSet(key, value) {
localStorage.setItem(key, JSON.stringify(value))
},
toUrl(url, type) {
if (url !== '') {
//迎新第二步开放判断
if (url === 'registerList.html') {
//if (!this.first_state) {
this.$toast.fail('预计9月10日开放')//'请先完成线上预报道'
return false
//}
}
//迎新第三步开放判断
if (url === 'waitList.html') {
// if (!(this.info.active_status && this.info.campus_is_report)) {
// if (!this.first_state) {
// this.$toast.fail('预计9月10日开放')//'请先完成现场报道'
// return false
// }
}
if (url === 'roomChoose.html') {
this.$toast.fail('宿舍选择功能正在完善,预计8月份开放')
return false
}
window.location.href = url
}
},
axiosGet(url, subData) {
var this_ = this
var host = window.location.href.split(':')[0] === 'file' ? 'http://192.168.2.197:8000' : (window.location.protocol + '//' + window.location.hostname)
axios.get(host + url, { params: subData })
.then(function (res) {
if (res.data.code === 302) {
window.location.href = res.data.data.url
}
if (res.data.code !== 0) {
this_.$toast.fail(res.data.msg)
return false
}
if (url === '/api/index/setting/getInfo') {
this_.customer_service = res.data.data.content
this_.$forceUpdate()
}
})
.catch(function (error) {
console.log(error)
this_.$toast.fail(error.response.data.msg)
})
},
axiosPost(url, subData) {
var this_ = this
var host = window.location.href.split(':')[0] === 'file' ? 'http://192.168.2.197:8000' : (window.location.protocol + '//' + window.location.hostname)
axios.post(host + url, subData)
.then(function (res) {
if (res.data.code === 302) {
window.location.href = res.data.data.url
}
if (res.data.code !== 0) {
this_.$toast.fail(res.data.msg)
return false
}
if (url === '/api/user/detail') {
if (!res.data.data.first_state) {
// window.location.href = 'checkList.html'
}
this_.first_state = res.data.data.first_state
this_.info = res.data.data.info
this_.storageSet('info', res.data.data.info)
this_.loading = false
this_.$forceUpdate()
console.log(this_.loading)
}
if (url === '/api/index/singe/detail') {
var link = res.data.data.info.content.link
this_.navData = []
for (var i in link) {
this_.navData.push({
state: link[i].state,
title: link[i].name,
url: parseInt(link[i].type) === 0 ? ('article.html?id=' + link[i].url) : link[i].url,
img_url: link[i].icon.thumb
})
}
}
if (url === '/api/login/logout') {
window.location.href = 'login.html'
}
})
.catch(function (error) {
console.log(error)
this_.$toast.fail(error.response.data.msg)
})
},
onConfirm(val, index) {
this.ifShowSize = true
}
}
})
</script>
<div class="van-toast van-toast--middle van-toast--fail van-fade-enter van-fade-enter-active" style="z-index: 2002;"><i class="van-icon van-icon-fail van-toast__icon"><!----></i><div class="van-toast__text">server error [RuntimeException]</div></div></body></html>