@@ -81,6 +88,7 @@ export default {
},
data () {
return {
+ areaList: [],
changePage: 1,
typeList: [],
dynamicList: [],
@@ -93,6 +101,7 @@ export default {
newsDirectoriesId: '',
newsDirectoriesParentId: 'f497904b-7727-4832-891c-604c36ae4167'
},
+ area: '',
url: common.url,
isLoading: false
}
@@ -106,6 +115,25 @@ export default {
}
},
methods: {
+ changeArea: function (area, lv) {
+ this.page.page = 1
+ this.changePage = 1
+ this.area = area
+ if (area) {
+ var level = 'area' + (parseInt(lv) + 1)
+ this.$set(this.page, level, area)
+ } else {
+ this.area = ''
+ this.page = {
+ page: 1,
+ rows: 8,
+ totalPage: 1,
+ newsDirectoriesId: '',
+ newsDirectoriesParentId: 'f497904b-7727-4832-891c-604c36ae4167'
+ }
+ }
+ this.getNews()
+ },
doJumpPage: function () {
this.page.page = this.changePage
this.getNews()
@@ -156,11 +184,18 @@ export default {
this.page.newsDirectoriesId = ''
}
this.getNews()
+ },
+ getAreaList: function () {
+ var self = this
+ axios.get(self.url + 'usercenter/app/dataarea/listareabyparentidrelease/640675').then(function (res) {
+ self.areaList = res.data
+ })
}
},
mounted () {
this.getNews()
this.getTypeList()
+ this.getAreaList()
}
}
@@ -180,10 +215,12 @@ export default {
background #f0f0f0
.type-container
width 1200px
- margin 0 auto
+ margin 0 auto 10px
overflow hidden
font-size 14px
color #565656
+ &:last-child
+ margin-bottom 0
span
float left
line-height 30px
diff --git a/src/pages/CultureVenue/CultureVenue.vue b/src/pages/CultureVenue/CultureVenue.vue
index db60da5..f42f550 100644
--- a/src/pages/CultureVenue/CultureVenue.vue
+++ b/src/pages/CultureVenue/CultureVenue.vue
@@ -17,7 +17,7 @@
选择区域>
-
+