From f323016e40a9160d504d1c3fbf0604911eb0e38a Mon Sep 17 00:00:00 2001 From: a0049873 <79py69t9wb@privaterelay.appleid.com> Date: Wed, 22 Jun 2022 14:15:28 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B6=88=E6=81=AF=E4=B8=AD=E5=BF=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- front/src/assets/mynoticeView/other.png | Bin 0 -> 590 bytes front/src/views/home/components/header.vue | 15 +- .../mynoticeView/components/NoticeList.vue | 261 ++++++++++++++---- 3 files changed, 221 insertions(+), 55 deletions(-) create mode 100644 front/src/assets/mynoticeView/other.png diff --git a/front/src/assets/mynoticeView/other.png b/front/src/assets/mynoticeView/other.png new file mode 100644 index 0000000000000000000000000000000000000000..91e0bf8f4179cdecb40329a0e9f8f09343b7161d GIT binary patch literal 590 zcmV-U0(_`g8%^e{{R4h=>PzAFaQARU;qF*m;eA5Z<1fd zMgRZ-)Ja4^RCwC#nmJFyFcioC&vDbz1GStI3o{*<_zp~bWH#6kV(5SnqDv)MpjWP5 zF#{4vC~cG2No0V=>Z%}ZGc$O>Fa z2-6Hcu}!8ad~DlHWB6DMOmq0HEX)A-jZDlC__b`zAoxf|nUxrU|AO)GCiV5L-3!#4 zT`4t8=I+bD1Hg202iNIIc|pnpL<~ZNQX-tmJw!MM5l5qSp4tPs#(uro1?TPW@2=B> zGkr+q1y)2BR;wrI99)9)-5+lW#BR?eXaS z8q4KK9|4~G2;X~(zl=(DvKjP30z$0H94O2Kwta+3^*HwbefL?qspI&12dShZC1%62 z8i}6hWKAmdz$_SG77WT9NFyNC=7NecC=))?9@sy;0ufX5Nr^(g_Q-@GkwbsBnIn_# z{yGnkDe#*@h)jUrmII_ae4HdEo#EqFA<`8-Nf{*_;gh!0l+$9D*-?Y6h2(bFBg$Z5 c$8A0b0D7x}_AvaE*#H0l07*qoM6N<$f{ZEs1poj5 literal 0 HcmV?d00001 diff --git a/front/src/views/home/components/header.vue b/front/src/views/home/components/header.vue index 17e0cad5..a74d0874 100644 --- a/front/src/views/home/components/header.vue +++ b/front/src/views/home/components/header.vue @@ -230,17 +230,13 @@ window.sessionStorage.setItem('type', JSON.stringify('PurchaseVehicle')) router.push('/personalCenter') } - onBeforeUnmount(() => { - console.log('卸载getSgcNum========================>') - mybus.off('getSgcNum') - }) const mynoticeNum = ref(0) // 我的消息 const getMynotice = () => { - mynotice({ page: 1, limit: 999, readStatus: 0 }).then((res) => { + mynotice({ page: 1, limit: 3, readStatus: 0 }).then((res) => { console.log('我的消息', res.data.data) mynoticeNum.value = res.data.data.total - mynoticeData.value = res.data.data.list.splice(0, 3) + mynoticeData.value = res.data.data.list }) } const goToView = () => { @@ -288,6 +284,13 @@ console.log('申购车总数========================>', res.data.data.count) }) }) + mybus.on('getMynotice', () => { + getMynotice() + }) + }) + onBeforeUnmount(() => { + mybus.off('getSgcNum') + mybus.off('getMynotice') })