|
@@ -292,8 +292,8 @@ new Vue({
|
|
|
this.getPageSnap()
|
|
|
this.goLinkActive()
|
|
|
this.ScenarioListFilter(6)
|
|
|
- this.backIntoView()
|
|
|
this.getSupplierInfoLanding()
|
|
|
+ this.backIntoView()
|
|
|
},
|
|
|
filters: {
|
|
|
textSubString(val, index) {
|
|
@@ -343,10 +343,13 @@ new Vue({
|
|
|
});
|
|
|
},
|
|
|
backIntoView() {
|
|
|
- if (location.search) {
|
|
|
- const id = location.search
|
|
|
- const to = document.getElementById(id.substring(1, id.length))
|
|
|
- to.scrollIntoView()
|
|
|
+ if (localStorage.getItem('activeLink')) {
|
|
|
+ const id = localStorage.getItem('activeLink')
|
|
|
+ this.H5link({
|
|
|
+ id: this.activeLinks.filter(e => e.href === id)[0].id,
|
|
|
+ href: id
|
|
|
+ })
|
|
|
+ localStorage.removeItem('activeLink')
|
|
|
}
|
|
|
},
|
|
|
// 底部切换
|
|
@@ -488,7 +491,7 @@ new Vue({
|
|
|
localStorage.removeItem('text_info_from')
|
|
|
}
|
|
|
localStorage.setItem('text_info_from', JSON.stringify(this.textContent))
|
|
|
- window.location.href = '/supplier-login/text_info.html'
|
|
|
+ window.open('/supplier-login/text_info.html')
|
|
|
},
|
|
|
goToIndex() {
|
|
|
window.location.href = '/'
|
|
@@ -504,9 +507,6 @@ new Vue({
|
|
|
callback: action => {}
|
|
|
});
|
|
|
},
|
|
|
- scrollintoview() {
|
|
|
- document.getElementById('thirdPage').scrollIntoView()
|
|
|
- },
|
|
|
// 截取运营产品
|
|
|
ScenarioListFilter(index) {
|
|
|
this.filterH5ScenarioList = this.H5ScenarioList.filter(item => item.id <= index)
|