diff --git a/src/utils/payM.js b/src/utils/payM.js index 9783e52950ec36ee73a3db81a007caf9cdfaa35e..c7ab703809ed2059aa98a27664813be78dd01f7a 100644 --- a/src/utils/payM.js +++ b/src/utils/payM.js @@ -26,4 +26,7 @@ export const release = (params) => { return req("post", "/api/room/release", par export const cancelrelease = (params) => { return req("post", "/api/room/cancelrelease", params)}; //获取房源列表 -export const litsSearchRoomInfo = (params) => { return req("post", "/api/roominfo/litsSearchRoomInfo", params)}; \ No newline at end of file +export const litsSearchRoomInfo = (params) => { return req("post", "/api/roominfo/litsSearchRoomInfo", params)}; + +//获取房源列表详情 +export const roomInfoDetail = (params) => { return req("post", "/api/roominfo/roomInfoDetail", params)}; \ No newline at end of file diff --git a/src/views/test/guahao/roomdetail.vue b/src/views/test/guahao/roomdetail.vue index bd66502efd08b19f318f6c2aaa07f1fd28a3f465..16bc4a6ee9aaf0dd046310dd666969d1d5ae7ff5 100644 --- a/src/views/test/guahao/roomdetail.vue +++ b/src/views/test/guahao/roomdetail.vue @@ -9,11 +9,15 @@ - +
- 房屋详情 + {{roomInfo}} +
+ 户型:{{roomInfo.huxing}} + 名称:{{roomInfo.name}} +
@@ -23,6 +27,8 @@ diff --git a/src/views/test/guahao/shoufei.vue b/src/views/test/guahao/shoufei.vue index 614d47fed349cf1636ef4b12e90a93bb143788b1..25438d017a67742d065fed0a5bf7f5bca750e1f4 100644 --- a/src/views/test/guahao/shoufei.vue +++ b/src/views/test/guahao/shoufei.vue @@ -119,7 +119,9 @@ export default { }, viewDetail(item){ console.log('item-------->',item); - this.$router.push('/room/detail'); + // this.$router.push('/room/detail?id='+item.id); + this.$router.push({path:'/room/detail',query:{id:item.id}}); + } } } @@ -176,7 +178,7 @@ export default { font-size: 14px; } .focus { - background-color: #909399; /* 鼠标焦点时的背景色为黄色 */ + background-color: #66B1FF; } .itemKey{ padding-left: 10px; diff --git a/src/views/test/guahao/xianchang.vue b/src/views/test/guahao/xianchang.vue index 09268f95d168ccfea226bc21980843db0fb75a51..f5f34862d3d73597d3d30f4bfec38a33fbdcf05e 100644 --- a/src/views/test/guahao/xianchang.vue +++ b/src/views/test/guahao/xianchang.vue @@ -311,7 +311,7 @@ export default { // 文件上传成功时的函数 handleFilUploadSuccess (res,file,fileList) { console.log(res,file,fileList) - console.log('res----------->',res); + console.log('res---------file-->',res); if(res.code == 200){ let temp = res.obj; if(temp != null&&temp != undefined||temp.length>0){