去除打印
This commit is contained in:
@@ -242,14 +242,14 @@ let getRecommendList = () => {
|
||||
type: ListSelectBtn.selectType,
|
||||
pagevalue: pagevalue.value
|
||||
}).then(res => {
|
||||
console.log(res)
|
||||
// console.log(res)
|
||||
if (res.code === 200) {
|
||||
if (res.data.pagevalue) {
|
||||
if (pages.value === 1) waterfallList.value = []
|
||||
waterfallList.value = waterfallList.value.concat(res.data.data)
|
||||
pagevalue.value = res.data.pagevalue
|
||||
}
|
||||
// console.log(waterfallList.value)
|
||||
|
||||
if (res.data.data.length >= 30) {
|
||||
loadMore.value = true
|
||||
loadText.value = '下拉加载更多'
|
||||
@@ -258,11 +258,11 @@ let getRecommendList = () => {
|
||||
loadText.value = '到底了'
|
||||
}
|
||||
nextTick(() => {
|
||||
// console.log(1)
|
||||
|
||||
listMasonryInstance.reloadItems();
|
||||
listMasonryInstance.layout();
|
||||
|
||||
setTimeout(() => {
|
||||
// console.log(3)
|
||||
listMasonryInstance.reloadItems();
|
||||
listMasonryInstance.layout();
|
||||
}, 600)
|
||||
|
||||
@@ -1271,7 +1271,6 @@ let setNavigation = () => {
|
||||
}
|
||||
}
|
||||
}
|
||||
// console.log(111, store.state.routeList)
|
||||
}
|
||||
//中介数据
|
||||
let contacts = reactive({
|
||||
@@ -1284,7 +1283,7 @@ let getHousingInfo = () => {
|
||||
api.details({
|
||||
uniqid: uniqid.value
|
||||
}).then(res => {
|
||||
console.log(res)
|
||||
// console.log(res)
|
||||
if (res.code === 200) {
|
||||
housingInfo['data'] = res.data
|
||||
pageType.value = housingInfo['data']['info'].intermediary === 1 ? 2 : housingInfo['data']['info'].intermediary === 6 ? 3 : 1 //1个人 2中介 3求房源
|
||||
@@ -1320,7 +1319,7 @@ let setOperation = () => {
|
||||
api.operation({
|
||||
token: housingInfo['data'].token
|
||||
}).then(res => {
|
||||
console.log(res)
|
||||
// console.log(res)
|
||||
if (res.code === 200) {
|
||||
housingInfo['data'].info.count_fav = res.data.count
|
||||
housingInfo['data'].isfav = res.data.status
|
||||
@@ -1409,7 +1408,7 @@ let recommendList = () => {
|
||||
pagevalue: pagevalue.value,
|
||||
token: housingInfo['data'].token
|
||||
}).then(res => {
|
||||
console.log(res)
|
||||
// console.log(res)
|
||||
if (res.code === 200) {
|
||||
if (res.data.data && res.data.data.length >= 30) {
|
||||
loadMore.value = true
|
||||
@@ -1450,7 +1449,7 @@ let getPublisherList = () => {
|
||||
limit: 30,
|
||||
token: housingInfo['data'].token
|
||||
}).then(res => {
|
||||
console.log(res)
|
||||
// console.log(res)
|
||||
if (res.code === 200) {
|
||||
if (res.data.length >= 30) {
|
||||
loadMore.value = true
|
||||
|
||||
@@ -62,7 +62,6 @@ let setSeachSelectData = (data) => {
|
||||
seachSelectData.data = {
|
||||
...data
|
||||
}
|
||||
// console.log(data)
|
||||
loading.value = true
|
||||
getDataList(seachSelectData.data)
|
||||
}
|
||||
|
||||
@@ -63,16 +63,10 @@ provide('count', dataCount)
|
||||
//保存搜索设置
|
||||
let setSeachSelectData = (data) => {
|
||||
pages.value = 1
|
||||
|
||||
// if(data.location.length>0){
|
||||
// data.location=JSON.stringify(data.location)
|
||||
// }
|
||||
seachSelectData.data = {
|
||||
...data
|
||||
}
|
||||
loading.value = true
|
||||
// console.log('seachSelectData', seachSelectData.data)
|
||||
// return
|
||||
getDataList(seachSelectData.data)
|
||||
}
|
||||
|
||||
@@ -102,8 +96,7 @@ let getDataList = (data) => {
|
||||
}
|
||||
seachApi.then(res => {
|
||||
if (res.code === 200) {
|
||||
console.log(res.data)
|
||||
// console.log(seachSelectData.data)
|
||||
// console.log(res.data)
|
||||
dataList.data = res.data.data
|
||||
if (res.data.data.length < 20) {
|
||||
loadingText.value = ` 到底了 `
|
||||
@@ -122,9 +115,6 @@ let getDataList = (data) => {
|
||||
dataCount.value = res.data.count
|
||||
pageList.value = pageList.value.concat(dataList.data)
|
||||
nextTick(() => {
|
||||
// if (dataList.data[0]) pageList['1'].push(dataList.data[0])
|
||||
// if (dataList.data[1]) pageList['2'].push(dataList.data[1])
|
||||
// console.log('listMasonryInstance',listMasonryInstance)
|
||||
listMasonryInstance.reloadItems();
|
||||
listMasonryInstance.layout();
|
||||
})
|
||||
@@ -138,7 +128,6 @@ let getDataList = (data) => {
|
||||
masonryInstance.reloadItems();
|
||||
masonryInstance.layout();
|
||||
if (res.data.data.length >= 20) {
|
||||
// console.log(123)
|
||||
loading.value = true
|
||||
}
|
||||
})
|
||||
@@ -157,7 +146,6 @@ let getDataList = (data) => {
|
||||
//加载更多
|
||||
let downLoadMore = () => {
|
||||
tool.loadMore(() => {
|
||||
// console.log(loading.value)
|
||||
if (!loading.value) return
|
||||
pages.value++
|
||||
getDataList(seachSelectData.data)
|
||||
|
||||
Reference in New Issue
Block a user