diff --git a/pages/index/index.js b/pages/index/index.js index 1606c45..81f4d70 100644 --- a/pages/index/index.js +++ b/pages/index/index.js @@ -23,11 +23,7 @@ Page({ unreadMessages: 0, // 底部我的图标 未读系统通知数量 areaList: ['school', 'district', 'type'], areaTab: "school", // school district type - areaObj: { - 'school': 0, - 'district': 1, - 'type': 2, - }, + areaIndex: 0, // school district type envVersionState: false, // 是否在开发环境 images: "https://oss.gter.net/Zvt57TuJSUvkyhw-xG7Y2l-W-58oc3nqqsgFptxhXa6SWi2uePJ5Bg8cFLPIvsEG-4BUA27F7lfn5E55tXAL34gR30K6A7FxO7Sa1zx17l80NDI5", // 新公寓列表的图片链接 随时删除 @@ -112,7 +108,6 @@ Page({ // 新初始化数据 getNewInit() { - console.log("screen_data", this.data.screen_data.windowWidth); miucms.wxget(`${app.globalData.baseURL}/tenement/v2/api/home`).then(res => { let data = res.data @@ -125,8 +120,6 @@ Page({ this.setData({ ...data }) - - console.log("tabs", this.data.tabs); }) }, diff --git a/pages/index/index.wxml b/pages/index/index.wxml index de34370..fc51751 100644 --- a/pages/index/index.wxml +++ b/pages/index/index.wxml @@ -75,40 +75,40 @@ - + - - 学校附近 - + + {{ item.name }} + - 当前共有 13298 个房源 + 当前共有 {{ combination[areaIndex] && combination[areaIndex].num }} 个房源 - - 港岛 + + {{ item.name }} - - 港岛 + + {{ item.name }} - - - 合租 + + + {{ ite.name }} - 港岛 + {{ it.name }} - + @@ -177,7 +177,7 @@ - + diff --git a/pages/personList/personList.js b/pages/personList/personList.js index 31dafa1..84cf624 100644 --- a/pages/personList/personList.js +++ b/pages/personList/personList.js @@ -694,6 +694,7 @@ Page({ school, location } = e.detail; + console.log(school, location, "00"); this.data.school.value = school; this.data.location.value = location; this.setData({