Browse Source

Merge branch 'study' into bogu_yjt 俱乐部接口对接

bogu_yjt
ting 7 months ago
parent
commit
8025c7f64d
  1. 100
      vueHomilyLink/package-lock.json
  2. 1
      vueHomilyLink/package.json
  3. 22
      vueHomilyLink/src/api/ChannelApi.js
  4. 23
      vueHomilyLink/src/api/ClubApi.js
  5. 15
      vueHomilyLink/src/api/LiveApi.js
  6. 16
      vueHomilyLink/src/api/index.js
  7. BIN
      vueHomilyLink/src/assets/live.jpg
  8. 4
      vueHomilyLink/src/assets/main.css
  9. 2
      vueHomilyLink/src/components/Nav.vue
  10. 2
      vueHomilyLink/src/router/index.js
  11. 451
      vueHomilyLink/src/views/ChannelView.vue
  12. 296
      vueHomilyLink/src/views/LiveView.vue
  13. 81
      vueHomilyLink/src/views/club/BoguView.vue
  14. 81
      vueHomilyLink/src/views/club/MuminView.vue
  15. 81
      vueHomilyLink/src/views/club/shenQiang.vue
  16. 11
      vueHomilyLink/vite.config.js

100
vueHomilyLink/package-lock.json

@ -8,6 +8,7 @@
"name": "vuehomilylink",
"version": "0.0.0",
"dependencies": {
"axios": "^1.7.8",
"pinia": "^2.2.6",
"vue": "^3.5.12",
"vue-router": "^4.4.5"
@ -1434,6 +1435,23 @@
"integrity": "sha512-/hnE/qP5ZoGpol0a5mDi45bOd7t3tjYJBjsgCsivow7D48cJeV5l05RD82lPqi7gRiphZM37rnhW1l6ZoCNNnQ==",
"license": "MIT"
},
"node_modules/asynckit": {
"version": "0.4.0",
"resolved": "https://registry.npmmirror.com/asynckit/-/asynckit-0.4.0.tgz",
"integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==",
"license": "MIT"
},
"node_modules/axios": {
"version": "1.7.8",
"resolved": "https://registry.npmmirror.com/axios/-/axios-1.7.8.tgz",
"integrity": "sha512-Uu0wb7KNqK2t5K+YQyVCLM76prD5sRFjKHbJYCP1J7JFGEQ6nN7HWn9+04LAeiJ3ji54lgS/gZCH1oxyrf1SPw==",
"license": "MIT",
"dependencies": {
"follow-redirects": "^1.15.6",
"form-data": "^4.0.0",
"proxy-from-env": "^1.1.0"
}
},
"node_modules/birpc": {
"version": "0.2.19",
"resolved": "https://registry.npmmirror.com/birpc/-/birpc-0.2.19.tgz",
@ -1514,6 +1532,18 @@
],
"license": "CC-BY-4.0"
},
"node_modules/combined-stream": {
"version": "1.0.8",
"resolved": "https://registry.npmmirror.com/combined-stream/-/combined-stream-1.0.8.tgz",
"integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==",
"license": "MIT",
"dependencies": {
"delayed-stream": "~1.0.0"
},
"engines": {
"node": ">= 0.8"
}
},
"node_modules/convert-source-map": {
"version": "2.0.0",
"resolved": "https://registry.npmmirror.com/convert-source-map/-/convert-source-map-2.0.0.tgz",
@ -1619,6 +1649,15 @@
"url": "https://github.com/sponsors/sindresorhus"
}
},
"node_modules/delayed-stream": {
"version": "1.0.0",
"resolved": "https://registry.npmmirror.com/delayed-stream/-/delayed-stream-1.0.0.tgz",
"integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==",
"license": "MIT",
"engines": {
"node": ">=0.4.0"
}
},
"node_modules/electron-to-chromium": {
"version": "1.5.64",
"resolved": "https://registry.npmmirror.com/electron-to-chromium/-/electron-to-chromium-1.5.64.tgz",
@ -1727,6 +1766,40 @@
"url": "https://github.com/sindresorhus/execa?sponsor=1"
}
},
"node_modules/follow-redirects": {
"version": "1.15.9",
"resolved": "https://registry.npmmirror.com/follow-redirects/-/follow-redirects-1.15.9.tgz",
"integrity": "sha512-gew4GsXizNgdoRyqmyfMHyAmXsZDk6mHkSxZFCzW9gwlbtOW44CDtYavM+y+72qD/Vq2l550kMF52DT8fOLJqQ==",
"funding": [
{
"type": "individual",
"url": "https://github.com/sponsors/RubenVerborgh"
}
],
"license": "MIT",
"engines": {
"node": ">=4.0"
},
"peerDependenciesMeta": {
"debug": {
"optional": true
}
}
},
"node_modules/form-data": {
"version": "4.0.1",
"resolved": "https://registry.npmmirror.com/form-data/-/form-data-4.0.1.tgz",
"integrity": "sha512-tzN8e4TX8+kkxGPK8D5u0FNmjPUjw3lwC9lSLxxoB/+GtsJG91CO8bSWy73APlgAZzZbXEYZJuxjkHH2w+Ezhw==",
"license": "MIT",
"dependencies": {
"asynckit": "^0.4.0",
"combined-stream": "^1.0.8",
"mime-types": "^2.1.12"
},
"engines": {
"node": ">= 6"
}
},
"node_modules/fs-extra": {
"version": "11.2.0",
"resolved": "https://registry.npmmirror.com/fs-extra/-/fs-extra-11.2.0.tgz",
@ -1990,6 +2063,27 @@
"dev": true,
"license": "MIT"
},
"node_modules/mime-db": {
"version": "1.52.0",
"resolved": "https://registry.npmmirror.com/mime-db/-/mime-db-1.52.0.tgz",
"integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==",
"license": "MIT",
"engines": {
"node": ">= 0.6"
}
},
"node_modules/mime-types": {
"version": "2.1.35",
"resolved": "https://registry.npmmirror.com/mime-types/-/mime-types-2.1.35.tgz",
"integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==",
"license": "MIT",
"dependencies": {
"mime-db": "1.52.0"
},
"engines": {
"node": ">= 0.6"
}
},
"node_modules/mimic-fn": {
"version": "4.0.0",
"resolved": "https://registry.npmmirror.com/mimic-fn/-/mimic-fn-4.0.0.tgz",
@ -2239,6 +2333,12 @@
"node": "^10 || ^12 || >=14"
}
},
"node_modules/proxy-from-env": {
"version": "1.1.0",
"resolved": "https://registry.npmmirror.com/proxy-from-env/-/proxy-from-env-1.1.0.tgz",
"integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==",
"license": "MIT"
},
"node_modules/rfdc": {
"version": "1.4.1",
"resolved": "https://registry.npmmirror.com/rfdc/-/rfdc-1.4.1.tgz",

1
vueHomilyLink/package.json

@ -9,6 +9,7 @@
"preview": "vite preview"
},
"dependencies": {
"axios": "^1.7.8",
"pinia": "^2.2.6",
"vue": "^3.5.12",
"vue-router": "^4.4.5"

22
vueHomilyLink/src/api/ChannelApi.js

@ -0,0 +1,22 @@
import service from ".";
const ChannelApi = {
//获取频道列表
getchannels(){
return service.get('/list');
},
//获取shows列表
getShows(Id,UserId,FlagType){
return service.post('/channel',{Id,UserId,FlagType});
},
//订阅状态
subscribe(Id,UserId){
return service.post('/subscription',{Id,UserId})
},
//取消订阅
unSubscribe(Id,UserId){
return service.delete('/subscription',{Id,UserId})
}
}
export default ChannelApi;

23
vueHomilyLink/src/api/ClubApi.js

@ -0,0 +1,23 @@
import service from ".";
const ClubApi = {
getClub(id){
return service.get(
'/clubpage/get-club',{
params: {
id: id
}
}
);
},
getShows(id){
return service.get(
'/clubpage/get-club-shows',{
params: {
id: id
}
}
)
}
}
export default ClubApi;

15
vueHomilyLink/src/api/LiveApi.js

@ -0,0 +1,15 @@
import service from ".";
const liveApi = {
//获取直播列表
getLiveList() {
return service.get('/live');
},
//预约
addReservation(id,userId){
return service.post('/reservation',{id,userId});
},
//取消预约
cancelReservation(id,userId){
return service.delete('/reservation',{id,userId});
}
}

16
vueHomilyLink/src/api/index.js

@ -0,0 +1,16 @@
import axios from "axios";
const service = axios.create({
// baseURL: 'http://192.168.8.191:8080',
// baseURL: 'http://localhost:8080',
baseURL: '/api',
});
// http://192.168.8.191:8080
//Axios的响应拦截器..
service.interceptors.response.use(resp => {
return resp.data;
}, error => {
return Promise.reject(error);
});
export default service;

BIN
vueHomilyLink/src/assets/live.jpg

After

Width: 310  |  Height: 200  |  Size: 39 KiB

4
vueHomilyLink/src/assets/main.css

@ -1,9 +1,7 @@
@import './base.css';
html,body{
margin:0px;
height: 100%;
}
#app{
height: 100%;
}
}

2
vueHomilyLink/src/components/Nav.vue

@ -7,7 +7,7 @@
<div class="container">
<a href="#">频道</a>
<a href="#">俱乐部</a>
<a href="#">直播</a>
<a href="/live">直播</a>
</div>
</div>
</template>

2
vueHomilyLink/src/router/index.js

@ -32,8 +32,8 @@ const router = createRouter({
},
{
path: '/channel:id?',
props: true,
name: 'channel',
props:true,
component: ChannelView,
},
{

451
vueHomilyLink/src/views/ChannelView.vue

@ -1,149 +1,379 @@
<script setup>
import Nav from '@/components/Nav.vue';
import { computed, ref } from 'vue';
import router from '@/router';
import ChannelApi from '@/api/ChannelApi';
//
const channelList = ref([]);
//
const currentTab = ref('all');
const flagType = ref(null);
//
//
const channel = ref({
id: 1,
image: "https://d31zlh4on95l9h.cloudfront.net/images/52ea7786d329493ea43791533e17ba66.png",
name: "量价时空四维预测术",
//
subscriptionCount: 60,
backgroundImage: "https://d31zlh4on95l9h.cloudfront.net/images/148gntohb80czrcs8ykqfkq1yhuplalr.jpg",
});
//1-
function getChannels() {
//api
ChannelApi.getchannels().then((result) =>{
console.log(result.data);
channelList.value = result.data;
console.log("++++",channelList.value);
})
}
getChannels();
function toLink(channelId) {
router.push({ path: '/channel', query: { id: channelId } });
loadShows(channelId,flagType);
console.log("flga",flagType.value);
}
function changeTab(tab, flagType) {
currentTab.value = tab;
loadShows(flagType);
}
// 1
const shows = ref([]);
//
function loadShows(channleId,flagType) {
//showsapi,id,userId
ChannelApi.getShows(channleId,90000000,flagType.value).then((result)=>{
console.log(result.data)
channel.value = result.data.channel;
console.log("频道",channel.value)
shows.value = result.data.shows;
console.log("视频",shows.value);
})
}
loadShows(channel.value.id,flagType);
//
function submit(channelId) {
console.log("频道id",channelId);
ChannelApi.subscribe(channelId,90000000).then((result)=>{
if(result && result.success){
alert('订阅成功!');
loadShows(channelId);
}else{
alert('订阅失败!');
}
})
}
function unsubmit(channelId){
console.log("取消频道id",channelId);
ChannelApi.unSubscribe(channelId,90000000).then((result) =>{
if(result && result.success){
alert('取消订阅成功!');
loadShows(channelId);
}
})
}
// function buttonActive(){
// }
// buttonActive();
</script>
<template>
<Nav></Nav>
<ChannelNav></ChannelNav>
<div class="club-nav">
<div class="container">
<button v-for="ch in channelList.list" @click="toLink(ch.id)" class="nav-item">{{ ch.name }}</button>
</div>
</div>
<div class="channel">
<div class="channel-head">
<!-- 1-订阅按钮 -->
<button disabled="disabled" type="button" class="submit">已订阅</button>
<button v-if="channel.status && channel.status == 1" class="submited"
@click="unsubmit(channel.id)">取消订阅</button>
<button v-else class="submit" @click="submit(channel.id)">订阅</button>
<!-- 2-背景图片 -->
<img alt="" class="bc-image" src="https://d31zlh4on95l9h.cloudfront.net/images/148gntohb80czrcs8ykqfkq1yhuplalr.jpg" />
<img alt="" class="bc-image" :src="channel.backgroundImage" />
<!-- 3-频道主题 -->
<div class="channel-title">
<!-- 频道头像 -->
<img alt="" class="title-image" src="https://d31zlh4on95l9h.cloudfront.net/images/52ea7786d329493ea43791533e17ba66.png" />
<!-- 频道title -->
<div class="title-content">
<h3>量价时空四维预测术</h3>
<span>5525已订阅</span>
<p style="line-height: 18px;">.</p>
</div>
<!-- 频道头像 -->
<img alt="" class="title-image" :src="channel.image" />
<!-- 频道title -->
<div class="title-content">
<h3 :name="channel.name">{{ channel.name }}</h3>
<span :subscriptionCount="channel.subscriptionCount">{{ channel.subscriptionCount }}已订阅</span>
<p style="line-height: 18px;">.</p>
</div>
</div>
</div>
<!-- 频道内容 -->
<div class="channel-content">
<!-- 导航栏 -->
<div class="content-nav">
<button class="tab">全部</button>
<button class="tab">文章</button>
<button class="tab">视频</button>
<button class="tab">合集</button>
<button
class="tab"
:class="{ active: currentTab === 'all' }"
@click="changeTab(channel.id,null)">全部</button>
<button
class="tab"
:class="{ active: currentTab === 'articles' }"
@click="changeTab(channel.id,1)">文章</button>
<button
class="tab"
:class="{ active: currentTab === 'videos' }"
@click="changeTab(channel.id, 2)">视频</button>
</div>
<component :is="currentTabComponent"></component>
<!-- 内容 -->
<div class="content-list">
<ul class="list-display">
<!-- 一条 -->
<li>
<div class="sub-topic">
<!-- 左边 -->
<div class="sub-left">
<img class="sub-image" src="https://d31zlh4on95l9h.cloudfront.net/images/5iujax01000d5j9gzh9bvhrgq0hb5t0q.jpg" alt="视频缩略图">
</div>
<!-- 右边 -->
<div class="sub-right">
<!-- title -->
<h3 class="right-title">大国博弈下的深度交易策略</h3>
<div class="right-inline">
<!-- HomilyLink -->
<div class="right-item">
<img src="https://d31zlh4on95l9h.cloudfront.net/images/1y9yuf0myv0cyno4wstwr368e0wbi9on.jpg" class="img1">
<div>HomilyLink</div>
<!-- 如果是全部 -->
<div v-if="currentTab == 'all'" class="content-list">
<ul class="list-display">
<!-- 一条 -->
<li v-for="show in shows">
<div class="sub-topic">
<!-- 左边 -->
<div class="sub-left">
<img class="sub-image" :src="show.cover" alt="视频缩略图">
<div v-if="show.flagType == 1" :videoDuration="show.videoDuration" class="video-time">
{{ show.videoDuration }}
</div>
</div>
<!-- 右边 -->
<div class="sub-right">
<!-- title -->
<h3 :name="show.name" class="right-title">{{ show.name }}</h3>
<div class="right-inline">
<!-- 发布的用户名 -->
<div class="right-item">
<img :src="show.user.avatar" class="img1">
<div :username="show.user.username">{{ show.user.username }}</div>
</div>
<!-- 评论 -->
<span :comments="show.comments" class="right-item">{{ show.comments }}评论</span>
<!-- 日期 -->
<div :releaseTime="show.releaseTime" class="right-item"> {{ show.releaseTime }}
</div>
</div>
<!-- 评论 -->
<span class="right-item">0评论</span>
<!-- 日期 -->
<div class="right-item"> 05-26 11:42 </div>
</div>
</div>
</li>
</ul>
</div>
<div v-if="currentTab == 'videos'" class="content-list">
<ul class="list-display">
<!-- 一条 -->
<li v-for="show in shows">
<div class="sub-topic">
<!-- 左边 -->
<div class="sub-left">
<img class="sub-image" :src="show.cover" alt="视频缩略图">
<div v-if="show.flagType == 1" :videoDuration="show.videoDuration" class="video-time">
{{ show.videoDuration }}
</div>
</div>
<!-- 右边 -->
<div class="sub-right">
<!-- title -->
<h3 :name="show.name" class="right-title">{{ show.name }}</h3>
<div class="right-inline">
<!-- 发布的用户名 -->
<div class="right-item">
<img :src="show.user.avatar" class="img1">
<div :username="show.user.username">{{ show.user.username }}</div>
</div>
<!-- 评论 -->
<span :comments="show.comments" class="right-item">{{ show.comments }}评论</span>
<!-- 日期 -->
<div :releaseTime="show.releaseTime" class="right-item"> {{ show.releaseTime }}
</div>
</div>
</div>
</div>
</li>
</ul>
</div>
<div v-if="currentTab == 'articles'" class="content-list">
<ul class="list-display">
<!-- 一条 -->
<li v-for="show in shows">
<div class="sub-topic">
<!-- 左边 -->
<div class="sub-left">
<img class="sub-image" :src="show.cover" alt="视频缩略图">
<div v-if="show.flagType == 1" :videoDuration="show.videoDuration" class="video-time">
{{ show.videoDuration }}
</div>
</div>
<!-- 右边 -->
<div class="sub-right">
<!-- title -->
<h3 :name="show.name" class="right-title">{{ show.name }}</h3>
</div>
</li>
<li>
<div class="sub-topic">
<!-- 左边 -->
<div class="sub-left">
<img class="sub-image" src="https://d31zlh4on95l9h.cloudfront.net/images/5iujax01000d5j9gzh9bvhrgq0hb5t0q.jpg" alt="视频缩略图">
</div>
<!-- 右边 -->
<div class="sub-right">
<!-- title -->
<h3 class="right-title">大国博弈下的深度交易策略</h3>
<div class="right-inline">
<!-- HomilyLink -->
<div class="right-item">
<img src="https://d31zlh4on95l9h.cloudfront.net/images/1y9yuf0myv0cyno4wstwr368e0wbi9on.jpg" class="img1">
<div>HomilyLink</div>
<div class="right-inline">
<!-- 发布的用户名 -->
<div class="right-item">
<img :src="show.user.avatar" class="img1">
<div :username="show.user.username">{{ show.user.username }}</div>
</div>
<!-- 评论 -->
<span :comments="show.comments" class="right-item">{{ show.comments }}评论</span>
<!-- 日期 -->
<div :releaseTime="show.releaseTime" class="right-item"> {{ show.releaseTime }}
</div>
</div>
<!-- 评论 -->
<span class="right-item">0评论</span>
<!-- 日期 -->
<div class="right-item"> 05-26 11:42 </div>
</div>
</div>
</div>
</li>
</ul>
</li>
</ul>
</div>
</div>
</div>
</template>
<style scoped>
.channel{
.club-nav {
height: 100vh;
position: fixed;
left: 30px;
top: 30px;
background-color: #ffffff;
overflow-x: hidden;
padding-top: 20px;
transition: 0.5s;
}
.container {
padding: 0;
margin: 0;
list-style-type: none;
background-color: #ffffff;
}
.nav-item {
border: none;
background-color: #ffffff;
padding: 10px 15px;
width: 250px;
height: 60px;
text-decoration: none;
font-size: 18px;
color: rgb(19, 18, 18);
display: block;
transition: 0.3s;
}
.nav-item:hover {
background-color: #407fdf;
color: #f1f1f1;
}
.nav-item.router-link-active {
background-color: #407fdf;
color: white;
border-radius: 5%;
}
.channel {
width: 800px;
margin-left: auto;
margin-right: auto;
}
.channel-head{
.channel-head {
position: relative;
height: 200px;
width: 100%;
}
.bc-image{
.bc-image {
height: 100%;
width: 100%;
}
.submit{
position: absolute; /* 绝对定位 */
top: 50px; /* 根据需要调整位置 */
right: 10px; /* 根据需要调整位置 */
.submited {
position: absolute;
/* 绝对定位 */
top: 50px;
/* 根据需要调整位置 */
right: 10px;
/* 根据需要调整位置 */
color: rgb(129, 132, 134);
background-color: aliceblue;
padding: 10px;
border-radius: 5%;
border-radius: 10%;
z-index: 999;
}
.channel-title{
box-sizing: border-box;
.submit {
position: absolute;
left: 60px;
/* 绝对定位 */
top: 50px;
background: rgba(0, 0, 0, .4);
width: 400px;
/* 根据需要调整位置 */
right: 10px;
/* 根据需要调整位置 */
color: rgb(129, 132, 134);
background-color: aliceblue;
padding: 10px 20px;
border-radius: 10%;
z-index: 999;
}
.channel-title {
position: absolute;
top: 0px;
left: 0px;
padding-top: 60px;
padding-left: 50px;
box-sizing: border-box;
background: rgba(0, 0, 0, 0.4);
width: 100%;
height: 100%;
overflow: hidden;
}
.title-image{
.title-image {
width: 90px;
height: 90px;
margin-right: 25px;
vertical-align: top;
border-radius: 50%;
}
.title-content{
.title-content {
display: inline-block;
position: absolute;
width: 400px;
color: white;
overflow: hidden;
}
.channel-title h3{
.channel-title h3 {
max-width: 75%;
overflow: hidden;
white-space: nowrap;
@ -153,7 +383,8 @@ import Nav from '@/components/Nav.vue';
margin: 0px;
z-index: 999;
}
.channel-title span{
.channel-title span {
padding: 4px 0;
font-size: 14px;
color: #fff;
@ -161,65 +392,87 @@ import Nav from '@/components/Nav.vue';
.content-nav {
display: flex;
justify-content: flex-start; /* 修正了属性名中的空格 */
background-color: #fff; /* 修正了属性名中的空格 */
border-bottom: 1px solid #ccc; /* 修正了属性名中的空格 */
justify-content: flex-start;
/* 修正了属性名中的空格 */
background-color: #fff;
/* 修正了属性名中的空格 */
border-bottom: 1px solid #ccc;
/* 修正了属性名中的空格 */
margin: 10px;
}
.tab {
padding: 10px 20px;
border: none;
background-color: transparent; /* 修正了属性名中的空格 */
background-color: transparent;
/* 修正了属性名中的空格 */
cursor: pointer;
font-size: 16px;
}
.active {
color: red;
border-bottom: 2px solid red; /* 修正了属性名中的空格 */
color: red;
border-bottom: 2px solid red;
}
.list-display{
.list-display {
list-style-type: none;
padding: 0px;
}
.sub-topic {
margin: 10px 0;
padding: 10px;
display: flex;
display: flex;
}
.sub-left{
.sub-left {
height: 112px;
width: 200px;
position: relative;
.sub-image {
width: 100%;
height: 100%;
}
.video-time {
position: absolute;
left: 70%;
top: 80%;
color: #fff;
background-color: rgba(31, 30, 30, 0.5);
border-radius: 20%;
font-size: smaller;
}
}
.sub-image{
width: 100%;
height: 100%;
}
.right-inline{
.right-inline {
display: flex;
margin-bottom: 15px;
align-items: center;
font-size: 16px;
}
.right-title{
.right-title {
margin-left: 10px;
}
.right-item{
.right-item {
display: flex;
color: #8e8e8e;
font-size: 14px;
margin-right: 18px;
align-items: center;
}
.img1{
.img1 {
margin-left: 10px;
width: 22px;
height: 22px;
border-radius: 50%;
}
</style>

296
vueHomilyLink/src/views/LiveView.vue

@ -1,10 +1,300 @@
<template>
<!-- 卡片 -->
<div class="card-container">
<div v-for="(live, index) in liveList" :key="index" class="card">
<div class="cover-image" :class="{ 'no-overlay': !live.status == 1 }" style="position:relative;">
<img :src=live.cover alt="节目1">
<div v-if="live.status == 1" class="overlay">即将开播</div>
<div v-if="live.status == 1" class="start-time">{{ getDateDay(live.startTime) }} {{ live.startTime.slice(11, 16) }}开播</div>
</div>
<div class="card-content">
<div class="card-title">{{ live.liveName }}</div>
<div class="card-actions">
<!-- 用户头像 -->
<img :src=live.user.avatar alt="节目1" class="user-avatar">
<!-- 用户昵称与头像同行显示 -->
<div class="card-info">{{ live.user.userName }}</div>
<!-- 预约按钮,如果预约过了按钮变灰色文字变灰色按钮文字为已预约 -->
<a v-if="live.reservation == 0" href="#" class="card-button"
@click="booking(live.id, live.user.userId)">预约</a>
<a v-else href="#" class="card-button" style="background-color: #ccc;">已预约</a>
</div>
</div>
</div>
</div>
</template>
<script setup>
import { ref } from 'vue';
/*
模拟后端数据
*/
const liveList = ref([]);
//
function getLive() {
liveList.value = [
{
id: 1,
cover: "src/assets/live.jpg",
user: {
userId: 1,
userName: "冷辉老师",
avatar: "src/assets/live.jpg"
},
liveName: "猎庄之顶级波段",
startTime: "2024-12-01 09:55",
reservation: 1, //01
status: 1 //01
},
{
id: 2,
cover: "src/assets/live.jpg",
user: {
userId: 2,
userName: "冷辉老师",
avatar: "src/assets/live.jpg"
},
liveName: "猎庄之顶级波段",
startTime: "2024-12-01 09:55",
reservation: 1, //01
status: 1
},
{
id: 3,
cover: "src/assets/live.jpg",
user: {
userId: 3,
userName: "冷辉老师",
avatar: "src/assets/live.jpg"
},
liveName: "猎庄之顶级波段",
startTime: "2024-11-30 12:55",
reservation: 1, //01
status: 1
},
{
id: 4,
cover: "src/assets/live.jpg",
user: {
userId: 4,
userName: "冷辉老师",
avatar: "src/assets/live.jpg"
},
liveName: "猎庄之顶级波段",
startTime: "2024-12-30 12:55",
reservation: 0, //01
status: 1
},
{
id: 5,
cover: "src/assets/live.jpg",
user: {
userId: 5,
userName: "冷辉老师",
avatar: "src/assets/live.jpg"
},
liveName: "猎庄之顶级波段",
startTime: "2024-12-30 12:55",
reservation: 0, //01
status: 1,
}
]
}
getLive();
//
function getDateDay(startTime) {
const now = new Date();
const start = new Date(startTime);
const oneDay = 24 * 60 * 60 * 1000; //
if (now.toDateString() == start.toDateString()) {
return "今天";
} else if (now.getTime() + oneDay >= start.getTime()) {
return "明天";
} else {
return startTime.slice(5, 10);
}
}
// //
// const userInfo = ref([]);
// function getUserInfo() {
// userInfo.value = {
// userId: 1,
// userName: "",
// avatar: "src/assets/live.jpg",
// //
// reservationList: [1,2,3]
// }
// }
// getUserInfo();
// console.log(userInfo.value);
// /* */
// function isBooking(liveId) {
// for (let i = 0; i < userInfo.value.reservationList.length; i++) {
// if (userInfo.value.reservationList[i] == liveId) {
// return true;
// }
// }
// return false;
// }
/*点击预约按钮以后显示预约成功的提示,并将按钮变为不可点击状态,且将按钮的文字改为“已预约”,并将按钮的背景颜色改为灰色*/
function booking(liveId, userId) {
alert("预约成功!");
}
</script>
<template>
直播
</template>
<style scoped>
.card-container {
/*居中显示*/
margin-left: auto;
margin-right: auto;
/*宽度*/
width: 916px;
font-family: Arial, sans-serif;
padding: 0;
flex-wrap: wrap;
/*超出自动换行*/
background-color: #f4f4f4;
display: flex;
align-items: center;
}
.card {
background-color: #fff;
border-radius: 8px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
margin: 10px;
overflow: hidden;
border: #666;
height: 190px;
width: 209px;
}
.card .cover-image img {
width: 100%;
height: 100%;
/*图片占满整个卡片*/
object-fit: cover;
border-radius: 8px;
}
.cover-image {
position: relative;
height: 120px;
width: 208px;
border-radius: 8px;
}
/*即将开播图层*/
.overlay {
position: absolute;
z-index: 2;
text-align: center;
top: 30%;
left: 50%;
transform: translate(-50%, -50%);
color: #fff;
font-size: 18px;
}
/*开播时间*/
.start-time {
position: absolute;
z-index: 2;
text-align: center;
top: 60%;
left: 50%;
transform: translate(-50%, -50%);
color: #ffffffaf;
font-size: 15px;
width: 120px;
}
.cover-image::before {
content: " ";
position: absolute;
top: 0;
left: 0;
width: 207px;
height: 120px;
/*最后一个参数是半透明度,可以透过调整0-1的数值,调整到满意的透明度*/
background-color: rgba(0, 0, 0, 0.3);
border-radius: 8px;
}
/*用于隐藏样式*/
.cover-image.no-overlay::before {
display: none;
}
.card-content {
padding: 8px;
}
.card-title {
font-size: 13px;
font-weight: bold;
margin-bottom: 5px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.card-info {
font-size: 14px;
color: #666;
}
.card-button {
display: inline-block;
padding: 5px 5px;
background-color: #eb8b31;
color: #fff;
text-decoration: none;
border-radius: 20px;
font-size: small;
width: 50px;
text-align: center;
margin-left: auto;
}
.card-actions {
display: flex;
align-items: center;
/* 垂直居中对齐 */
justify-content: space-between;
/* 按钮右对齐 */
}
.user-avatar {
border-radius: 50%;
width: 20px;
height: 20px;
}
.card-info {
margin-left: 5px;
/* 昵称与头像之间的间距 */
margin-top: 0;
/* 移除顶部外边距 */
/*超长以后将内容省略显示*/
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
width: 90px;
font-size: 12px;
}
</style>

81
vueHomilyLink/src/views/club/BoguView.vue

@ -1,4 +1,5 @@
<script setup>
import ClubApi from '@/api/ClubApi';
import ClubNav from '@/components/ClubNav.vue';
import Nav from '@/components/Nav.vue';
import { ref } from 'vue';
@ -7,74 +8,24 @@ import { ref } from 'vue';
const club = ref()
//
function loadClub(){
club.value = {
id: 1,
image:"https://d31zlh4on95l9h.cloudfront.net/default/1y9yuf08kg0cydno200zqtu17zi4gwwv.png",
name:"博股俱乐部",
introduction:"博股国际投资论坛(BoguIntemational InvestmentForum)立足中国,面向全球。聚集了国际政要、投资大师、经济学家和高端投资人士。该论坛旨在为一小部分高投资人士提供深度学习,解读国际经济形势,井研判经济发展机遇。博股会员是博股国际投资论坛的终身会员,我们注重知识体系的深度,与大师为伍,强调价值投资,并利用大波设进行盈利。",
backgroundImage:""
};
//api
ClubApi.getClub(1).then((result) =>{
console.log(result)
console.log("++++++++",result.data);
club.value = result;
console.log(club.value);
})
}
loadClub();
//
const shows = ref([])
//
function loadShows(){
shows.value = ([
{
id: 1,
cover:"https://d31zlh4on95l9h.cloudfront.net/images/1nzz3jjlxo0d1j9karz0ev31l0ryr0cj.jpg",
name:"第一节《影型结构同现》",
user:{
id:1,
username:"HomilyLink",
avatar:"https://d31zlh4on95l9h.cloudfront.net/images/1y9yuf0myv0cyno4wstwr368e0wbi9on.jpg",
},
releaseTime:"2024-05-26 11:42:00",
//
videoDuration:"01:22:11",
//
viewCount:796,
comments:2,
likes:10,
// ,
flagType:1,
club:{
id: 1,
image:"https://d31zlh4on95l9h.cloudfront.net/default/1y9yuf08kg0cydno200zqtu17zi4gwwv.png",
name:"博股俱乐部",
introduction:"博股国际投资论坛(BoguIntemational InvestmentForum)立足中国,面向全球。聚集了国际政要、投资大师、经济学家和高端投资人士。该论坛旨在为一小部分高投资人士提供深度学习,解读国际经济形势,井研判经济发展机遇。博股会员是博股国际投资论坛的终身会员,我们注重知识体系的深度,与大师为伍,强调价值投资,并利用大波设进行盈利。",
backgroundImage:""
},
},
{
id: 2,
cover:"https://d31zlh4on95l9h.cloudfront.net/images/1y9yuf0oxr0cymk998qbud22ztc1559v.jpg",
name:"第二节《强势结构形态》",
user:{
id:1,
username:"HomilyLink",
avatar:"https://d31zlh4on95l9h.cloudfront.net/images/1y9yuf0myv0cyno4wstwr368e0wbi9on.jpg",
},
releaseTime:"2024-01-24 09:55:00",
//
videoDuration:"03:56:00",
//
viewCount:"594",
comments:0,
likes:16,
// ,
flagType:2,
club:{
id: 1,
image:"https://d31zlh4on95l9h.cloudfront.net/default/1y9yuf08kg0cydno200zqtu17zi4gwwv.png",
name:"博股俱乐部",
introduction:"博股国际投资论坛(BoguIntemational InvestmentForum)立足中国,面向全球。聚集了国际政要、投资大师、经济学家和高端投资人士。该论坛旨在为一小部分高投资人士提供深度学习,解读国际经济形势,井研判经济发展机遇。博股会员是博股国际投资论坛的终身会员,我们注重知识体系的深度,与大师为伍,强调价值投资,并利用大波设进行盈利。",
backgroundImage:""
},
}
])
ClubApi.getShows(1).then((result) =>{
console.log(result);
shows.value = result;
})
}
//
loadShows();
@ -87,11 +38,11 @@ loadShows();
<!-- 俱乐部相关信息 -->
<header>
<div class="club-header1">
<img class="club-image" :src="club.image" alt="视频缩略图">
<img v-if="club && club[0]" class="club-image" :src="club[0].image" alt="视频缩略图">
<button class="club-button" @click="handleMore">查看更多</button>
</div>
<p>{{ club.introduction }}</p>
<p v-if="club && club[0]">{{ club[0].introduction }}</p>
</header>
<!-- 俱乐部内容 -->
<section class="special-topic">
@ -122,7 +73,7 @@ loadShows();
<div class="right-inline">
<div class="yellow">
<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACcAAAAnCAYAAACMo1E1AAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAI4SURBVFiF7VhBcsIwDFy5/VfNDPRNcIKcwptKZ3Af1qiHJMVOZFty6K17gqDIy8peKQH+0QbamoD7vZ8/D3DeYQgAQKfPsDV3Eznu956JztNXX4xl6gDg5fRxsa5jIheRKhLK3s/UWUiqyG0lleRi6hyGoCl7ldxE7K5cO0D5BzQqutKP3/37xUAM7njbaWOJ+Pzdv1+K+UrEiPic+32JeeNjVE8FIj7Hp11Fjvu9txBLFmTu6lHRWkT3HEGR3AAnBpcw758Wf4tsKcGKnLWcQFLSGcFyPwAvqbci11rOJIextICsXmIlLaoBgDveVpY0XA9szUPMu3hbFK1EA6GkM0Lmej7XQr3X+MtCtaApD0EWyB1vu5JNAOPBK1UqKYdUCms/1CLXeeLSujhYSqJxciu0nee1FgCMBIfr4Y2Yuy1z2mOAYK+J/1VOYbyeie6tKkZqFdeJebjHh3GCraGlzMP1cG+yKOsNgI3gtJe9ntBDpGaf+4sTDKS92S0uhnW4CG2cNW+CJuWY6Uu8nrMjZa9ddpuEnDaJVNL5ND7TE6WGXT3ucaPPPPyEpSda8wLSyFRRL5a+4F1mT5QGiDW5ygaej7rGu2LLKf3pXP8WD0RNvWlA8KWYmOBwPfDk/EGKyTWA7HOr8Xm1GaWpJ2sldPoMhUHyKaiNY9Un/tbRvYblSC7GaBJxv/e1qdWAlc3kYHrLtFFFNakZTe/nfu2hTjQA4+lvGVI3v9kEHmUHUlt4xtvNf7TgB2p5V6EQkIsLAAAAAElFTkSuQmCC" class="img2">
<span :clubname="show.club.name">{{ show.club.name }}</span>
<span v-if="club && club[0]" :clubname="club[0].name">{{ club[0].name }}</span>
</div>
</div>
<div class="right-inline">

81
vueHomilyLink/src/views/club/MuminView.vue

@ -1,4 +1,5 @@
<script setup>
import ClubApi from '@/api/ClubApi';
import ClubNav from '@/components/ClubNav.vue';
import Nav from '@/components/Nav.vue';
import { ref } from 'vue';
@ -7,74 +8,24 @@ import { ref } from 'vue';
const club = ref()
//
function loadClub(){
club.value = {
id: 1,
image:"https://d31zlh4on95l9h.cloudfront.net/default/1y9yuf08kg0cydno200zqtu17zi4gwwv.png",
name:"牧民俱乐部",
introduction:"牧民国际投资论坛(BoguIntemational InvestmentForum)立足中国,面向全球。聚集了国际政要、投资大师、经济学家和高端投资人士。该论坛旨在为一小部分高投资人士提供深度学习,解读国际经济形势,井研判经济发展机遇。博股会员是博股国际投资论坛的终身会员,我们注重知识体系的深度,与大师为伍,强调价值投资,并利用大波设进行盈利。",
backgroundImage:""
};
//api
ClubApi.getClub(2).then((result) =>{
console.log(result)
console.log("++++++++",result.data);
club.value = result;
console.log(club.value);
})
}
loadClub();
//
const shows = ref([])
//
function loadShows(){
shows.value = ([
{
id: 1,
cover:"https://d31zlh4on95l9h.cloudfront.net/images/1nzz3jjlxo0d1j9karz0ev31l0ryr0cj.jpg",
name:"第一节《影型结构同现》",
user:{
id:1,
username:"HomilyLink",
avatar:"https://d31zlh4on95l9h.cloudfront.net/images/1y9yuf0myv0cyno4wstwr368e0wbi9on.jpg",
},
releaseTime:"2024-05-26 11:42:00",
//
videoDuration:"01:22:11",
//
viewCount:796,
comments:2,
likes:10,
// ,
flagType:1,
club:{
id: 1,
image:"https://d31zlh4on95l9h.cloudfront.net/default/1y9yuf08kg0cydno200zqtu17zi4gwwv.png",
name:"博股俱乐部",
introduction:"牧民国际投资论坛(BoguIntemational InvestmentForum)立足中国,面向全球。聚集了国际政要、投资大师、经济学家和高端投资人士。该论坛旨在为一小部分高投资人士提供深度学习,解读国际经济形势,井研判经济发展机遇。博股会员是博股国际投资论坛的终身会员,我们注重知识体系的深度,与大师为伍,强调价值投资,并利用大波设进行盈利。",
backgroundImage:""
},
},
{
id: 2,
cover:"https://d31zlh4on95l9h.cloudfront.net/images/1y9yuf0oxr0cymk998qbud22ztc1559v.jpg",
name:"第二节《强势结构形态》",
user:{
id:1,
username:"HomilyLink",
avatar:"https://d31zlh4on95l9h.cloudfront.net/images/1y9yuf0myv0cyno4wstwr368e0wbi9on.jpg",
},
releaseTime:"2024-01-24 09:55:00",
//
videoDuration:"03:56:00",
//
viewCount:"594",
comments:0,
likes:16,
// ,
flagType:2,
club:{
id: 1,
image:"https://d31zlh4on95l9h.cloudfront.net/default/1y9yuf08kg0cydno200zqtu17zi4gwwv.png",
name:"博股俱乐部",
introduction:"博股国际投资论坛(BoguIntemational InvestmentForum)立足中国,面向全球。聚集了国际政要、投资大师、经济学家和高端投资人士。该论坛旨在为一小部分高投资人士提供深度学习,解读国际经济形势,井研判经济发展机遇。博股会员是博股国际投资论坛的终身会员,我们注重知识体系的深度,与大师为伍,强调价值投资,并利用大波设进行盈利。",
backgroundImage:""
},
}
])
ClubApi.getShows(2).then((result) =>{
console.log(result);
shows.value = result;
})
}
//
loadShows();
@ -87,11 +38,11 @@ loadShows();
<!-- 俱乐部相关信息 -->
<header>
<div class="club-header1">
<img class="club-image" :src="club.image" alt="视频缩略图">
<img v-if="club && club[0]" class="club-image" :src="club[0].image" alt="视频缩略图">
<button class="club-button" @click="handleMore">查看更多</button>
</div>
<p>{{ club.introduction }}</p>
<p v-if="club && club[0]">{{ club[0].introduction }}</p>
</header>
<!-- 俱乐部内容 -->
<section class="special-topic">
@ -122,7 +73,7 @@ loadShows();
<div class="right-inline">
<div class="yellow">
<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACcAAAAnCAYAAACMo1E1AAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAJASURBVFiF7VhBdqswDBz5914lx/jpLZr3tzXONo/couQY4R+sqAueEwdkLJl011mCLYaRNRIAv6gDbQ3Qni7NLZgbGx7dAADtv7/D1thV5NrTpXF/2AMAM5r11RwAwB/eWutzTOQiqTKhHDhYSKrIbSeVggOPbtCkvUiuPV0acnzVPJYIg/4Fyiq6tZuh+2y1xADg432/064FyIfus11bkSU3bSSvf9h08Ikw6PeQT6t9DpHctMFC7I7xi4JlPTm+5giK5MiN4uI1xPNT42/RlhbX5xfs6QRiSiNsqZ28UlJPUK4unSmsqQVk9R6spE41wB/2C0sKXc/WODzSLj0Wq1aiDCmqZE0tsFTvZRbydpMIgy49so9/vO93azYBxMLLZ2qWVikVtn6oRa7zpKl16WI5TNnJrdB2npfSggnkj+f+dfyisGVOsw4QN+VKxsuMhhxfa1WMapWIpTxu5OIEW4Y9zcdzf62xqEor0RNsT5fGMgemIlX73E9UMPDYm116UWucFoO1xJ2jSjlm/i8SydiRvtc+dpsHctogUkpjNT7TExe953jui+WeNnrJu2LrS8+PNS4gpLWs3l36nHfVeeJygFiQKx3gWOo677pbzvpLy/1bLIiSeqHrWe9d5EPXM7mxyb10rgFkv1st36vbkJ96slYyHWZ5kHwe1sex4hd/7ehewnwkl1A0YX94a3mk3bNUJMKgIQYY/zJtUVHyvuKemgfd/WudaKzO2iF1859NIFb2NCSmtvCMv5u/qME3731X4FmGtJ4AAAAASUVORK5CYII=" class="img2">
<span :clubname="show.club.name">{{ show.club.name }}</span>
<span v-if="club && club[0]" :clubname="club[0].name">{{ club[0].name }}</span>
</div>
</div>
<div class="right-inline">

81
vueHomilyLink/src/views/club/shenQiang.vue

@ -1,4 +1,5 @@
<script setup>
import ClubApi from '@/api/ClubApi';
import ClubNav from '@/components/ClubNav.vue';
import Nav from '@/components/Nav.vue';
import { ref } from 'vue';
@ -7,74 +8,24 @@ import { ref } from 'vue';
const club = ref()
//
function loadClub(){
club.value = {
id: 1,
image:"https://d31zlh4on95l9h.cloudfront.net/default/1y9yuf08kg0cydno200zqtu17zi4gwwv.png",
name:"神枪手俱乐部",
introduction:"神枪手国际投资论坛(BoguIntemational InvestmentForum)立足中国,面向全球。聚集了国际政要、投资大师、经济学家和高端投资人士。该论坛旨在为一小部分高投资人士提供深度学习,解读国际经济形势,井研判经济发展机遇。博股会员是博股国际投资论坛的终身会员,我们注重知识体系的深度,与大师为伍,强调价值投资,并利用大波设进行盈利。",
backgroundImage:""
};
//api
ClubApi.getClub(3).then((result) =>{
console.log(result)
console.log("++++++++",result.data);
club.value = result;
console.log(club.value);
})
}
loadClub();
//
const shows = ref([])
//
function loadShows(){
shows.value = ([
{
id: 1,
cover:"https://d31zlh4on95l9h.cloudfront.net/images/1nzz3jjlxo0d1j9karz0ev31l0ryr0cj.jpg",
name:"第一节《影型结构同现》",
user:{
id:1,
username:"HomilyLink",
avatar:"https://d31zlh4on95l9h.cloudfront.net/images/1y9yuf0myv0cyno4wstwr368e0wbi9on.jpg",
},
releaseTime:"2024-05-26 11:42:00",
//
videoDuration:"01:22:11",
//
viewCount:796,
comments:2,
likes:10,
// ,
flagType:1,
club:{
id: 1,
image:"https://d31zlh4on95l9h.cloudfront.net/default/1y9yuf08kg0cydno200zqtu17zi4gwwv.png",
name:"博股俱乐部",
introduction:"博股国际投资论坛(BoguIntemational InvestmentForum)立足中国,面向全球。聚集了国际政要、投资大师、经济学家和高端投资人士。该论坛旨在为一小部分高投资人士提供深度学习,解读国际经济形势,井研判经济发展机遇。博股会员是博股国际投资论坛的终身会员,我们注重知识体系的深度,与大师为伍,强调价值投资,并利用大波设进行盈利。",
backgroundImage:""
},
},
{
id: 2,
cover:"https://d31zlh4on95l9h.cloudfront.net/images/1y9yuf0oxr0cymk998qbud22ztc1559v.jpg",
name:"第二节《强势结构形态》",
user:{
id:1,
username:"HomilyLink",
avatar:"https://d31zlh4on95l9h.cloudfront.net/images/1y9yuf0myv0cyno4wstwr368e0wbi9on.jpg",
},
releaseTime:"2024-01-24 09:55:00",
//
videoDuration:"03:56:00",
//
viewCount:"594",
comments:0,
likes:16,
// ,
flagType:2,
club:{
id: 1,
image:"https://d31zlh4on95l9h.cloudfront.net/default/1y9yuf08kg0cydno200zqtu17zi4gwwv.png",
name:"博股俱乐部",
introduction:"博股国际投资论坛(BoguIntemational InvestmentForum)立足中国,面向全球。聚集了国际政要、投资大师、经济学家和高端投资人士。该论坛旨在为一小部分高投资人士提供深度学习,解读国际经济形势,井研判经济发展机遇。博股会员是博股国际投资论坛的终身会员,我们注重知识体系的深度,与大师为伍,强调价值投资,并利用大波设进行盈利。",
backgroundImage:""
},
}
])
ClubApi.getShows(3).then((result) =>{
console.log(result);
shows.value = result;
})
}
//
loadShows();
@ -87,11 +38,11 @@ loadShows();
<!-- 俱乐部相关信息 -->
<header>
<div class="club-header1">
<img class="club-image" :src="club.image" alt="视频缩略图">
<img v-if="club && club[0]" class="club-image" :src="club[0].image" alt="视频缩略图">
<button class="club-button" @click="handleMore">查看更多</button>
</div>
<p>{{ club.introduction }}</p>
<p v-if="club && club[0]">{{ club[0].introduction }}</p>
</header>
<!-- 俱乐部内容 -->
<section class="special-topic">
@ -122,7 +73,7 @@ loadShows();
<div class="right-inline">
<div class="yellow">
<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACcAAAAnCAYAAACMo1E1AAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAIvSURBVFiF7VhbcsMgDFxo7lUyk+RWnsTDrZrMhB4sVj9iGoxBSDj96375IYu1BCsB8I8+mK0ODp5cvLaY3AQbAOA2mLDVdxe5gydnQOf51nG2BjQCwNfwcdGOoyKXkGIJ1QejUUNSRG4rqeWANE6wQZL2JrmZ2F04doDwByRRtNzLk39cFMRwHexeaksw55N/XDibKrmTf1wI5lx7nyNOfDyjJwLBnNPVLiJ38OQ0xLIBx7bVCwZ0rxEskrOYisYc4vzp0bdEljIeGbTpnJ3n0Qqa7wG4UvRW5HrTmflQpRYoR28hJT1RA4DrYFeSdPQTaf0QzD6dFqyUSFBIaUSoPOd8LQKzS2+yqAVJeqii49fB7jmZAJ4Lj8vUwnMpFdp6KEWt8qSptalxyYlEybWQVp5dywB4Ejz66ZNgxi19WmwgSFh/7euiKbzOgO69UUyixY6T8vglFzvYFnrSfPTTvUeiuqREQ3Cey07qOw1St879xQoGlrXZZg/D2rwIqZ3W7wJdkTOg79JzRo5EtTavNgtyUiellMbV+E5NLBXs5nJPC31l8xNyTdT6BcotExu9NPSMdqk1sdRArMi1JnBc6hLtSiWH++la/S4uiFb05gbBcTYpwaOfaFb+ULKpFYDqvlW5X+0G1/VUpeQ2mMA0km9Bqx1r7vh7W/cW8pa8BPFZSatrVWAlMzWoTpk2RlFMKqLrfC6RhxbRMNt1NambTzaBV9qBpSy843TzHz34AcF4N1nRyTl4AAAAAElFTkSuQmCC" class="img2">
<span :clubname="show.club.name">{{ show.club.name }}</span>
<span v-if="club && club[0]" :clubname="club[0].name">{{ club[0].name }}</span>
</div>
</div>
<div class="right-inline">

11
vueHomilyLink/vite.config.js

@ -15,4 +15,13 @@ export default defineConfig({
'@': fileURLToPath(new URL('./src', import.meta.url))
},
},
})
server: {
proxy: {
'/api': {
target: 'http://192.168.8.191:8080',
changeOrigin: true,
rewrite: (path) => path.replace(/^\/api/, '')
}
}
}
})
Loading…
Cancel
Save