diff --git a/api/qianxian.js b/api/qianxian.js index 499c22d..f699014 100644 --- a/api/qianxian.js +++ b/api/qianxian.js @@ -103,3 +103,8 @@ export function getShareImg(id) { export function getSaleList(params) { return request.get('/countyFamous/village/category', params, {login: true}) } + +// 旅居列表 +export function getJiaLouList(params) { + return request.get('/countyFamous/sojourn', params, {login: true}) +} diff --git a/pkg_product/views/famousQianxianShop.vue b/pkg_product/views/famousQianxianShop.vue index f82d26b..a4c1a91 100644 --- a/pkg_product/views/famousQianxianShop.vue +++ b/pkg_product/views/famousQianxianShop.vue @@ -323,35 +323,36 @@ > - + /> --> - + /> --> {{ tab.name }} - - - 重点项目 - + + + + 重点项目 + - + /> --> - + /> --> {{ tab.name }} @@ -450,23 +451,92 @@ - + /> --> - + /> --> + {{ tab.name }} + + + + + + + + + + + + + + {{ jiaLou.address }} + + + + + + {{ jiaLou.intro }} + + + + + {{ jiaLou.name }} + + + + + + 暂无租售资讯 + + + + + + + + + + + {{ tab.name }} @@ -660,7 +730,8 @@ import { getCountyFamousVillage, getCountyFamousCityDetail, getShareImg, - getSaleList + getSaleList, + getJiaLouList, } from '@/api/qianxian' import ProductWindow from '@/components/ProductWindow' import goCartMixin from '@/mixins/goCartMixins' @@ -733,15 +804,17 @@ export default { // 村屋列表 villageList: [], industryTab: [ - { name: '产业项目', icon: '/page/qianxian/icon-04.png' }, - { name: '招商政策', icon: '/page/qianxian/icon-03.png' }, - { name: '租售资讯', icon: '/page/qianxian/icon-07.png' } + { name: '项目', icon: '/page/qianxian/icon-04.png' }, + { name: '招商', icon: '/page/qianxian/icon-03.png' }, + { name: '旅居', icon: '/page/qianxian/icon-03.png' }, + { name: '租售', icon: '/page/qianxian/icon-07.png' } ], industryTabIndex: 0, // 产品 leftList: [], rightList: [], - videoPlayers:[] + videoPlayers:[], + jiaLouList: [], } }, // 必须在页面加 onPageScroll(e){} ,才能滑动显示背景 @@ -1359,6 +1432,18 @@ export default { industryTabItemClick(index) { if (index === this.industryTabIndex) return this.industryTabIndex = index + if(index === 2) { + const params = { + countyFamousDataId: this.id, + page: 1, + limit: 9999 + } + console.log(params); + + getJiaLouList(params).then(res => { + this.jiaLouList = res.data.records || [] + }) + } }, fileItemClick(file) { const url = file.attachment || '' @@ -1387,7 +1472,76 @@ export default {