From e30c4bd1ee88e5a73298d0f6391f01eb823ead1b Mon Sep 17 00:00:00 2001 From: A1300399510 Date: Tue, 26 Nov 2024 12:17:05 +0800 Subject: [PATCH] no message --- css/details.css | 14 +++++++++++++- css/details.less | 19 ++++++++++++++++--- html/subject.html | 1 - js/common.js | 7 +------ 4 files changed, 30 insertions(+), 11 deletions(-) diff --git a/css/details.css b/css/details.css index daf9b97..0a6a65d 100644 --- a/css/details.css +++ b/css/details.css @@ -730,6 +730,8 @@ border: 1px solid #ebebeb; border-radius: 114px; margin: 0 auto 33px; + position: relative; + transition: all 0.3s; } .content .details-box .pattern .tab .item { height: 100%; @@ -738,9 +740,18 @@ cursor: pointer; } .content .details-box .pattern .tab .item.pitch { + color: #ffffff; +} +.content .details-box .pattern .tab::after { + content: ""; background-color: #6fc16d; border-radius: 22px; - color: #ffffff; + display: block; + width: 90px; + height: 100%; + position: absolute; + top: 0; + left: 0; } .content .details-box .pattern .introduce .item { text-align: center; @@ -1567,6 +1578,7 @@ background-color: #fbfbfb; font-size: 16px; color: #aaaaaa; + cursor: no-drop; } .base .type3 .add-btn .img { width: 16px; diff --git a/css/details.less b/css/details.less index 2ca49b0..8895018 100644 --- a/css/details.less +++ b/css/details.less @@ -832,18 +832,30 @@ border: 1px solid rgba(235, 235, 235, 1); border-radius: 114px; margin: 0 auto 33px; - + position: relative; .item { height: 100%; font-size: 14px; color: #555555; cursor: pointer; &.pitch { - background-color: rgba(111, 193, 109, 1); - border-radius: 22px; color: #ffffff; } } + + transition: all 0.3s; + + &::after { + content: ""; + background-color: rgba(111, 193, 109, 1); + border-radius: 22px; + display: block; + width: 90px; + height: 100%; + position: absolute; + top: 0; + left: 0; + } } .introduce { @@ -1791,6 +1803,7 @@ background-color: rgba(251, 251, 251, 1); font-size: 16px; color: #aaaaaa; + cursor: no-drop; } .img { width: 16px; diff --git a/html/subject.html b/html/subject.html index 7323193..4fffd9e 100644 --- a/html/subject.html +++ b/html/subject.html @@ -266,7 +266,6 @@ let list = screenList.slice(startIndex, endIndex) showList.value = showList.value.concat(list) page.value = endIndex >= screenList.length ? 0 : page.value + 1 - console.log("page", page.value) nextTick(() => { listMasonryInstance.reloadItems() diff --git a/js/common.js b/js/common.js index 75d909b..4d6bb41 100644 --- a/js/common.js +++ b/js/common.js @@ -127,18 +127,13 @@ function getBaseData() { const currentTime = new Date().getTime() const timeDiff = currentTime - parseInt(storedTime) - console.log(storedTime && storedData && timeDiff <= 5 * 60 * 1000) - if (storedTime && storedData && timeDiff <= 5 * 60 * 1000) { // 在5分钟内,使用本地存储的数据 const basicData = JSON.parse(storedData) // 处理数据 resolve(basicData) return - } - - console.log("222"); - + } $ajaxget("/api/home/basicData").then(res => { if (res.code != 200) return