列表的排序增加“综合”、最新排序修改值
This commit is contained in:
@@ -1510,12 +1510,14 @@ watch(route, () => {
|
||||
publisherList.value = []
|
||||
recommendListData.value = []
|
||||
getHousingInfo()
|
||||
distanceSchool()
|
||||
})
|
||||
|
||||
onMounted(() => {
|
||||
let { id } = router.currentRoute.value.query
|
||||
uniqid.value = id
|
||||
getHousingInfo()
|
||||
distanceSchool()
|
||||
masonryInstance = new Masonry(gridContainer.value, {
|
||||
itemSelector: '.item',
|
||||
gutter: 10
|
||||
@@ -1530,6 +1532,15 @@ onBeforeUnmount(() => {
|
||||
window.removeEventListener('scroll', onPageSrcoll);
|
||||
})
|
||||
|
||||
// 获取 距离学校距离
|
||||
const distanceSchool = () => {
|
||||
api.detailsDistance({
|
||||
uniqid: uniqid.value,
|
||||
}).then(res => {
|
||||
console.log("res",res);
|
||||
})
|
||||
}
|
||||
|
||||
</script>
|
||||
<style scoped lang="less">
|
||||
img {
|
||||
|
||||
@@ -158,7 +158,7 @@ const getMoreList = data => {
|
||||
...seachSelectData.data,
|
||||
}
|
||||
|
||||
if (!postData["orderby"]) postData["orderby"] = "timestamp"
|
||||
if (!postData["orderby"]) postData["orderby"] = "default"
|
||||
|
||||
api.getMoreLists(postData)
|
||||
.then(res => {
|
||||
|
||||
@@ -147,7 +147,7 @@ const getMoreList = data => {
|
||||
...seachSelectData.data,
|
||||
}
|
||||
|
||||
if (!postData["orderby"]) postData["orderby"] = "timestamp"
|
||||
if (!postData["orderby"]) postData["orderby"] = "default"
|
||||
|
||||
api.getMoreLists(postData).then(res => {
|
||||
if (res.code != 200) return
|
||||
|
||||
@@ -97,7 +97,7 @@ let getDataList = data => {
|
||||
intermediary: 0,
|
||||
...data,
|
||||
}
|
||||
if (!postData["orderby"]) postData["orderby"] = "timestamp"
|
||||
if (!postData["orderby"]) postData["orderby"] = "default"
|
||||
|
||||
moreList.value = []
|
||||
window.removeEventListener("scroll", getMoreScroll, true)
|
||||
@@ -163,7 +163,7 @@ const getMoreList = data => {
|
||||
...seachSelectData.data,
|
||||
}
|
||||
|
||||
if (!postData["orderby"]) postData["orderby"] = "timestamp"
|
||||
if (!postData["orderby"]) postData["orderby"] = "default"
|
||||
|
||||
api.getMoreLists(postData).then(res => {
|
||||
if (res.code != 200) return
|
||||
|
||||
Reference in New Issue
Block a user