Browse Source

feat(messages): 消息

EvilDragon 5 months ago
parent
commit
fe7a835fd2

+ 13 - 8
src/assets/svgs/integral.svg

@@ -1,14 +1,19 @@
-<svg width="28" height="27" viewBox="0 0 28 27" fill="none" xmlns="http://www.w3.org/2000/svg">
-<g id="Frame">
+<svg width="16" height="15" viewBox="0 0 16 15" fill="none" xmlns="http://www.w3.org/2000/svg">
+<g id="Frame" clip-path="url(#clip0_460_9131)">
 <g id="Vector">
-<path d="M22.7506 2.30322C23.1946 2.30322 23.6204 2.4796 23.9343 2.79356C24.2483 3.10751 24.4247 3.53333 24.4247 3.97733V22.9505C24.4247 23.3945 24.2483 23.8204 23.9343 24.1343C23.6204 24.4483 23.1946 24.6247 22.7506 24.6247H7.12556C6.68156 24.6247 6.25574 24.4483 5.94179 24.1343C5.62783 23.8204 5.45145 23.3945 5.45145 22.9505V19.6023H4.6144C4.3924 19.6023 4.17949 19.5141 4.02251 19.3572C3.86553 19.2002 3.77734 18.9873 3.77734 18.7653C3.77734 18.5433 3.86553 18.3304 4.02251 18.1734C4.17949 18.0164 4.3924 17.9282 4.6144 17.9282H5.45145V14.58H4.6144C4.3924 14.58 4.17949 14.4918 4.02251 14.3348C3.86553 14.1779 3.77734 13.965 3.77734 13.743C3.77734 13.521 3.86553 13.308 4.02251 13.1511C4.17949 12.9941 4.3924 12.9059 4.6144 12.9059H5.45145V9.55769H4.6144C4.3924 9.55769 4.17949 9.4695 4.02251 9.31252C3.86553 9.15554 3.77734 8.94263 3.77734 8.72063C3.77734 8.49863 3.86553 8.28573 4.02251 8.12875C4.17949 7.97177 4.3924 7.88358 4.6144 7.88358H5.45145V3.97733C5.45145 3.53333 5.62783 3.10751 5.94179 2.79356C6.25574 2.4796 6.68156 2.30322 7.12556 2.30322H22.7506ZM22.1925 3.97733H7.68359C7.54691 3.97735 7.41499 4.02753 7.31285 4.11835C7.21071 4.20918 7.14546 4.33433 7.12946 4.47008L7.12556 4.53537V22.3925C7.12558 22.5292 7.17576 22.6611 7.26658 22.7633C7.35741 22.8654 7.48256 22.9306 7.6183 22.9466L7.68359 22.9505H22.1925C22.3292 22.9505 22.4611 22.9003 22.5633 22.8095C22.6654 22.7187 22.7307 22.5935 22.7467 22.4578L22.7506 22.3925V4.53537C22.7506 4.46208 22.7361 4.38952 22.7081 4.32181C22.68 4.25411 22.6389 4.19259 22.5871 4.14077C22.5353 4.08896 22.4738 4.04785 22.4061 4.01981C22.3384 3.99176 22.2658 3.97733 22.1925 3.97733Z" fill="black" fill-opacity="0.85"/>
-<path d="M22.7506 2.30322C23.1946 2.30322 23.6204 2.4796 23.9343 2.79356C24.2483 3.10751 24.4247 3.53333 24.4247 3.97733V22.9505C24.4247 23.3945 24.2483 23.8204 23.9343 24.1343C23.6204 24.4483 23.1946 24.6247 22.7506 24.6247H7.12556C6.68156 24.6247 6.25574 24.4483 5.94179 24.1343C5.62783 23.8204 5.45145 23.3945 5.45145 22.9505V19.6023H4.6144C4.3924 19.6023 4.17949 19.5141 4.02251 19.3572C3.86553 19.2002 3.77734 18.9873 3.77734 18.7653C3.77734 18.5433 3.86553 18.3304 4.02251 18.1734C4.17949 18.0164 4.3924 17.9282 4.6144 17.9282H5.45145V14.58H4.6144C4.3924 14.58 4.17949 14.4918 4.02251 14.3348C3.86553 14.1779 3.77734 13.965 3.77734 13.743C3.77734 13.521 3.86553 13.308 4.02251 13.1511C4.17949 12.9941 4.3924 12.9059 4.6144 12.9059H5.45145V9.55769H4.6144C4.3924 9.55769 4.17949 9.4695 4.02251 9.31252C3.86553 9.15554 3.77734 8.94263 3.77734 8.72063C3.77734 8.49863 3.86553 8.28573 4.02251 8.12875C4.17949 7.97177 4.3924 7.88358 4.6144 7.88358H5.45145V3.97733C5.45145 3.53333 5.62783 3.10751 5.94179 2.79356C6.25574 2.4796 6.68156 2.30322 7.12556 2.30322H22.7506ZM22.1925 3.97733H7.68359C7.54691 3.97735 7.41499 4.02753 7.31285 4.11835C7.21071 4.20918 7.14546 4.33433 7.12946 4.47008L7.12556 4.53537V22.3925C7.12558 22.5292 7.17576 22.6611 7.26658 22.7633C7.35741 22.8654 7.48256 22.9306 7.6183 22.9466L7.68359 22.9505H22.1925C22.3292 22.9505 22.4611 22.9003 22.5633 22.8095C22.6654 22.7187 22.7307 22.5935 22.7467 22.4578L22.7506 22.3925V4.53537C22.7506 4.46208 22.7361 4.38952 22.7081 4.32181C22.68 4.25411 22.6389 4.19259 22.5871 4.14077C22.5353 4.08896 22.4738 4.04785 22.4061 4.01981C22.3384 3.99176 22.2658 3.97733 22.1925 3.97733Z" fill="black" fill-opacity="0.65"/>
-<path d="M22.7506 2.30322C23.1946 2.30322 23.6204 2.4796 23.9343 2.79356C24.2483 3.10751 24.4247 3.53333 24.4247 3.97733V22.9505C24.4247 23.3945 24.2483 23.8204 23.9343 24.1343C23.6204 24.4483 23.1946 24.6247 22.7506 24.6247H7.12556C6.68156 24.6247 6.25574 24.4483 5.94179 24.1343C5.62783 23.8204 5.45145 23.3945 5.45145 22.9505V19.6023H4.6144C4.3924 19.6023 4.17949 19.5141 4.02251 19.3572C3.86553 19.2002 3.77734 18.9873 3.77734 18.7653C3.77734 18.5433 3.86553 18.3304 4.02251 18.1734C4.17949 18.0164 4.3924 17.9282 4.6144 17.9282H5.45145V14.58H4.6144C4.3924 14.58 4.17949 14.4918 4.02251 14.3348C3.86553 14.1779 3.77734 13.965 3.77734 13.743C3.77734 13.521 3.86553 13.308 4.02251 13.1511C4.17949 12.9941 4.3924 12.9059 4.6144 12.9059H5.45145V9.55769H4.6144C4.3924 9.55769 4.17949 9.4695 4.02251 9.31252C3.86553 9.15554 3.77734 8.94263 3.77734 8.72063C3.77734 8.49863 3.86553 8.28573 4.02251 8.12875C4.17949 7.97177 4.3924 7.88358 4.6144 7.88358H5.45145V3.97733C5.45145 3.53333 5.62783 3.10751 5.94179 2.79356C6.25574 2.4796 6.68156 2.30322 7.12556 2.30322H22.7506ZM22.1925 3.97733H7.68359C7.54691 3.97735 7.41499 4.02753 7.31285 4.11835C7.21071 4.20918 7.14546 4.33433 7.12946 4.47008L7.12556 4.53537V22.3925C7.12558 22.5292 7.17576 22.6611 7.26658 22.7633C7.35741 22.8654 7.48256 22.9306 7.6183 22.9466L7.68359 22.9505H22.1925C22.3292 22.9505 22.4611 22.9003 22.5633 22.8095C22.6654 22.7187 22.7307 22.5935 22.7467 22.4578L22.7506 22.3925V4.53537C22.7506 4.46208 22.7361 4.38952 22.7081 4.32181C22.68 4.25411 22.6389 4.19259 22.5871 4.14077C22.5353 4.08896 22.4738 4.04785 22.4061 4.01981C22.3384 3.99176 22.2658 3.97733 22.1925 3.97733Z" fill="black" fill-opacity="0.45"/>
+<path d="M8.00261 14.345C7.704 14.3463 7.40911 14.2829 7.14086 14.1599C6.87262 14.0369 6.63826 13.8575 6.456 13.6357L0.430254 7.0137C0.183512 6.72544 0.0354922 6.37398 0.00562118 6.00545C-0.0242499 5.63691 0.0654232 5.26852 0.262872 4.94862L2.32502 1.57797C2.49743 1.298 2.74528 1.0654 3.04373 0.903466C3.34219 0.741534 3.68078 0.655946 4.02562 0.655273L11.9729 0.655273C12.3177 0.655946 12.6563 0.741534 12.9548 0.903466C13.2533 1.0654 13.5011 1.298 13.6735 1.57797L15.7357 4.94862C15.9324 5.26469 16.0229 5.629 15.9954 5.99402C15.9679 6.35903 15.8237 6.70782 15.5817 6.99486L9.55592 13.6483C9.37092 13.8679 9.13474 14.0449 8.86549 14.1656C8.59625 14.2864 8.30108 14.3478 8.00261 14.345ZM4.03231 1.91064C3.9223 1.91108 3.81433 1.93856 3.71918 1.99032C3.62402 2.04208 3.545 2.11633 3.49 2.20565L1.42785 5.5763C1.37008 5.67397 1.34377 5.78525 1.35209 5.89665C1.3604 6.00806 1.403 6.11481 1.47472 6.20399L7.50047 12.826C7.56326 12.8918 7.64015 12.9444 7.72609 12.9804C7.81204 13.0164 7.90513 13.035 7.99927 13.035C8.09341 13.035 8.18649 13.0164 8.27244 12.9804C8.35838 12.9444 8.43527 12.8918 8.49806 12.826L14.5238 6.18515C14.5942 6.09506 14.635 5.98758 14.6409 5.87602C14.6469 5.76445 14.6178 5.6537 14.5573 5.55747L12.4885 2.18682C12.4351 2.09756 12.3573 2.02321 12.2632 1.97137C12.1691 1.91954 12.062 1.89208 11.9528 1.89181L4.03231 1.91064Z" fill="black" fill-opacity="0.85"/>
+<path d="M8.00261 14.345C7.704 14.3463 7.40911 14.2829 7.14086 14.1599C6.87262 14.0369 6.63826 13.8575 6.456 13.6357L0.430254 7.0137C0.183512 6.72544 0.0354922 6.37398 0.00562118 6.00545C-0.0242499 5.63691 0.0654232 5.26852 0.262872 4.94862L2.32502 1.57797C2.49743 1.298 2.74528 1.0654 3.04373 0.903466C3.34219 0.741534 3.68078 0.655946 4.02562 0.655273L11.9729 0.655273C12.3177 0.655946 12.6563 0.741534 12.9548 0.903466C13.2533 1.0654 13.5011 1.298 13.6735 1.57797L15.7357 4.94862C15.9324 5.26469 16.0229 5.629 15.9954 5.99402C15.9679 6.35903 15.8237 6.70782 15.5817 6.99486L9.55592 13.6483C9.37092 13.8679 9.13474 14.0449 8.86549 14.1656C8.59625 14.2864 8.30108 14.3478 8.00261 14.345ZM4.03231 1.91064C3.9223 1.91108 3.81433 1.93856 3.71918 1.99032C3.62402 2.04208 3.545 2.11633 3.49 2.20565L1.42785 5.5763C1.37008 5.67397 1.34377 5.78525 1.35209 5.89665C1.3604 6.00806 1.403 6.11481 1.47472 6.20399L7.50047 12.826C7.56326 12.8918 7.64015 12.9444 7.72609 12.9804C7.81204 13.0164 7.90513 13.035 7.99927 13.035C8.09341 13.035 8.18649 13.0164 8.27244 12.9804C8.35838 12.9444 8.43527 12.8918 8.49806 12.826L14.5238 6.18515C14.5942 6.09506 14.635 5.98758 14.6409 5.87602C14.6469 5.76445 14.6178 5.6537 14.5573 5.55747L12.4885 2.18682C12.4351 2.09756 12.3573 2.02321 12.2632 1.97137C12.1691 1.91954 12.062 1.89208 11.9528 1.89181L4.03231 1.91064Z" fill="black" fill-opacity="0.65"/>
+<path d="M8.00261 14.345C7.704 14.3463 7.40911 14.2829 7.14086 14.1599C6.87262 14.0369 6.63826 13.8575 6.456 13.6357L0.430254 7.0137C0.183512 6.72544 0.0354922 6.37398 0.00562118 6.00545C-0.0242499 5.63691 0.0654232 5.26852 0.262872 4.94862L2.32502 1.57797C2.49743 1.298 2.74528 1.0654 3.04373 0.903466C3.34219 0.741534 3.68078 0.655946 4.02562 0.655273L11.9729 0.655273C12.3177 0.655946 12.6563 0.741534 12.9548 0.903466C13.2533 1.0654 13.5011 1.298 13.6735 1.57797L15.7357 4.94862C15.9324 5.26469 16.0229 5.629 15.9954 5.99402C15.9679 6.35903 15.8237 6.70782 15.5817 6.99486L9.55592 13.6483C9.37092 13.8679 9.13474 14.0449 8.86549 14.1656C8.59625 14.2864 8.30108 14.3478 8.00261 14.345ZM4.03231 1.91064C3.9223 1.91108 3.81433 1.93856 3.71918 1.99032C3.62402 2.04208 3.545 2.11633 3.49 2.20565L1.42785 5.5763C1.37008 5.67397 1.34377 5.78525 1.35209 5.89665C1.3604 6.00806 1.403 6.11481 1.47472 6.20399L7.50047 12.826C7.56326 12.8918 7.64015 12.9444 7.72609 12.9804C7.81204 13.0164 7.90513 13.035 7.99927 13.035C8.09341 13.035 8.18649 13.0164 8.27244 12.9804C8.35838 12.9444 8.43527 12.8918 8.49806 12.826L14.5238 6.18515C14.5942 6.09506 14.635 5.98758 14.6409 5.87602C14.6469 5.76445 14.6178 5.6537 14.5573 5.55747L12.4885 2.18682C12.4351 2.09756 12.3573 2.02321 12.2632 1.97137C12.1691 1.91954 12.062 1.89208 11.9528 1.89181L4.03231 1.91064Z" fill="black" fill-opacity="0.45"/>
 </g>
 <g id="Vector_2">
-<path d="M17.968 8.85741C18.0999 8.9944 18.1739 9.18018 18.1739 9.37389C18.1739 9.56759 18.0999 9.75337 17.968 9.89036L16.3677 11.5525H17.9395C18.1259 11.5525 18.3048 11.6295 18.4366 11.7665C18.5685 11.9035 18.6426 12.0893 18.6426 12.283C18.6426 12.4768 18.5685 12.6626 18.4366 12.7996C18.3048 12.9366 18.1259 13.0136 17.9395 13.0136H15.5648V14.4746H17.9395C18.1259 14.4746 18.3048 14.5516 18.4366 14.6885C18.5685 14.8255 18.6426 15.0114 18.6426 15.2051C18.6426 15.3988 18.5685 15.5847 18.4366 15.7217C18.3048 15.8587 18.1259 15.9356 17.9395 15.9356H15.5648V18.6268C15.5648 18.8206 15.4907 19.0064 15.3588 19.1434C15.227 19.2804 15.0481 19.3574 14.8616 19.3574C14.6752 19.3574 14.4963 19.2804 14.3645 19.1434C14.2326 19.0064 14.1585 18.8206 14.1585 18.6268V15.9356H11.8457C11.6592 15.9356 11.4804 15.8587 11.3485 15.7217C11.2167 15.5847 11.1426 15.3988 11.1426 15.2051C11.1426 15.0114 11.2167 14.8255 11.3485 14.6885C11.4804 14.5516 11.6592 14.4746 11.8457 14.4746H14.1585V13.0136H11.8457C11.6592 13.0136 11.4804 12.9366 11.3485 12.7996C11.2167 12.6626 11.1426 12.4768 11.1426 12.283C11.1426 12.0893 11.2167 11.9035 11.3485 11.7665C11.4804 11.6295 11.6592 11.5525 11.8457 11.5525H13.432L11.8321 9.89036C11.7002 9.75338 11.6261 9.56758 11.626 9.37382C11.626 9.18005 11.7 8.99421 11.8319 8.85717C11.9637 8.72013 12.1426 8.64311 12.3291 8.64307C12.5155 8.64302 12.6944 8.71995 12.8263 8.85693L14.8996 11.0115L16.9738 8.85741C17.1057 8.72046 17.2845 8.64353 17.4709 8.64353C17.6574 8.64353 17.8362 8.72046 17.968 8.85741Z" fill="black" fill-opacity="0.85"/>
-<path d="M17.968 8.85741C18.0999 8.9944 18.1739 9.18018 18.1739 9.37389C18.1739 9.56759 18.0999 9.75337 17.968 9.89036L16.3677 11.5525H17.9395C18.1259 11.5525 18.3048 11.6295 18.4366 11.7665C18.5685 11.9035 18.6426 12.0893 18.6426 12.283C18.6426 12.4768 18.5685 12.6626 18.4366 12.7996C18.3048 12.9366 18.1259 13.0136 17.9395 13.0136H15.5648V14.4746H17.9395C18.1259 14.4746 18.3048 14.5516 18.4366 14.6885C18.5685 14.8255 18.6426 15.0114 18.6426 15.2051C18.6426 15.3988 18.5685 15.5847 18.4366 15.7217C18.3048 15.8587 18.1259 15.9356 17.9395 15.9356H15.5648V18.6268C15.5648 18.8206 15.4907 19.0064 15.3588 19.1434C15.227 19.2804 15.0481 19.3574 14.8616 19.3574C14.6752 19.3574 14.4963 19.2804 14.3645 19.1434C14.2326 19.0064 14.1585 18.8206 14.1585 18.6268V15.9356H11.8457C11.6592 15.9356 11.4804 15.8587 11.3485 15.7217C11.2167 15.5847 11.1426 15.3988 11.1426 15.2051C11.1426 15.0114 11.2167 14.8255 11.3485 14.6885C11.4804 14.5516 11.6592 14.4746 11.8457 14.4746H14.1585V13.0136H11.8457C11.6592 13.0136 11.4804 12.9366 11.3485 12.7996C11.2167 12.6626 11.1426 12.4768 11.1426 12.283C11.1426 12.0893 11.2167 11.9035 11.3485 11.7665C11.4804 11.6295 11.6592 11.5525 11.8457 11.5525H13.432L11.8321 9.89036C11.7002 9.75338 11.6261 9.56758 11.626 9.37382C11.626 9.18005 11.7 8.99421 11.8319 8.85717C11.9637 8.72013 12.1426 8.64311 12.3291 8.64307C12.5155 8.64302 12.6944 8.71995 12.8263 8.85693L14.8996 11.0115L16.9738 8.85741C17.1057 8.72046 17.2845 8.64353 17.4709 8.64353C17.6574 8.64353 17.8362 8.72046 17.968 8.85741Z" fill="black" fill-opacity="0.65"/>
-<path d="M17.968 8.85741C18.0999 8.9944 18.1739 9.18018 18.1739 9.37389C18.1739 9.56759 18.0999 9.75337 17.968 9.89036L16.3677 11.5525H17.9395C18.1259 11.5525 18.3048 11.6295 18.4366 11.7665C18.5685 11.9035 18.6426 12.0893 18.6426 12.283C18.6426 12.4768 18.5685 12.6626 18.4366 12.7996C18.3048 12.9366 18.1259 13.0136 17.9395 13.0136H15.5648V14.4746H17.9395C18.1259 14.4746 18.3048 14.5516 18.4366 14.6885C18.5685 14.8255 18.6426 15.0114 18.6426 15.2051C18.6426 15.3988 18.5685 15.5847 18.4366 15.7217C18.3048 15.8587 18.1259 15.9356 17.9395 15.9356H15.5648V18.6268C15.5648 18.8206 15.4907 19.0064 15.3588 19.1434C15.227 19.2804 15.0481 19.3574 14.8616 19.3574C14.6752 19.3574 14.4963 19.2804 14.3645 19.1434C14.2326 19.0064 14.1585 18.8206 14.1585 18.6268V15.9356H11.8457C11.6592 15.9356 11.4804 15.8587 11.3485 15.7217C11.2167 15.5847 11.1426 15.3988 11.1426 15.2051C11.1426 15.0114 11.2167 14.8255 11.3485 14.6885C11.4804 14.5516 11.6592 14.4746 11.8457 14.4746H14.1585V13.0136H11.8457C11.6592 13.0136 11.4804 12.9366 11.3485 12.7996C11.2167 12.6626 11.1426 12.4768 11.1426 12.283C11.1426 12.0893 11.2167 11.9035 11.3485 11.7665C11.4804 11.6295 11.6592 11.5525 11.8457 11.5525H13.432L11.8321 9.89036C11.7002 9.75338 11.6261 9.56758 11.626 9.37382C11.626 9.18005 11.7 8.99421 11.8319 8.85717C11.9637 8.72013 12.1426 8.64311 12.3291 8.64307C12.5155 8.64302 12.6944 8.71995 12.8263 8.85693L14.8996 11.0115L16.9738 8.85741C17.1057 8.72046 17.2845 8.64353 17.4709 8.64353C17.6574 8.64353 17.8362 8.72046 17.968 8.85741Z" fill="black" fill-opacity="0.45"/>
+<path d="M6.46282 4.6876C6.32039 4.6876 6.18379 4.63031 6.08308 4.52834C5.98236 4.42636 5.92578 4.28806 5.92578 4.14385C5.92578 3.99964 5.98236 3.86133 6.08308 3.75936C6.18379 3.65739 6.32039 3.6001 6.46282 3.6001H9.49193C9.63436 3.6001 9.77096 3.65739 9.87167 3.75936C9.97239 3.86133 10.029 3.99964 10.029 4.14385C10.029 4.28806 9.97239 4.42636 9.87167 4.52834C9.77096 4.63031 9.63436 4.6876 9.49193 4.6876H6.46282Z" fill="black" fill-opacity="0.85"/>
+<path d="M6.46282 4.6876C6.32039 4.6876 6.18379 4.63031 6.08308 4.52834C5.98236 4.42636 5.92578 4.28806 5.92578 4.14385C5.92578 3.99964 5.98236 3.86133 6.08308 3.75936C6.18379 3.65739 6.32039 3.6001 6.46282 3.6001H9.49193C9.63436 3.6001 9.77096 3.65739 9.87167 3.75936C9.97239 3.86133 10.029 3.99964 10.029 4.14385C10.029 4.28806 9.97239 4.42636 9.87167 4.52834C9.77096 4.63031 9.63436 4.6876 9.49193 4.6876H6.46282Z" fill="black" fill-opacity="0.65"/>
+<path d="M6.46282 4.6876C6.32039 4.6876 6.18379 4.63031 6.08308 4.52834C5.98236 4.42636 5.92578 4.28806 5.92578 4.14385C5.92578 3.99964 5.98236 3.86133 6.08308 3.75936C6.18379 3.65739 6.32039 3.6001 6.46282 3.6001H9.49193C9.63436 3.6001 9.77096 3.65739 9.87167 3.75936C9.97239 3.86133 10.029 3.99964 10.029 4.14385C10.029 4.28806 9.97239 4.42636 9.87167 4.52834C9.77096 4.63031 9.63436 4.6876 9.49193 4.6876H6.46282Z" fill="black" fill-opacity="0.45"/>
 </g>
 </g>
+<defs>
+<clipPath id="clip0_460_9131">
+<rect width="16" height="15" fill="white"/>
+</clipPath>
+</defs>
 </svg>

+ 5 - 0
src/assets/svgs/interact.svg

@@ -0,0 +1,5 @@
+<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
+<g id="Frame">
+<path id="Vector" d="M15.3517 2.25C15.5407 2.25001 15.7227 2.32136 15.8614 2.44978C16 2.57819 16.085 2.75421 16.0995 2.94263L16.1017 2.9985L16.125 13.4985C16.1253 13.6879 16.054 13.8704 15.9253 14.0094C15.7966 14.1484 15.6201 14.2335 15.4312 14.2478L15.375 14.25H10.6256L8.41538 16.635L7.31512 15.615L9.7485 12.99C9.87415 12.8546 10.0453 12.7704 10.2292 12.7534L10.2983 12.75H14.6231L14.6029 3.75H3.375V12.75H6.92963V14.25H2.625C2.43578 14.2501 2.25354 14.1786 2.11479 14.0499C1.97605 13.9213 1.89107 13.7449 1.87688 13.5563L1.875 13.5V3C1.87494 2.81078 1.9464 2.62854 2.07506 2.48979C2.20372 2.35105 2.38007 2.26607 2.56875 2.25188L2.625 2.25H15.3517ZM11.625 7.5V9H6.375V7.5H11.625Z" fill="#1F2129"/>
+</g>
+</svg>

+ 5 - 0
src/assets/svgs/system.svg

@@ -0,0 +1,5 @@
+<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
+<g id="Frame">
+<path id="Vector" d="M10.5 15.75V17.25H7.50001V15.75H10.5ZM15.75 12.75V14.25H2.34863L3.12601 13.0837C3.50696 12.5123 3.72205 11.8464 3.74738 11.16L3.75001 11.0228V7.5C3.75001 4.85512 5.70563 2.667 8.25001 2.30325V1.125H9.75001V2.30325C12.2546 2.66175 14.1889 4.78725 14.2485 7.37625L14.25 7.5V11.25H12.75V7.5C12.75 5.499 11.1829 3.86438 9.20926 3.75563L9.10501 3.7515L9.00001 3.75C6.96376 3.75 5.30701 5.37262 5.25151 7.395L5.25001 7.5V11.0228C5.25001 11.5264 5.17726 12.024 5.03626 12.5018L4.98001 12.6799L4.95488 12.75H15.75Z" fill="#333333"/>
+</g>
+</svg>

+ 4 - 0
src/core/libs/svgs.ts

@@ -28,6 +28,8 @@ import close from '@/assets/svgs/close.svg'
 import materialDealers from '@/assets/svgs/material-dealers.svg'
 import phone from '@/assets/svgs/phone.svg'
 import route from '@/assets/svgs/route.svg'
+import system from '@/assets/svgs/system.svg'
+import interact from '@/assets/svgs/interact.svg'
 export {
   polygon16,
   frame,
@@ -59,4 +61,6 @@ export {
   materialDealers,
   phone,
   route,
+  system,
+  interact,
 }

+ 2 - 1
src/pages.json

@@ -93,7 +93,8 @@
       "type": "page",
       "layout": "tabbar",
       "style": {
-        "navigationBarTitleText": "消息"
+        "navigationBarTitleText": "消息",
+        "navigationBarBackgroundColor": "#fff"
       }
     },
     {

+ 1 - 0
src/pages/home/index.vue

@@ -96,6 +96,7 @@ const { data } = useRequest(async () => ({ code: 0, msg: '', data: {} }) as IRes
 })
 console.log(data.value)
 onLoad(() => {})
+onShareAppMessage(() => ({}))
 </script>
 
 <template>

+ 99 - 4
src/pages/messages/index.vue

@@ -1,11 +1,106 @@
-<route lang="json5">
-{ layout: 'tabbar', style: { navigationBarTitleText: '消息' } }
+<route lang="yaml">
+layout: tabbar
+style:
+  navigationBarTitleText: 消息
+  navigationBarBackgroundColor: '#fff'
 </route>
 
-<script setup lang="ts"></script>
+<script setup lang="ts">
+import Card from '@/components/card.vue'
+import { integral, interact, system } from '@/core/libs/svgs'
+import { beforeNow } from '@/utils/date-util'
+import dayjs from 'dayjs'
+
+const tab = ref('integral')
+const tabs = ref([
+  { label: '积分消息', value: 'integral' },
+  { label: '系统消息', value: 'system' },
+  { label: '互动消息', value: 'interact' },
+])
+const msgs = ref({
+  integral: [
+    { title: '积分变动通知', createdAt: Date.now() },
+    { title: '请确认积分', createdAt: '2023-05-05' },
+  ],
+  system: [
+    {
+      title: '新豪轩门窗入驻筑巢荟',
+      createdAt: Date.now(),
+      content: '新豪轩材料商加入筑巢荟,为筑巢荟设计师提供更好的材料和服务!',
+      img: 'https://via.placeholder.com/279x164',
+    },
+    { title: '平台通知', createdAt: Date.now(), content: '有新的材料商入驻平台,点击查看!' },
+  ],
+  interact: [
+    {
+      title: '王磊回复了你',
+      createdAt: Date.now(),
+      content: '设计师李家豪刚刚点赞了你的设计圈点击前往查看',
+    },
+    {
+      title: '李琳赞了你的设计圈',
+      createdAt: Date.now(),
+      content: '设计师李家豪刚刚点赞了你的设计圈点击前往查看',
+    },
+  ],
+})
+</script>
 
 <template>
-  <view></view>
+  <view class="flex-grow">
+    <wd-tabs v-model="tab">
+      <block v-for="({ label, value }, i) in tabs" :key="i">
+        <wd-tab :title="`${label}`" :name="value"></wd-tab>
+      </block>
+    </wd-tabs>
+    <div class="p-3.5 gap-3.5 flex flex-col">
+      <template v-for="({ title, createdAt, content, img }, i) in msgs[tab]" :key="i">
+        <Card>
+          <div class="grid items-center grid-cols-[38px_auto_100px]">
+            <div class="row-start-1 col-start-1">
+              <div
+                class="w-[30px] h-[30px] bg-neutral-100 rounded-full mr-2 flex items-center justify-center"
+              >
+                <wd-img
+                  width="18"
+                  height="18"
+                  :src="{ integral: integral, system: system, interact: interact }[tab]"
+                ></wd-img>
+              </div>
+            </div>
+            <div class="row-start-1 col-start-2 text-start">
+              <div class="text-black/90 text-base font-normal font-['PingFang SC'] leading-[30px]">
+                {{ title }}
+              </div>
+            </div>
+            <div class="row-start-1 col-start-3 text-end">
+              <div class="text-black/30 text-sm font-normal font-['PingFang SC'] leading-[10.18px]">
+                {{ beforeNow(dayjs(createdAt).toDate()) }}
+              </div>
+            </div>
+            <div class="row-start-2 col-start-2 col-end-4">
+              <div
+                class="my-3 text-black/40 text-sm font-normal font-['PingFang SC'] leading-[25px]"
+              >
+                {{ content }}
+              </div>
+            </div>
+            <div v-if="img" class="row-start-3 col-start-2 col-end-4">
+              <img class="w-[279px] h-[164px] rounded-md" :src="img" />
+            </div>
+            <div class="row-start-4 col-start-1 col-end-4 my-2">
+              <div v-if="!img" class="bg-[#dadada] w-full h-[1px]"></div>
+            </div>
+            <div class="row-start-5 col-start-2 col-end-4">
+              <div class="text-black/90 text-xs font-normal font-['PingFang SC'] leading-[25px]">
+                查看详情
+              </div>
+            </div>
+          </div>
+        </Card>
+      </template>
+    </div>
+  </view>
 </template>
 
 <style scoped lang="scss"></style>