diff --git a/src/api/base/server.ts b/src/api/base/server.ts index 8642ffc..e6d0f9c 100644 --- a/src/api/base/server.ts +++ b/src/api/base/server.ts @@ -121,6 +121,31 @@ export const jzXkTkjApi = async (params: any) => { export const jzXkJfCxjApi = async (params: any) => { return await post("/mobile/jz/xk/jfcx", params); }; +/** + * 家长接龙查询 + */ +export const mobilejzjllistApi = async (params: any) => { + const res = await get("/mobile/jl/jzList", params); + return res.result; +}; + +export const getByJlIdApi = async (params: any) => { + const res = await get("/mobile/jl/getByJlId", params); + return res.result; +}; + +// 推送清单相关API +// 根据接龙ID获取学生信息 +export const jlzxFindByJlParamsApi = async (params: { jlId: string }) => { + return await get("/api/jlzx/findByJlParams", params); +}; + +/** + * 家长接龙完成 + */ +export const relayFinishApi = async (params: any) => { + return await post('/mobile/jl/relay/finish', params); +}; /** * 发起学生请假 diff --git a/src/config.ts b/src/config.ts index 9dc807c..321e5e8 100644 --- a/src/config.ts +++ b/src/config.ts @@ -1,5 +1,5 @@ -// const ip: string = "127.0.0.1:8897"; -const ip: string = "yufangzc.com"; +const ip: string = "127.0.0.1:8897"; +// const ip: string = "yufangzc.com"; const fwqip: string = "yufangzc.com"; //打包服务器接口代理标识 const SERVERAGENT: string = "/jzd-api"; @@ -9,9 +9,10 @@ export const HOMEAGENT: string = ""; export const BASE_URL: string = process.env.NODE_ENV == "development" ? `http://${ip}/zhxy` : SERVERAGENT; // WebSocket地址 -export const BASE_WS_URL: string = `wss://${ip}`; +export const BASE_WS_URL: string = `ws://${ip}`; //图片地址 -export const BASE_IMAGE_URL: string = process.env.NODE_ENV == "development" ? `https://${ip}` : `http://${fwqip}`; +// export const BASE_IMAGE_URL: string = process.env.NODE_ENV == "development" ? `https://${ip}` : `http://${fwqip}`; +export const BASE_IMAGE_URL: string = `http://${fwqip}`; //存token的key export const AUTH_KEY: string = "satoken"; //token过期返回状态码 diff --git a/src/pages.json b/src/pages.json index fa054c1..dcc8157 100644 --- a/src/pages.json +++ b/src/pages.json @@ -120,6 +120,20 @@ "enablePullDownRefresh": false } }, + { + "path": "pages/base/jl/index", + "style": { + "navigationBarTitleText": "家校沟通", + "enablePullDownRefresh": false + } + }, + { + "path": "pages/base/jl/detail", + "style": { + "navigationBarTitleText": "接龙详情", + "enablePullDownRefresh": false + } + }, { "path": "pages/base/interest-class/index", "style": { diff --git a/src/pages/base/home/index.vue b/src/pages/base/home/index.vue index 9bdadfb..1eaeba5 100644 --- a/src/pages/base/home/index.vue +++ b/src/pages/base/home/index.vue @@ -109,7 +109,7 @@ const menuItems = ref([ { title: "家校沟通", icon: "/static/base/home/file-transfer-line.png", - path: "/pages/base/campus-access/index", + path: "/pages/base/jl/index", }, { title: "兴趣课", diff --git a/src/pages/base/jl/detail.vue b/src/pages/base/jl/detail.vue new file mode 100644 index 0000000..4d37924 --- /dev/null +++ b/src/pages/base/jl/detail.vue @@ -0,0 +1,670 @@ + + + + + + diff --git a/src/pages/base/jl/index.vue b/src/pages/base/jl/index.vue new file mode 100644 index 0000000..6109b08 --- /dev/null +++ b/src/pages/base/jl/index.vue @@ -0,0 +1,338 @@ + + + + + +