2025-11-04 14:14:19 +08:00
|
|
|
import { setJJBCommonAntdMessage } from "@cqsjjb/jjb-common-lib";
|
|
|
|
|
import { setup } from "@cqsjjb/jjb-dva-runtime";
|
|
|
|
|
import { message } from "antd";
|
|
|
|
|
import dayjs from "dayjs";
|
2026-03-17 16:31:36 +08:00
|
|
|
import { getFileUrlFromServer } from "zy-react-library/utils";
|
2025-11-04 14:14:19 +08:00
|
|
|
import "dayjs/locale/zh-cn";
|
|
|
|
|
import "../blessed_by_buddha";
|
|
|
|
|
|
2026-03-17 16:41:36 +08:00
|
|
|
getFileUrlFromServer();
|
2025-11-04 14:14:19 +08:00
|
|
|
require("antd/dist/reset.css");
|
2025-12-26 14:07:53 +08:00
|
|
|
require("zy-react-library/css/common.less");
|
2026-03-17 16:31:36 +08:00
|
|
|
|
2026-01-08 09:05:46 +08:00
|
|
|
window.mapLongitude = "119.69457721306945";
|
|
|
|
|
window.mapLatitude = "39.940504336846665";
|
2026-03-17 16:31:36 +08:00
|
|
|
window.mapBaiDuKey = "OElqFYoKiAH8KFtph8ftLKF5NlNrbCUr";
|
2026-03-17 16:41:36 +08:00
|
|
|
window.mapBaiDuKey = "OElqFYoKiAH8KFtph8ftLKF5NlNrbCUr";
|
|
|
|
|
window.mapObliquePhotography = [
|
|
|
|
|
"http://192.168.192.215:8021/ware/upload/%E6%9B%B9%E5%A6%83%E7%94%B8%E6%B8%AF%E4%B8%9C/%E6%9B%B9%E5%A6%83%E7%94%B8%E6%B8%AF%E4%B8%9C/merge_tile.json",
|
|
|
|
|
"http://192.168.192.215:8021/ware/upload/%E6%9B%B9%E5%A6%83%E7%94%B8%E6%B8%AF%E8%A5%BF/%E6%9B%B9%E5%A6%83%E7%94%B8%E6%B8%AF%E8%A5%BF/merge_tile.json",
|
|
|
|
|
"http://192.168.192.215:8021/ware/upload/qhdxys/merge_tile.json",
|
|
|
|
|
"http://192.168.192.215:8021/ware/upload/qhdgysh/merge_tile.json",
|
|
|
|
|
"http://192.168.192.215:8021/ware/upload/%E6%B2%A7%E5%B7%9E%E6%B8%AF%E8%A5%BF/%E6%B2%A7%E5%B7%9E%E6%B8%AF%E8%A5%BF/merge_tile.json",
|
|
|
|
|
"http://192.168.192.215:8021/ware/upload/%E6%B2%A7%E5%B7%9E%E6%B8%AF%E4%B8%9C/%E6%B2%A7%E5%B7%9E%E6%B8%AF%E4%B8%9C/merge_tile.json",
|
|
|
|
|
];
|
2025-11-04 14:14:19 +08:00
|
|
|
dayjs.locale("zh-cn");
|
|
|
|
|
setJJBCommonAntdMessage(message);
|
|
|
|
|
|
|
|
|
|
const app = setup();
|
2026-03-17 16:31:36 +08:00
|
|
|
getFileUrlFromServer();
|
2025-11-04 14:14:19 +08:00
|
|
|
// 非底座环境运行
|
|
|
|
|
if (!window.__POWERED_BY_QIANKUN__) {
|
|
|
|
|
// 云组件默认依赖
|
|
|
|
|
window.__coreLib = {};
|
|
|
|
|
window.__coreLib.React = require("react");
|
|
|
|
|
window.__coreLib.ReactDOM = require("react-dom");
|
|
|
|
|
window.__coreLib.jjbCommonLib = require("@cqsjjb/jjb-common-lib");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @description 挂载
|
|
|
|
|
* @param props {{ setGlobalState: ({ rendered: boolean }) => void }}
|
|
|
|
|
* @returns {Promise<*>} ''
|
|
|
|
|
*/
|
|
|
|
|
export const mount = async (props) => {
|
|
|
|
|
// 云组件默认依赖
|
|
|
|
|
window.__coreLib.React = require("react");
|
|
|
|
|
window.__coreLib.ReactDOM = require("react-dom");
|
|
|
|
|
window.__coreLib.jjbCommonLib = require("@cqsjjb/jjb-common-lib");
|
|
|
|
|
app.mount(props);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @description 卸载
|
|
|
|
|
* @param props {object}
|
|
|
|
|
* @returns {Promise<*>} ''
|
|
|
|
|
*/
|
|
|
|
|
export const unmount = async props => app.unmount(props);
|
|
|
|
|
/**
|
|
|
|
|
* @description 启动
|
|
|
|
|
* @param props
|
|
|
|
|
*/
|
|
|
|
|
export const bootstrap = async props => app.bootstrap(props);
|