Task:千县旅居入口
This commit is contained in:
+16
-3
@@ -105,9 +105,9 @@ export function getSaleList(params) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 旅居列表
|
// 旅居列表
|
||||||
export function getJiaLouList(params) {
|
// export function getJiaLouList(params) {
|
||||||
return request.get('/countyFamous/sojourn', params, {login: true})
|
// return request.get('/countyFamous/sojourn', params, {login: true})
|
||||||
}
|
// }
|
||||||
|
|
||||||
// 旅居详情
|
// 旅居详情
|
||||||
export function getJiaLouDetail(id) {
|
export function getJiaLouDetail(id) {
|
||||||
@@ -152,4 +152,17 @@ export function postJiaLouNewsZan(data) {
|
|||||||
// 分享旅居
|
// 分享旅居
|
||||||
export function postJiaLouShare(id) {
|
export function postJiaLouShare(id) {
|
||||||
return request.get('/countyFamous/sojourn/poster/' + id, {login: true})
|
return request.get('/countyFamous/sojourn/poster/' + id, {login: true})
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取旅居列表
|
||||||
|
* countyId int 县城ID
|
||||||
|
shopType string 所属板块(countyFamous-千县;wellness-康养)
|
||||||
|
wellnessPlaceCateId int 康养圣地分类ID
|
||||||
|
name string 名称
|
||||||
|
page int 页码
|
||||||
|
limit int 每页数量
|
||||||
|
*/
|
||||||
|
export function getJiaLouList(params) {
|
||||||
|
return request.get('/travel/merchantList', params, {login: true})
|
||||||
}
|
}
|
||||||
@@ -503,7 +503,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="name-wrap">
|
<view class="name-wrap">
|
||||||
<image
|
<image
|
||||||
:src="jiaLou.logo"
|
:src="jiaLou.avatar"
|
||||||
class="logo"
|
class="logo"
|
||||||
/>
|
/>
|
||||||
<view class="name one-t">
|
<view class="name one-t">
|
||||||
@@ -731,7 +731,7 @@ import {
|
|||||||
getCountyFamousCityDetail,
|
getCountyFamousCityDetail,
|
||||||
getShareImg,
|
getShareImg,
|
||||||
getSaleList,
|
getSaleList,
|
||||||
getJiaLouList,
|
getJiaLouList
|
||||||
} from '@/api/qianxian'
|
} from '@/api/qianxian'
|
||||||
import ProductWindow from '@/components/ProductWindow'
|
import ProductWindow from '@/components/ProductWindow'
|
||||||
import goCartMixin from '@/mixins/goCartMixins'
|
import goCartMixin from '@/mixins/goCartMixins'
|
||||||
@@ -815,6 +815,7 @@ export default {
|
|||||||
rightList: [],
|
rightList: [],
|
||||||
videoPlayers:[],
|
videoPlayers:[],
|
||||||
jiaLouList: [],
|
jiaLouList: [],
|
||||||
|
countyId: null,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 必须在页面加 onPageScroll(e){} ,才能滑动显示背景
|
// 必须在页面加 onPageScroll(e){} ,才能滑动显示背景
|
||||||
@@ -1074,6 +1075,7 @@ export default {
|
|||||||
getCountyFamousCityDetail(this.id).then(res => {
|
getCountyFamousCityDetail(this.id).then(res => {
|
||||||
const { success, data } = res
|
const { success, data } = res
|
||||||
if (success) {
|
if (success) {
|
||||||
|
this.countyId = data.countyId
|
||||||
const products = data.products || []
|
const products = data.products || []
|
||||||
const farmerShops = data.farmerShops || []
|
const farmerShops = data.farmerShops || []
|
||||||
this.leftList = this.newSort(products, farmerShops)
|
this.leftList = this.newSort(products, farmerShops)
|
||||||
@@ -1438,11 +1440,13 @@ export default {
|
|||||||
this.industryTabIndex = index
|
this.industryTabIndex = index
|
||||||
if(index === 2) {
|
if(index === 2) {
|
||||||
const params = {
|
const params = {
|
||||||
countyFamousDataId: this.id,
|
countyId: this.countyId,
|
||||||
|
shopType: 'countyFamous',
|
||||||
|
name: '',
|
||||||
page: 1,
|
page: 1,
|
||||||
limit: 9999
|
limit: 9999
|
||||||
}
|
}
|
||||||
console.log(params);
|
console.log(this.inn);
|
||||||
|
|
||||||
getJiaLouList(params).then(res => {
|
getJiaLouList(params).then(res => {
|
||||||
this.jiaLouList = res.data.records || []
|
this.jiaLouList = res.data.records || []
|
||||||
|
|||||||
Reference in New Issue
Block a user