From faeb1f9ae14750e5a3fe3da0b98193b85523fea5 Mon Sep 17 00:00:00 2001 From: pplokijuhyg <1162963624@qq.com> Date: Thu, 26 Dec 2019 10:00:24 +0800 Subject: [PATCH] =?UTF-8?q?=E7=99=BB=E9=99=86=E8=B7=B3=E8=BD=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/IndexFind.vue | 4 ++-- src/PersonalHomepage.vue | 50 ++++++++++++++++++++++++++------------- src/assets/home.png | Bin 0 -> 4259 bytes src/assets/login.gif | Bin 0 -> 4021 bytes src/index.vue | 11 ++++++--- src/loginpwd.vue | 2 +- src/router.js | 5 +++- 7 files changed, 49 insertions(+), 23 deletions(-) create mode 100644 src/assets/home.png create mode 100644 src/assets/login.gif diff --git a/src/IndexFind.vue b/src/IndexFind.vue index 882f731..07f194c 100644 --- a/src/IndexFind.vue +++ b/src/IndexFind.vue @@ -123,7 +123,7 @@ export default { t.list = res.data.data; window.console.log(t.list.length, "hfihaifohog"); if (t.list.length < 5) { - t.text = "暂无数据"; + t.text = "暂无相关数据"; } window.$(window).scroll(() => { var windowH = window.$(window).height(); //设备可见区域高度 @@ -139,7 +139,7 @@ export default { }); } else { window.console.log("errir"); - t.text = "暂无数据"; + t.text = "暂无相关数据"; } }); }, diff --git a/src/PersonalHomepage.vue b/src/PersonalHomepage.vue index 2c36303..d372017 100644 --- a/src/PersonalHomepage.vue +++ b/src/PersonalHomepage.vue @@ -3,7 +3,10 @@
-

{{username}}

+

+ {{username}} + +

@@ -190,11 +192,13 @@ import follow from "./components/PersonafFollow"; // import follows from "./components/PersonafFollows" import answer from "./components/PersonalAnswer"; +import home from "./assets/home.png" // import { log } from 'util'; export default { name: "Personal-homepage", data() { return { + home, userimg: "", username: "", myfollow: "", @@ -220,7 +224,12 @@ export default { path: "/articledetail?id=" + b }); }, - getlist() { + gohome(){ + this.$router.push({ + path:"/" + }) + }, + getlist(types) { if (this.lock) { return; } @@ -233,19 +242,21 @@ export default { page: this.page }) .then(res => { + this.lock = false; + window.console.log(res); if (res.data.code == 200) { - if (res.data.data.length == 0) { + if (types != this.types) { // alert(1) return; } this.dynamiclist = res.data.data; - this.lock = false; + window.console.log(this.lock); } }); }, - getlists() { + getlists(types) { if (this.lock) { return; } @@ -257,7 +268,9 @@ export default { page: this.page }) .then(res => { - window.console.log(res); + this.lock = false; + + if (types != this.types) window.console.log(res); if (res.data.code == 200) { // if(res.data.data.length == 0){ @@ -266,14 +279,14 @@ export default { // alert(1) this.dynamiclist = res.data.data; - this.lock = false; + window.console.log(this.lock); } }); } }, mounted() { - document.title= "个人中心" - + document.title = "个人中心"; + if (localStorage.getItem("token") == "") { this.$router.push({ path: "/login" }); } @@ -313,22 +326,27 @@ export default { // alert(2); window.console.log(1); if (this.types == 5) { - t.getlists(0); + t.getlists(this.types); } else { - t.getlist(); + t.getlist(this.types); } } }); }, watch: { types() { + // window.console.log(a,b) + // if(this.lock == true){ + // this.types = b + // return ; + // } this.page = 0; this.dynamiclist = []; - this.lock = false; + // this.lock = false; if (this.types == 5) { - this.getlists(0); + this.getlists(this.types); } else { - this.getlist(); + this.getlist(this.types); } } }, diff --git a/src/assets/home.png b/src/assets/home.png new file mode 100644 index 0000000000000000000000000000000000000000..9f9bd33a8dc50497293cade135b12b07281a21b5 GIT binary patch literal 4259 zcmd5mJvqw@7Sub6IoNXY-On!Axj2t))0}Mn6YMOOh_YZ zk(4#tj1rUZ9b$M-@ABvG`u+Q!>pJH?*LBWw-}m#mKhNj6pLjD9LvEN53;+ObVy| z_@YOUt$=BLo*XhcvwDqdxxNwSpFgIl$=vySj+Q$|4;$GXtZAoB%v@C~0Ql7^p@d!plD3hJ^sGW86-s z!5Bd$?~TUF0HE$0TTRk=Ku6uev&731i2NKBea#RIb6Q$?v_Trs`TxV0hW6gwN5Df= z;CX27u;Zu*v~gO5La^8oOC+H4F)f2udy|qhJ4?dNy&KFDk*>r$)YaDhq@KQX@7D5@ z1S26ZXM?I^zUga{#t!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KCeC_wHn-axrbsIF(2Rh}SWO&yTPL7}Bb%;JM6EA={YolukL2zU@zplW=JmQ zJo*k*Uw5sttDF-C{*zg?F06@f-F066)Bl}WZ?_}yznOuKm3!|bSm!+TW~)59(%72V zSmwH|xYI2(_H3_w>6fw~T(d?rpc4r zDAqMgnIDig?$fvdfE@Vl#-bxbH1r1Ii&l8t!-HZchumIk0g*f)DK2~B;oyu8fZ%%%KUfH*pd zanIf98BIgxglV3C=IAG-{GKn^67^jiRtPfH~h z8Z5xGZht+Zq8>c7x=F{YRapU%4fRB$%KsG?;p{bAs=61h*?$AT%UIt8Q?2I`^-mY7 B-?{(* literal 0 HcmV?d00001 diff --git a/src/assets/login.gif b/src/assets/login.gif new file mode 100644 index 0000000000000000000000000000000000000000..6b29a221bbf7e74fee29898ff2b35005233b6384 GIT binary patch literal 4021 zcmd5;cT`j9wm%RcbRtba&=86NfslX*C<+n~1e8Q(bZl1!;sh0l5EZ?1-_-=9*yz0^ zgp$x9bdb=55Tq$h>4c6BO+i8B9=M~ir9SS;4U!a{O#^7!~TpU=<9$=TT07#bRCX=(ZLa`KM2xmX?xqN~)`?TVG#aU0toM zt?laSDl04N?(XjB=$M_Iotv9$Zf@@F?aj){YHx3!oSbAbnKd;vadB~*o14J@k4t@1 z;)IRMDQhcd8;pS=L;yquE}e05hGSjHuHgO95kHcv+f@P?{wv`(4=)SELKO!A_i(pB zoZjzb=tQz65IyYf_z+IrIpN}V=c=2TJL1S;_#r=YKTnb;f$R$R^StKeYwl-(aCP_o zm0%7&Z!Mz`@NE_HRSSgG)(7}jOlxl+0(`%LiM|`!ct8ArnE~3w$k@zG4~{WJo1zR& zQD`H5w28T~p*aQv|MNnC(R|!5o8z&zf5rmeED%I8nPiSa-MV$l;Fghrx6f}Vw3(S1 z$`FIXVDv!^ec#(&WLH0ZFJFzX9yL5p$!bTQu?asrZH<3uyF~|25*Qgv@bS1waJTjG_JnVzZSL`7Ea)Hl`_tC_$5=2wv_*kn zP+P_QOR>K$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