From 0ecbb0dafa6a86377d95f6ffe7524a13a48050db Mon Sep 17 00:00:00 2001 From: zyx0814 Date: Mon, 11 Jul 2022 17:05:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E8=AF=A6=E6=83=85=E9=A1=B5?= =?UTF-8?q?=E5=90=8E=E9=80=80=E6=93=8D=E4=BD=9C=E4=BD=93=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dzz/pichome/template/pc/page/details.htm | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/dzz/pichome/template/pc/page/details.htm b/dzz/pichome/template/pc/page/details.htm index 065468b..894bab1 100644 --- a/dzz/pichome/template/pc/page/details.htm +++ b/dzz/pichome/template/pc/page/details.htm @@ -340,6 +340,7 @@ el: '#dzzoffice', data() { return { + DocumentBack:true, DocumentAdminId:'$_G[adminid]', rid:'', HtmlLoading:true, @@ -756,6 +757,7 @@ }, handleCarouselArrow(type){//图片箭头 var self = this; + this.DocumentBack = false; if(type == 'left'){ if(this.ImgParam.index == 1){ self.$message.error('已经是第一张了!'); @@ -1197,6 +1199,21 @@ self.ImgParam.iswait = false; self.HtmlLoading = false; }); + + window.onhashchange = function(){ + if(self.DocumentBack){ + var arr = (location.hash || "").replace(/^\?/,'').split("&"); + + if(arr.length){ + path=arr[0].replace("#","").split('=')[1]; + var index = self.rids.indexOf(path); + sessionStorage.setItem('detailrid',index); + } + document.location.reload(); + return false; + } + self.DocumentBack = true; + } },