diff --git a/src/api/task.ts b/src/api/task.ts index f09d832..ba12075 100644 --- a/src/api/task.ts +++ b/src/api/task.ts @@ -41,4 +41,21 @@ export function taskAllList(data: any) { method: 'get', params: data }) +} + +//任务详情接口 +export function taskDetails(data: any) { + return request({ + url: '/task/getTaskDetails', + method: 'get', + params: data + }) +} +// 收藏接口 +export function taskCollection(data: any) { + return request({ + url: '/course/TaskCollection', + method: 'post', + data + }) } \ No newline at end of file diff --git a/src/assets/img/task/details-guarantee.png b/src/assets/img/task/details-guarantee.png new file mode 100644 index 0000000..6a73d58 Binary files /dev/null and b/src/assets/img/task/details-guarantee.png differ diff --git a/src/components/list/TaskList.vue b/src/components/list/TaskList.vue index d95db23..1a3b0b7 100644 --- a/src/components/list/TaskList.vue +++ b/src/components/list/TaskList.vue @@ -1,3 +1,16 @@ + - + \ No newline at end of file diff --git a/src/view/task/details.vue b/src/view/task/details.vue index e69de29..b174b90 100644 --- a/src/view/task/details.vue +++ b/src/view/task/details.vue @@ -0,0 +1,81 @@ + + + \ No newline at end of file