提交 f5f37cc1 authored 作者: 钟是志's avatar 钟是志

招生录取通知书打印开发

上级 192cc54e
import req from '@/utils/request'; import req from '@/utils/request';
// import dictMap from './dictMap'; // import dictMap from './dictMap';
import {queryApiActionPath,queryWsPath} from "@/utils/queryConfig"; import { queryApiActionPath, queryWsPath } from "@/webPublic/one_stop_public/utils/queryConfig";
var localMockHostPath = "http://rap2api.taobao.org/app/mock/230899"; var localMockHostPath = "http://rap2api.taobao.org/app/mock/230899";
var localhostPath = queryApiActionPath(); var localhostPath = queryApiActionPath();
var wsPath = queryWsPath(); var wsPath = queryWsPath();
...@@ -9,7 +9,7 @@ var wsPath = queryWsPath(); ...@@ -9,7 +9,7 @@ var wsPath = queryWsPath();
let csPath = "http://192.168.3.133:8080/expense"; let csPath = "http://192.168.3.133:8080/expense";
const prefix = "http://scjoyedu.eicp.net:7180/onestop/#" const prefix = "http://scjoyedu.eicp.net:7180/onestop/#"
async function request(data) { async function request(data) {
return req(`${data.url}`, { return req(`${data.url}`, {
method: 'POST', method: 'POST',
body: data.params, body: data.params,
...@@ -35,7 +35,7 @@ const config = { ...@@ -35,7 +35,7 @@ const config = {
//mobileHost:"http://zyd.cdzhiyong.com:51335", //mobileHost:"http://zyd.cdzhiyong.com:51335",
mobileUrl:prefix+"/mobile/GHHome", mobileUrl:prefix+"/mobile/GHHome",
mobileHost:"http://localhost:33333", mobileHost:"http://localhost:33333",
request:request request:request
} }
......
...@@ -18,6 +18,7 @@ const queryConfig = (key) => { ...@@ -18,6 +18,7 @@ const queryConfig = (key) => {
* */ * */
export const querySysCode = () => queryConfig("SYSCODE"); export const querySysCode = () => queryConfig("SYSCODE");
export const queryWsPath = () => queryConfig("WS_PATH");
/** /**
* @description 获取服务端请求路径前戳 * @description 获取服务端请求路径前戳
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论