From 1f701c40ecc9a333a8f78486de640957ba946303 Mon Sep 17 00:00:00 2001 From: PeterAlbus Date: Sun, 18 Dec 2022 23:09:11 +0800 Subject: [PATCH] update css and update api of getting ip --- index.html | 5 ----- public/iconfont.ttf | Bin 0 -> 1780 bytes public/iconfont.woff | Bin 0 -> 1148 bytes public/iconfont.woff2 | Bin 0 -> 776 bytes src/App.vue | 4 ++++ src/assets/iconfont/iconfont.css | 6 +++--- src/views/Blog.vue | 11 ++++++++++- 7 files changed, 17 insertions(+), 9 deletions(-) create mode 100644 public/iconfont.ttf create mode 100644 public/iconfont.woff create mode 100644 public/iconfont.woff2 diff --git a/index.html b/index.html index 78996f6..bc648d2 100644 --- a/index.html +++ b/index.html @@ -7,11 +7,6 @@ - - PeterAlbus的博客 diff --git a/public/iconfont.ttf b/public/iconfont.ttf new file mode 100644 index 0000000000000000000000000000000000000000..b8b08a77d658d45b7d2913914bdcd787c5ae675a GIT binary patch literal 1780 zcmd^9&u<$=7=5#AJHd(5I1O>O;IMIGTMETaw=%50*az0$YGqZMhxqrAsRtl*)X0uy(!M>oQKa-^<R zedWaRpBVAAKg{RekwSm$^#agibcdlymL}(E*i@+{8|DY}*rdsL7>l?7?c&-CTNrbS zUK6L3-jDlB`B*shYLWSsN1cocG6EsR1_BW8A;^W_)V?M6u0M+3U-$2I+XbSaZH{%e|CP?f|r_{V|MJ|(u4wm??SI?a*0B_BYduVHDxLAuBN z`#pVs2N1IU|GSO$58!ci4E?i`Cq>`?3-X@xym~$T6W+8mZ|_CC$YAVje#x4eJR#0n zGuork$uVtiHj&Yuj^-|C&x&*^w`2up6QQB#|@B^WyizeIu#O8rmX<5q7_;1IZPT)tiZ{XxVXCQC; zNyTdz!ea{S85E}J{MX1(M#D{j*pjGK1#hEr@0 z+`+hQw>x#WX`aa}4ybjzX}1SyIybA9=T*!~+ijR@%x61}Yqr|%b-UzcYM$3Rm(9v` zB%dj{4XmII8}jkAQHF^f?6R+;1Q$(I`n~snze#l!H{ft)`+?~3+1pgN(Vr^%S%H!2^aFeT9tkGjdCR>}C8boWVKAV*|#3p~Bj9q7*64e>h`m}G!Hg$gkN!jqx literal 0 HcmV?d00001 diff --git a/public/iconfont.woff b/public/iconfont.woff new file mode 100644 index 0000000000000000000000000000000000000000..c595d554c2f9eeab694dc47d1b3cecdb89e944c7 GIT binary patch literal 1148 zcmXT-cXMN4WB>w|8U}6<&GrSt2eDCsdvK@|0|O%mP}CZTLlnAItNerYjeue{%aYji75;WOml#IeIPcI zO<${@0Tcv^odNP?fLMjSiMcr=x1<6n_5#QU+06kWa`KZw>OKIOY+zi%z>u3*0koIt z2avA-!i)k8ae0ZksSFIv5qi)}U(H$LSh5M1RJB-hU&()6C0V2F`wGlkjbZz*4)9wpk~eL z!2r^mn3yo1K;& zt7gk)Zf6B%=EXZU?wmPs28aFPjT2=iuUNn#KY7!lNph1{F6fkYtj?K&s}~7L z?_SU`!(#QsnL8JBO0AwaLuWC^>`Ak97kAE7GHSoLV)f!~ch^bR^@GmEc*n$?j(PXq zR6_ewe|S*q$G`WpC#~}7n&iXg;PrL>stHS$Y+9m{yh~w5+Ot=$m{vXd$ecCd?{+V- zMWNFSd5(N~96GILvC7B%&K51<#gkZ)d!|G+FA31Nz!Jj5P_$lC1nduBoG?6UkLp?X z@sC-&%QhX?DrJms7I{h#037%6k&X+i>1ClkZBO&sfB>OtXq;J_gUCWlEA8AS~k z8EiwC_*sAv4Z>gmjD2t#XJQC~3NisjxPXv>;Xhaf(5%*pwt0sf1X|}GoWL?g!)u92 zW|*di(8)hjJXQuQSiXRL^E3Bt*Q4}3u2}l^O%Q&<@iL>h%cJs!GqdZSTQ~FX?VBlk zlHuKk_V!P^pX=Q`th#xU_KpLK3#R^>yurUtY~8}nc?ENStuA2JuMp1LlzfbDUj5NE zt>uaQ+kXhGd%!mTQ0S}pLv}x-ceJtp;kdr?KbN_|$91i zEO}Sa_cck_|Lsbfi)QgNLrR;^1xmdPxt%<_X7>wA@s%fLx$su5etcuanOR%;VmFlN zz21I%;tR(NA)bVVhONnSoD~K(>M@m^ zi&5Tn=}@JWZ=Y`b>%h_y?Yz^oT1=)yo%KxG^oZZ)&f1kNSD1CWSMk(t*||u#KH$uR uKa4jf=ZAyRb5a9?9^0FS&WW89XEvH^8mkMplolI(4w95$F#N!3!2kgLjIcid literal 0 HcmV?d00001 diff --git a/public/iconfont.woff2 b/public/iconfont.woff2 new file mode 100644 index 0000000000000000000000000000000000000000..4859e979bc39eb3674ed003956a3ecccf8c650e1 GIT binary patch literal 776 zcmV+j1NZ!QPew8T0RR9100RgB3jhEB00#5`00OxH0RR9100000000000000000000 z0000SR0d!Gf^Z6fXn|${HUcCA2nz-P1Rw>3X9qVMDF(ft_$*WY4Psd(^=l}P| zx6i%zi-6h8VoZ~dUlwkX1#`E&lAH`fBkqJNy0nmo3)EH5!MW)D@)d?VC@zVe)3nC- z(D!SaGeTRAr7u6R=BuHnDc}M$$OZ;7x`Pd(q=~C}8eg;C>rM!9SG)5{+R2bzx-)P+I!= z74USd;AqxBU&g9}?ma5p1-*gUO;iTWT_VG9GU38YAzZmDg{LgFtGxtS5+&sUq}nAA z{w_fAbsL($M-0Px3m2ij!Ii)N@YE4L+j&Wi(IMf*#ygAzFn!ZC&Q;nG-8J%#a-llk z9?24^2MTiY%aJK+NK?#Mb@{=X&A|leD%1(5p`z%pM7o4GyEA3m29uXJ(e#qesIG>F z2)eMLJ1`;urrqc?TtK#qpSOm14#fq5jD3(;L`okN$dwN;rZNp`xRYI0xp)I>Y#cCw zNLU5xq(Mlb(1E4qK@xOh>zEqhH!$)X(gZ5&tglc%Z42PZR;zFlH9k{RL{Hpy9U6v0 G0000{!(na! literal 0 HcmV?d00001 diff --git a/src/App.vue b/src/App.vue index 4f68687..f2d2333 100644 --- a/src/App.vue +++ b/src/App.vue @@ -180,4 +180,8 @@ a { transform: scale(0.5); } } + +#app .music-container .aplayer .aplayer-body{ + bottom: 120px; +} diff --git a/src/assets/iconfont/iconfont.css b/src/assets/iconfont/iconfont.css index d82f8b1..a669300 100644 --- a/src/assets/iconfont/iconfont.css +++ b/src/assets/iconfont/iconfont.css @@ -1,8 +1,8 @@ @font-face { font-family: "iconfont"; /* Project id 2701288 */ - src: url('iconfont.woff2?t=1627292686407') format('woff2'), - url('iconfont.woff?t=1627292686407') format('woff'), - url('iconfont.ttf?t=1627292686407') format('truetype'); + src: url('./iconfont.woff2?t=1627292686407') format('woff2'), + url('./iconfont.woff?t=1627292686407') format('woff'), + url('./iconfont.ttf?t=1627292686407') format('truetype'); } .iconfont { diff --git a/src/views/Blog.vue b/src/views/Blog.vue index 318dada..52bc467 100644 --- a/src/views/Blog.vue +++ b/src/views/Blog.vue @@ -97,7 +97,16 @@ const getBlog=()=>{ .then(res=>{ blog.value=res.data; blog.value.blogViews+=1; - axios.get('/visitBlog?blogId='+blog.value.blogId+"&ipAddress="+localStorage.getItem('ipAddress')); + if(!localStorage.getItem('ipAddress')||localStorage.getItem('ipAddress')=='127.0.0.1') { + axios.get('https://ip.useragentinfo.com/json') + .then((res)=>{ + localStorage.setItem('ipAddress',res.data.ip||'127.0.0.1') + axios.get('/visitBlog?blogId='+blog.value.blogId+"&ipAddress="+localStorage.getItem('ipAddress')); + }) + } + else { + axios.get('/visitBlog?blogId='+blog.value.blogId+"&ipAddress="+localStorage.getItem('ipAddress')); + } document.title = blog.value.blogTitle+'——PeterAlbus的博客' let meta:any=document.querySelector('meta[name="description"]') if(!meta)