This commit is contained in:
yuping
2022-12-13 05:27:01 +08:00
parent 154af38dcf
commit a3a3808472
2 changed files with 16 additions and 14 deletions

View File

@@ -128,8 +128,10 @@
<script setup>
import { TAS_ACTIVITY_DETAIL, TASK_ACTIVITY_SIGN, ACTIVITY } from "@/api/api";
import { request, useRequest } from "@/api/request";
import {useRoute} from "vue-router/dist/vue-router";
const {query: {courseId: activityId}} = useRoute()
const { data } = useRequest(ACTIVITY, { activityId: 155 });
const { data } = useRequest(ACTIVITY, { activityId });
console.log("data", data);
const signClick = (tab, event) => {
request(TASK_ACTIVITY_SIGN, {

View File

@@ -106,17 +106,17 @@
types.toName[value.type] || ''
}}
</div>
<!-- <div :style="{ display: value.status === 1 ? 'block' : 'none' }">-->
<!-- <div-->
<!-- class="goclass"-->
<!-- :style="{ display: value.currentRatio === 0 ? 'none' : 'flex' }">去上课-->
<!-- </div>-->
<!-- <img-->
<!-- style="width: 76px; height: 76px; margin-right: 61px"-->
<!-- :style="{ display: value.currentRatio === 0 ? 'flex' : 'none' }"-->
<!-- src="../../assets/image/pathdetails/notstarted.png"-->
<!-- />-->
<!-- </div>-->
<!-- <div :style="{ display: value.status === 1 ? 'block' : 'none' }">-->
<!-- <div-->
<!-- class="goclass"-->
<!-- :style="{ display: value.currentRatio === 0 ? 'none' : 'flex' }">去上课-->
<!-- </div>-->
<!-- <img-->
<!-- style="width: 76px; height: 76px; margin-right: 61px"-->
<!-- :style="{ display: value.currentRatio === 0 ? 'flex' : 'none' }"-->
<!-- src="../../assets/image/pathdetails/notstarted.png"-->
<!-- />-->
<!-- </div>-->
</div>
</div>
<!-- <div class="tag1">必修</div>
@@ -554,7 +554,7 @@ const types = ref({
6: '/livebroadcast',
7: '外链',
8: '/discusspage',
9: '去完成',
9: '/moreactive',
10: '去完成',
11: '去完成',
12: '去投票',
@@ -563,7 +563,7 @@ const types = ref({
})
function toFinish(d) {
router.push({path: types.value.path[d.type], query: {id: d.routerTaskId, type: 1}})
router.push({path: types.value.path[d.type], query: {id: d.routerTaskId, type: 1, courseId: d.courseId}})
}
</script>