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