Browse Source

Merge branch 'ds' of http://39.101.133.168:8807/hongxilin/AIxiaocaishen into ds

hongxilin/hotfix-20250625101643-手机输入法弹出输入框上浮
宋杰 1 week ago
parent
commit
bab5bc2b27
  1. 8
      src/views/AiEmotion.vue
  2. 39
      src/views/Selectmodel.vue
  3. 5
      src/views/components/emoEnergyConverter.vue
  4. 18
      src/views/components/emotionalBottomRadar.vue

8
src/views/AiEmotion.vue

@ -1437,7 +1437,8 @@ defineExpose({
display: block; display: block;
color: #FFD700; color: #FFD700;
font-weight: bold; font-weight: bold;
margin-bottom: 10px;
margin-top: 0px;
margin-bottom: 20px;
font-size: 22px; font-size: 22px;
} }
@ -1445,6 +1446,7 @@ defineExpose({
display: block; display: block;
color: white; color: white;
font-size: 20px; font-size: 20px;
text-align: center;
} }
@ -1602,7 +1604,7 @@ defineExpose({
background-repeat: no-repeat; background-repeat: no-repeat;
width: 70%; width: 70%;
height: 400px; height: 400px;
min-height: 400px;
min-height: 35rem;
text-align: center; text-align: center;
margin: 0 auto; margin: 0 auto;
margin-top: 3%; margin-top: 3%;
@ -1619,7 +1621,7 @@ defineExpose({
background-repeat: no-repeat; background-repeat: no-repeat;
width: 95%; width: 95%;
height: auto; height: auto;
min-height: 40rem;
min-height: 50rem;
margin: 0 auto; margin: 0 auto;
} }

39
src/views/Selectmodel.vue

@ -32,31 +32,21 @@
import { onMounted, ref } from 'vue' import { onMounted, ref } from 'vue'
import { useRouter } from 'vue-router' import { useRouter } from 'vue-router'
import { setHeight } from '@/utils/setHeight' import { setHeight } from '@/utils/setHeight'
import { useDataStore } from "@/store/dataList.js";
const { getQueryVariable, setActiveTabIndex } = useDataStore();
const router = useRouter() const router = useRouter()
const pageRef = ref(null) const pageRef = ref(null)
// onMounted(() => {
// setHeight(pageRef.value)
// })
onMounted(async () => {
const isPhone =
/phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone/i.test(
navigator.userAgent
);
!isPhone &&
localStorage.setItem(
"localToken",
decodeURIComponent(String(getQueryVariable("token")))
);
onMounted(() => {
setHeight(pageRef.value)
}) })
const goToDBQBmodel = () => { const goToDBQBmodel = () => {
router.push('/DBQBmodel') router.push('/DBQBmodel')
window.location.href = '/DBQBmodel'
} }
const goToEmotionsmodel = () => { const goToEmotionsmodel = () => {
router.push('/Emotionsmodel') router.push('/Emotionsmodel')
window.location.href = '/Emotionsmodel'
} }
</script> </script>
@ -122,7 +112,7 @@ const goToEmotionsmodel = () => {
} }
.btn-ai { .btn-ai {
height: 150px;
height: 150px;
width: 100%; width: 100%;
background-image: url('@/assets/img/Selectmodel/金轮 拷贝.png'); background-image: url('@/assets/img/Selectmodel/金轮 拷贝.png');
} }
@ -153,6 +143,7 @@ height: 150px;
.btn-text-dbqb { .btn-text-dbqb {
background-image: url('@/assets/img/Selectmodel/-s-夺宝奇兵大模型.png'); background-image: url('@/assets/img/Selectmodel/-s-夺宝奇兵大模型.png');
} }
.btn-text-ai { .btn-text-ai {
background-image: url('@/assets/img/Selectmodel/-s-AI情绪大模型.png'); background-image: url('@/assets/img/Selectmodel/-s-AI情绪大模型.png');
} }
@ -191,7 +182,8 @@ height: 150px;
/* 手机适配 */ /* 手机适配 */
@media screen and (max-width: 600px) { @media screen and (max-width: 600px) {
.homepage { .homepage {
height: auto; /* 解决底部留白 */
height: auto;
/* 解决底部留白 */
width: 100%; width: 100%;
overflow-x: hidden; overflow-x: hidden;
} }
@ -238,12 +230,13 @@ height: 150px;
z-index: 2; z-index: 2;
} }
.footer-text1 {
.footer-text1 {
width: 100vw; width: 100vw;
height: 60px; height: 60px;
margin-top: 10px; margin-top: 10px;
background-size: 100% 100%; /* 保证全宽显示 */
}
background-size: 100% 100%;
/* 保证全宽显示 */
}
.footer-text2 { .footer-text2 {
width: 70vw; width: 70vw;
@ -252,11 +245,13 @@ height: 150px;
} }
} }
/* 平板适配 */ /* 平板适配 */
@media screen and (min-width: 601px) and (max-width: 1024px) {
@media screen and (min-width: 601px) and (max-width: 1024px) {
.homepage { .homepage {
height: 120vh; height: 120vh;
} }
.main-icon { .main-icon {
margin-top: 50%; margin-top: 50%;
width: 50vw; width: 50vw;
@ -294,5 +289,5 @@ height: 150px;
padding-top: 30px; padding-top: 30px;
height: 26px; height: 26px;
} }
}
}
</style> </style>

5
src/views/components/emoEnergyConverter.vue

@ -341,8 +341,9 @@ function initQXNLZHEcharts(kline, qxnlzhqData) {
type: "category", type: "category",
data: mixData.map((item) => item.date), data: mixData.map((item) => item.date),
axisLabel: { axisLabel: {
rotate: 45, // 45
color: "white"
rotate: 0, //
color: "white",
interval: 'auto' //
}, },
axisLine: { axisLine: {
// show: false, // show: false,

18
src/views/components/emotionalBottomRadar.vue

@ -38,9 +38,14 @@ function initEmotionalBottomRadar(KlineData, barAndLineData) {
} }
}) })
// 10
let minValue = Math.min(...allKlineValues.filter(val => typeof val === 'number' && !isNaN(val)))
let yAxisMin = Math.floor(minValue / 10) * 10
//
let validValues = allKlineValues.filter(val => typeof val === 'number' && !isNaN(val))
let minValue = Math.min(...validValues)
let maxValue = Math.max(...validValues)
//
let yAxisMin = Math.floor(minValue)
let yAxisMax = Math.ceil(maxValue)
// 线 // 线
let redLineDataArray = barAndLineData.map(subArray => subArray[1]) let redLineDataArray = barAndLineData.map(subArray => subArray[1])
// //
@ -330,8 +335,8 @@ function initEmotionalBottomRadar(KlineData, barAndLineData) {
}, },
axisLabel: { axisLabel: {
color: 'white', color: 'white',
interval: 'auto',
rotate: 45
interval: 'auto', //
rotate: 0 //
}, },
splitLine: { splitLine: {
show: false show: false
@ -348,7 +353,8 @@ function initEmotionalBottomRadar(KlineData, barAndLineData) {
type: 'value', type: 'value',
gridIndex: 0, gridIndex: 0,
splitNumber: 4, splitNumber: 4,
min: yAxisMin, // y10
min: yAxisMin, // y
max: yAxisMax, // y
axisLine: { axisLine: {
lineStyle: { lineStyle: {
color: 'white' // y color: 'white' // y

Loading…
Cancel
Save