测试效果
This commit is contained in:
@@ -22,8 +22,8 @@
|
|||||||
<el-main style="display: flex;flex-direction: row;flex-wrap: nowrap;">
|
<el-main style="display: flex;flex-direction: row;flex-wrap: nowrap;">
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<el-tabs type="border-card" style="width: 45vw;">
|
<el-tabs v-model="activeName" type="border-card" style="width: 45vw;" @tab-click="tabChange">
|
||||||
<el-tab-pane label="最热" style="display: flex;justify-content: flex-start">
|
<el-tab-pane label="最热" name="first" style="display: flex;justify-content: flex-start">
|
||||||
<ul
|
<ul
|
||||||
class="list"
|
class="list"
|
||||||
v-infinite-scroll="load"
|
v-infinite-scroll="load"
|
||||||
@@ -35,7 +35,7 @@
|
|||||||
<p v-if="loading">加载中...</p>
|
<p v-if="loading">加载中...</p>
|
||||||
<p v-if="noMore">没有更多了</p>
|
<p v-if="noMore">没有更多了</p>
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
<el-tab-pane label="最新">
|
<el-tab-pane label="最新" name="second">
|
||||||
<div class="lsm-container">
|
<div class="lsm-container">
|
||||||
<el-scrollbar class="scrollbar-wrapper" style="position: relative;">
|
<el-scrollbar class="scrollbar-wrapper" style="position: relative;">
|
||||||
<div class="infinite-list-wrapper">
|
<div class="infinite-list-wrapper">
|
||||||
@@ -203,6 +203,7 @@ export default {
|
|||||||
components: {ProjectList},
|
components: {ProjectList},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
activeName:'first',
|
||||||
count: 10,
|
count: 10,
|
||||||
loading: false,
|
loading: false,
|
||||||
loginDialogVisible: false,
|
loginDialogVisible: false,
|
||||||
@@ -437,7 +438,27 @@ export default {
|
|||||||
this.count += 2
|
this.count += 2
|
||||||
this.loading = false
|
this.loading = false
|
||||||
}, 2000)
|
}, 2000)
|
||||||
|
},
|
||||||
|
tabChange(tab, event){
|
||||||
|
console.log(tab, event);
|
||||||
|
if (tab.name == "first") {
|
||||||
|
axios({
|
||||||
|
method: 'get',
|
||||||
|
// 请求的地址
|
||||||
|
url: 'http://localhost:8082/helloGithub_war_exploded/selectLastByCate',
|
||||||
|
// URL 中的查询参数
|
||||||
|
params: {
|
||||||
|
num: 0,
|
||||||
}
|
}
|
||||||
|
}).then(function (res){
|
||||||
|
console.log(res);
|
||||||
|
});
|
||||||
|
} else if (tab.name == "second") {
|
||||||
|
//网络请求2
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
@@ -1,14 +1,14 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="ProjectList">
|
<div class="ProjectList">
|
||||||
<div class="projectIco">
|
<div class="projectIco">
|
||||||
<img src="../assets/images/touxiang.png" style="width: 80px;height: 80px;margin-left: 10px;border-radius: 10px">
|
<img src="../assets/images/touxiang.png" style="width: 5vw;height: 5vw;margin-left: 10px;border-radius: 10px">
|
||||||
</div>
|
</div>
|
||||||
<div style="height: 12vh;margin-left: 5px;width: auto;display: flex;flex-direction: column;justify-content: space-between">
|
<div style="height: 12vh;margin-left: 5px;width: auto;display: flex;flex-direction: column;justify-content: space-between">
|
||||||
<div class="ProjectTitle">
|
<div class="ProjectTitle">
|
||||||
<span>由密码学专家团队打造的开源隐私计算平台</span>
|
<span>由密码学专家团队打造的开源隐私计算平台</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="summary">
|
<div class="summary">
|
||||||
<span>随着《数据安全法》和《个人信息保护法》的相继颁布,隐私计算技术在近两..</span>
|
<span style="font-size: 1rem">随着《数据安全法》和《个人信息保护法》的相继颁布,隐私计算技术在近两..</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="other">
|
<div class="other">
|
||||||
<div class="otherInfo">
|
<div class="otherInfo">
|
||||||
@@ -71,6 +71,7 @@ export default {
|
|||||||
justify-content: flex-start;
|
justify-content: flex-start;
|
||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
.ProjectList:hover{
|
.ProjectList:hover{
|
||||||
background-color: #eeeeee;
|
background-color: #eeeeee;
|
||||||
@@ -90,6 +91,13 @@ export default {
|
|||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
justify-content: flex-start;
|
justify-content: flex-start;
|
||||||
|
/*background-color: #59A3A4;*/
|
||||||
|
position: relative;
|
||||||
|
width: 36vw;
|
||||||
|
overflow:hidden;
|
||||||
|
white-space: nowrap;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
-o-text-overflow:ellipsis;
|
||||||
}
|
}
|
||||||
.otherInfo{
|
.otherInfo{
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
Reference in New Issue
Block a user