feat:重新对接首页接口

This commit is contained in:
zjc
2025-01-14 19:01:09 +08:00
parent 880db48579
commit ebac43f818
28 changed files with 2250 additions and 2133 deletions

View File

@@ -11,8 +11,8 @@ export function getWeatherApi() {
// 核心景区视频
export function getVideoListApi(data) {
return request({
url: 'http://36.138.38.16:6180/fjtcc-api/api/video/list',
method: 'get',
url: '/api/largeScreen/video/list',
method: 'post',
params: data
})
}
@@ -20,8 +20,8 @@ export function getVideoListApi(data) {
// 刷新播放地址
export function postRefreshApi(data) {
return request({
url: 'http://36.138.38.16:6180/fjtcc-api/api/video/refresh',
method: 'POST',
url: '/api/largeScreen/video/refresh',
method: 'post',
data
})
}

View File

@@ -2,6 +2,11 @@ import axios from 'axios'
import { useRouter } from 'vue-router'
import { ElMessage } from 'element-plus'
//
let devToken =
'eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6ImE1OWFmNWYwLTU3OWItNDJkNy1hZDJhLTY0Y2JlODA5ZWI1NiJ9.BTxvu6jUWbN0qONWf5K6VzXopE8T8qXzKuX-mij21VJT4U0LdgnqToyqeNDQ2OyJ6cvpdJBzQ9mEEb-dnwrTpQ'
let proToken =
'eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6ImE1OWFmNWYwLTU3OWItNDJkNy1hZDJhLTY0Y2JlODA5ZWI1NiJ9.dSLZekRsYf5ZZDCYqFEOgHTi4GeHD0m10gGHXrbgpc-hD52Zt7Vw05cxhQ-lzY29yf2IxH0oYi28DBfHdtf9SA'
const router = useRouter()
/**
@@ -9,11 +14,11 @@ const router = useRouter()
*/
const instance = axios.create({
// baseURL: 'http://36.138.38.16:6180/fjtcc-api',
baseURL: 'http://36.138.38.16:8001/fjtcc-api',
// baseURL: 'http://36.138.38.16:8001/fjtcc-api',
baseURL: ' http://172.22.15.170/fjtcc-api',
timeout: 100000,
headers: {
Authorization:
'eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6ImE1OWFmNWYwLTU3OWItNDJkNy1hZDJhLTY0Y2JlODA5ZWI1NiJ9.BTxvu6jUWbN0qONWf5K6VzXopE8T8qXzKuX-mij21VJT4U0LdgnqToyqeNDQ2OyJ6cvpdJBzQ9mEEb-dnwrTpQ',
Authorization: proToken,
'Content-Type': 'application/json;charset=UTF-8'
}
})