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

updates

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