课程列表

develoop
significative 3 months ago
parent 8841787300
commit c0ec953709
  1. 6
      src/Layout/footer/index.vue
  2. 7
      src/store/module/adminInfo.ts
  3. 36
      src/views/professionalListProfile/index.vue

@ -42,7 +42,7 @@
<el-divider direction="vertical" border-style="dashed" />
<li>
备案信息:
备案信息
{{ adminInfoStore.info.recordInformation }}
</li>
</ul>
</div>
@ -71,6 +71,10 @@ console.log(adminInfoStore);
align-items: center;
justify-content: center;
color: #ccc;
font-family:'Courier New', Courier, monospace;
// background: linear-gradient(white,#38495a);
// background-clip: text;
// color: transparent;
}
}

@ -9,16 +9,17 @@ const useAdminInfoStore = defineStore('adminInfo', () => {
copyrightInformation: '',
id: '',
loginAddress: '',
logo: '',
logo: 'http://teaching-edu123.oss-cn-beijing.aliyuncs.com/eVAnKnTrHVMTVyr_2up5S.png',
name: '',
phone: '',
promotionalImages: '',
promotionalImages: 'http://teaching-edu123.oss-cn-beijing.aliyuncs.com/eEnQCDAMwwAm66pgZJh6K.jpg',
qqNumber: '',
qrCode: '',
recordNumber: '',
title: '',
mailbox: '',
home: ''
home: '',
recordInformation: ''
})
function upAdminInfo() {
getSysSettingApi().then(res => {

@ -1,5 +1,6 @@
<script setup lang="ts">
import { ref } from 'vue';
import { userGetInfoService } from '@/api/configuration';
const paginationData = ref({
pageNo: 1,
@ -53,11 +54,24 @@ const dataList = ref([
isStar: false
},
])
function handlePraise(item:any) {
item.isPraise = !item.isPraise
const isLogin = ref(false)
userGetInfoService().then(res => {
// @ts-ignore
if (res.code === 200) {
isLogin.value = true
}
})
function handlePraise(item: any) {
if (isLogin.value) item.isPraise = !item.isPraise
else skip('http://localhost:5173/#/login?redirect=/configurationPage')
}
function handleStar(item:any) {
item.isStar = !item.isStar
function handleStar(item: any) {
if (isLogin.value) item.isStar = !item.isStar
else skip('http://localhost:5173/#/login?redirect=/configurationPage')
}
function skip(url: string) {
location.assign(url)
}
</script>
@ -71,7 +85,7 @@ function handleStar(item:any) {
<div class="course">
<ul class="course_list">
<li v-for="item in dataList" :key="item.id">
<img title="点击查看课程详情" :src="''" alt="" @click="" />
<img title="点击查看课程详情" :src="'http://teaching-edu123.oss-cn-beijing.aliyuncs.com/sDwvElo68wTi4SR9HVBIn.png'" alt="" @click="" />
<h2 title="点击查看课程基本信息" class="course_name" @click="">
软件项目管理
</h2>
@ -98,9 +112,17 @@ function handleStar(item:any) {
</div>
</div>
<el-button class="object" round plain @click="">
查看课程详情
<div class="object">
<el-button round plain
@click="skip('http://localhost:5173/#/curriculumCenter/basicCourseInformation')">
详情
</el-button>
<el-button round plain
@click="skip('http://localhost:5173/#/curriculumCenter/basicCourseInformation')">
路径规划
</el-button>
</div>
</li>
</ul>
</div>

Loading…
Cancel
Save