diff --git a/pages/index/index.vue b/pages/index/index.vue index df335a3..bcf6c8e 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -15,7 +15,7 @@ - + @@ -88,7 +88,11 @@ } else if (item.position.indexOf("banner") !=-1) { this.swiperList.push(item.uploadPath) } else if (item.position.indexOf("bottom") !=-1) { - this.sceneList.push(item.uploadPath) + const obj = { + uploadPath:item.uploadPath, + isOpen:item.status + } + this.sceneList.push(obj) } }) @@ -96,7 +100,7 @@ }, navClickHandler(item) { uni.navigateTo({ - url: '/subpkg/list/list' + url: '/subpkg/list/list?isOpen='+item.isOpen }) }, checkLogin() { diff --git a/subpkg/list/list.vue b/subpkg/list/list.vue index ad91da6..51ccced 100644 --- a/subpkg/list/list.vue +++ b/subpkg/list/list.vue @@ -45,6 +45,7 @@ return { queryObj:{ name:"", + isOpen:0, pageNum:1, pageSize:10 }, @@ -57,7 +58,8 @@ sceneList: [] }; }, - onLoad() { + onLoad(options) { + this.queryObj.isOpen = options.isOpen this.getSwiperList(); this.getSceneList() },