Browse Source

样式修改结束

milestone-20251107-股票知识测评
chenzhen 2 months ago
parent
commit
c425dd2bb5
  1. 22
      src/views/BuyView.vue
  2. 9
      src/views/HomeView.vue
  3. 54
      src/views/ProblemView.vue
  4. 1
      src/views/ReportView.vue

22
src/views/BuyView.vue

@ -24,19 +24,19 @@ export default{
</script> </script>
<style scoped> <style scoped>
.home{ .home{
width: 100%;
height: 100%;
background-image: url('@/assets/buy.jpg');
color: white;
padding: 20px;
}
.enter{
width: 100vw;
height: 100vh;
position: relative; position: relative;
top: 45px;
left: 360px;
background-image: url('@/assets/buy.jpg');
background-size: cover;
background-position: center;
} }
.img1{ .img1{
width: 70px;
height: 60px;
position: absolute;
top: 5vh;
left: 36vh;
width: 8%;
height: 8%;
object-fit: contain;
} }
</style> </style>

9
src/views/HomeView.vue

@ -56,6 +56,8 @@ export default {
} }
.home { .home {
width:100vw;
height:100vh;
position: relative; position: relative;
min-height: 100vh; min-height: 100vh;
display: flex; display: flex;
@ -65,13 +67,12 @@ export default {
} }
.image { .image {
width:10.4vw;
position: absolute; position: absolute;
width: 200px;
min-height: 160px;
max-height: 160px;
object-fit: contain; object-fit: contain;
bottom: 70px; bottom: 70px;
left: 682px;
left: 35.5%;
top: 82.6%;
/* left: 35.5%; */ /* left: 35.5%; */
} }

54
src/views/ProblemView.vue

@ -120,7 +120,7 @@ export default {
<div class="popup-content"> <div class="popup-content">
<h3>确认提示</h3> <h3>确认提示</h3>
<p>确定返回报告吗</p> <p>确定返回报告吗</p>
<div class="popup-buttons">
<div>
<button class="cancel-btn" @click="closeDialog">取消</button> <button class="cancel-btn" @click="closeDialog">取消</button>
<button class="confirm-btn" @click="confirmExit">确定</button> <button class="confirm-btn" @click="confirmExit">确定</button>
</div> </div>
@ -190,9 +190,8 @@ export default {
} }
.home{ .home{
min-height: 100vh; min-height: 100vh;
width: 100%;
width: 98vw;
background-color: #24293c; background-color: #24293c;
overflow:auto;
padding: 10px; padding: 10px;
} }
.top{ .top{
@ -201,6 +200,7 @@ export default {
padding: 30px; padding: 30px;
margin-bottom: 10px; margin-bottom: 10px;
position: relative; position: relative;
height: 15vh;
} }
.img-top{ .img-top{
float: left; float: left;
@ -215,51 +215,42 @@ export default {
} }
h1{ h1{
margin-bottom: 10px; margin-bottom: 10px;
background: none;
font-size: 2.2em; font-size: 2.2em;
} }
p{ p{
font-size: 1.2em; font-size: 1.2em;
margin-bottom: 10px; margin-bottom: 10px;
background: none;
} }
.popup-all{ .popup-all{
position: fixed; position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
z-index: 1000; z-index: 1000;
background: rgba(0, 0, 0, 0.5);
height: 100vh;
width:98vw;
backdrop-filter: blur(5px);
} }
.popup-background{ .popup-background{
position: absolute;
top: 0; top: 0;
left: 0; left: 0;
width: 100%;
height: 125%;
height: 100vh;
background: rgba(0, 0, 0, 0.5); background: rgba(0, 0, 0, 0.5);
backdrop-filter: blur(5px); backdrop-filter: blur(5px);
} }
.popup-content{ .popup-content{
background-color: #f1f5f9; background-color: #f1f5f9;
padding: 30px;
padding: 30px 0;
border-radius: 15px; border-radius: 15px;
box-shadow: 0 20px 40px rgba(0,0,0,0.3); box-shadow: 0 20px 40px rgba(0,0,0,0.3);
width: 90%;
text-align: center; text-align: center;
} }
.popup-buttons{
margin-top: 20px;
justify-content: center;
}
.cancel-btn,.confirm-btn{ .cancel-btn,.confirm-btn{
border-radius: 10px; border-radius: 10px;
border: transparent 0px; border: transparent 0px;
margin: 5px;
padding: 12px 30px;
margin: 10px;
height: 35px;
font-size: 1em; font-size: 1em;
font-weight: bold; font-weight: bold;
} }
@ -274,7 +265,6 @@ p{
.content { .content {
float: left; float: left;
width: calc(65% - 20px); width: calc(65% - 20px);
min-height: 920px;
border: #274779 solid 2px; border: #274779 solid 2px;
border-radius: 10px; border-radius: 10px;
color: #f1f5f9; color: #f1f5f9;
@ -305,10 +295,9 @@ p{
} }
.question { .question {
font-size: 1.3em; font-size: 1.3em;
line-height: 1.8;
margin-bottom: 25px;
color: #f1f5f9; color: #f1f5f9;
font-weight: 500; font-weight: 500;
margin-bottom: 20px;
} }
.options { .options {
display: flex; display: flex;
@ -353,9 +342,6 @@ p{
background-color: #3b82f6; background-color: #3b82f6;
color: white; color: white;
font-weight: bold; font-weight: bold;
display: flex;
align-items: center;
gap: 5px;
} }
.before-btn:disabled,.next-btn:disabled { .before-btn:disabled,.next-btn:disabled {
background-color: #4b5563; background-color: #4b5563;
@ -366,8 +352,7 @@ p{
width: calc(35% - 20px); width: calc(35% - 20px);
border: #274779 solid 2px; border: #274779 solid 2px;
border-radius: 30px; border-radius: 30px;
padding: 15px 0 15px 19px ;
margin-bottom: 20px;
padding: 15px 0 15px 0;
background-color: #2f374d; background-color: #2f374d;
color: white; color: white;
} }
@ -381,7 +366,7 @@ p{
display: grid; display: grid;
grid-template-columns: repeat(5, 1fr); grid-template-columns: repeat(5, 1fr);
gap: 10px; gap: 10px;
margin: auto 30px;
margin-left:50px;
} }
.question-number { .question-number {
width: 60px; width: 60px;
@ -392,7 +377,6 @@ p{
justify-content: center; justify-content: center;
font-weight: bold; font-weight: bold;
cursor: pointer; cursor: pointer;
position: relative;
} }
.right-question-card .question-number.red { .right-question-card .question-number.red {
background-color: #ff4757; background-color: #ff4757;
@ -406,8 +390,11 @@ p{
} }
.button-right{ .button-right{
display: flex; display: flex;
margin: 30px 180px 5px;
height:30px;
align-items: center;
justify-content: center;
gap: 20px; gap: 20px;
margin-top: 30px;
} }
.right-before-btn,.right-next-btn{ .right-before-btn,.right-next-btn{
padding: 8px 15px; padding: 8px 15px;
@ -426,10 +413,9 @@ p{
border-radius: 8px; border-radius: 8px;
background-color: #3b82f6; background-color: #3b82f6;
color: white; color: white;
text-align: center;
line-height: 40px;
position:relative; position:relative;
top: 350px;
margin-top: 362px;
border:none;
} }
</style> </style>

1
src/views/ReportView.vue

@ -158,7 +158,6 @@ export default{
.content{ .content{
border: #274779 solid 2px; border: #274779 solid 2px;
border-radius: 50px; border-radius: 50px;
padding: 15px;
margin-bottom: 20px; margin-bottom: 20px;
background-color: #2f374d; background-color: #2f374d;
padding: 30px; padding: 30px;

Loading…
Cancel
Save