1.修改跳转安眼逻辑
This commit is contained in:
2025-10-14 14:45:13 +08:00
parent 98ff86f89c
commit 17f9478233
4 changed files with 44 additions and 5 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

@@ -6,7 +6,9 @@
</div>
<div class="sun-title-center">健康咨询平台</div>
<div class="sun-title-right">
<!-- <a-button class="top-right-button" @click="toOther">健康监测大屏</a-button> -->
<div style="display: flex; align-items: center; justify-content: flex-end">
<img :src="phonePng" alt="" /> 7*24小时心里咨询热线<div style="padding-bottom: 2px">400 6506605</div>
</div>
</div>
</div>
<div class="sun-body-content">
@@ -33,6 +35,7 @@
import healthContentBottomItem2 from './components/healthContentBottomItem2.vue';
import healthContentBottomItem3 from './components/healthContentBottomItem3.vue';
import healthContentBottomItem4 from './components/healthContentBottomItem4.vue';
import phonePng from '/@/assets/img/phone.png';
import { ref, onMounted, watch, onUnmounted } from 'vue';
import dayjs from 'dayjs';
@@ -119,9 +122,23 @@
.sun-title-right {
flex: 1;
font-weight: bold;
text-align: right;
line-height: 50px;
line-height: 60px;
padding-right: 30px;
> div {
> div {
color: #45ffa1;
font-family: MicrosoftYaHei-Bold;
}
}
img {
width: 28px;
height: 28px;
margin-right: 10px;
}
}
.sun-title-center {
+12 -1
View File
@@ -109,7 +109,18 @@
queryAnYanTokenApi()
.then((res: any) => {
if (res.code === 200) {
window.open('http://aygc.pc.iosp.ydpt.tech/monitor/health?tokens=' + res?.result, '_blank');
// res.result = {
// scope: 'default',
// expires_in: 3348,
// token_type: 'bearer',
// access_token: '2a643081-b661-4f44-bc36-6bc91addde3a',
// refresh_token: 'e0a91714-59aa-4311-bb6c-ca3a48f20dd1',
// satoken: '9a493672-36e0-4539-9a74-650e95cefc87',
// };
window.open(
`http://aygc.pc.iosp.ydpt.tech/monitor/health?tokens=${res?.result?.access_token}&expires_in=${res?.result?.expires_in}&refresh_token=${res?.result?.refresh_token}&satoken=${res?.result?.satoken}`,
'_blank'
);
} else {
message.error(res?.message);
}
+13 -2
View File
@@ -245,11 +245,22 @@
queryAnYanTokenApi()
.then((res: any) => {
if (res.code === 200) {
otherLoading.value = false;
window.open('http://aygc.pc.iosp.ydpt.tech/monitor/health?tokens=' + res?.result, '_blank');
// res.result = {
// scope: 'default',
// expires_in: 3348,
// token_type: 'bearer',
// access_token: '2a643081-b661-4f44-bc36-6bc91addde3a',
// refresh_token: 'e0a91714-59aa-4311-bb6c-ca3a48f20dd1',
// satoken: '9a493672-36e0-4539-9a74-650e95cefc87',
// };
window.open(
`http://aygc.pc.iosp.ydpt.tech/monitor/health?tokens=${res?.result?.access_token}&expires_in=${res?.result?.expires_in}&refresh_token=${res?.result?.refresh_token}&satoken=${res?.result?.satoken}`,
'_blank'
);
} else {
message.error(res?.message);
}
otherLoading.value = false;
})
.catch((err) => {
otherLoading.value = false;