Commit ec0898b1 by haojie

1

parent 58688f7b
No preview for this file type
...@@ -128,7 +128,7 @@ export const chain_options = [ ...@@ -128,7 +128,7 @@ export const chain_options = [
// ava // ava
{ {
label: 'AVA', label: 'AVA',
value: '/ava', value: '/avax',
img: '/images/svg/selectChain/ava.svg', img: '/images/svg/selectChain/ava.svg',
name: 'AVA', name: 'AVA',
fullName: 'AVALANCHE', fullName: 'AVALANCHE',
...@@ -969,6 +969,56 @@ export const publicTokenImg = [ ...@@ -969,6 +969,56 @@ export const publicTokenImg = [
img: '/images/svg/publicToken/WASTR.svg', img: '/images/svg/publicToken/WASTR.svg',
title: 'WASTR', title: 'WASTR',
}, },
// Cake
{
img: '/images/svg/publicToken/Cake.svg',
title: 'Cake',
},
// NOTE
{
img: '/images/svg/publicToken/NOTE.svg',
title: 'NOTE',
},
// ATOM
{
img: '/images/svg/publicToken/ATOM.svg',
title: 'ATOM',
},
// WCANTO
{
img: '/images/svg/publicToken/WCANTO.svg',
title: 'WCANTO',
},
// LSHARE
{
img: '/images/svg/publicToken/LSHARE.svg',
title: 'LSHARE',
},
// LIF3
{
img: '/images/svg/publicToken/LIF3.svg',
title: 'LIF3',
},
// TOMB
{
img: '/images/svg/publicToken/TOMB.svg',
title: 'TOMB',
},
// TSHARE
{
img: '/images/svg/publicToken/TSHARE.svg',
title: 'TSHARE',
},
// L3USD
{
img: '/images/svg/publicToken/L3USD.svg',
title: 'L3USD',
},
// mCUSD
{
img: '/images/svg/publicToken/mCUSD.svg',
title: 'mCUSD',
},
]; ];
/** /**
......
...@@ -446,6 +446,7 @@ const cn = { ...@@ -446,6 +446,7 @@ const cn = {
startTime: '请选择时间', startTime: '请选择时间',
endTime: '结束时间', endTime: '结束时间',
Cannotexceed: '不能超过当前时间', Cannotexceed: '不能超过当前时间',
currentTimeNoData: '当前筛选暂无数据',
}, },
}; };
export default cn; export default cn;
...@@ -444,6 +444,7 @@ const cn = { ...@@ -444,6 +444,7 @@ const cn = {
startTime: 'Please select a time', startTime: 'Please select a time',
endTime: 'End time', endTime: 'End time',
Cannotexceed: 'Cannot exceed the current time', Cannotexceed: 'Cannot exceed the current time',
currentTimeNoData: '当前筛选暂无数据',
}, },
}; };
export default cn; export default cn;
<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
<circle cx="16" cy="16" r="16" fill="#2E3148"/>
<circle cx="15.9998" cy="16" r="9.28397" fill="#1B1E36"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M12.9053 16.0331C12.9053 8.30558 14.3057 2.04126 16.0328 2.04126C17.7599 2.04126 19.1604 8.30558 19.1604 16.0331C19.1604 23.7606 17.7599 30.0249 16.0328 30.0249C14.3057 30.0249 12.9053 23.7606 12.9053 16.0331ZM15.8538 29.301C15.8538 29.301 16.0513 29.4987 16.2488 29.2352C16.2488 29.2352 17.1765 28.4445 17.8389 24.6915C17.8389 24.6915 18.6994 19.7533 18.5677 15.3417C18.5677 15.3417 18.6994 10.2718 17.245 4.87262C17.245 4.87262 16.7524 3.13233 16.1652 2.7162C16.0674 2.64668 15.9338 2.65748 15.8485 2.7418C15.4438 3.14206 14.2544 4.94494 13.6006 12.5768C13.6006 12.5768 13.2694 22.19 14.6607 26.6673C14.6607 26.6673 15.0584 28.3794 15.8538 29.301Z" fill="#6F7390"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M14.4733 13.3196C21.1794 9.47423 27.3094 7.57138 28.1693 9.07C29.0286 10.568 24.2982 14.9004 17.5922 18.7458C10.8861 22.5912 4.75545 24.4934 3.89618 22.9954C3.03692 21.4974 7.76729 17.165 14.4733 13.3196ZM4.43468 22.4777C4.43468 22.4777 4.36031 22.7483 4.68953 22.7898H4.68965C4.68965 22.7898 5.83666 23.2013 9.42181 21.9094C9.42181 21.9094 14.1335 20.1995 17.8945 17.8891C17.8945 17.8891 22.358 15.4799 26.3147 11.5299C26.3147 11.5299 27.5823 10.2371 27.6481 9.52031C27.6606 9.40055 27.5849 9.28925 27.4689 9.25688C26.9217 9.10623 24.7647 8.96991 17.8201 12.2009C17.8201 12.2009 9.31634 16.6974 6.12364 20.1324C6.12364 20.1324 4.83852 21.3295 4.43468 22.4777Z" fill="#6F7390"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M17.6047 13.324C24.2872 17.1983 29.0057 21.5506 28.1391 23.0452C27.2733 24.5426 21.1517 22.616 14.4654 18.7417C7.77905 14.8674 3.06136 10.5177 3.92715 9.02052C4.79294 7.52331 10.9222 9.44971 17.6047 13.324ZM4.64357 9.22149C4.64357 9.22149 4.37336 9.29457 4.50136 9.59806L4.50226 9.60139C4.50226 9.60139 4.72139 10.7991 7.63826 13.255C7.63826 13.255 11.477 16.4768 15.3591 18.5706C15.3591 18.5706 19.6797 21.2247 25.0822 22.6733C25.0822 22.6733 26.8351 23.1197 27.4895 22.8201C27.5989 22.7704 27.6568 22.6493 27.6265 22.533C27.4822 21.9839 26.5197 20.0494 20.2434 15.6576C20.2434 15.6576 12.0918 10.5514 7.52024 9.51038C7.52024 9.51038 5.83986 8.99557 4.64357 9.22149Z" fill="#6F7390"/>
<circle cx="16.0001" cy="16" r="1.64608" fill="#B7B9C8"/>
<ellipse cx="22.7487" cy="9.67893" rx="0.954752" ry="0.987648" fill="#B7B9C8"/>
<ellipse cx="7.07829" cy="13.0371" rx="0.954752" ry="0.987648" fill="#B7B9C8"/>
<ellipse cx="14.0578" cy="25.1522" rx="0.954752" ry="0.987648" fill="#B7B9C8"/>
</svg>
\ No newline at end of file
<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
<circle cx="16" cy="16" r="16" fill="#37D3DF"/>
<g clip-path="url(#clip0_945_26681)">
<path fill-rule="evenodd" clip-rule="evenodd" d="M9.59621 9.125C9.28076 7.5 10.5426 6 12.183 6C13.6341 6 14.8328 7.1875 14.8328 8.625V11.875C15.2114 11.875 15.5899 11.8125 15.9685 11.8125C16.347 11.8125 16.6625 11.8125 17.041 11.875V8.625C17.041 7.1875 18.2397 6 19.6909 6C21.3312 6 22.5931 7.5 22.3407 9.125L21.6467 12.9375C24.1073 14 26 15.875 26 18.1875V19.625C26 21.5625 24.7382 23.1875 22.9085 24.25C21.0789 25.375 18.6814 26 15.9685 26C13.2555 26 10.858 25.375 9.02839 24.25C7.26183 23.1875 6 21.5625 6 19.625V18.1875C6 15.875 7.82965 14 10.2902 12.9375L9.59621 9.125ZM20.7003 13.4375L21.5205 8.9375C21.7098 7.8125 20.8896 6.75 19.6909 6.75C18.6814 6.75 17.8612 7.5625 17.8612 8.5625V12.6875C17.6088 12.625 17.2934 12.625 17.041 12.625C16.6625 12.625 16.347 12.5625 15.9685 12.5625C15.5899 12.5625 15.2114 12.5625 14.8328 12.625C14.5804 12.625 14.265 12.6875 14.0126 12.6875V8.625C14.0126 7.625 13.1924 6.8125 12.183 6.8125C11.0473 6.8125 10.164 7.875 10.4164 9L11.2366 13.5C8.58675 14.5 6.82019 16.25 6.82019 18.25V19.6875C6.82019 22.75 10.9211 25.25 15.9685 25.25C21.0158 25.25 25.1167 22.75 25.1167 19.6875V18.25C25.1798 16.1875 23.4132 14.4375 20.7003 13.4375Z" fill="#633001"/>
<path d="M25.1798 19.625C25.1798 22.6875 21.0789 25.1875 16.0316 25.1875C10.9842 25.1875 6.8833 22.6875 6.8833 19.625V18.1875H25.2429V19.625H25.1798Z" fill="#FEDC90"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M10.4164 9C10.1641 7.875 11.0473 6.8125 12.183 6.8125C13.1924 6.8125 14.0126 7.625 14.0126 8.625V12.75C14.6436 12.6875 15.2745 12.625 15.9685 12.625C16.5994 12.625 17.2303 12.6875 17.8612 12.75V8.625C17.8612 7.625 18.6814 6.8125 19.6909 6.8125C20.8265 6.8125 21.7098 7.875 21.5205 9L20.7003 13.5C23.3502 14.5 25.1798 16.25 25.1798 18.25C25.1798 21.3125 21.0789 23.8125 16.0316 23.8125C10.9842 23.8125 6.8833 21.3125 6.8833 18.25C6.8833 16.25 8.64986 14.5 11.2997 13.5L10.4164 9Z" fill="#D1884F"/>
<path d="M13.4447 17.8125C13.4447 18.625 13.0031 19.3125 12.4352 19.3125C11.8674 19.3125 11.4258 18.625 11.4258 17.8125C11.4258 17 11.8674 16.3125 12.4352 16.3125C13.0031 16.3125 13.4447 17 13.4447 17.8125Z" fill="#633001"/>
<path d="M20.4481 17.8125C20.4481 18.625 20.0065 19.3125 19.4387 19.3125C18.8708 19.3125 18.4292 18.625 18.4292 17.8125C18.4292 17 18.8708 16.3125 19.4387 16.3125C20.0065 16.3125 20.4481 17 20.4481 17.8125Z" fill="#633001"/>
</g>
<defs>
<clipPath id="clip0_945_26681">
<rect width="20" height="20" fill="white" transform="translate(6 6)"/>
</clipPath>
</defs>
</svg>
\ No newline at end of file
<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
<mask id="mask0_4320_31244" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="0" y="0" width="32" height="32">
<path d="M32 0H0V32H32V0Z" fill="white"/>
</mask>
<g mask="url(#mask0_4320_31244)">
<path d="M16 32C24.8366 32 32 24.8366 32 16C32 7.16345 24.8366 0 16 0C7.16345 0 0 7.16345 0 16C0 24.8366 7.16345 32 16 32Z" fill="url(#paint0_radial_4320_31244)"/>
<g filter="url(#filter0_d_4320_31244)">
<path d="M14.9591 8.36771C14.7923 8.53539 14.6698 8.7393 14.5993 8.96106L10.079 21.0013H8.25586V22.848H11.7088L13.0393 19.1758L13.6725 17.3297L15.9744 10.7928L20.2196 22.848H23.7431V21.0013H21.9129L17.393 8.96068C17.3225 8.73911 17.2 8.53527 17.0332 8.36771C16.7582 8.0913 16.3851 7.93604 15.9962 7.93604C15.6072 7.93604 15.2342 8.0913 14.9591 8.36771Z" fill="white"/>
</g>
</g>
<defs>
<filter id="filter0_d_4320_31244" x="4.25586" y="7.93604" width="23.4873" height="22.912" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
<feOffset dy="4"/>
<feGaussianBlur stdDeviation="2"/>
<feComposite in2="hardAlpha" operator="out"/>
<feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"/>
<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_4320_31244"/>
<feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_4320_31244" result="shape"/>
</filter>
<radialGradient id="paint0_radial_4320_31244" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="rotate(45) scale(45.2548 30.4283)">
<stop stop-color="#BFFFB5"/>
<stop offset="0.616783" stop-color="#1A715C"/>
</radialGradient>
</defs>
</svg>
\ No newline at end of file
<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
<mask id="mask0_4322_31281" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="0" y="0" width="32" height="32">
<path d="M32 0H0V32H32V0Z" fill="white"/>
</mask>
<g mask="url(#mask0_4322_31281)">
<path d="M16 32C24.8366 32 32 24.8366 32 16C32 7.16345 24.8366 0 16 0C7.16345 0 0 7.16345 0 16C0 24.8366 7.16345 32 16 32Z" fill="url(#paint0_radial_4322_31281)"/>
<g filter="url(#filter0_d_4322_31281)">
<path d="M14.9596 8.36759C14.7928 8.53527 14.6703 8.73918 14.5998 8.96094L10.0795 21.0012H8.25635V22.8479H11.7093L13.0398 19.1757L13.673 17.3296L15.9749 10.7927L20.2201 22.8479H23.7436V21.0012H21.9134L17.3935 8.96055C17.323 8.73899 17.2005 8.53514 17.0337 8.36759C16.7586 8.09118 16.3856 7.93591 15.9967 7.93591C15.6077 7.93591 15.2347 8.09118 14.9596 8.36759Z" fill="white"/>
</g>
</g>
<defs>
<filter id="filter0_d_4322_31281" x="4.25635" y="7.93591" width="23.4873" height="22.912" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
<feOffset dy="4"/>
<feGaussianBlur stdDeviation="2"/>
<feComposite in2="hardAlpha" operator="out"/>
<feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"/>
<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_4322_31281"/>
<feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_4322_31281" result="shape"/>
</filter>
<radialGradient id="paint0_radial_4322_31281" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="rotate(45) scale(45.2548 30.4283)">
<stop stop-color="#79A5C6"/>
<stop offset="0.616783" stop-color="#2A4874"/>
</radialGradient>
</defs>
</svg>
\ No newline at end of file
<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
<mask id="mask0_4321_31253" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="0" y="0" width="32" height="32">
<path d="M32 0H0V32H32V0Z" fill="white"/>
</mask>
<g mask="url(#mask0_4321_31253)">
<path d="M16 32C24.8366 32 32 24.8366 32 16C32 7.16345 24.8366 0 16 0C7.16345 0 0 7.16345 0 16C0 24.8366 7.16345 32 16 32Z" fill="url(#paint0_radial_4321_31253)"/>
<g filter="url(#filter0_d_4321_31253)">
<path d="M14.9596 8.36759C14.7928 8.53527 14.6703 8.73918 14.5998 8.96094L10.0795 21.0012H8.25635V22.8479H11.7093L13.0398 19.1757L13.673 17.3296L15.9749 10.7927L20.2201 22.8479H23.7436V21.0012H21.9134L17.3935 8.96055C17.323 8.73899 17.2005 8.53514 17.0337 8.36759C16.7586 8.09118 16.3856 7.93591 15.9967 7.93591C15.6077 7.93591 15.2347 8.09118 14.9596 8.36759Z" fill="#FCFCFC"/>
</g>
</g>
<defs>
<filter id="filter0_d_4321_31253" x="4.25635" y="7.93591" width="23.4873" height="22.912" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>
<feOffset dy="4"/>
<feGaussianBlur stdDeviation="2"/>
<feComposite in2="hardAlpha" operator="out"/>
<feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"/>
<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_4321_31253"/>
<feBlend mode="normal" in="SourceGraphic" in2="effect1_dropShadow_4321_31253" result="shape"/>
</filter>
<radialGradient id="paint0_radial_4321_31253" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse" gradientTransform="rotate(45) scale(45.2548 30.4283)">
<stop offset="0.244792" stop-color="#D5B78B"/>
<stop offset="1" stop-color="#875C3B"/>
</radialGradient>
</defs>
</svg>
\ No newline at end of file
<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0_4230_31222)">
<path d="M16 30C23.732 30 30 23.732 30 16C30 8.26801 23.732 2 16 2C8.26801 2 2 8.26801 2 16C2 23.732 8.26801 30 16 30Z" fill="#06FC99" stroke="#06FC99" stroke-width="3"/>
<path d="M12.4878 8.19507H10.5366V10.1463H12.4878V8.19507Z" fill="#161616"/>
<path d="M14.439 10.5366H12.4878V13.6586H14.439V10.5366Z" fill="#161616"/>
<path d="M16.3902 13.2683H14.439V16.3903H16.3902V13.2683Z" fill="#161616"/>
<path d="M21.0733 14.0488H19.1221V14.8293H21.0733V14.0488Z" fill="#161616"/>
<path d="M23.0245 13.2683H21.0732V14.0488H23.0245V13.2683Z" fill="#161616"/>
<path d="M24.9756 12.4878H23.0244V13.2683H24.9756V12.4878Z" fill="#161616"/>
<path d="M19.1221 14.8292H17.1709V15.6097H19.1221V14.8292Z" fill="#161616"/>
<path d="M17.1709 15.6097H15.2197V16.3902H17.1709V15.6097Z" fill="#161616"/>
<path d="M15.2193 16.3903H13.2681V17.1707H15.2193V16.3903Z" fill="#161616"/>
<path d="M13.2681 17.1708H11.3169V17.9513H13.2681V17.1708Z" fill="#161616"/>
<path d="M11.3169 17.9512H9.36572V18.7317H11.3169V17.9512Z" fill="#161616"/>
<path d="M9.36577 18.7317H7.41455V19.5122H9.36577V18.7317Z" fill="#161616"/>
<path d="M18.3414 15.2195H16.3901V18.3414H18.3414V15.2195Z" fill="#161616"/>
<path d="M20.2925 17.9512H18.3413V21.0731H20.2925V17.9512Z" fill="#161616"/>
<path d="M22.2437 17.9512H20.2925V19.9024H22.2437V17.9512Z" fill="#161616"/>
<path d="M22.2437 8.19507H20.2925V10.1463H22.2437V8.19507Z" fill="#161616"/>
<path d="M12.4878 10.1464H10.5366V12.0976H12.4878V10.1464Z" fill="#161616"/>
<path d="M22.2437 10.1464H20.2925V12.0976H22.2437V10.1464Z" fill="#161616"/>
<path d="M12.4878 12.0975H10.5366V14.0488H12.4878V12.0975Z" fill="#161616"/>
<path d="M22.2437 12.0975H20.2925V14.0488H22.2437V12.0975Z" fill="#161616"/>
<path d="M12.4878 14.0488H10.5366V16H12.4878V14.0488Z" fill="#161616"/>
<path d="M22.2437 14.0488H20.2925V16H22.2437V14.0488Z" fill="#161616"/>
<path d="M12.4878 16H10.5366V17.9512H12.4878V16Z" fill="#161616"/>
<path d="M22.2437 16H20.2925V17.9512H22.2437V16Z" fill="#161616"/>
<path d="M12.4878 17.9512H10.5366V19.9024H12.4878V17.9512Z" fill="#161616"/>
<path d="M22.2437 17.9512H20.2925V19.9024H22.2437V17.9512Z" fill="#161616"/>
<path d="M12.4878 19.9025H10.5366V21.8537H12.4878V19.9025Z" fill="#161616"/>
<path d="M22.2437 19.9025H20.2925V21.8537H22.2437V19.9025Z" fill="#161616"/>
<path d="M12.4878 21.8536H10.5366V23.8049H12.4878V21.8536Z" fill="#161616"/>
<path d="M22.2437 21.8536H20.2925V23.8049H22.2437V21.8536Z" fill="#161616"/>
</g>
<defs>
<clipPath id="clip0_4230_31222">
<rect width="32" height="32" fill="white"/>
</clipPath>
</defs>
</svg>
\ No newline at end of file
<svg width="33" height="33" viewBox="0 0 33 33" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M28.2075 28.286C26.717 29.7768 24.9423 30.952 22.9891 31.7415C21.0359 32.5311 18.944 32.9189 16.8381 32.8819C14.7453 32.9231 12.6661 32.5365 10.7276 31.7456C8.78899 30.9547 7.03174 29.7762 5.56318 28.282C4.06005 26.816 2.8745 25.0554 2.08041 23.1102C1.28633 21.165 0.900735 19.0767 0.947671 16.9757C0.947671 12.3784 2.4888 8.54785 5.57105 5.48391C7.04055 3.99018 8.79861 2.81224 10.7378 2.02204C12.6771 1.23183 14.7568 0.84596 16.8499 0.887986C18.9554 0.852257 21.0466 1.24107 22.9991 2.03129C24.9516 2.82151 26.7255 3.997 28.2154 5.48785C31.3659 8.55443 32.9411 12.3863 32.9411 16.9836C32.981 19.0938 32.5805 21.1891 31.7654 23.1353C30.9502 25.0816 29.7384 26.8359 28.2075 28.286Z" fill="#0C1510"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M25.5245 26.1429V7.85718L11.5798 7.85718V11.1225H8.31445V22.8776H11.5798V26.1429H25.5245ZM22.2975 11.0842H14.2303V14.3111H22.2975V11.0842ZM14.2303 20.2271H22.2975V23.454H14.2303V20.2272H11.0034V14.3113H14.2303V20.2271Z" fill="#05FC99"/>
</svg>
\ No newline at end of file
...@@ -33,6 +33,7 @@ ...@@ -33,6 +33,7 @@
</div> </div>
</template> </template>
<div class="chart-box" id="chart-box-2"></div> <div class="chart-box" id="chart-box-2"></div>
<!-- <NoData v-show="currentType"></NoData> -->
</chart-box> </chart-box>
</template> </template>
<script setup lang="tsx"> <script setup lang="tsx">
...@@ -43,6 +44,7 @@ import RadioGroup from '@/components/RadioGroup.vue'; ...@@ -43,6 +44,7 @@ import RadioGroup from '@/components/RadioGroup.vue';
import { useI18n } from 'vue-i18n'; import { useI18n } from 'vue-i18n';
import useEchartNum from '@/hooks/useEchartNum'; import useEchartNum from '@/hooks/useEchartNum';
import TimeFilter from './TimeFilter.vue'; import TimeFilter from './TimeFilter.vue';
import NoData from './noData.vue';
import { import {
blueGradientLight, blueGradientLight,
greenGradientLight, greenGradientLight,
...@@ -75,6 +77,7 @@ let myChart: any = null; ...@@ -75,6 +77,7 @@ let myChart: any = null;
const WatchEcharts = useWatchEcharts(); const WatchEcharts = useWatchEcharts();
// 当前链 // 当前链
const chain = useChain(); const chain = useChain();
const currentType = ref(true);
const formData = reactive({ const formData = reactive({
value1: '', value1: '',
value2: '', value2: '',
...@@ -129,6 +132,11 @@ const onInit = () => { ...@@ -129,6 +132,11 @@ const onInit = () => {
initChart('chart-box-2', props.theme); initChart('chart-box-2', props.theme);
}; };
const getData = (timestamp: number) => { const getData = (timestamp: number) => {
try {
if (!props.tb) {
return;
}
currentType.value = false;
ShowLoading(myChart); ShowLoading(myChart);
request request
.get(`/v1${chain.value}/analysis/getBuyAndSellNumberV1`, { .get(`/v1${chain.value}/analysis/getBuyAndSellNumberV1`, {
...@@ -140,6 +148,7 @@ const getData = (timestamp: number) => { ...@@ -140,6 +148,7 @@ const getData = (timestamp: number) => {
}) })
.then((res: any) => { .then((res: any) => {
hideLoading(myChart); hideLoading(myChart);
if (res) {
formData.value1 = res?.count?.buy; formData.value1 = res?.count?.buy;
formData.value2 = res?.count?.sell; formData.value2 = res?.count?.sell;
// 先计算出双轴各自的最大值 // 先计算出双轴各自的最大值
...@@ -149,7 +158,14 @@ const getData = (timestamp: number) => { ...@@ -149,7 +158,14 @@ const getData = (timestamp: number) => {
getMaxNum(res.list.sell, 'twoMax'); getMaxNum(res.list.sell, 'twoMax');
resultList.list = res.list; resultList.list = res.list;
renderChart(res.list); renderChart(res.list);
} else {
// 无数据
currentType.value = true;
}
}); });
} catch (e) {
console.log(e);
}
}; };
const renderChart = (list) => { const renderChart = (list) => {
let options = { let options = {
......
...@@ -124,9 +124,12 @@ const initChart = (id: string, theme: string, height: string = '212px') => { ...@@ -124,9 +124,12 @@ const initChart = (id: string, theme: string, height: string = '212px') => {
myChart = echarts.init(chartDom, theme); myChart = echarts.init(chartDom, theme);
}; };
const getData = (timestamp: number) => { const getData = (timestamp: number) => {
if (!props.token) {
return;
}
ShowLoading(myChart); ShowLoading(myChart);
request request
.get(`/v1${chain.value}/analysis/getDiscordData`, { .get(`/v1${chain.value}/analysis/getDiscordDataV1`, {
params: { params: {
tag: props.token, tag: props.token,
date: date.value, date: date.value,
...@@ -135,6 +138,7 @@ const getData = (timestamp: number) => { ...@@ -135,6 +138,7 @@ const getData = (timestamp: number) => {
}) })
.then((res: any) => { .then((res: any) => {
hideLoading(myChart); hideLoading(myChart);
if (res) {
formData.value1 = res?.count?.din; formData.value1 = res?.count?.din;
formData.value2 = res?.count?.diol; formData.value2 = res?.count?.diol;
// 先计算出双轴各自的最大值 // 先计算出双轴各自的最大值
...@@ -144,6 +148,7 @@ const getData = (timestamp: number) => { ...@@ -144,6 +148,7 @@ const getData = (timestamp: number) => {
getMaxNum(res.list.diol, 'twoMax'); getMaxNum(res.list.diol, 'twoMax');
resultList.list = res.list; resultList.list = res.list;
renderChart(res.list); renderChart(res.list);
}
}); });
}; };
const renderChart = (list) => { const renderChart = (list) => {
......
...@@ -136,6 +136,9 @@ watch( ...@@ -136,6 +136,9 @@ watch(
} }
); );
const getData = (timestamp: number) => { const getData = (timestamp: number) => {
if (!props.tb) {
return;
}
ShowLoading(myChart); ShowLoading(myChart);
request request
.get(`/v1${chain.value}/analysis/getNhDataV1`, { .get(`/v1${chain.value}/analysis/getNhDataV1`, {
...@@ -147,6 +150,7 @@ const getData = (timestamp: number) => { ...@@ -147,6 +150,7 @@ const getData = (timestamp: number) => {
}) })
.then((res: any) => { .then((res: any) => {
hideLoading(myChart); hideLoading(myChart);
if (res) {
formData.value1 = res?.count?.total_nh; formData.value1 = res?.count?.total_nh;
formData.value2 = res?.count?.add_24; formData.value2 = res?.count?.add_24;
formData.value3 = res?.count?.cl_24; formData.value3 = res?.count?.cl_24;
...@@ -159,6 +163,7 @@ const getData = (timestamp: number) => { ...@@ -159,6 +163,7 @@ const getData = (timestamp: number) => {
getMaxNum(res.list.new_nh, 'threeMax'); getMaxNum(res.list.new_nh, 'threeMax');
resultList.list = res.list; resultList.list = res.list;
renderChart(res.list); renderChart(res.list);
}
}); });
}; };
const renderChart = (list) => { const renderChart = (list) => {
......
...@@ -134,6 +134,9 @@ const onInit = () => { ...@@ -134,6 +134,9 @@ const onInit = () => {
initChart('chart-box-3', props.theme); initChart('chart-box-3', props.theme);
}; };
const getData = (timestamp: number) => { const getData = (timestamp: number) => {
if (!props.tb) {
return;
}
ShowLoading(myChart); ShowLoading(myChart);
request request
.get(`/v1${chain.value}/analysis/getTurnoverV1`, { .get(`/v1${chain.value}/analysis/getTurnoverV1`, {
...@@ -145,6 +148,7 @@ const getData = (timestamp: number) => { ...@@ -145,6 +148,7 @@ const getData = (timestamp: number) => {
}) })
.then((res: any) => { .then((res: any) => {
hideLoading(myChart); hideLoading(myChart);
if (res) {
formData.value1 = res?.count?.total; formData.value1 = res?.count?.total;
formData.value2 = res?.count?.buy; formData.value2 = res?.count?.buy;
formData.value3 = res?.count?.sell; formData.value3 = res?.count?.sell;
...@@ -166,6 +170,7 @@ const getData = (timestamp: number) => { ...@@ -166,6 +170,7 @@ const getData = (timestamp: number) => {
// 实例化 // 实例化
resultList.list = res.list; resultList.list = res.list;
renderChart(res.list); renderChart(res.list);
}
}); });
}; };
const renderChart = (list) => { const renderChart = (list) => {
......
...@@ -120,6 +120,9 @@ const initChart = (id: string, theme: string, height: string = '212px') => { ...@@ -120,6 +120,9 @@ const initChart = (id: string, theme: string, height: string = '212px') => {
myChart = echarts.init(chartDom, theme); myChart = echarts.init(chartDom, theme);
}; };
const getData = (timestamp: number) => { const getData = (timestamp: number) => {
if (!props.tb) {
return;
}
ShowLoading(myChart); ShowLoading(myChart);
request request
.get(`/v1${chain.value}/analysis/getUbDataV1`, { .get(`/v1${chain.value}/analysis/getUbDataV1`, {
...@@ -130,6 +133,8 @@ const getData = (timestamp: number) => { ...@@ -130,6 +133,8 @@ const getData = (timestamp: number) => {
}, },
}) })
.then((res: any) => { .then((res: any) => {
hideLoading(myChart);
if (res) {
if (typeof res.list.date[0] === 'number') { if (typeof res.list.date[0] === 'number') {
res.list.date.forEach((item, index) => { res.list.date.forEach((item, index) => {
let date = new Date(item * 1000); //时间戳为10位需*1000,时间戳为13位的话不需乘1000 let date = new Date(item * 1000); //时间戳为10位需*1000,时间戳为13位的话不需乘1000
...@@ -145,13 +150,13 @@ const getData = (timestamp: number) => { ...@@ -145,13 +150,13 @@ const getData = (timestamp: number) => {
res.list.date[index] = Y + M + D + h + m + s; res.list.date[index] = Y + M + D + h + m + s;
}); });
} }
hideLoading(myChart);
formData.value1 = res?.count?.ub; formData.value1 = res?.count?.ub;
// 先计算出双轴各自的最大值 // 先计算出双轴各自的最大值
getMinNum(res.list.ub, 'oneMin'); getMinNum(res.list.ub, 'oneMin');
getMaxNum(res.list.ub, 'oneMax'); getMaxNum(res.list.ub, 'oneMax');
resultList.list = res.list; resultList.list = res.list;
renderChart(res.list); renderChart(res.list);
}
}) })
.catch((e) => { .catch((e) => {
hideLoading(myChart); hideLoading(myChart);
......
...@@ -124,6 +124,9 @@ const initChart = (id: string, theme: string, height: string = '212px') => { ...@@ -124,6 +124,9 @@ const initChart = (id: string, theme: string, height: string = '212px') => {
myChart = echarts.init(chartDom, theme); myChart = echarts.init(chartDom, theme);
}; };
const getData = (timestamp: number) => { const getData = (timestamp: number) => {
if (!props.token) {
return;
}
ShowLoading(myChart); ShowLoading(myChart);
request request
.get(`/v1${chain.value}/analysis/getTelegramDataV1`, { .get(`/v1${chain.value}/analysis/getTelegramDataV1`, {
...@@ -134,6 +137,7 @@ const getData = (timestamp: number) => { ...@@ -134,6 +137,7 @@ const getData = (timestamp: number) => {
}, },
}) })
.then((res: any) => { .then((res: any) => {
if (res) {
hideLoading(myChart); hideLoading(myChart);
formData.value1 = res?.count?.tgn; formData.value1 = res?.count?.tgn;
formData.value2 = res?.count?.tgol; formData.value2 = res?.count?.tgol;
...@@ -144,6 +148,7 @@ const getData = (timestamp: number) => { ...@@ -144,6 +148,7 @@ const getData = (timestamp: number) => {
getMaxNum(res.list.tgol, 'twoMax'); getMaxNum(res.list.tgol, 'twoMax');
resultList.list = res.list; resultList.list = res.list;
renderChart(res.list); renderChart(res.list);
}
}); });
}; };
const renderChart = (list) => { const renderChart = (list) => {
......
...@@ -136,6 +136,7 @@ const getData = () => { ...@@ -136,6 +136,7 @@ const getData = () => {
}) })
.then((res: any) => { .then((res: any) => {
hideLoading(myChart); hideLoading(myChart);
if (res) {
let buy_24h, sell_24h; let buy_24h, sell_24h;
if (res.count) { if (res.count) {
buy_24h = parseFloat(res.count.buy_24h).toFixed(2); buy_24h = parseFloat(res.count.buy_24h).toFixed(2);
...@@ -160,6 +161,7 @@ const getData = () => { ...@@ -160,6 +161,7 @@ const getData = () => {
getMaxNum(res.list.sell, 'twoMax'); getMaxNum(res.list.sell, 'twoMax');
resultList.list = res.list; resultList.list = res.list;
renderChart(res.list); renderChart(res.list);
}
}); });
}; };
const renderChart = (list) => { const renderChart = (list) => {
......
...@@ -123,6 +123,9 @@ const initChart = (id: string, theme: string, height: string = '212px') => { ...@@ -123,6 +123,9 @@ const initChart = (id: string, theme: string, height: string = '212px') => {
myChart = echarts.init(chartDom, theme); myChart = echarts.init(chartDom, theme);
}; };
const getData = (timestamp: number) => { const getData = (timestamp: number) => {
if (!props.token) {
return;
}
ShowLoading(myChart); ShowLoading(myChart);
request request
.get(`/v1${chain.value}/analysis/getTwitterV1`, { .get(`/v1${chain.value}/analysis/getTwitterV1`, {
...@@ -134,6 +137,7 @@ const getData = (timestamp: number) => { ...@@ -134,6 +137,7 @@ const getData = (timestamp: number) => {
}) })
.then((res: any) => { .then((res: any) => {
hideLoading(myChart); hideLoading(myChart);
if (res) {
formData.value1 = res?.count?.twt; formData.value1 = res?.count?.twt;
formData.value2 = res?.count?.twf; formData.value2 = res?.count?.twf;
// 先计算出双轴各自的最大值 // 先计算出双轴各自的最大值
...@@ -141,6 +145,7 @@ const getData = (timestamp: number) => { ...@@ -141,6 +145,7 @@ const getData = (timestamp: number) => {
getMaxNum(res.list.twn, 'oneMax'); getMaxNum(res.list.twn, 'oneMax');
resultList.list = res.list; resultList.list = res.list;
renderChart(res.list); renderChart(res.list);
}
}); });
}; };
const renderChart = (list) => { const renderChart = (list) => {
......
...@@ -131,7 +131,8 @@ watch( ...@@ -131,7 +131,8 @@ watch(
} }
); );
const route = useRoute(); const route = useRoute();
const tb = ref(route.params.tb + ''); const routeTb = route.params.tb;
const tb = ref('');
const currentPath = ref(route.params.chain + ''); const currentPath = ref(route.params.chain + '');
const chain = useChain(); const chain = useChain();
// token---接口得到 // token---接口得到
...@@ -157,7 +158,7 @@ onBeforeMount(() => { ...@@ -157,7 +158,7 @@ onBeforeMount(() => {
if (currentPath.value) { if (currentPath.value) {
chain.value = currentPath.value; chain.value = currentPath.value;
} }
let obj = WebS(tb.value); let obj = WebS(routeTb);
request request
.get(`/v1/${currentPath.value}/getConfig`, { .get(`/v1/${currentPath.value}/getConfig`, {
params: { params: {
...@@ -165,6 +166,16 @@ onBeforeMount(() => { ...@@ -165,6 +166,16 @@ onBeforeMount(() => {
}, },
}) })
.then((res: any) => { .then((res: any) => {
if (!res.is_token) {
tb.value =
res.pair[0] == 'd' ? res.pair.slice(1, res.pair.length) : res.pair;
} else {
tb.value =
res.tbname[0] == 'd'
? res.tbname.slice(1, res.tbname.length)
: res.tbname;
}
r24h.value = res.r24h; r24h.value = res.r24h;
token.value = res.token; token.value = res.token;
}); });
......
<template>
<div class="no-data">{{ $t('tooltip.currentTimeNoData') }}</div>
</template>
<script lang="ts" setup></script>
<style lang="less">
.no-data {
position: absolute;
}
</style>
...@@ -180,7 +180,7 @@ const getTokenList = () => { ...@@ -180,7 +180,7 @@ const getTokenList = () => {
// //
let obj = WebS(RemoveSpaces(keyword.value)); let obj = WebS(RemoveSpaces(keyword.value));
request request
.get(`/search`, { .get(`/searchV1`, {
params: { params: {
q: obj.token, q: obj.token,
type: obj.type, type: obj.type,
......
...@@ -120,8 +120,7 @@ const changeScrollBox = () => { ...@@ -120,8 +120,7 @@ const changeScrollBox = () => {
const getPublicToken = async () => { const getPublicToken = async () => {
try { try {
const result: any = await request.post( const result: any = await request.post(
`/v1${chain.value}/mainstream/scroll`, `/v1${chain.value}/mainstream/scroll`
{}
); );
let list: any = []; let list: any = [];
Object.keys(result).forEach((item: any, index: any) => { Object.keys(result).forEach((item: any, index: any) => {
......
...@@ -45,6 +45,7 @@ ...@@ -45,6 +45,7 @@
img { img {
width: 38px; width: 38px;
height: 38px; height: 38px;
border-radius: 50%;
} }
:not(:first-child) { :not(:first-child) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment