列表的排序增加“综合”、最新排序修改值
This commit is contained in:
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
2
dist/index.html
vendored
2
dist/index.html
vendored
@@ -1,4 +1,4 @@
|
||||
<!doctype html><html lang=""><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" href="https://ansnid.oss-cn-shenzhen.aliyuncs.com/fang/favicon.ico"><title>港校租房</title><script defer="defer" src="https://ansnid.oss-cn-shenzhen.aliyuncs.com/fang/js/chunk-vendors.6d96b969.js"></script><script defer="defer" src="https://ansnid.oss-cn-shenzhen.aliyuncs.com/fang/js/app.dd642587.js"></script><link href="https://ansnid.oss-cn-shenzhen.aliyuncs.com/fang/css/chunk-vendors.7885d77e.css" rel="stylesheet"><link href="https://ansnid.oss-cn-shenzhen.aliyuncs.com/fang/css/app.f5f600f1.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but zufang doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><script src="https://app.gter.net/bottom?tpl=header&menukey=fang"></script><div id="app"></div><div style="display:none;"><script src="//v1.cnzz.com/z_stat.php?id=1281224882&web_id=1281224882"></script><script>var _hmt = _hmt || [];
|
||||
<!doctype html><html lang=""><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" href="https://ansnid.oss-cn-shenzhen.aliyuncs.com/fang/favicon.ico"><title>港校租房</title><script defer="defer" src="https://ansnid.oss-cn-shenzhen.aliyuncs.com/fang/js/chunk-vendors.6d96b969.js"></script><script defer="defer" src="https://ansnid.oss-cn-shenzhen.aliyuncs.com/fang/js/app.b6704e9b.js"></script><link href="https://ansnid.oss-cn-shenzhen.aliyuncs.com/fang/css/chunk-vendors.7885d77e.css" rel="stylesheet"><link href="https://ansnid.oss-cn-shenzhen.aliyuncs.com/fang/css/app.f5f600f1.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but zufang doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><script src="https://app.gter.net/bottom?tpl=header&menukey=fang"></script><div id="app"></div><div style="display:none;"><script src="//v1.cnzz.com/z_stat.php?id=1281224882&web_id=1281224882"></script><script>var _hmt = _hmt || [];
|
||||
(function () {
|
||||
var hm = document.createElement("script");
|
||||
hm.src = "//hm.baidu.com/hm.js?4bd66cbe45a640b607fe46c48f658746";
|
||||
|
||||
1
dist/js/app.b6704e9b.js
vendored
Normal file
1
dist/js/app.b6704e9b.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dist/js/app.dd642587.js
vendored
1
dist/js/app.dd642587.js
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -366,7 +366,7 @@ let hotArr = reactive({ data: [] })
|
||||
let seachAllType = reactive({
|
||||
keyword: "",
|
||||
location: [],
|
||||
orderby: "timestamp",
|
||||
orderby: "default",
|
||||
})
|
||||
|
||||
// const pitchValue = inject("pitchValue") || {}
|
||||
@@ -381,7 +381,7 @@ let pitchValue = reactive({
|
||||
gender: 0,
|
||||
iselevator: 0,
|
||||
issunshinearea: 0,
|
||||
orderby: "timestamp",
|
||||
orderby: "default",
|
||||
publish: "",
|
||||
types: "",
|
||||
})
|
||||
@@ -699,7 +699,8 @@ let publishList = reactive([
|
||||
|
||||
// 排序的选项
|
||||
let orderbyList = reactive([
|
||||
{ name: "最新发布", type: "timestamp" },
|
||||
{ name: "综合", type: "default" },
|
||||
{ name: "最新发布", type: "updatetime" },
|
||||
{ name: "热门", type: "hotnum" },
|
||||
{ name: "价格从低到高", type: "rentasc" },
|
||||
{ name: "价格从高到低", type: "rentdesc" },
|
||||
|
||||
@@ -39,6 +39,9 @@ export default{
|
||||
},
|
||||
publisherList:(params={})=>{//发布者其他房源
|
||||
return axios.post('/tenement/pc/api/lists/publisherList',params)
|
||||
},
|
||||
detailsDistance:(params={})=>{//详情页 - 距离学校距离
|
||||
return axios.post('/tenement/pc/api/details/distance',params)
|
||||
}
|
||||
|
||||
}
|
||||
@@ -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