From 645f1289caf7b19043316ad16790420b2bef9b20 Mon Sep 17 00:00:00 2001 From: yangzhe Date: Mon, 1 Dec 2025 16:59:05 +0800 Subject: [PATCH] =?UTF-8?q?feat(home):=20=E9=87=8D=E6=9E=84=E5=BA=95?= =?UTF-8?q?=E9=83=A8=E5=B7=A5=E5=85=B7=E6=A0=8F=E5=B9=B6=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E6=B5=AE=E5=8A=A8=E9=80=89=E9=A1=B9=E5=8D=A1=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/home/index/index.vue | 82 ++++++++++----------- static/common/images/icon_conversation.png | Bin 0 -> 1555 bytes static/common/images/icon_home.png | Bin 0 -> 724 bytes 3 files changed, 38 insertions(+), 44 deletions(-) create mode 100644 static/common/images/icon_conversation.png create mode 100644 static/common/images/icon_home.png diff --git a/pages/home/index/index.vue b/pages/home/index/index.vue index 678d2c3..918f4a5 100644 --- a/pages/home/index/index.vue +++ b/pages/home/index/index.vue @@ -219,42 +219,17 @@ - + @@ -350,17 +325,30 @@ export default { path: "/pages/home/admissions/index", background: "linear-gradient(0deg, #F4FBFE 0%, #F4FBFE 100%)", }, - // { - // title: "留言板", - // icon: "/static/common/images/icon_messageBoard.png", - // path: "/pages/home/messageBoard/index", - // }, { title: "电话咨询", icon: "/static/common/images/icon_phone.png", background: "linear-gradient(0deg, #F4FBF9 0%, #F4FBF9 100%)", }, ], + floatingTabs: [ + { + title: "首页", + icon: "/static/common/images/icon_home.png", + }, + { + title: "招生在线", + icon: "/static/common/images/icon_admissions2.png", + }, + { + title: "转人工", + icon: "/static/common/images/icon_conversation.png", + }, + { + title: "电话咨询", + icon: "/static/common/images/icon_phone2.png", + }, + ], popupShow: false, chatHistoryList3: [ // { @@ -472,8 +460,9 @@ export default { conversationId = "", dmid = "", autoResetSwitching = true, + isChat = true, } = {}) { - this.isChat = true; + this.isChat = isChat; this.isSwitchingConversation = true; this.currentConversationId = conversationId; this.currentDMid = dmid; @@ -545,6 +534,11 @@ export default { }); }, handleFeatureClick(item) { + if (item.title === "首页") { + this.resetChatState({ isChat: false }); + return; + } + if (item.title === "电话咨询") { this.advicePhoneShow = true; return; @@ -1181,13 +1175,13 @@ export default { flex-direction: column; padding: 0 30rpx; box-sizing: border-box; - height: calc(100vh - 88rpx - 146rpx); + height: calc(100vh - 88rpx - 180rpx); position: relative; overflow: hidden; .chat-scroll { flex: 1; - height: calc(100vh - 88rpx - 146rpx); + height: 100%; overflow-y: scroll; } @@ -1463,19 +1457,19 @@ export default { align-items: center; justify-content: center; background-color: #ffffff; - padding: 8rpx 24rpx; + padding: 8rpx 20rpx; border-radius: 50rpx; box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.1); margin-right: 12rpx; .tab-icon { - width: 28rpx; - height: 28rpx; + width: 24rpx; + height: 24rpx; margin-right: 10rpx; } text { - font-size: 28rpx; + font-size: 24rpx; color: #333333; } } diff --git a/static/common/images/icon_conversation.png b/static/common/images/icon_conversation.png new file mode 100644 index 0000000000000000000000000000000000000000..aa3e97e55d72d29d1949a3019bc9a509f83a527d GIT binary patch literal 1555 zcmaJ>drT8|96zg8Rs@Y&MW*gn{!q-?yDJLz*2?-6lvbbx8fEIWy-Hi}!QGV>C&4iW zbH0|K(+vzdbYjE~U11np>O|ZeFAWYBw`DpVPTYWOK^JjuR|MQ2W0&0h9{GGe-`6L% zE8VmvN)#&s03a$gMVHC1FNNO-VfY)Eui%%3oZiZrDJSQ{7#vVLC>su@64+Ke6UQ8d z`B!lz08EW@S*)DZn1$zXFx0=gV3NzO_m zY^1e#o-1WLgPXUTEcWdlyTTz!UJWY!C@(5(h z)EUNN@h6oekK=&}jUBC_zl1SuPWQp6`DOvz9^{ zhca=N@-lXQaL%}JC>qr=IL1+og`&2NcQHMW;wUzcqCq(#L%?M@F495y*!WR`(TJv! zEQgVHJXNQX@DehY%YniM#E^*SwOYLbK@bD1*2onaeFAJqQfOgyqGp_{qwHP+C%JL1 z<2hG1DL3o|g61RZaK=@DI}8j(fTJ~|uE}#zPpUV@bxfX%W>PN1Cj*5i`>#olU-9+{ zZzp`qA10iSlf2y--q+?oHCX^4C`;9;E&iLA4{dyBZ$?a6?~~h_&hoQIm}7TKF71hl zH$-PN9nMd=GJU1lnHkH(nwKq*3-i^vY58{+$rgW@l5xOh(A5}>?X8Cw1s)FV7=GGt z@VDg7hdte^>pt&o?s?q%=nN&!`gP=IjT^2j%SsnkTzso*Xv#nf;a}L;GUessPp3v- ztgRXhX`!^ztMw7lEvj$D&e@w@dqcQHGj~tvtM%D~<+Vk#+ppb1v3O4`_9GCF*h1pX8F zfcH8VnQ}O1)f#k2-L;Zgp5ERaTFkE?Z zrsHNdV2=!m*V?)|o&=qnBiC#Z%v^UJt`XGa&e%&dIxEk=eRJtI&R%hGRD4&#t|5GN zIg{{xoH)9mw6pBkQwr1lDqS{8m3+DUl*mRFEh()S(%Bn(bz46tt z?0_dbvOP!G)?ZpTYx((#!-swm-uZDuU3$}Tx~RHGk5n)Bp6Ks3HbCwfq3JO|fqrN7 TPeG3VfdfFQ-lPj?wv_w>tYT2Y literal 0 HcmV?d00001 diff --git a/static/common/images/icon_home.png b/static/common/images/icon_home.png new file mode 100644 index 0000000000000000000000000000000000000000..62f73e6373f74d2b331f8a3f3275b79d64aed2e8 GIT binary patch literal 724 zcmV;_0xSKAP)Ow4Vqe6Ph>l=0%!s50<%KzRsrV#IooXDL{T7uSPcvT9@q>~4_^sfaDNVPtl1!4 zz#3pE@X(IgmoRo2aM694?P#+=1hLL1@d%g-eE-LsCBP*>>0v%_q*0Kqz>YN&?4ZfqjRAXU?z|ez($AYb6^tiJ|jdR0bDao zrxRf+kXGQ8lhsRLBJeIJM4%2QzN-DF4kilH>dob3Z-Mc^>johLDS~eL2g-l;CV>c| z#}FTZu}y>sq}+1bCSU4OQ3s+-sR7@B(Kb&JQVFNEDhj0R92BS6DqiG? zB>iLS{of!_{nclZKn7Bb$*NYb8++eP+C+nus)qxod@%~zgcJaZn){(S$~n4x>w0l0 z3y7qfw~~@-jxuS`w246VjOw$aB|KhDl~%rS9C%ze3-}4eCyB>MmY#P20000