|
@@ -1,18 +1,324 @@
|
|
|
<template>
|
|
|
- <div class="home">
|
|
|
- <img alt="Vue logo" src="../assets/logo.png">
|
|
|
- <HelloWorld msg="Welcome to Your Vue.js App"/>
|
|
|
+ <div>
|
|
|
+ <div class="nav">
|
|
|
+ <el-row :gutter="20">
|
|
|
+ <el-col :span="12">
|
|
|
+ <div class="grid-content bg-purple">
|
|
|
+ <el-button type="primary">我要租</el-button>
|
|
|
+ </div>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="12">
|
|
|
+ <div class="grid-content bg-purple">
|
|
|
+ <el-button @click="replacePage">我要买</el-button>
|
|
|
+ </div>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ </div>
|
|
|
+ <!-- 下拉框 -->
|
|
|
+ <div class="screen">
|
|
|
+ <el-row :gutter="25">
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-dropdown trigger="click">
|
|
|
+ <span class="el-dropdown-link">
|
|
|
+ 社区项目<i class="el-icon-arrow-down el-icon--right"></i>
|
|
|
+ </span>
|
|
|
+ <el-dropdown-menu slot="dropdown">
|
|
|
+ <!-- <el-dropdown-item> -->
|
|
|
+ <div
|
|
|
+ class="option"
|
|
|
+ v-for="(item,index) in UserList"
|
|
|
+ :key="index"
|
|
|
+ >
|
|
|
+ <span>{{item.cityName}}</span>
|
|
|
+ <el-row>
|
|
|
+ <el-checkbox-group v-model="checkListCommunity">
|
|
|
+ <el-col
|
|
|
+ :span="8"
|
|
|
+ v-for="(items,indexs) in item.communityList"
|
|
|
+ :key="indexs"
|
|
|
+ >
|
|
|
+ <el-checkbox :label="items.communityId">{{items.communityName}}</el-checkbox>
|
|
|
+ </el-col>
|
|
|
+ </el-checkbox-group>
|
|
|
+ </el-row>
|
|
|
+
|
|
|
+ </div>
|
|
|
+ <div class="option-button">
|
|
|
+ <el-row :gutter="20">
|
|
|
+ <el-col :span="12"><span>
|
|
|
+ <el-button type="info">重置</el-button>
|
|
|
+ </span></el-col>
|
|
|
+ <el-col :span="12"><span>
|
|
|
+ <el-button
|
|
|
+ type="primary"
|
|
|
+ @click="queryCommunity"
|
|
|
+ >确认</el-button>
|
|
|
+ </span></el-col>
|
|
|
+ </el-row>
|
|
|
+ </div>
|
|
|
+ <!-- </el-dropdown-item> -->
|
|
|
+ </el-dropdown-menu>
|
|
|
+ </el-dropdown>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-dropdown trigger="click">
|
|
|
+ <span class="el-dropdown-link">
|
|
|
+ 房屋类型<i class="el-icon-arrow-down el-icon--right"></i>
|
|
|
+ </span>
|
|
|
+ <el-dropdown-menu slot="dropdown">
|
|
|
+ <!-- <el-dropdown-item> -->
|
|
|
+ <div class="option">
|
|
|
+ <span>住宅</span>
|
|
|
+ <el-row>
|
|
|
+ <el-checkbox-group v-model="checkList">
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-checkbox label="高档住宅"></el-checkbox>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-checkbox label="普通住宅"></el-checkbox>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-checkbox label="公寓"></el-checkbox>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-checkbox label="别墅"></el-checkbox>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-checkbox label="复式"></el-checkbox>
|
|
|
+ </el-col>
|
|
|
+ </el-checkbox-group>
|
|
|
+ </el-row>
|
|
|
+
|
|
|
+ </div>
|
|
|
+ <div class="option">
|
|
|
+ <span>商业</span>
|
|
|
+ <el-row>
|
|
|
+ <el-checkbox-group v-model="checkList">
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-checkbox label="办公"></el-checkbox>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-checkbox label="酒店"></el-checkbox>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-checkbox label="厂房"></el-checkbox>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-checkbox label="商城"></el-checkbox>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-checkbox label="综合体"></el-checkbox>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-checkbox label="仓库"></el-checkbox>
|
|
|
+ </el-col>
|
|
|
+ </el-checkbox-group>
|
|
|
+ </el-row>
|
|
|
+ </div>
|
|
|
+ <div class="option-button">
|
|
|
+ <el-row :gutter="20">
|
|
|
+ <el-col :span="12"><span>
|
|
|
+ <el-button type="info">重置</el-button>
|
|
|
+ </span></el-col>
|
|
|
+ <el-col :span="12"><span>
|
|
|
+ <el-button type="primary">确认</el-button>
|
|
|
+ </span></el-col>
|
|
|
+ </el-row>
|
|
|
+ </div>
|
|
|
+ <!-- </el-dropdown-item> -->
|
|
|
+ </el-dropdown-menu>
|
|
|
+ </el-dropdown>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-dropdown
|
|
|
+ trigger="click"
|
|
|
+ @click.native="dropdown"
|
|
|
+ >
|
|
|
+ <span class="el-dropdown-link">
|
|
|
+ 房屋面积<i class="el-icon-arrow-down el-icon--right"></i>
|
|
|
+ </span>
|
|
|
+ <el-dropdown-menu v-show="hideClick">
|
|
|
+ <!-- <el-dropdown-item> -->
|
|
|
+ <div class="option">
|
|
|
+ <el-row>
|
|
|
+ <el-checkbox-group v-model="checkList">
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-checkbox label="50平米以下"></el-checkbox>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-checkbox label="50-70平米"></el-checkbox>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-checkbox label="70-90平米"></el-checkbox>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-checkbox label="90-120平米"></el-checkbox>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-checkbox label="120-150平米"></el-checkbox>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-checkbox label="150-200平米"></el-checkbox>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-checkbox label="200-300平米"></el-checkbox>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="8">
|
|
|
+ <el-checkbox label="300平米以上"></el-checkbox>
|
|
|
+ </el-col>
|
|
|
+ </el-checkbox-group>
|
|
|
+ </el-row>
|
|
|
+
|
|
|
+ </div>
|
|
|
+ <div class="option-button">
|
|
|
+ <el-row :gutter="20">
|
|
|
+ <el-col :span="12"><span>
|
|
|
+ <el-button type="info">重置</el-button>
|
|
|
+ </span></el-col>
|
|
|
+ <el-col :span="12"><span>
|
|
|
+ <el-button
|
|
|
+ type="primary"
|
|
|
+ @click="query"
|
|
|
+ >确认</el-button>
|
|
|
+ </span></el-col>
|
|
|
+ </el-row>
|
|
|
+ </div>
|
|
|
+ <!-- </el-dropdown-item> -->
|
|
|
+ </el-dropdown-menu>
|
|
|
+ </el-dropdown>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ </div>
|
|
|
+ <!-- 内容 -->
|
|
|
+ <div>
|
|
|
+ <el-row
|
|
|
+ v-for="(item,index) in mentList"
|
|
|
+ :key="index"
|
|
|
+ >
|
|
|
+ <el-col
|
|
|
+ :span="24"
|
|
|
+ style="height: 124px;"
|
|
|
+ >
|
|
|
+ <el-row>
|
|
|
+ <el-col :span="11">
|
|
|
+ <el-image
|
|
|
+ style="width: 160px; height: 105px"
|
|
|
+ src="https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg"
|
|
|
+ fit="contain"
|
|
|
+ ></el-image>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="13">
|
|
|
+ <h5>{{item.title}}</h5>
|
|
|
+ <p><span>{{item.buildingType == 1 ? '住宅' : '商用'}}-{{item.residenceType == 1 ? '高档住宅' : item.residenceType == 2 ? '普通住宅' : item.residenceType == 3 ? '公寓' : item.residenceType == 4 ? '别墅' : item.residenceType == 5 ? '复式' :item.residenceType == 6 ?'办公' : item.residenceType == 7 ? '酒店' : item.residenceType == 8 ? '厂房' : item.residenceType == 9 ? '商城' :item.residenceType == 10 ? '综合体' : item.residenceType == 11 ?'仓库' :'广告位'}}</span> <span>{{item.buildingArea || 0}}㎡</span></p>
|
|
|
+ <p>{{item.monthlyRent || 0}}元/月</p>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+
|
|
|
+ </div>
|
|
|
</div>
|
|
|
+
|
|
|
</template>
|
|
|
|
|
|
-<script>
|
|
|
-// @ is an alias to /src
|
|
|
-import HelloWorld from '@/components/HelloWorld.vue'
|
|
|
|
|
|
+<script>
|
|
|
export default {
|
|
|
- name: 'HomeView',
|
|
|
- components: {
|
|
|
- HelloWorld
|
|
|
+ data () {
|
|
|
+ return {
|
|
|
+ checkList: [],
|
|
|
+ hideClick: false,
|
|
|
+ mentList: [],
|
|
|
+ queryInfo: {
|
|
|
+ appId: 'wx3dafa2cbe0fd954a'
|
|
|
+ },
|
|
|
+ queryInfo2: {
|
|
|
+ type: 1
|
|
|
+ },
|
|
|
+ UserList: [],
|
|
|
+ // 社区
|
|
|
+ hideClickCommunity: false,
|
|
|
+ checkListCommunity: [],
|
|
|
+ }
|
|
|
+ },
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ methods: {
|
|
|
+ // 社区
|
|
|
+ queryCommunity () {
|
|
|
+ this.hideClickCommunity = !this.hideClickCommunity;
|
|
|
+ console.log(this.checkListCommunity);
|
|
|
+ },
|
|
|
+ replacePage () {
|
|
|
+ this.$router.push('/about')
|
|
|
+ },
|
|
|
+ dropdown () {
|
|
|
+ console.log(this.checkList);
|
|
|
+ this.hideClick = !this.hideClick;
|
|
|
+ },
|
|
|
+ query () {
|
|
|
+ this.hideClick = !this.hideClick;
|
|
|
+
|
|
|
+ },
|
|
|
+ // 社区名称
|
|
|
+ async getUserList () {
|
|
|
+ const { data: res } = await this.$axios.get('/appointment/getPublicCommunity', { params: this.queryInfo });
|
|
|
+ if (res.status == 0) {
|
|
|
+ this.UserList = res.data;
|
|
|
+ }
|
|
|
+ console.log(this.UserList)
|
|
|
+ },
|
|
|
+ // /appointment/page
|
|
|
+ async getmentList () {
|
|
|
+ const { data: res } = await this.$axios.get('/appointment/page', { params: this.queryInfo2 });
|
|
|
+ if (res.status == 0) {
|
|
|
+ this.mentList = res.data.list;
|
|
|
+ }
|
|
|
+ },
|
|
|
+
|
|
|
+ },
|
|
|
+ created () {
|
|
|
+ this.getUserList();
|
|
|
+ this.getmentList();
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
</script>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+<style lang="less" scoped>
|
|
|
+h5 {
|
|
|
+ margin: 0;
|
|
|
+ padding: 0;
|
|
|
+}
|
|
|
+.nav {
|
|
|
+ display: flex;
|
|
|
+ justify-content: center;
|
|
|
+}
|
|
|
+.colpadd {
|
|
|
+ padding: 0 20px;
|
|
|
+}
|
|
|
+.van-button {
|
|
|
+ font-size: 16px !important;
|
|
|
+}
|
|
|
+.screen {
|
|
|
+ height: 50px;
|
|
|
+ margin: 5px 0;
|
|
|
+ padding: 0 20px;
|
|
|
+ background-color: darkgray;
|
|
|
+ line-height: 50px;
|
|
|
+}
|
|
|
+.option {
|
|
|
+ padding: 0 15px;
|
|
|
+ .el-col {
|
|
|
+ line-height: 30px;
|
|
|
+ }
|
|
|
+}
|
|
|
+.option-button {
|
|
|
+ margin-top: 10px;
|
|
|
+ display: flex;
|
|
|
+ justify-content: center;
|
|
|
+}
|
|
|
+</style>
|