diff --git a/component/item-bottom/item-bottom.js b/component/item-bottom/item-bottom.js index 46df583..afe7bdc 100644 --- a/component/item-bottom/item-bottom.js +++ b/component/item-bottom/item-bottom.js @@ -115,6 +115,7 @@ export const itemBottom = defineComponent({ }; const share = () => { + const token = item.value.token || ""; ajax(`/v2/api/forum/postTopicShare`, {token}); }; diff --git a/css/edit.css b/css/edit.css index 12d7e29..64028a2 100644 --- a/css/edit.css +++ b/css/edit.css @@ -76,19 +76,22 @@ #edit .edit-container .editor-toolbar { height: 36px; background-color: #fbfbfb; - padding-left: 35px; + padding-left: 25px; } #edit .edit-container .editor-toolbar .toolbar-item { cursor: pointer; - height: 100%; + height: 30px; + line-height: 30px; font-family: "PingFangSC-Regular", "PingFang SC", sans-serif; font-weight: 400; font-style: normal; font-size: 14px; color: #000000; line-height: 23px; - margin-right: 50px; + margin-right: 40px; position: relative; + padding: 0 10px; + border-radius: 50px; } #edit .edit-container .editor-toolbar .toolbar-item .icon { width: 16px; @@ -226,6 +229,9 @@ #edit .edit-container .editor-toolbar .toolbar-item.link .link-box .btn:hover { background-color: #c2eff6; } +#edit .edit-container .editor-toolbar .toolbar-item.h2.pitch { + background-color: #f6f6bd; +} #edit .edit-container .content-input { min-height: 509px; font-family: "PingFangSC-Regular", "PingFang SC", sans-serif; diff --git a/css/edit.less b/css/edit.less index d0dc3b6..06d6796 100644 --- a/css/edit.less +++ b/css/edit.less @@ -85,7 +85,7 @@ .editor-toolbar { height: 36px; background-color: rgba(251, 251, 251, 1); - padding-left: 35px; + padding-left: 25px; .toolbar-item { .icon { width: 16px; @@ -94,15 +94,18 @@ } cursor: pointer; - height: 100%; + height: 30px; + line-height: 30px; font-family: "PingFangSC-Regular", "PingFang SC", sans-serif; font-weight: 400; font-style: normal; font-size: 14px; color: #000000; line-height: 23px; - margin-right: 50px; + margin-right: 40px; position: relative; + padding: 0 10px; + border-radius: 50px; .file { opacity: 0; /* 隐藏输入框 */ @@ -256,6 +259,12 @@ } } } + + &.h2 { + &.pitch { + background-color: rgba(246, 246, 189, 1); + } + } } }