diff --git a/src/components/hzwlComponents/phone/PhoneScroll.vue b/src/components/hzwlComponents/phone/PhoneScroll.vue
index 0d83b6446..bb47a19bb 100644
--- a/src/components/hzwlComponents/phone/PhoneScroll.vue
+++ b/src/components/hzwlComponents/phone/PhoneScroll.vue
@@ -85,9 +85,7 @@ export default {
this.bs.finishPullUp()
})
- this.bs.on('scroll', (x, y ,z) => {
- console.log(x,y,z)
- })
+ this.bs.on('scroll', ({x, y}) => { })
} else {
this.bs.refresh()
diff --git a/src/pages/phone/domesticStand/index.vue b/src/pages/phone/domesticStand/index.vue
index 50e2138e5..5e83ba1c0 100644
--- a/src/pages/phone/domesticStand/index.vue
+++ b/src/pages/phone/domesticStand/index.vue
@@ -127,23 +127,54 @@ export default {
lawsMap:{},
}
},
+ beforeRouteEnter (to, from, next) {
+ next(vm => {
+ // 首页进入 重新加载
+ if (from.name === 'phoneHome') {
+ switch (to.query.standType) {
+ case 'INLAND':
+ vm.titleName = '国内标准法规库'
+ break
+ case 'FOREIGN':
+ vm.titleName = '海外标准法规库'
+ break
+ case 'bussstand':
+ vm.titleName = '企业标准'
+ break
+ case 'POLICY':
+ vm.titleName = '国内外政策库'
+ break
+ }
+ vm.searchQuery.page = 1
+ vm.$refs.standardSystemPopupRef.popupShow = true
+ vm.$refs.scroll.scrollTo(0, 0)
+ vm.getData()
+ }
+ })
+ },
+ activated () {
+ console.log('activated')
+ },
+ deactivated () {
+ console.log('deactivated')
+ },
created() {
- switch (this.$route.query.standType) {
- case 'INLAND':
- this.titleName = '国内标准法规库'
- break
- case 'FOREIGN':
- this.titleName = '海外标准法规库'
- break
- case 'bussstand':
- this.titleName = '企业标准'
- break
- case 'POLICY':
- this.titleName = '国内外政策库'
- break
- }
+ // switch (this.$route.query.standType) {
+ // case 'INLAND':
+ // this.titleName = '国内标准法规库'
+ // break
+ // case 'FOREIGN':
+ // this.titleName = '海外标准法规库'
+ // break
+ // case 'bussstand':
+ // this.titleName = '企业标准'
+ // break
+ // case 'POLICY':
+ // this.titleName = '国内外政策库'
+ // break
+ // }
this.getDicTypeListCode()
- this.getData()
+ // this.getData()
},
methods: {
pullingUpHandler () {
@@ -269,14 +300,14 @@ export default {
line-height: 40px;
font-size: 18px;
- .left-title {
- margin-left: 10px;
- }
+ .left-title {
+ margin-left: 10px;
+ }
- .right-title {
- float: right;
- margin-right: 34%;
- }
+ .right-title {
+ float: right;
+ margin-right: 34%;
+ }
}
.van-search {
diff --git a/src/router/index.js b/src/router/index.js
index c4165e399..10807cecd 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -114,7 +114,10 @@ const routes = [
{
path: '/domesticStand',
name: 'domesticStand',
- component: () => import('@/pages/phone/domesticStand/index')
+ component: () => import('@/pages/phone/domesticStand/index'),
+ meta: {
+ keepAlive: true
+ }
/*
component: () =>
import('@/pages/phone/domesticStand')