签到领寄托币
-
-

GO
+
+
+
+
+

+
签到领寄托币
+
+

GO
+
+

+

+
-

-

-

-
-
-

-
已签到,明天再来
+
+
+

+
已签到,明天再来
+
+
\ No newline at end of file
diff --git a/component/sign-in/sign-in.js b/component/sign-in/sign-in.js
index 8068196..286dc78 100644
--- a/component/sign-in/sign-in.js
+++ b/component/sign-in/sign-in.js
@@ -213,6 +213,7 @@ class SignInBox extends HTMLElement {
}
postSign() {
+ console.log('document.querySelector(".sign-in")', document.querySelector(".sign-in"));
if (this.issign == 1) {
creationAlertBox("error", "今天已签到,明天记得来哦~");
return;
@@ -230,11 +231,7 @@ class SignInBox extends HTMLElement {
creationAlertBox("error", res.message);
return;
}
- // res.data = {
- // extra_reward: 0,
- // reward: 28,
- // rank: 500,
- // };
+
const data = res.data || {};
const rewardT = data.extra_reward * 1 + data.reward * 1 || 0;
this.setField("integral", (Number(this.shadowRoot.querySelector('[data-field="integral"]').textContent) || 0) + rewardT);
@@ -255,6 +252,10 @@ class SignInBox extends HTMLElement {
const signBtn = this.shadowRoot.querySelector('[data-action="sign"]');
signBtn.textContent = "今天已签到,明天记得来哦~";
signBtn.classList.add("already");
+
+ const sign = document.querySelector(".sign-in");
+ sign.classList.add("sign-in-already");
+ sign.classList.remove("sign-in-no");
});
}
diff --git a/css/details.css b/css/details.css
index 3795159..6095fd6 100644
--- a/css/details.css
+++ b/css/details.css
@@ -187,7 +187,8 @@
height: 300px;
display: block;
}
-#details .matter .matter-left .html h1 {
+#details .matter .matter-left .html h1,
+#details .matter .matter-left .html section {
font-family: "PingFangSC-Semibold", "PingFang SC Semibold", "PingFang SC", sans-serif;
font-weight: 650;
color: #000000 !important;
@@ -389,6 +390,20 @@
height: 120px;
margin-bottom: 18px;
}
+#details .matter .sidebar-box .sidebar-item .sidebar-content .sidebar-QRCode img {
+ width: 100%;
+ height: 100%;
+}
+#details .matter .sidebar-box .sidebar-item .sidebar-content .QRcode {
+ width: 100px;
+ height: 100px;
+ margin-bottom: 4px;
+}
+#details .matter .sidebar-box .sidebar-item .sidebar-content .QRcode .load {
+ width: 50px;
+ height: 50px;
+ animation: loadingRotate 1s linear infinite;
+}
#details .matter .sidebar-box .sidebar-item .sidebar-content .hint {
font-size: 14px;
color: #555555;
diff --git a/css/details.less b/css/details.less
index 5c3bfa2..a4c07dd 100644
--- a/css/details.less
+++ b/css/details.less
@@ -198,7 +198,6 @@
* {
color: #04b0d5 !important;
-
}
}
@@ -221,15 +220,14 @@
display: block;
}
- h1 {
+ h1,
+ section {
font-family: "PingFangSC-Semibold", "PingFang SC Semibold", "PingFang SC", sans-serif;
font-weight: 650;
color: #000000 !important;
font-size: 18px;
line-height: 30px;
}
-
-
}
.last-time {
@@ -467,6 +465,23 @@
width: 120px;
height: 120px;
margin-bottom: 18px;
+
+ img {
+ width: 100%;
+ height: 100%;
+ }
+ }
+
+ .QRcode {
+ width: 100px;
+ height: 100px;
+ margin-bottom: 4px;
+
+ .load {
+ width: 50px;
+ height: 50px;
+ animation: loadingRotate 1s linear infinite;
+ }
}
.hint {
@@ -904,7 +919,8 @@
cursor: pointer;
}
-.answer-discuss .input-box .bottom .operate .item {}
+.answer-discuss .input-box .bottom .operate .item {
+}
.answer-discuss .input-box .bottom .operate .item .emoji-box {
width: 582px;
@@ -1647,7 +1663,6 @@
.comments-box {
.comments-item {
.comments-header {
-
.comment-icon,
.like-box {
margin-left: 15px;
@@ -1657,4 +1672,4 @@
}
}
}
-}
\ No newline at end of file
+}
diff --git a/css/public.css b/css/public.css
index 6ad4671..124ec8f 100644
--- a/css/public.css
+++ b/css/public.css
@@ -1571,8 +1571,6 @@ body {
text-decoration: underline;
}
.head-top {
- margin-top: 20px;
- margin-bottom: 30px;
position: relative;
z-index: 4;
}
@@ -1627,6 +1625,7 @@ body {
cursor: pointer;
}
.head-top .input-box .search-box-history {
+ display: none;
width: 460px;
/* height: 267px; */
background-color: #ffffff;
@@ -1657,22 +1656,43 @@ body {
height: 40px;
border-radius: 83px;
cursor: pointer;
+ display: none;
+}
+.head-top .sign-in .sign-in-already-box {
+ display: none;
}
.head-top .sign-in.sign-in-already {
background-color: #ffffff;
font-size: 14px;
color: #333;
}
+.head-top .sign-in.sign-in-already .sign-in-already-box {
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ width: 192px;
+ height: 40px;
+}
.head-top .sign-in.sign-in-already .sign-icon {
width: 20px;
height: 20px;
margin-right: 10px;
}
+.head-top .sign-in.sign-in-already .sign-in-no-box {
+ display: none;
+}
.head-top .sign-in.sign-in-no {
position: relative;
z-index: 1;
padding-right: 8px;
}
+.head-top .sign-in.sign-in-no .sign-in-no-box {
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ width: 192px;
+ height: 40px;
+}
.head-top .sign-in.sign-in-no .sign-in-bj {
position: absolute;
top: 0;
@@ -1741,6 +1761,9 @@ body {
top: 25px;
left: 136px;
}
+.head-top .post-list {
+ display: none;
+}
.head-top .post-list .post-item {
width: 84px;
height: 34px;
diff --git a/css/public.less b/css/public.less
index a63f419..4972a2d 100644
--- a/css/public.less
+++ b/css/public.less
@@ -1896,10 +1896,10 @@ body {
}
.head-top {
- margin-top: 20px;
- margin-bottom: 30px;
position: relative;
z-index: 4;
+ // max-width: 1200px;
+ // margin: 20px auto 30px;
.logo {
height: 52px;
@@ -1961,6 +1961,7 @@ body {
}
.search-box-history {
+ display: none;
width: 460px;
/* height: 267px; */
background-color: rgba(255, 255, 255, 1);
@@ -1996,17 +1997,33 @@ body {
height: 40px;
border-radius: 83px;
cursor: pointer;
+ display: none;
+
+ .sign-in-already-box {
+ display: none;
+ }
&.sign-in-already {
background-color: #ffffff;
font-size: 14px;
color: #333;
+ .sign-in-already-box {
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ width: 192px;
+ height: 40px;
+ }
.sign-icon {
width: 20px;
height: 20px;
margin-right: 10px;
}
+
+ .sign-in-no-box {
+ display: none;
+ }
}
&.sign-in-no {
@@ -2014,6 +2031,15 @@ body {
z-index: 1;
padding-right: 8px;
+ .sign-in-no-box {
+ display: flex;
+ align-items: center;
+ justify-content: center;
+
+ width: 192px;
+ height: 40px;
+ }
+
.sign-in-bj {
position: absolute;
top: 0;
@@ -2095,6 +2121,7 @@ body {
}
.post-list {
+ display: none;
.post-item {
width: 84px;
height: 34px;
diff --git a/css/section.css b/css/section.css
index 5cfd715..3dfba65 100644
--- a/css/section.css
+++ b/css/section.css
@@ -90,11 +90,17 @@
position: relative;
z-index: 3;
}
-#sectionIndex .matter .matter-content .info-box .img {
+#sectionIndex .matter .matter-content .info-box .img-box {
width: 80px;
height: 80px;
border-radius: 10px;
margin-right: 20px;
+ background: #dddddd;
+}
+#sectionIndex .matter .matter-content .info-box .img-box .img {
+ border-radius: 10px;
+ width: 100%;
+ height: 100%;
}
#sectionIndex .matter .matter-content .info-box .right .title {
font-family: "PingFangSC-Semibold", "PingFang SC Semibold", "PingFang SC", sans-serif;
diff --git a/css/section.less b/css/section.less
index e33766d..a4eb54e 100644
--- a/css/section.less
+++ b/css/section.less
@@ -97,11 +97,17 @@
position: relative;
z-index: 3;
- .img {
+ .img-box {
width: 80px;
height: 80px;
border-radius: 10px;
margin-right: 20px;
+ background: #dddddd;
+ .img {
+ border-radius: 10px;
+ width: 100%;
+ height: 100%;
+ }
}
.right {
diff --git a/img/defaultAvatar.png b/img/defaultAvatar.png
new file mode 100644
index 0000000000000000000000000000000000000000..9a30c1a5c344db7d9a1384aa86e1d21613831277
GIT binary patch
literal 1957
zcmV;W2U_@vP)
1#J{$-Z4+UD(~y{T1@tH0FYWQwfy
z?y7{Vrbddc)#dDJjH_dyz2NHbZG@!${QcwOtMT^sL4>90@bY1qwfpwM+veT*@v5rZ
z;()8fQIfJxk*R*U%Rzmlp3vKMp{V=)`tkMo_qf8V$=Z>})TY?rTb--;&eU_Iz`@t!
zqmHITiKVLA-fo|)%--jNu*Q3*qs!H){Qmlu&Dr|<`dyQ!p~2DR@ATj4?5W-1im}Ia
zp{7-pwe_N_)t9EC#MXtr(Ea}Vah|DUl&E&G$C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