From d8d19527fd50b344f5a7cdcc09bd0e0cbf3f0b0a Mon Sep 17 00:00:00 2001
From: yuanshun <1422672890@qq.com>
Date: Tue, 2 Jan 2024 22:53:44 +0800
Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/task.ts | 8 ++
src/store/task.ts | 6 +-
src/view/task/components/PositionType.vue | 9 +-
src/view/task/components/Screen.vue | 117 ++++++++++++++++++++++
src/view/task/index.vue | 39 +++++++-
5 files changed, 170 insertions(+), 9 deletions(-)
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 = ()=>{