diff --git a/api/phaseTwo/homePage.js b/api/phaseTwo/homePage.js index f71e52b..8cfeb71 100644 --- a/api/phaseTwo/homePage.js +++ b/api/phaseTwo/homePage.js @@ -8,3 +8,22 @@ export function getHomePageListApi(data) { data: data }) } +// 首页二级页面--作业计划列表 +export function getWorkPlantApi(data) { + return request({ + url: '/bmw/homeSubPage/getAppDayPlanMsg', + method: 'post', + header: { + 'Content-Type': 'application/json' + }, + data: data + }) +} +// 首页二级页面--作业计划列表 +export function getHomePageSelectApi() { + return request({ + url: '/bmw/homePageSelect/getProCondition', + method: 'post', + data: {} + }) +} diff --git a/pages.json b/pages.json index bf93dfd..f267a3e 100644 --- a/pages.json +++ b/pages.json @@ -219,6 +219,20 @@ "navigationStyle": "custom" } }, + { + //首页二级跳转页面 -- 作业计划 + "path": "pages/realName/workPlan/index", + "style": { + "navigationStyle": "custom" + } + }, + { + //首页二级跳转页面 -- 作业计划--详情 + "path": "pages/realName/workPlan-details/index", + "style": { + "navigationStyle": "custom" + } + }, { //工作台 "path": "pages/realName/workbench/index", diff --git a/pages/realName/index/index.vue b/pages/realName/index/index.vue index ea20a5d..49ce18e 100644 --- a/pages/realName/index/index.vue +++ b/pages/realName/index/index.vue @@ -98,7 +98,7 @@ 今日风险 - + + 作业计划详情--- + + + + + diff --git a/pages/realName/workPlan/index.vue b/pages/realName/workPlan/index.vue new file mode 100644 index 0000000..c142842 --- /dev/null +++ b/pages/realName/workPlan/index.vue @@ -0,0 +1,307 @@ + + + + + diff --git a/static/realName/screen.png b/static/realName/screen.png new file mode 100644 index 0000000..787f6f5 Binary files /dev/null and b/static/realName/screen.png differ diff --git a/utils/request.js b/utils/request.js index 13c9f63..96e3c9f 100644 --- a/utils/request.js +++ b/utils/request.js @@ -5,7 +5,7 @@ import errorCode from '@/utils/errorCode' import { toast, showConfirm, tansParams } from '@/utils/common' let timeout = 10000 -const baseUrl = config.loginBaseUrl +const baseUrl = config.loginBaseUrl console.log('baseUrl-请求', baseUrl) const request = config => { @@ -21,6 +21,7 @@ const request = config => { url = url.slice(0, -1) config.url = url } + if (config.method === 'post') { config.header = { ...config.header,