From e4b3ebe88bbee8f487c857718a33ac782e6ab963 Mon Sep 17 00:00:00 2001 From: X1627315083 <1627315083@qq.com> Date: Mon, 19 Aug 2024 10:36:46 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=88=E5=B9=B6=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/style/style.css | 27 ++- src/assets/style/style.less | 15 +- src/component/Account/accountEdit.vue | 20 +- src/component/Account/accountHome.vue | 3 +- src/component/Account/accountMessage.vue | 193 +++++++++++++++++- src/component/Account/message/comment.vue | 189 ++++++++--------- src/component/Account/message/likeMessage.vue | 115 ++++------- src/component/Account/message/newFollow.vue | 119 ++++------- src/component/Account/message/privateChat.vue | 21 +- src/component/Account/message/system.vue | 92 ++++----- src/component/Detail/DesignDetailAlter.vue | 2 +- src/component/HomePage/ColorboardUpload.vue | 4 +- src/component/HomePage/Cropper.vue | 2 +- src/component/HomePage/ExportModel.vue | 73 +++++-- src/component/HomePage/Generate.vue | 6 +- src/component/HomePage/MoodboardUpload.vue | 15 +- src/component/HomePage/layout.vue | 96 ++++++++- src/component/HomePage/layoutMobile.vue | 81 +++++++- src/component/WorksPage/newScaleImage.vue | 25 ++- src/lang/cn.ts | 3 + src/lang/en.ts | 3 + src/store/uploadFile/uploadFile.ts | 8 + src/store/userHabit/userHabit.ts | 26 ++- src/tool/domTurnImg.js | 98 ++++----- src/tool/guide.js | 3 +- src/tool/https.js | 17 +- src/tool/myEvents.js | 16 ++ src/tool/webSocket.js | 19 +- src/views/HomeMain.vue | 36 +++- vue.config.js | 2 +- 30 files changed, 857 insertions(+), 472 deletions(-) create mode 100644 src/tool/myEvents.js diff --git a/src/assets/style/style.css b/src/assets/style/style.css index 00642b1c..29fb838c 100644 --- a/src/assets/style/style.css +++ b/src/assets/style/style.css @@ -532,6 +532,9 @@ li { .ant-modal { box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.2); } +.ant-modal div[aria-hidden="true"] { + display: none !important; +} .ant-modal-confirm-confirm .ant-modal-content { border-radius: 1rem; } @@ -1285,30 +1288,40 @@ li { border: solid 2px rgba(0, 0, 0, 0.55); color: #000000; } -.homeMain_heade .ant-badge { +.homeMain_heade .ant-badge, +.account_message .ant-badge { width: auto; height: auto; } -.homeMain_heade sup.ant-scroll-number { +.homeMain_heade sup.ant-scroll-number, +.account_message sup.ant-scroll-number { height: 2rem; - min-height: 2rem; + min-height: 5px; width: 2rem; - min-width: 2rem; + min-width: 5px; padding: 0; font-size: 1.1rem; + padding: 0.2rem; + box-sizing: content-box; display: flex; align-items: center; justify-content: center; } -.homeMain_heade sup.ant-scroll-number .ant-scroll-number-only { - width: 100%; +.homeMain_heade sup.ant-scroll-number.ant-badge-dot, +.account_message sup.ant-scroll-number.ant-badge-dot { + width: auto; + height: auto; +} +.homeMain_heade sup.ant-scroll-number .ant-scroll-number-only, +.account_message sup.ant-scroll-number .ant-scroll-number-only { height: 100%; font-size: 1.2rem; display: flex; align-items: center; justify-content: center; } -.homeMain_heade p.ant-scroll-number-only-unit { +.homeMain_heade p.ant-scroll-number-only-unit, +.account_message p.ant-scroll-number-only-unit { line-height: 2rem; height: 100%; } diff --git a/src/assets/style/style.less b/src/assets/style/style.less index d045d230..d159d053 100644 --- a/src/assets/style/style.less +++ b/src/assets/style/style.less @@ -596,6 +596,7 @@ input:focus{ //弹窗公共样式 .ant-modal{ box-shadow: 0px 0px 6px rgba(0, 0, 0, .2); + div[aria-hidden="true"] {display: none !important;} &.ant-modal-confirm{ &.ant-modal-confirm-confirm{ // top: 50%; @@ -1428,23 +1429,29 @@ input:focus{ color: rgba(0, 0, 0, 1); } } -.homeMain_heade{ +.homeMain_heade,.account_message{ .ant-badge{ width: auto; height: auto; } sup.ant-scroll-number{ height: 2rem; - min-height: 2rem; + min-height: 5px; width: 2rem; - min-width: 2rem; + min-width: 5px; padding: 0; font-size: 1.1rem; + padding: .2rem; + box-sizing: content-box; display: flex; align-items: center; justify-content: center; + &.ant-badge-dot{ + width: auto; + height: auto; + } .ant-scroll-number-only{ - width: 100%; + // width: 100%; height: 100%; font-size: 1.2rem; display: flex; diff --git a/src/component/Account/accountEdit.vue b/src/component/Account/accountEdit.vue index bdef2fe5..dd62ae60 100644 --- a/src/component/Account/accountEdit.vue +++ b/src/component/Account/accountEdit.vue @@ -27,22 +27,16 @@
-
-
昵称:
-
- -
-
用户名:
- +
-
我的签名:
+
邮箱:
- +
@@ -77,7 +71,9 @@ export default defineComponent({ let Cropper = ref() // provide('exhibitionList',exhibitionList) let handleCropperSuccess = (event:any)=>{ - let {file, fileData} =event + console.log(event); + + let {file, fileData,base64} =event console.log(file,fileData); Cropper.value.closeCropper() } @@ -157,8 +153,8 @@ export default defineComponent({ margin: 0 auto; position: relative; img{ - width: 20rem; - height: 20rem; + width: 15rem; + height: 15rem; border-radius: 50%; } .accountEdit_page_head_upload{ diff --git a/src/component/Account/accountHome.vue b/src/component/Account/accountHome.vue index 2c1fadbb..8f4da02a 100644 --- a/src/component/Account/accountHome.vue +++ b/src/component/Account/accountHome.vue @@ -9,8 +9,7 @@
diff --git a/src/component/Account/accountMessage.vue b/src/component/Account/accountMessage.vue index 8d38f22b..39db09dd 100644 --- a/src/component/Account/accountMessage.vue +++ b/src/component/Account/accountMessage.vue @@ -6,13 +6,26 @@
-