提交 b92bfc67 authored 作者: 王鹏飞's avatar 王鹏飞

updates

上级 cca229c5
{
"name": "prp-h5",
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "vite --mode dev",
"build": "vue-tsc --noEmit && vite build --mode prod && npm run deploy",
......@@ -33,6 +34,8 @@
"@vitejs/plugin-vue": "^2.3.1",
"@vue/eslint-config-typescript": "^10.0.0",
"@vue/tsconfig": "^0.1.3",
"ali-oss": "^6.17.1",
"chalk": "^5.0.1",
"eslint": "^8.13.0",
"eslint-plugin-vue": "^8.6.0",
"typescript": "~4.6.3",
......
差异被折叠。
......@@ -46,7 +46,7 @@ onMounted(() => {
<div class="lecturer" v-for="(lecturer, index) in data.course_lectures" :key="index">
<h4>{{ lecturer.lecturer_name }}</h4>
<p>{{ lecturer.lecturer_title }}</p>
<p>{{ lecturer.lecturer_office }}</p>
<!-- <p>{{ lecturer.lecturer_office }}</p> -->
</div>
</div>
</div>
......
......@@ -6,12 +6,19 @@ import 'swiper/css/pagination'
import type { IBanner } from '../types'
defineProps<{ list: IBanner[] }>()
function handleClick(item: IBanner) {
// 外链
if (item.type === '2') {
location.href = item.url
}
}
</script>
<template>
<nav class="home-banner">
<Swiper pagination :modules="[Pagination]">
<SwiperSlide v-for="(item, index) in list" :key="index">
<SwiperSlide v-for="(item, index) in list" :key="index" @click="handleClick(item)">
<img :src="item.cover_page" />
</SwiperSlide>
</Swiper>
......@@ -25,6 +32,7 @@ defineProps<{ list: IBanner[] }>()
img {
width: 100%;
height: 3.2rem;
cursor: pointer;
}
.swiper-pagination-bullet {
background: #fff;
......
......@@ -6,12 +6,12 @@ import LearningMapCourse from './LearningMapCourse.vue'
defineProps<{ docs: IDocItem[] }>()
const active = ref<number>(0)
</script>
</script>
<template>
<AppCard title="学习地图" id="learning">
<template #header-aside>
<div class="button">去学习</div>
<div class="button"><a href="https://mp.weixin.qq.com/s/EdS6wpcdL0IEMK11WQ1Oyg" target="_blank">去学习</a></div>
</template>
<van-tabs
v-model:active="active"
......
......@@ -18,7 +18,7 @@ const menus: Array<{
icon: 'https://webapp-pub.ezijing.com/project/prp-h5/home_menu_2.png'
},
{
path: 'query',
path: '#query',
name: '权益查看',
icon: 'https://webapp-pub.ezijing.com/project/prp-h5/home_menu_3.png'
},
......
......@@ -11,8 +11,10 @@ export interface HomeInfo {
export interface IBanner {
id: string
title: string
type: string
pv: string
cover_page: string
url: string
}
export interface IDocItem {
......
......@@ -135,7 +135,7 @@ function handleSubmit() {
// background-size: 100% 100%;
// }
}
::v-deep .van-button {
:deep(.van-button) {
font-size: 0.28rem;
font-family: PingFang SC-Regular, PingFang SC;
font-weight: 400;
......
......@@ -149,15 +149,13 @@ function handleOther() {
}
}
}
::v-deep {
.van-button {
font-size: 0.28rem;
font-family: PingFang SC-Regular, PingFang SC;
font-weight: 400;
color: #ffffff;
}
.van-field__label {
width: 1.2rem;
}
:deep(.van-button) {
font-size: 0.28rem;
font-family: PingFang SC-Regular, PingFang SC;
font-weight: 400;
color: #ffffff;
}
:deep(.van-field__label) {
width: 1.2rem;
}
</style>
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论