no message
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
<div class="search-result">共 {{ count }} 条搜索数据</div>
|
||||
</div>
|
||||
<div class="vote-list-box" :class="{ 'firstdata': firstdataState }" ref="gridContainer" v-loading="loading">
|
||||
<a class="vote-item" target="_blank" :href="`/details/${item['uniqid']}`" v-for="(item, index) in list" :key="index" :class="{ 'isvote': item['isvote'] == 1 || item['status'] == 0 }" :style="{ '--main-color': colourValue[item.uniqidIndex]['main'], '--bg-color': colourValue[item.uniqidIndex]['bg'], '--bc-color': colourValue[item.uniqidIndex]['bc'] }">
|
||||
<a class="vote-item" target="_blank" :href="`/details/${item['uniqid']}?colorI=${index % 6}`" v-for="(item, index) in list" :key="index" :class="{ 'isvote': item['isvote'] == 1 || item['status'] == 0 }" :style="{ '--main-color': colourValue[index % 6]['main'], '--bg-color': colourValue[index % 6]['bg'], '--bc-color': colourValue[index % 6]['bc'] }">
|
||||
<div class="vote-title">
|
||||
<div class="vote-state" v-if="item['status'] == 1">进行中</div>
|
||||
<div class="vote-state finish" v-else>已结束</div>
|
||||
@@ -92,11 +92,7 @@ const getList = () => {
|
||||
return
|
||||
}
|
||||
let data = res.data
|
||||
data.data.forEach(element => {
|
||||
// let uniqidEnd = element["uniqid"].charAt(element["uniqid"].length - 1)
|
||||
// element["uniqidIndex"] = base62ToDecimal(uniqidEnd) % 6
|
||||
element["uniqidIndex"] = element.id % 6
|
||||
})
|
||||
|
||||
list.value = list.value.concat(data.data)
|
||||
count.value = data.count
|
||||
if (data.count > list.value.length) page.value++
|
||||
@@ -104,6 +100,12 @@ const getList = () => {
|
||||
|
||||
firstdataState.value = false
|
||||
|
||||
// data.data.forEach((element, index) => {
|
||||
// // let uniqidEnd = element["uniqid"].charAt(element["uniqid"].length - 1)
|
||||
// // element["uniqidIndex"] = base62ToDecimal(uniqidEnd) % 6
|
||||
// element["uniqidIndex"] = index % 6
|
||||
// })
|
||||
|
||||
nextTick(() => {
|
||||
masonryInstance.reloadItems()
|
||||
masonryInstance.layout()
|
||||
@@ -164,10 +166,11 @@ try {
|
||||
if (process.server) {
|
||||
await getListHttp({ page: 1, keyword: keyword.value }).then(res => {
|
||||
let data = res.data
|
||||
data.data.forEach(element => {
|
||||
let uniqidEnd = element["uniqid"].charAt(element["uniqid"].length - 1)
|
||||
element["uniqidIndex"] = base62ToDecimal(uniqidEnd) % 6
|
||||
})
|
||||
// data.data.forEach((element, index) => {
|
||||
// let uniqidEnd = element["uniqid"].charAt(element["uniqid"].length - 1)
|
||||
// element["uniqidIndex"] = base62ToDecimal(uniqidEnd) % 6
|
||||
// element["uniqidIndex"] = index % 6
|
||||
// })
|
||||
list.value = list.value.concat(data.data)
|
||||
count.value = data.count
|
||||
})
|
||||
@@ -230,6 +233,12 @@ try {
|
||||
margin-bottom: 20px;
|
||||
cursor: pointer;
|
||||
|
||||
&:hover {
|
||||
-moz-box-shadow: 0px 0px 5px 2px rgba(216, 216, 216, 0.48);
|
||||
-webkit-box-shadow: 0px 0px 5px 2px rgba(216, 216, 216, 0.48);
|
||||
box-shadow: 0px 0px 5px 2px rgba(216, 216, 216, 0.48);
|
||||
}
|
||||
|
||||
&.isvote {
|
||||
.vote-option-list {
|
||||
.vote-option-item {
|
||||
|
Reference in New Issue
Block a user