12345678910111213141516171819202122232425262728293031323334353637 |
- import { deepProcess } from "@/utils.js"
- import axios from "axios"
- // axios({
- // method: 'post',
- // url: `${config.backendDir}visit/saveType`,
- // headers: {
- // appId: "CA02F83A5FA162B930AA2F962D202F43B0F6DE0B51AD79FEDB03FA8202BB4909330105B3B347510D87C97060C4288280D4A744E00565A4EC",
- // "Content-Type": "application/json",
- // },
- // data: {
- // moduleType,
- // type: 'visit',
- // },
- // })
- export default {
- async fetchPanoData(panoCode) {
- const res = await axios({
- method: 'get',
- url: `https://4dkk.4dage.com/720yun_fd_manage/${panoCode}/someData.json?_=${Math.random()}`,
- })
- console.log('fetch pano data: ', res.data)
- // function changeSubStr(str) {
- // return str.replace('https://4dkk.4dage.com/720yun_fd_manage/image/', `${process.env.VUE_APP_QJKK_XML_FILE_PATH}images/`)
- // }
- // function checkIsString(p) {
- // return typeof p === 'string'
- // }
- // if (process.env.VUE_APP_CLI_MODE === 'local') {
- // deepProcess(res, checkIsString, changeSubStr)
- // }
- return res.data
- },
- }
|