Browse Source

解决edge浏览器免责声明显示异常问题。

songjie/feature-20250628160649-上线前优化
宋杰 1 day ago
parent
commit
e77ca33753
  1. 37
      src/views/AiEmotion.vue
  2. 4
      vite.config.js

37
src/views/AiEmotion.vue

@ -1522,13 +1522,11 @@ defineExpose({
</script> </script>
<style scoped> <style scoped>
.disclaimer-item {
p {
.disclaimer-item p {
color: #ffffff !important; color: #ffffff !important;
font-size: 20px; font-size: 20px;
font-weight: bold; font-weight: bold;
} }
}
.container { .container {
padding-top: 2%; padding-top: 2%;
@ -1709,8 +1707,6 @@ defineExpose({
padding-left: 15px; padding-left: 15px;
position: relative; position: relative;
&:last-child { &:last-child {
margin-bottom: 0; margin-bottom: 0;
} }
@ -2011,6 +2007,7 @@ defineExpose({
transition: all 0.3s ease; transition: all 0.3s ease;
/* 添加平滑过渡效果 */ /* 添加平滑过渡效果 */
} }
.class04 { .class04 {
background-image: url('@/assets/img/AiEmotion/bk00000.png'); background-image: url('@/assets/img/AiEmotion/bk00000.png');
/* 使用导入的背景图片 */ /* 使用导入的背景图片 */
@ -2585,8 +2582,9 @@ defineExpose({
transition: all 0.3s ease; transition: all 0.3s ease;
position: relative; position: relative;
overflow: hidden; overflow: hidden;
}
&::before {
.conclusion-item::before {
content: ''; content: '';
position: absolute; position: absolute;
top: 0; top: 0;
@ -2597,21 +2595,20 @@ defineExpose({
opacity: 0.8; opacity: 0.8;
} }
&:last-child {
.conclusion-item:last-child {
margin-bottom: 0; margin-bottom: 0;
} }
.conclusion-title {
.conclusion-item .conclusion-title {
color: #FFD700; color: #FFD700;
font-size: 22px; font-size: 22px;
font-weight: bold; font-weight: bold;
margin: 0 0 15px 0; margin: 0 0 15px 0;
text-align: center; text-align: center;
letter-spacing: 2px; letter-spacing: 2px;
}
&::after {
.conclusion-item .conclusion-title::after {
content: ''; content: '';
position: absolute; position: absolute;
bottom: -5px; bottom: -5px;
@ -2621,9 +2618,8 @@ defineExpose({
height: 2px; height: 2px;
background: linear-gradient(90deg, transparent, #00d4ff, transparent); background: linear-gradient(90deg, transparent, #00d4ff, transparent);
} }
}
.conclusion-text {
.conclusion-item .conclusion-text {
color: #ffffff; color: #ffffff;
font-size: 20px; font-size: 20px;
line-height: 1.8; line-height: 1.8;
@ -2632,8 +2628,9 @@ defineExpose({
word-wrap: break-word; word-wrap: break-word;
padding-left: 15px; padding-left: 15px;
position: relative; position: relative;
}
&::before {
.conclusion-item .conclusion-text::before {
content: '▶'; content: '▶';
position: absolute; position: absolute;
left: 0; left: 0;
@ -2643,12 +2640,10 @@ defineExpose({
opacity: 0.7; opacity: 0.7;
} }
&:last-child {
.conclusion-item .conclusion-text:last-child {
margin-bottom: 0; margin-bottom: 0;
} }
} }
}
}
.conclusion-placeholder { .conclusion-placeholder {
padding: 30px; padding: 30px;
@ -2656,29 +2651,29 @@ defineExpose({
border-radius: 12px; border-radius: 12px;
background: rgba(255, 255, 255, 0.05); background: rgba(255, 255, 255, 0.05);
border: 1px dashed rgba(153, 153, 153, 0.3); border: 1px dashed rgba(153, 153, 153, 0.3);
}
p {
.conclusion-placeholder p {
color: #999999; color: #999999;
font-size: 16px; font-size: 16px;
margin: 0; margin: 0;
font-style: italic; font-style: italic;
} }
}
.disclaimer-item { .disclaimer-item {
/* margin-top: 30px; */ /* margin-top: 30px; */
padding: 20px; padding: 20px;
border-top: 1px solid rgba(153, 153, 153, 0.2); border-top: 1px solid rgba(153, 153, 153, 0.2);
text-align: center; text-align: center;
}
p {
.disclaimer-item p {
color: #ffffff !important; color: #ffffff !important;
font-size: 16px; font-size: 16px;
margin: 0; margin: 0;
letter-spacing: 1px; letter-spacing: 1px;
} }
} }
}
.class05 { .class05 {
background-size: 100% 100%; background-size: 100% 100%;

4
vite.config.js

@ -38,10 +38,6 @@ export default defineConfig(({ command, mode }) => {
preprocessorOptions: { preprocessorOptions: {
scss: { scss: {
charset: false, // 避免出现: build时的 @charset 必须在第一行的警告 charset: false, // 避免出现: build时的 @charset 必须在第一行的警告
additionalData: `
@import "@/styles/mixin.scss";
@import "@/styles/variables.scss";
`,
}, },
}, },
}, },

Loading…
Cancel
Save