This commit is contained in:
yuping
2022-12-13 01:24:05 +08:00
parent 4cb5e938ab
commit 2ff1e154cb
2 changed files with 33 additions and 10 deletions

View File

@@ -48,7 +48,7 @@
</div>
</div>
<template #reference>
<!-- todo #学习路径 只会有一个未完成任务么?是否是直接跳到任务详情-->
<!-- todo #学习路径 只会有一个未完成任务么?是否是直接跳到任务详情-->
<div class="titleR">进入未完成任务</div>
</template>
</el-popover>
@@ -118,9 +118,9 @@
<div v-for="(item,i) in detail?.rows">
<img :src="useImage(`222_0${i+2}.png`)">
</div>
<!-- <div class="modal"-->
<!-- style="width: calc(100% - 168px); height: 525px;background-image: url('../../src/assets/image/mapdetail.png');background-size: 100%;background-repeat: no-repeat;">-->
<!-- </div>-->
<!-- <div class="modal"-->
<!-- style="width: calc(100% - 168px); height: 525px;background-image: url('../../src/assets/image/mapdetail.png');background-size: 100%;background-repeat: no-repeat;">-->
<!-- </div>-->
</div>
<!-- 路径详情图 -->
</div>
@@ -134,10 +134,13 @@ import ongoing from '../../assets/image/ongoing.png'
import {request, usePage, useRequest} from "@/api/request";
import {ROUTER_CHAPTER_LIST, ROUTER_LIST, ROUTER_UNCOMPLETE_LIST} from "@/api/api";
import {useImage} from "@/api/utils";
import {useRouter} from "vue-router";
const detail = ref()
const {data} = usePage(ROUTER_LIST, {})
const router = useRouter()
const {unCompleteTaskList} = useRequest(ROUTER_UNCOMPLETE_LIST, {})
const state = reactive({
showmapdetail: false,
@@ -148,10 +151,12 @@ const returnfun = () => {
state.showmapdetail = false;
};
async function gofun(routerId) {
const data = await request(ROUTER_CHAPTER_LIST, {stuChapterListVo: {routerId}})
detail.value = data.data
state.showmapdetail = true;
async function gofun({routerId}) {
// console.log(routerId)
// const data = await request(ROUTER_CHAPTER_LIST, {stuChapterListVo: {routerId}})
// detail.value = data.data
// state.showmapdetail = true;
router.push({path: '/pathdetails', query: {routerId}})
}
function toUnTask() {