修改按照账号区域查询数据
This commit is contained in:
parent
fa5461d937
commit
bbe4ac25b2
@ -3,12 +3,14 @@ const url = 'http://49.233.36.36:58099/xzszwhy/'
|
|||||||
const liveUrl = 'https://www.xzszwhy.cn/'
|
const liveUrl = 'https://www.xzszwhy.cn/'
|
||||||
const shopUrl = 'http://175.24.42.217:9016/xzshop/'
|
const shopUrl = 'http://175.24.42.217:9016/xzshop/'
|
||||||
/**
|
/**
|
||||||
* 基础区域编码
|
* 基础区域ID、编码
|
||||||
* 日喀则:540200000000
|
* 日喀则:640675, 540200000000
|
||||||
* 南木林县: 540221000000
|
* 南木林县: 640865, 540221000000
|
||||||
* @type {string}
|
|
||||||
*/
|
*/
|
||||||
const areaCode = '540221000000'
|
const area = {
|
||||||
|
areaId: '640675',
|
||||||
|
areaCode: '540200000000'
|
||||||
|
}
|
||||||
|
|
||||||
const phoneSafe = (phone) => {
|
const phoneSafe = (phone) => {
|
||||||
if (phone.length === 11) {
|
if (phone.length === 11) {
|
||||||
@ -21,6 +23,6 @@ export default {
|
|||||||
url,
|
url,
|
||||||
liveUrl,
|
liveUrl,
|
||||||
shopUrl,
|
shopUrl,
|
||||||
areaCode: areaCode,
|
area: area,
|
||||||
phoneSafe
|
phoneSafe
|
||||||
}
|
}
|
||||||
|
@ -90,7 +90,7 @@ export default {
|
|||||||
getNewsList: function (item) {
|
getNewsList: function (item) {
|
||||||
var self = this
|
var self = this
|
||||||
self.isLoading = true
|
self.isLoading = true
|
||||||
axios.get(self.url + 'app/newscontent/listpagenewscontentrelease', {
|
axios.get(self.url + 'app/newscontent/listpagenewscontentrelease/' + common.area.areaCode, {
|
||||||
params: {
|
params: {
|
||||||
page: 1,
|
page: 1,
|
||||||
rows: 8,
|
rows: 8,
|
||||||
|
@ -138,7 +138,7 @@ export default {
|
|||||||
},
|
},
|
||||||
getList: function () {
|
getList: function () {
|
||||||
var self = this
|
var self = this
|
||||||
axios.get(self.url + 'app/newscontent/listpagenewscontentrelease', {
|
axios.get(self.url + 'app/newscontent/listpagenewscontentrelease/' + common.area.areaCode, {
|
||||||
params: self.page
|
params: self.page
|
||||||
}).then(function (res) {
|
}).then(function (res) {
|
||||||
for (var i = 0; i < res.data.rows.length; i++) {
|
for (var i = 0; i < res.data.rows.length; i++) {
|
||||||
|
@ -10,14 +10,14 @@
|
|||||||
<div class="select-container">
|
<div class="select-container">
|
||||||
<div class="select-line">
|
<div class="select-line">
|
||||||
<span>活动类别> </span>
|
<span>活动类别> </span>
|
||||||
<button :class="{active: page.activityType == ''}" @click="loadAll">全部</button>
|
<button :class="{active: page.activityType === ''}" @click="loadAll">全部</button>
|
||||||
<button v-for="(btn,idx) in typeList" :key="idx" :class="{active: page.activityType == btn.dataId}" @click="changeTab(btn.dataId)">{{btn.dataName}}</button>
|
<button v-for="(btn,idx) in typeList" :key="idx" :class="{active: page.activityType === btn.dataId}" @click="changeTab(btn.dataId)">{{btn.dataName}}</button>
|
||||||
</div>
|
</div>
|
||||||
<div class="select-line">
|
<div class="select-line">
|
||||||
<span>选择区域></span>
|
<span>选择区域></span>
|
||||||
<div style="display: inline-block;width: 94%;">
|
<div style="display: inline-block;width: 94%;">
|
||||||
<button :class="{active: page.county == ''}" @click="changeArea(null)">全部</button>
|
<button :class="{active: area === defaultArea}" @click="changeArea(defaultArea)">全部</button>
|
||||||
<button v-for="(btn,idx) in areaList" :key="idx" @click="changeArea(btn.areaId, btn.areaLevel)" :class="{active: page.county == btn.areaId}">{{btn.areaName}}</button>
|
<button v-for="(btn,idx) in areaList" :key="btn.areaId" @click="changeArea(btn.areaCode)" :class="{active: area === btn.areaCode}">{{btn.areaName}}</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -33,12 +33,12 @@
|
|||||||
<h3 class="service-name">{{list.activityTitle}}</h3>
|
<h3 class="service-name">{{list.activityTitle}}</h3>
|
||||||
<p class="time">{{list.activityStartTime}}至{{list.activityEndTime}}</p>
|
<p class="time">{{list.activityStartTime}}至{{list.activityEndTime}}</p>
|
||||||
<p class="activity-location">{{list.activityAddress}}</p>
|
<p class="activity-location">{{list.activityAddress}}</p>
|
||||||
<button class="sign-btn" v-if="list.activityState == 3">报名中</button>
|
<button class="sign-btn" v-if="list.activityState === 3">报名中</button>
|
||||||
<button class="sign-btn" v-else-if="list.activityState == 4">报名人数已满</button>
|
<button class="sign-btn" v-else-if="list.activityState === 4">报名人数已满</button>
|
||||||
<button class="sign-btn" v-else-if="list.activityState == 5">报名结束</button>
|
<button class="sign-btn" v-else-if="list.activityState === 5">报名结束</button>
|
||||||
<button class="sign-btn" v-else-if="list.activityState == 6">进行中</button>
|
<button class="sign-btn" v-else-if="list.activityState === 6">进行中</button>
|
||||||
<button class="sign-btn" v-else-if="list.activityState == 7">进入查看</button>
|
<button class="sign-btn" v-else-if="list.activityState === 7">进入查看</button>
|
||||||
<button class="sign-btn" v-else-if="list.activityState == 99">已结束</button>
|
<button class="sign-btn" v-else-if="list.activityState === 99">已结束</button>
|
||||||
</div>
|
</div>
|
||||||
</router-link>
|
</router-link>
|
||||||
</ul>
|
</ul>
|
||||||
@ -51,18 +51,18 @@
|
|||||||
<span @click="paging(1)">首页</span>
|
<span @click="paging(1)">首页</span>
|
||||||
<span @click="paging(page.page - 1)" v-if="page.page > 1">上一页</span>
|
<span @click="paging(page.page - 1)" v-if="page.page > 1">上一页</span>
|
||||||
<ul v-if="page.totalPage > 0 && page.totalPage <= 5">
|
<ul v-if="page.totalPage > 0 && page.totalPage <= 5">
|
||||||
<li v-for="cpage in page.totalPage" :class="{'active': page.page == cpage}" :key="cpage" @click="paging(cpage)">
|
<li v-for="cpage in page.totalPage" :class="{'active': page.page === cpage}" :key="cpage" @click="paging(cpage)">
|
||||||
{{cpage}}
|
{{cpage}}
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<ul v-if="page.totalPage > 5">
|
<ul v-if="page.totalPage > 5">
|
||||||
<li v-if="page.page < 3" v-for="cpage in 5" :class="{'active': page.page == cpage}" :key="cpage" @click="paging(cpage)">
|
<li v-if="page.page < 3" v-for="cpage in 5" :class="{'active': page.page === cpage}" :key="cpage" @click="paging(cpage)">
|
||||||
{{cpage}}
|
{{cpage}}
|
||||||
</li>
|
</li>
|
||||||
<li v-if="page.page > page.totalPage - 2" v-for="cpage in 5" :class="{'active': page.page == (page.totalPage - 5 + cpage)}" :key="cpage" @click="paging(cpage)">
|
<li v-if="page.page > page.totalPage - 2" v-for="cpage in 5" :class="{'active': page.page === (page.totalPage - 5 + cpage)}" :key="cpage" @click="paging(cpage)">
|
||||||
{{page.totalPage - 5 + cpage}}
|
{{page.totalPage - 5 + cpage}}
|
||||||
</li>
|
</li>
|
||||||
<li v-if="page.page >= 3 && page.page <= page.totalPage - 2" v-for="cpage in 5" :class="{'active': page.page == (page.page - (3 - cpage))}" :key="cpage" @click="paging(cpage)">
|
<li v-if="page.page >= 3 && page.page <= page.totalPage - 2" v-for="cpage in 5" :class="{'active': page.page === (page.page - (3 - cpage))}" :key="cpage" @click="paging(cpage)">
|
||||||
{{page.page - (3 - cpage)}}
|
{{page.page - (3 - cpage)}}
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
@ -104,6 +104,8 @@ export default {
|
|||||||
activityType: '',
|
activityType: '',
|
||||||
county: ''
|
county: ''
|
||||||
},
|
},
|
||||||
|
defaultArea: common.area.areaCode,
|
||||||
|
area: common.area.areaCode,
|
||||||
url: common.url,
|
url: common.url,
|
||||||
isLoading: false
|
isLoading: false
|
||||||
}
|
}
|
||||||
@ -117,16 +119,10 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
changeArea: function (area, lv) {
|
changeArea: function (code) {
|
||||||
this.page.page = 1
|
this.page.page = 1
|
||||||
this.changePage = 1
|
this.changePage = 1
|
||||||
if (area) {
|
this.area = code
|
||||||
this.page.county = area
|
|
||||||
var areaLv = 'area' + (parseInt(lv) + 1)
|
|
||||||
console.log(areaLv)
|
|
||||||
} else {
|
|
||||||
this.page.county = ''
|
|
||||||
}
|
|
||||||
this.getActivityList()
|
this.getActivityList()
|
||||||
},
|
},
|
||||||
doJumpPage: function () {
|
doJumpPage: function () {
|
||||||
@ -147,7 +143,7 @@ export default {
|
|||||||
getActivityList: function () {
|
getActivityList: function () {
|
||||||
var self = this
|
var self = this
|
||||||
self.isLoading = true
|
self.isLoading = true
|
||||||
axios.get(self.url + 'app/activitylibrary/listpageactivitylibraryfornetrelease', {
|
axios.get(self.url + 'app/activitylibrary/listpageactivitylibraryfornetrelease/' + self.area, {
|
||||||
params: self.page
|
params: self.page
|
||||||
}).then(function (res) {
|
}).then(function (res) {
|
||||||
var result = res.data.rows
|
var result = res.data.rows
|
||||||
@ -170,7 +166,7 @@ export default {
|
|||||||
},
|
},
|
||||||
getAreaList: function () {
|
getAreaList: function () {
|
||||||
var self = this
|
var self = this
|
||||||
axios.get(self.url + 'app/area/listbyparentidrelease/640675').then(function (res) {
|
axios.get(self.url + 'app/area/listbyparentidrelease/' + common.area.areaId).then(function (res) {
|
||||||
self.areaList = res.data
|
self.areaList = res.data
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
@ -10,15 +10,15 @@
|
|||||||
<div class="type-container">
|
<div class="type-container">
|
||||||
<span>类型:</span>
|
<span>类型:</span>
|
||||||
<ul>
|
<ul>
|
||||||
<li :class="{active: page.newsDirectoriesId == ''}" @click="changeType(null)">全部</li>
|
<li :class="{active: page.newsDirectoriesId === ''}" @click="changeType(null)">全部</li>
|
||||||
<li v-for="(btn,idx) in typeList" :key="idx" :class="{active: page.newsDirectoriesId == btn.newsDirectoriesId}" @click="changeType(btn.newsDirectoriesId)">{{btn.directoriesName}}</li>
|
<li v-for="(btn,idx) in typeList" :key="btn.newsDirectoriesId" :class="{active: page.newsDirectoriesId === btn.newsDirectoriesId}" @click="changeType(btn.newsDirectoriesId)">{{btn.directoriesName}}</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<div class="type-container">
|
<div class="type-container">
|
||||||
<span>区域:</span>
|
<span>区域:</span>
|
||||||
<ul style="display: inline-block;width: 95%;">
|
<ul style="display: inline-block;width: 95%;">
|
||||||
<li :class="{active: area == ''}" @click="changeArea">全部</li>
|
<li :class="{active: area === defaultArea}" @click="changeArea(defaultArea)">全部</li>
|
||||||
<li v-for="(btn,idx) in areaList" :key="idx" :class="{active: area == btn.areaId}" @click="changeArea(btn.areaId, btn.areaLevel)">{{btn.areaName}}</li>
|
<li v-for="(btn,idx) in areaList" :key="btn.areaId" :class="{active: area === btn.areaCode}" @click="changeArea(btn.areaCode)">{{btn.areaName}}</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -47,18 +47,18 @@
|
|||||||
<span @click="paging(1)">首页</span>
|
<span @click="paging(1)">首页</span>
|
||||||
<span @click="paging(page.page - 1)" v-if="page.page > 1">上一页</span>
|
<span @click="paging(page.page - 1)" v-if="page.page > 1">上一页</span>
|
||||||
<ul v-if="page.totalPage > 0 && page.totalPage <= 5">
|
<ul v-if="page.totalPage > 0 && page.totalPage <= 5">
|
||||||
<li v-for="cpage in page.totalPage" :class="{'active': page.page == cpage}" :key="cpage" @click="paging(cpage)">
|
<li v-for="cpage in page.totalPage" :class="{'active': page.page === cpage}" :key="cpage" @click="paging(cpage)">
|
||||||
{{cpage}}
|
{{cpage}}
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<ul v-if="page.totalPage > 5">
|
<ul v-if="page.totalPage > 5">
|
||||||
<li v-if="page.page < 3" v-for="cpage in 5" :class="{'active': page.page == cpage}" :key="cpage" @click="paging(cpage)">
|
<li v-if="page.page < 3" v-for="cpage in 5" :class="{'active': page.page === cpage}" :key="cpage" @click="paging(cpage)">
|
||||||
{{cpage}}
|
{{cpage}}
|
||||||
</li>
|
</li>
|
||||||
<li v-if="page.page > page.totalPage - 2" v-for="cpage in 5" :class="{'active': page.page == (page.totalPage - 5 + cpage)}" :key="cpage" @click="paging(cpage)">
|
<li v-if="page.page > page.totalPage - 2" v-for="cpage in 5" :class="{'active': page.page === (page.totalPage - 5 + cpage)}" :key="cpage" @click="paging(cpage)">
|
||||||
{{page.totalPage - 5 + cpage}}
|
{{page.totalPage - 5 + cpage}}
|
||||||
</li>
|
</li>
|
||||||
<li v-if="page.page >= 3 && page.page <= page.totalPage - 2" v-for="cpage in 5" :class="{'active': page.page == (page.page - (3 - cpage))}" :key="cpage" @click="paging(cpage)">
|
<li v-if="page.page >= 3 && page.page <= page.totalPage - 2" v-for="cpage in 5" :class="{'active': page.page === (page.page - (3 - cpage))}" :key="cpage" @click="paging(cpage)">
|
||||||
{{page.page - (3 - cpage)}}
|
{{page.page - (3 - cpage)}}
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
@ -98,10 +98,10 @@ export default {
|
|||||||
page: 1,
|
page: 1,
|
||||||
rows: 8,
|
rows: 8,
|
||||||
totalPage: 1,
|
totalPage: 1,
|
||||||
newsDirectoriesId: '',
|
newsDirectoriesId: ''
|
||||||
newsDirectoriesParentId: 'f497904b-7727-4832-891c-604c36ae4167'
|
|
||||||
},
|
},
|
||||||
area: '',
|
defaultArea: common.area.areaCode,
|
||||||
|
area: common.area.areaCode,
|
||||||
url: common.url,
|
url: common.url,
|
||||||
isLoading: false
|
isLoading: false
|
||||||
}
|
}
|
||||||
@ -115,23 +115,10 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
changeArea: function (area, lv) {
|
changeArea: function (code) {
|
||||||
this.page.page = 1
|
this.page.page = 1
|
||||||
this.changePage = 1
|
this.changePage = 1
|
||||||
this.area = area
|
this.area = code
|
||||||
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()
|
this.getNews()
|
||||||
},
|
},
|
||||||
doJumpPage: function () {
|
doJumpPage: function () {
|
||||||
@ -141,7 +128,7 @@ export default {
|
|||||||
getNews: function () {
|
getNews: function () {
|
||||||
var self = this
|
var self = this
|
||||||
self.isLoading = true
|
self.isLoading = true
|
||||||
axios.get(self.url + 'app/newscontent/listpagenewscontentrelease', {
|
axios.get(self.url + 'app/newscontent/listpagenewscontentrelease/' + self.area, {
|
||||||
params: self.page
|
params: self.page
|
||||||
}).then(function (res) {
|
}).then(function (res) {
|
||||||
for (var i = 0; i < res.data.rows.length; i++) {
|
for (var i = 0; i < res.data.rows.length; i++) {
|
||||||
@ -187,7 +174,7 @@ export default {
|
|||||||
},
|
},
|
||||||
getAreaList: function () {
|
getAreaList: function () {
|
||||||
var self = this
|
var self = this
|
||||||
axios.get(self.url + 'app/area/listbyparentidrelease/640675').then(function (res) {
|
axios.get(self.url + 'app/area/listbyparentidrelease/' + common.area.areaId).then(function (res) {
|
||||||
self.areaList = res.data
|
self.areaList = res.data
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
@ -10,14 +10,14 @@
|
|||||||
<div class="select-container">
|
<div class="select-container">
|
||||||
<div class="select-line">
|
<div class="select-line">
|
||||||
<span>活动类别></span>
|
<span>活动类别></span>
|
||||||
<button :class="{active: page.venueType == ''}" @click="changeType(null)">全部</button>
|
<button :class="{active: page.venueType === ''}" @click="changeType(null)">全部</button>
|
||||||
<button v-for="(btn,idx) in typeList" :key="idx" @click="changeType(btn.dictionaryId)" :class="{active: page.venueType == btn.dictionaryId}">{{btn.dictionaryName}}</button>
|
<button v-for="(btn,idx) in typeList" :key="btn.dictionaryId" @click="changeType(btn.dictionaryId)" :class="{active: page.venueType === btn.dictionaryId}">{{btn.dictionaryName}}</button>
|
||||||
</div>
|
</div>
|
||||||
<div class="select-line">
|
<div class="select-line">
|
||||||
<span>选择区域></span>
|
<span>选择区域></span>
|
||||||
<div style="display: inline-block;width: 95%;">
|
<div style="display: inline-block;width: 95%;">
|
||||||
<button :class="{active: page.venueArea == ''}" @click="changeArea(null)">全部</button>
|
<button :class="{active: area === defaultArea}" @click="changeArea(defaultArea)">全部</button>
|
||||||
<button v-for="(btn,idx) in areaList" :key="idx" @click="changeArea(btn.areaId, btn.areaLevel)" :class="{active: page.venueArea == btn.areaId}">{{btn.areaName}}</button>
|
<button v-for="(btn,idx) in areaList" :key="btn.areaId" @click="changeArea(btn.areaCode)" :class="{active: area === btn.areaCode}">{{btn.areaName}}</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -41,18 +41,18 @@
|
|||||||
<span @click="paging(1)">首页</span>
|
<span @click="paging(1)">首页</span>
|
||||||
<span @click="paging(page.page - 1)" v-if="page.page > 1">上一页</span>
|
<span @click="paging(page.page - 1)" v-if="page.page > 1">上一页</span>
|
||||||
<ul v-if="page.totalPage > 0 && page.totalPage <= 5">
|
<ul v-if="page.totalPage > 0 && page.totalPage <= 5">
|
||||||
<li v-for="cpage in page.totalPage" :class="{'active': page.page == cpage}" :key="cpage" @click="paging(cpage)">
|
<li v-for="cpage in page.totalPage" :class="{'active': page.page === cpage}" :key="cpage" @click="paging(cpage)">
|
||||||
{{cpage}}
|
{{cpage}}
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<ul v-if="page.totalPage > 5">
|
<ul v-if="page.totalPage > 5">
|
||||||
<li v-if="page.page < 3" v-for="cpage in 5" :class="{'active': page.page == cpage}" :key="cpage" @click="paging(cpage)">
|
<li v-if="page.page < 3" v-for="cpage in 5" :class="{'active': page.page === cpage}" :key="cpage" @click="paging(cpage)">
|
||||||
{{cpage}}
|
{{cpage}}
|
||||||
</li>
|
</li>
|
||||||
<li v-if="page.page > page.totalPage - 2" v-for="cpage in 5" :class="{'active': page.page == (page.totalPage - 5 + cpage)}" :key="cpage" @click="paging(cpage)">
|
<li v-if="page.page > page.totalPage - 2" v-for="cpage in 5" :class="{'active': page.page === (page.totalPage - 5 + cpage)}" :key="cpage" @click="paging(cpage)">
|
||||||
{{page.totalPage - 5 + cpage}}
|
{{page.totalPage - 5 + cpage}}
|
||||||
</li>
|
</li>
|
||||||
<li v-if="page.page >= 3 && page.page <= page.totalPage - 2" v-for="cpage in 5" :class="{'active': page.page == (page.page - (3 - cpage))}" :key="cpage" @click="paging(cpage)">
|
<li v-if="page.page >= 3 && page.page <= page.totalPage - 2" v-for="cpage in 5" :class="{'active': page.page === (page.page - (3 - cpage))}" :key="cpage" @click="paging(cpage)">
|
||||||
{{page.page - (3 - cpage)}}
|
{{page.page - (3 - cpage)}}
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
@ -91,10 +91,10 @@ export default {
|
|||||||
page: 1,
|
page: 1,
|
||||||
rows: 8,
|
rows: 8,
|
||||||
totalPage: 1,
|
totalPage: 1,
|
||||||
venueType: '',
|
venueType: ''
|
||||||
venueArea: '',
|
|
||||||
areaLevel: ''
|
|
||||||
},
|
},
|
||||||
|
defaultArea: common.area.areaCode,
|
||||||
|
area: common.area.areaCode,
|
||||||
url: common.url,
|
url: common.url,
|
||||||
isLoading: false
|
isLoading: false
|
||||||
}
|
}
|
||||||
@ -108,15 +108,10 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
changeArea: function (area, lv) {
|
changeArea: function (code) {
|
||||||
this.page.page = 1
|
this.page.page = 1
|
||||||
this.changePage = 1
|
this.changePage = 1
|
||||||
if (area) {
|
this.area = code
|
||||||
this.page.venueArea = area
|
|
||||||
this.page.areaLevel = 'area' + (parseInt(lv) + 1)
|
|
||||||
} else {
|
|
||||||
this.page.venueArea = ''
|
|
||||||
}
|
|
||||||
this.getVenueList()
|
this.getVenueList()
|
||||||
},
|
},
|
||||||
changeType: function (type) {
|
changeType: function (type) {
|
||||||
@ -145,14 +140,14 @@ export default {
|
|||||||
},
|
},
|
||||||
getAreaList: function () {
|
getAreaList: function () {
|
||||||
var self = this
|
var self = this
|
||||||
axios.get(self.url + 'app/area/listbyparentidrelease/640675').then(function (res) {
|
axios.get(self.url + 'app/area/listbyparentidrelease/' + common.area.areaId).then(function (res) {
|
||||||
self.areaList = res.data
|
self.areaList = res.data
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
getVenueList: function () {
|
getVenueList: function () {
|
||||||
var self = this
|
var self = this
|
||||||
self.isLoading = true
|
self.isLoading = true
|
||||||
axios.get(self.url + 'app/venuesinfo/listpagevenuesinforelease', {
|
axios.get(self.url + 'app/venuesinfo/listpagevenuesinforelease/' + self.area, {
|
||||||
params: self.page
|
params: self.page
|
||||||
}).then(function (res) {
|
}).then(function (res) {
|
||||||
for (var i = 0; i < res.data.rows.length; i++) {
|
for (var i = 0; i < res.data.rows.length; i++) {
|
||||||
|
@ -139,7 +139,7 @@ export default {
|
|||||||
getList: function () {
|
getList: function () {
|
||||||
var self = this
|
var self = this
|
||||||
self.isLoading = true
|
self.isLoading = true
|
||||||
axios.get(self.url + 'app/newscontent/listpagenewscontentrelease', {
|
axios.get(self.url + 'app/newscontent/listpagenewscontentrelease/' + common.area.areaCode, {
|
||||||
params: self.page
|
params: self.page
|
||||||
}).then(function (res) {
|
}).then(function (res) {
|
||||||
for (var i = 0; i < res.data.rows.length; i++) {
|
for (var i = 0; i < res.data.rows.length; i++) {
|
||||||
|
@ -73,7 +73,7 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
getDynamicsList: function () {
|
getDynamicsList: function () {
|
||||||
var self = this
|
var self = this
|
||||||
axios.get(self.url + 'app/newscontent/listpagenewscontentrelease/' + common.areaCode, {
|
axios.get(self.url + 'app/newscontent/listpagenewscontentrelease/' + common.area.areaCode, {
|
||||||
params: self.dynamicsPage
|
params: self.dynamicsPage
|
||||||
}).then(function (res) {
|
}).then(function (res) {
|
||||||
var picNews = res.data.rows.splice(0, 1)[0]
|
var picNews = res.data.rows.splice(0, 1)[0]
|
||||||
@ -92,7 +92,7 @@ export default {
|
|||||||
},
|
},
|
||||||
getActivityList: function () {
|
getActivityList: function () {
|
||||||
var self = this
|
var self = this
|
||||||
axios.get(self.url + 'app/activitylibrary/listpageactivitylibraryfornetrelease', {
|
axios.get(self.url + 'app/activitylibrary/listpageactivitylibraryfornetrelease/' + common.area.areaCode, {
|
||||||
params: self.activityPage
|
params: self.activityPage
|
||||||
}).then(function (res) {
|
}).then(function (res) {
|
||||||
self.activityList = res.data.rows
|
self.activityList = res.data.rows
|
||||||
@ -100,7 +100,7 @@ export default {
|
|||||||
},
|
},
|
||||||
getLiterature: function () {
|
getLiterature: function () {
|
||||||
var self = this
|
var self = this
|
||||||
axios.get(self.url + 'app/newscontent/listpagenewscontentrelease/' + common.areaCode, {
|
axios.get(self.url + 'app/newscontent/listpagenewscontentrelease/' + common.area.areaCode, {
|
||||||
params: self.literaturePage
|
params: self.literaturePage
|
||||||
}).then(function (res) {
|
}).then(function (res) {
|
||||||
for (var i = 0; i < res.data.rows.length; i++) {
|
for (var i = 0; i < res.data.rows.length; i++) {
|
||||||
@ -111,7 +111,7 @@ export default {
|
|||||||
},
|
},
|
||||||
getExhibition: function () {
|
getExhibition: function () {
|
||||||
var self = this
|
var self = this
|
||||||
axios.get(self.url + 'app/newscontent/listpagenewscontentrelease/' + common.areaCode, {
|
axios.get(self.url + 'app/newscontent/listpagenewscontentrelease/' + common.area.areaCode, {
|
||||||
params: self.exhibitionPage
|
params: self.exhibitionPage
|
||||||
}).then(function (res) {
|
}).then(function (res) {
|
||||||
for (var i = 0; i < res.data.rows.length; i++) {
|
for (var i = 0; i < res.data.rows.length; i++) {
|
||||||
@ -123,7 +123,7 @@ export default {
|
|||||||
// 轮播图
|
// 轮播图
|
||||||
getSwiper: function () {
|
getSwiper: function () {
|
||||||
var self = this
|
var self = this
|
||||||
axios.get(self.url + 'app/newscontent/listpagenewscontentrelease/' + common.areaCode, {
|
axios.get(self.url + 'app/newscontent/listpagenewscontentrelease/' + common.area.areaCode, {
|
||||||
params: {
|
params: {
|
||||||
page: 1,
|
page: 1,
|
||||||
rows: 3,
|
rows: 3,
|
||||||
|
@ -62,7 +62,7 @@ export default {
|
|||||||
},
|
},
|
||||||
getLiterature: function () {
|
getLiterature: function () {
|
||||||
var self = this
|
var self = this
|
||||||
axios.get(self.url + 'app/newscontent/listpagenewscontentrelease', {
|
axios.get(self.url + 'app/newscontent/listpagenewscontentrelease/' + common.area.areaCode, {
|
||||||
params: self.literaturePage
|
params: self.literaturePage
|
||||||
}).then(function (res) {
|
}).then(function (res) {
|
||||||
for (var i = 0; i < res.data.rows.length; i++) {
|
for (var i = 0; i < res.data.rows.length; i++) {
|
||||||
|
@ -144,7 +144,7 @@ export default {
|
|||||||
},
|
},
|
||||||
getList: function () {
|
getList: function () {
|
||||||
var self = this
|
var self = this
|
||||||
axios.get(self.url + 'app/newscontent/listpagenewscontentrelease', {
|
axios.get(self.url + 'app/newscontent/listpagenewscontentrelease/' + common.area.areaCode, {
|
||||||
params: self.page
|
params: self.page
|
||||||
}).then(function (res) {
|
}).then(function (res) {
|
||||||
for (var i = 0; i < res.data.rows.length; i++) {
|
for (var i = 0; i < res.data.rows.length; i++) {
|
||||||
|
@ -290,7 +290,7 @@ export default {
|
|||||||
// 查询场馆
|
// 查询场馆
|
||||||
searchVenue: function () {
|
searchVenue: function () {
|
||||||
var self = this
|
var self = this
|
||||||
axios.get(self.url + 'app/venuesinfo/listpagevenuesinforelease', {
|
axios.get(self.url + 'app/venuesinfo/listpagevenuesinforelease/' + common.area.areaCode, {
|
||||||
params: self.page
|
params: self.page
|
||||||
}).then(function (res) {
|
}).then(function (res) {
|
||||||
self.pageList = res.data.rows
|
self.pageList = res.data.rows
|
||||||
@ -301,7 +301,7 @@ export default {
|
|||||||
// 查询活动
|
// 查询活动
|
||||||
searchActivity: function () {
|
searchActivity: function () {
|
||||||
var self = this
|
var self = this
|
||||||
axios.get(self.url + 'app/activitylibrary/listpageactivitylibraryfornetrelease', {
|
axios.get(self.url + 'app/activitylibrary/listpageactivitylibraryfornetrelease/' + common.area.areaCode, {
|
||||||
params: self.page
|
params: self.page
|
||||||
}).then(function (res) {
|
}).then(function (res) {
|
||||||
self.pageList = res.data.rows
|
self.pageList = res.data.rows
|
||||||
@ -326,7 +326,7 @@ export default {
|
|||||||
// 查询文化动态
|
// 查询文化动态
|
||||||
searchDynamic: function () {
|
searchDynamic: function () {
|
||||||
var self = this
|
var self = this
|
||||||
axios.get(self.url + 'app/newscontent/listpagenewscontentrelease', {
|
axios.get(self.url + 'app/newscontent/listpagenewscontentrelease/' + common.area.areaCode, {
|
||||||
params: {
|
params: {
|
||||||
page: self.page.page,
|
page: self.page.page,
|
||||||
rows: self.page.rows,
|
rows: self.page.rows,
|
||||||
@ -349,7 +349,7 @@ export default {
|
|||||||
// 查询艺术培训
|
// 查询艺术培训
|
||||||
searchArt: function () {
|
searchArt: function () {
|
||||||
var self = this
|
var self = this
|
||||||
axios.get(self.url + 'app/newscontent/listpagenewscontentrelease', {
|
axios.get(self.url + 'app/newscontent/listpagenewscontentrelease/' + common.area.areaCode, {
|
||||||
params: {
|
params: {
|
||||||
page: self.page.page,
|
page: self.page.page,
|
||||||
rows: self.page.rows,
|
rows: self.page.rows,
|
||||||
@ -379,7 +379,7 @@ export default {
|
|||||||
// 查询展览展示
|
// 查询展览展示
|
||||||
searchExhibition: function () {
|
searchExhibition: function () {
|
||||||
var self = this
|
var self = this
|
||||||
axios.get(self.url + 'app/newscontent/listpagenewscontentrelease', {
|
axios.get(self.url + 'app/newscontent/listpagenewscontentrelease/' + common.area.areaCode, {
|
||||||
params: {
|
params: {
|
||||||
page: self.page.page,
|
page: self.page.page,
|
||||||
rows: self.page.rows,
|
rows: self.page.rows,
|
||||||
@ -398,7 +398,7 @@ export default {
|
|||||||
// 查询文化旅游
|
// 查询文化旅游
|
||||||
searchTravel: function () {
|
searchTravel: function () {
|
||||||
var self = this
|
var self = this
|
||||||
axios.get(self.url + 'app/newscontent/listpagenewscontentrelease', {
|
axios.get(self.url + 'app/newscontent/listpagenewscontentrelease/' + common.area.areaCode, {
|
||||||
params: {
|
params: {
|
||||||
page: self.page.page,
|
page: self.page.page,
|
||||||
rows: self.page.rows,
|
rows: self.page.rows,
|
||||||
|
@ -285,7 +285,7 @@ export default {
|
|||||||
// 查询场馆
|
// 查询场馆
|
||||||
searchVenue: function () {
|
searchVenue: function () {
|
||||||
var self = this
|
var self = this
|
||||||
axios.get(self.url + 'app/venuesinfo/listpagevenuesinforelease', {
|
axios.get(self.url + 'app/venuesinfo/listpagevenuesinforelease/' + common.area.areaCode, {
|
||||||
params: self.page
|
params: self.page
|
||||||
}).then(function (res) {
|
}).then(function (res) {
|
||||||
self.venueList = res.data.rows
|
self.venueList = res.data.rows
|
||||||
@ -295,7 +295,7 @@ export default {
|
|||||||
// 查询活动
|
// 查询活动
|
||||||
searchActivity: function () {
|
searchActivity: function () {
|
||||||
var self = this
|
var self = this
|
||||||
axios.get(self.url + 'app/activitylibrary/listpageactivitylibraryfornetrelease', {
|
axios.get(self.url + 'app/activitylibrary/listpageactivitylibraryfornetrelease/' + common.area.areaCode, {
|
||||||
params: self.page
|
params: self.page
|
||||||
}).then(function (res) {
|
}).then(function (res) {
|
||||||
self.activityList = res.data.rows
|
self.activityList = res.data.rows
|
||||||
@ -318,7 +318,7 @@ export default {
|
|||||||
// 查询文化动态
|
// 查询文化动态
|
||||||
searchDynamic: function () {
|
searchDynamic: function () {
|
||||||
var self = this
|
var self = this
|
||||||
axios.get(self.url + 'app/newscontent/listpagenewscontentrelease', {
|
axios.get(self.url + 'app/newscontent/listpagenewscontentrelease/' + common.area.areaCode, {
|
||||||
params: {
|
params: {
|
||||||
page: 1,
|
page: 1,
|
||||||
rows: 4,
|
rows: 4,
|
||||||
@ -345,7 +345,7 @@ export default {
|
|||||||
// 查询艺术培训
|
// 查询艺术培训
|
||||||
searchArt: function () {
|
searchArt: function () {
|
||||||
var self = this
|
var self = this
|
||||||
axios.get(self.url + 'app/newscontent/listpagenewscontentrelease', {
|
axios.get(self.url + 'app/newscontent/listpagenewscontentrelease/' + common.area.areaCode, {
|
||||||
params: {
|
params: {
|
||||||
page: 1,
|
page: 1,
|
||||||
rows: 4,
|
rows: 4,
|
||||||
@ -363,7 +363,7 @@ export default {
|
|||||||
// 查询数图资源
|
// 查询数图资源
|
||||||
searchLiterature: function () {
|
searchLiterature: function () {
|
||||||
var self = this
|
var self = this
|
||||||
axios.get(self.url + 'app/newscontent/listpagenewscontentrelease', {
|
axios.get(self.url + 'app/newscontent/listpagenewscontentrelease/' + common.area.areaCode, {
|
||||||
params: {
|
params: {
|
||||||
page: 1,
|
page: 1,
|
||||||
rows: 4,
|
rows: 4,
|
||||||
@ -383,7 +383,7 @@ export default {
|
|||||||
// 查询展览展示
|
// 查询展览展示
|
||||||
searchExhibition: function () {
|
searchExhibition: function () {
|
||||||
var self = this
|
var self = this
|
||||||
axios.get(self.url + 'app/newscontent/listpagenewscontentrelease', {
|
axios.get(self.url + 'app/newscontent/listpagenewscontentrelease/' + common.area.areaCode, {
|
||||||
params: {
|
params: {
|
||||||
page: 1,
|
page: 1,
|
||||||
rows: 8,
|
rows: 8,
|
||||||
@ -402,7 +402,7 @@ export default {
|
|||||||
// 查询文化旅游
|
// 查询文化旅游
|
||||||
searchTravel: function () {
|
searchTravel: function () {
|
||||||
var self = this
|
var self = this
|
||||||
axios.get(self.url + 'app/newscontent/listpagenewscontentrelease', {
|
axios.get(self.url + 'app/newscontent/listpagenewscontentrelease/' + common.area.areaCode, {
|
||||||
params: {
|
params: {
|
||||||
page: 1,
|
page: 1,
|
||||||
rows: 4,
|
rows: 4,
|
||||||
|
@ -100,7 +100,7 @@ export default {
|
|||||||
getTravelList: function () {
|
getTravelList: function () {
|
||||||
var self = this
|
var self = this
|
||||||
self.isLoading = true
|
self.isLoading = true
|
||||||
axios.get(self.url + 'app/newscontent/listpagenewscontentrelease', {
|
axios.get(self.url + 'app/newscontent/listpagenewscontentrelease/' + common.area.areaCode, {
|
||||||
params: self.page
|
params: self.page
|
||||||
}).then(function (res) {
|
}).then(function (res) {
|
||||||
for (var i = 0; i < res.data.rows.length; i++) {
|
for (var i = 0; i < res.data.rows.length; i++) {
|
||||||
|
Loading…
Reference in New Issue
Block a user