说明:1、前端单词收藏夹页面点击查看详情翻译字典
This commit is contained in:
parent
30e193bcd4
commit
7e58c9bf90
|
|
@ -1,5 +1,6 @@
|
||||||
<template xmlns="http://www.w3.org/1999/html">
|
<template xmlns="http://www.w3.org/1999/html">
|
||||||
<div class="sea_main_con test-5" @mouseenter="onMouseover" @mouseleave="onMouseout">
|
<div class="sea_main_con test-5" @mouseenter="onMouseover" @mouseleave="onMouseout">
|
||||||
|
|
||||||
<div class="infinite-list-wrapper">
|
<div class="infinite-list-wrapper">
|
||||||
<ul
|
<ul
|
||||||
class="list"
|
class="list"
|
||||||
|
|
@ -12,7 +13,6 @@
|
||||||
<el-card :body-style="{ padding: '0px' }">
|
<el-card :body-style="{ padding: '0px' }">
|
||||||
<div style="padding: 14px;">
|
<div style="padding: 14px;">
|
||||||
<span>
|
<span>
|
||||||
|
|
||||||
<el-tag type="info"
|
<el-tag type="info"
|
||||||
size="medium"
|
size="medium"
|
||||||
>英:{{ say.englishWord }}
|
>英:{{ say.englishWord }}
|
||||||
|
|
@ -26,7 +26,7 @@
|
||||||
>中:{{ say.chineseWord }}
|
>中:{{ say.chineseWord }}
|
||||||
</el-tag>
|
</el-tag>
|
||||||
</time>
|
</time>
|
||||||
<el-button icon="el-icon-search" circle class="button"></el-button>
|
<el-button icon="el-icon-search" circle class="button" @click="popoverVisibles(say.id)"></el-button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</el-card>
|
</el-card>
|
||||||
|
|
@ -39,11 +39,13 @@
|
||||||
<p v-if="noMore">没有更多了~~~~</p>
|
<p v-if="noMore">没有更多了~~~~</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import {collectWord} from "@/api/business/english/word";
|
import {collectWord, getWordRPC} from "@/api/business/english/word";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
|
|
@ -70,11 +72,19 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
popoverVisibles(id) {
|
||||||
|
getWordRPC(id).then(res =>{
|
||||||
|
this.$notify({
|
||||||
|
title: res.data.englishWord,
|
||||||
|
message: res.data.content,
|
||||||
|
duration: 0
|
||||||
|
});
|
||||||
|
})
|
||||||
|
},
|
||||||
|
|
||||||
loadMore() {
|
loadMore() {
|
||||||
this.loading = true
|
this.loading = true
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
// this.count += 2
|
|
||||||
|
|
||||||
collectWord(this.queryParams).then((response) => {
|
collectWord(this.queryParams).then((response) => {
|
||||||
console.log(response.data)
|
console.log(response.data)
|
||||||
this.everyList = response.data.records.length;
|
this.everyList = response.data.records.length;
|
||||||
|
|
@ -127,7 +137,7 @@ export default {
|
||||||
.test-5::-webkit-scrollbar-thumb {
|
.test-5::-webkit-scrollbar-thumb {
|
||||||
/*滚动条里面小方块*/
|
/*滚动条里面小方块*/
|
||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
background-color: rgb(103, 194, 58);
|
background-color: #999093;
|
||||||
background-image: -webkit-linear-gradient(
|
background-image: -webkit-linear-gradient(
|
||||||
45deg,
|
45deg,
|
||||||
rgba(255, 255, 255, 0.2) 25%,
|
rgba(255, 255, 255, 0.2) 25%,
|
||||||
|
|
@ -185,4 +195,8 @@ export default {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
.load_icon p{
|
||||||
|
font-size: 10px;
|
||||||
|
color: #8492a6;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue