AIzhushou-screen/src/views/header.vue

75 lines
1.7 KiB
Vue
Raw Normal View History

2024-05-22 08:44:08 +08:00
<script setup lang="ts">
import { testGet } from "@/api";
const test = () => {
testGet().then((res: any) => {
console.log("test", res);
})
};
const returnHome = () => {
console.log('history.go(-1)');
2024-05-22 09:54:45 +08:00
2024-05-22 08:44:08 +08:00
history.go(-1)
// window.location.href = 'http://nclg.yx.zheke.com/#/login';
};
</script>
<template>
<div class="d-flex jc-center title_wrap">
<div class="guang"></div>
<div class="d-flex jc-center">
<div class="title">
2024-05-22 09:32:42 +08:00
<span class="title-text" @click="test()">新生报道情况</span>
2024-05-22 08:44:08 +08:00
<span style="color: yellow;" @click="returnHome()">返回</span>
</div>
</div>
</div>
</template>
<style scoped lang="scss">
.title_wrap {
height: 60px;
background-image: url("../assets/img/top.png");
background-size: cover;
background-position: center center;
position: relative;
margin-bottom: 4px;
.guang {
position: absolute;
bottom: -26px;
background-image: url("../assets/img/guang.png");
background-position: 80px center;
width: 100%;
height: 56px;
}
}
.title {
position: relative;
// width: 500px;
text-align: center;
background-size: cover;
color: transparent;
height: 60px;
line-height: 46px;
.title-text {
2024-05-22 10:52:34 +08:00
font-family: 'YouSheBiaoTiHei';
2024-05-22 08:44:08 +08:00
font-size: 38px;
2024-05-22 10:52:34 +08:00
font-weight: 400;
2024-05-22 08:44:08 +08:00
letter-spacing: 6px;
2024-05-22 09:54:45 +08:00
2024-05-22 08:44:08 +08:00
width: 100%;
2024-05-22 09:54:45 +08:00
color: #ECEDEE;
text-shadow: 0px 4px 1px rgba(50, 81, 140, 0.66);
2024-05-22 10:52:34 +08:00
// background: linear-gradient(
// 0deg, rgba(141, 185, 253, 0.45) 0%,
// rgba(237, 247, 255, 0.45) 73.3154296875%,
// rgba(255, 255, 255, 0.45) 100%);
// opacity: 0.89;
// -webkit-background-clip: text;
// -webkit-text-fill-color: transparent;
2024-05-22 08:44:08 +08:00
}
}
</style>