添加了小程序跳转所需的需要改页

pull/10/head
孙萌 2023-10-08 15:35:13 +08:00
parent fdd43c9bdd
commit 74cc6c6f64
7 changed files with 70 additions and 44 deletions

View File

@ -43,7 +43,12 @@ input::-webkit-inner-spin-button {
-webkit-appearance: none !important;
margin: 0;
}
#app{
min-width: 1290px;
min-height: 900px;
width: 100vw;
height: 100vh;
}
@font-face {
font-family: Oswald;
src: url(./assets/ttf/Oswald-Medium.ttf);

View File

@ -112,4 +112,8 @@ export default {
getGethls(data){
return sendGetRequest("/camera/gethls",data);
},
//根据ID查询用户信息
getUser(data){
return sendGetRequest('/api/sel/user',data)
},
};

View File

@ -203,8 +203,8 @@
}
.index {
width: 100vw;
height: 100vh;
width: 100%;
height: 100%;
min-height: 900px;
overflow: auto;
background: url(../image/index-background.png) no-repeat;
@ -377,11 +377,13 @@
height: 100%;
background: rgba(0, 29, 68, 0.25);
border-right: 2px solid rgba(0, 180, 255, 0.25);
overflow: auto;
}
.index .index-content .right {
width: calc(100% - 240px);
height: 100%;
overflow: auto;
}
.input-view {

File diff suppressed because one or more lines are too long

View File

@ -217,14 +217,13 @@
}
.index {
width: 100vw;
height: 100vh;
width: 100%;
height: 100%;
min-height: 900px;
overflow: auto;
background: url(../image/index-background.png) no-repeat;
background-size: 1920px 1080px;
background-position: center top;
.no-list {
color: #fff;
display: flex;
@ -392,12 +391,13 @@
background: rgba(0, 29, 68, 0.25);
border-right: 2px solid rgba(0, 180, 255, 0.25);
overflow: auto;
}
.right {
width: calc(100% - 240px);
height: 100%;
overflow: auto;
}
}
}

View File

@ -104,8 +104,8 @@ export default {
</script>
<style lang="scss">
.home {
width: 100vw;
height: 100vh;
width: 100%;
height: 100%;
min-height: 900px;
overflow: auto;
background: url(../assets/image/background.jpg) no-repeat;

View File

@ -88,11 +88,26 @@ export default {
},
mounted() {
this.getTime()
var router = this.$route.query
if (router.token && router.userid) {
localStorage.setItem('token', router.token)
this.api.getUser({ userId: router.userid }).then(res => {
var data=res.data.data
data.userid=router.userid
localStorage.setItem('userInfo', JSON.stringify(data))
this.userInfo = JSON.parse(localStorage.getItem('userInfo'))
this.gerRouter();
this.getEqbyid()
})
return
} else {
if (localStorage.getItem('token')) {
this.userInfo = JSON.parse(localStorage.getItem('userInfo'))
}
this.gerRouter();
this.getEqbyid()
}
},