diff --git a/src/api/task.ts b/src/api/task.ts index 340cd78..b89f649 100644 --- a/src/api/task.ts +++ b/src/api/task.ts @@ -24,4 +24,12 @@ export function positionTypeList(data:any) { method: 'get', params:data }) +} +//筛选接口 +export function screenList(data: any) { + return request({ + url: '/task/getTaskAll', + method: 'get', + params: data + }) } \ No newline at end of file diff --git a/src/store/task.ts b/src/store/task.ts index 683d96f..8db9a76 100644 --- a/src/store/task.ts +++ b/src/store/task.ts @@ -7,7 +7,8 @@ import { bannerList, positionTypeList } from '../api/task'; cityList: [], cityValue: localStorage.getItem('city') || '北京', bannerList: [], - positionList:[] + positionList: [], + screenList: {} } }, actions: { @@ -22,6 +23,9 @@ import { bannerList, positionTypeList } from '../api/task'; }, setPositionList(data: any) { this.positionList=data + }, + setScreenList(data: any) { + this.screenList=data } } }) \ No newline at end of file diff --git a/src/view/task/components/PositionType.vue b/src/view/task/components/PositionType.vue index bb71d0d..3186af1 100644 --- a/src/view/task/components/PositionType.vue +++ b/src/view/task/components/PositionType.vue @@ -6,6 +6,9 @@ import { showToast } from 'vant' const state=reactive({ typeKey:0 }) +const setKey=(key:number)=>{ + state.typeKey=key +} const { closePositionType }:any = inject('popup') const store=taskStore() const leftBack = ()=>{ @@ -30,10 +33,10 @@ const leftBack = ()=>{
-
{{item.name}}
+
{{item.name}}
- {{item.name}} + {{item.name}}
@@ -58,7 +61,7 @@ const leftBack = ()=>{ color: #333333; text-align: center; } -.position-type-left h5.active{ +.position-type-left h5 .active{ background: #EFEFEF; } .position-type-right{ diff --git a/src/view/task/components/Screen.vue b/src/view/task/components/Screen.vue index e69de29..e67ddc2 100644 --- a/src/view/task/components/Screen.vue +++ b/src/view/task/components/Screen.vue @@ -0,0 +1,117 @@ + + + \ No newline at end of file diff --git a/src/view/task/index.vue b/src/view/task/index.vue index f5a10e4..d0f4397 100644 --- a/src/view/task/index.vue +++ b/src/view/task/index.vue @@ -3,6 +3,7 @@ import { reactive, ref ,provide} from 'vue'; import FooterTabbar from '@/components/FooterTabbar.vue' import TaskList from '@/components/list/TaskList.vue' import Banner from "./components/Banner.vue"; +import Screen from "./components/Screen.vue"; import CitySwitch from "./components/CitySwitch.vue"; import { taskStore } from "../../store/task"; import PositionType from './components/PositionType.vue' @@ -17,7 +18,12 @@ const taskList=reactive([ ]) const state=reactive({ citySwitchBool:false, - PositionTypeBool:true + PositionTypeBool:false, + ScreenBool:false, + positionValue:'', + serviceMode:'', + taskCycle:'' + }) const closeCitySwitch=(name:string)=>{ if(name){ @@ -25,12 +31,26 @@ const closeCitySwitch=(name:string)=>{ } state.citySwitchBool=false } -const closePositionType=(name:sring)=>{ +const closePositionType=(name:string)=>{ + if(name){ + state.positionValue=name + } state.PositionTypeBool=false } +const screenClick=()=>{ + state.ScreenBool=true +} +const closeScreenBool=(obj:any)=>{ + if(obj){ + state.serviceMode=obj.mode + state.taskCycle=obj.cycle + } + state.ScreenBool=false +} provide('popup',{ closeCitySwitch, - closePositionType + closePositionType, + closeScreenBool } ) @@ -52,8 +72,8 @@ provide('popup',{

最新的任务

-
职位类型
-
筛选
+
{{ state.positionValue || '职位类型' }}
+
筛选
@@ -73,6 +93,15 @@ provide('popup',{ > + + + +