课程列表

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

@ -42,7 +42,7 @@
<el-divider direction="vertical" border-style="dashed" /> <el-divider direction="vertical" border-style="dashed" />
<li> <li>
备案信息: 备案信息:
备案信息 {{ adminInfoStore.info.recordInformation }}
</li> </li>
</ul> </ul>
</div> </div>
@ -71,6 +71,10 @@ console.log(adminInfoStore);
align-items: center; align-items: center;
justify-content: center; justify-content: center;
color: #ccc; 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: '', copyrightInformation: '',
id: '', id: '',
loginAddress: '', loginAddress: '',
logo: '', logo: 'http://teaching-edu123.oss-cn-beijing.aliyuncs.com/eVAnKnTrHVMTVyr_2up5S.png',
name: '', name: '',
phone: '', phone: '',
promotionalImages: '', promotionalImages: 'http://teaching-edu123.oss-cn-beijing.aliyuncs.com/eEnQCDAMwwAm66pgZJh6K.jpg',
qqNumber: '', qqNumber: '',
qrCode: '', qrCode: '',
recordNumber: '', recordNumber: '',
title: '', title: '',
mailbox: '', mailbox: '',
home: '' home: '',
recordInformation: ''
}) })
function upAdminInfo() { function upAdminInfo() {
getSysSettingApi().then(res => { getSysSettingApi().then(res => {

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

Loading…
Cancel
Save