|
@@ -1,415 +1,415 @@
|
|
|
-<template>
|
|
|
-<div class="shopWrap">
|
|
|
- <div class="shopTop">
|
|
|
- <dl class="searchNav">
|
|
|
- <dt>
|
|
|
- <img src="../../../static/images/common/back.png" @click="goHome();">
|
|
|
- </dt>
|
|
|
- <dd @click="goSearch();">
|
|
|
- <img src="../../../static/images/shop/search.png">
|
|
|
- <span>请搜索在租铺源</span>
|
|
|
- </dd>
|
|
|
- </dl>
|
|
|
- <div class="shaixuan">
|
|
|
- <div class="list">
|
|
|
- <div @click="tab1($event)" :class="{'cur':tab===0}" v-if="this.areaTxt == '' || this.areaTxt == '全部'"><span>区域</span><i class="deltaBlack"></i><i class="deltaBlue"></i></div>
|
|
|
- <div @click="tab1($event)" class="listTxt" v-else><span>{{areaTxt}}</span><i></i></div>
|
|
|
-
|
|
|
- <div @click="tab2($event)" :class="{'cur':tab===1}" v-if="this.yeTaiTxt == '' || this.yeTaiTxt == '全部'"><span>业态</span><i class="deltaBlack"></i><i class="deltaBlue"></i></div>
|
|
|
- <div @click="tab2($event)" class="listTxt" v-else><span>{{yeTaiTxt}}</span><i></i></div>
|
|
|
-
|
|
|
- <div @click="tab3($event)" :class="{'cur':tab===2}" v-if="this.mianjiTxt == '' || this.mianjiTxt == '全部'"><span>面积</span><i class="deltaBlack"></i><i class="deltaBlue"></i></div>
|
|
|
- <div @click="tab3($event)" class="listTxt" v-else><span>{{mianjiTxt}}</span><i></i></div>
|
|
|
-
|
|
|
- <div @click="tab4($event)" :class="{'cur':tab===3}" v-if="this.priceTxt == '' || this.priceTxt == '全部'"><span>价格</span><i class="deltaBlack"></i><i class="deltaBlue"></i></div>
|
|
|
- <div @click="tab4($event)" class="listTxt" v-else><span>{{priceTxt}}</span><i></i></div>
|
|
|
- </div>
|
|
|
-
|
|
|
- <div class="listContent">
|
|
|
- <!-- <div class="modal" @click="modalHide()" ref="modal"></div> -->
|
|
|
- <ul class="one">
|
|
|
- <!-- 区域 -->
|
|
|
- <li class="oneList" v-show="tab===0">
|
|
|
- <ul class="two areaBox">
|
|
|
- <li class="twoChild" v-for="(item,index) in areaList" ref="first">
|
|
|
- <span class="first" @click="quyuFun($event,item)">{{item.area_name}}</span>
|
|
|
- <ol class="three">
|
|
|
- <li v-for="(item1,index1) in areaChild.regionsList" @click="quyuChildFun($event,item1)">{{item1.name}}</li>
|
|
|
- </ol>
|
|
|
- </li>
|
|
|
- </ul>
|
|
|
- </li>
|
|
|
- <!-- 业态 -->
|
|
|
- <li class="oneList" v-show="tab===1">
|
|
|
- <ul class="four">
|
|
|
- <ul class="two twoYetai">
|
|
|
- <li class="twoChild" v-for="(item,index) in yeTaiList"><span class="first2" @click="yetaiFun($event,item)">{{item.name}}</span>
|
|
|
- <ol class="three">
|
|
|
- <li v-for="(item1,index1) in yetaiChild.childrenList" @click="yetaiChildFun($event,item1)">{{item1.name}}</li>
|
|
|
- </ol>
|
|
|
- </li>
|
|
|
- </ul>
|
|
|
- </ul>
|
|
|
- </li>
|
|
|
- <!-- 面积 -->
|
|
|
- <li class="oneList" v-show="tab===2">
|
|
|
- <ul class="four">
|
|
|
- <li v-for="(item,index) in mianjiList" @click="mianjiFun($event,item)">{{item.show_text}}</li>
|
|
|
- </ul>
|
|
|
- </li>
|
|
|
- <!-- 价格 -->
|
|
|
- <li class="oneList" v-show="tab===3">
|
|
|
- <ul class="two twoPrice">
|
|
|
- <li class="twoChild" v-for="(item,index) in price">
|
|
|
- <span class="first1" @click="priceFun($event,index)">{{item.name}}</span>
|
|
|
- <ol class="three">
|
|
|
- <li v-for="(item1,index1) in priceChild" @click="priceChildFun($event,item1)">{{item1.show_text}}</li>
|
|
|
- </ol>
|
|
|
- </li>
|
|
|
- </ul>
|
|
|
- </li>
|
|
|
- </ul>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
-
|
|
|
- <div class="shoplist" v-show="noData===1">
|
|
|
- <div class="detail" ref="wrapper">
|
|
|
- <mt-loadmore :top-method="loadTop" :bottom-method="loadBottom" @bottom-status-change="handleBottomChange" ref="loadmore" :bottom-all-loaded="allLoaded" :auto-fill="false">
|
|
|
- <ul>
|
|
|
- <li v-for="(item,index) in listArr" @click="goDetail(item.id);">
|
|
|
- <div class="lisyImg">
|
|
|
- <img :src="item.imgs" :onerror="defaultImg">
|
|
|
- </div>
|
|
|
- <div class="listBox">
|
|
|
- <h3>{{item.title}}</h3>
|
|
|
- <h5>{{item.name}}</h5>
|
|
|
- <h6><span>月租金:</span>{{item.monthly_rent}}{{item.monthly_rent_u}}</h6>
|
|
|
- <div class="tags"><span v-if="index1 < 3" v-for="(item1,index1) in item.label">{{item1}}</span></div>
|
|
|
- <p><span>合作佣金:</span>{{item.commission}}</p>
|
|
|
- </div>
|
|
|
- </li>
|
|
|
- </ul>
|
|
|
- <div class="noMore" v-if="more" style=" margin-bottom: 1.8rem;">没有更多数据了...</div>
|
|
|
- </mt-loadmore>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
-
|
|
|
- <div class="noData" v-show="noData===0">
|
|
|
- <dl>
|
|
|
- <dt>
|
|
|
- <img src="../../../static/images/common/noData.png">
|
|
|
- </dt>
|
|
|
- <p>暂无数据</p>
|
|
|
- </dl>
|
|
|
- </div>
|
|
|
-
|
|
|
-</div>
|
|
|
-</template>
|
|
|
-<script>
|
|
|
-import axios from 'axios';
|
|
|
-import qs from "qs";
|
|
|
-import { Indicator } from 'mint-ui';
|
|
|
-export default {
|
|
|
- name: '',
|
|
|
- data () {
|
|
|
- return {
|
|
|
- noData: 1,
|
|
|
-
|
|
|
- tab: "",
|
|
|
- pageSize: 10,
|
|
|
- pageNum: 1,
|
|
|
- shopIndex: 1,
|
|
|
- allLoaded: false,
|
|
|
- more: false,
|
|
|
-
|
|
|
- num: 0,
|
|
|
- num1: 0,
|
|
|
- num2: 0,
|
|
|
-
|
|
|
- areaList: [], //筛选区域
|
|
|
- areaTxt: "", //区域文字
|
|
|
- areaChild: [], //筛选区域子集
|
|
|
- yeTaiList: [], //业态
|
|
|
- yetaiChild: [], //业态子集
|
|
|
- yeTaiTxt: "", //业态文案
|
|
|
- mianjiList: [], //面积
|
|
|
- mianjiTxt: "", //面积文案
|
|
|
- price:[
|
|
|
- {"name": "月租金",},
|
|
|
- {"name": "转让费"}
|
|
|
- ],
|
|
|
- priceChild: [], //价格子集
|
|
|
- priceTxt: "", //价格文案
|
|
|
- monthlyList: [],
|
|
|
- transFeeList: [],
|
|
|
-
|
|
|
- areaId: "", //区域ID
|
|
|
- businessAreaId: "", //商圈ID
|
|
|
- typeId: "", //类型ID
|
|
|
- yeTaiId: "", //行业ID
|
|
|
- sonManageTypeId: "", //业态子集
|
|
|
- mianjiId: "", //面积ID
|
|
|
- monthlyRentListId: "", //月租ID
|
|
|
- transFeeId: "", //转让费ID
|
|
|
-
|
|
|
- listArr: [],
|
|
|
-
|
|
|
- defaultImg: 'this.src="' + require('../../../static/images/errImg/err.png') + '"', //默认图
|
|
|
- }
|
|
|
- },
|
|
|
- computed:{
|
|
|
-
|
|
|
- },
|
|
|
- methods:{
|
|
|
- goHome(){
|
|
|
- this.$router.push({path:"/home"});
|
|
|
- },
|
|
|
- goDetail(id){
|
|
|
- this.$router.push({path:"/zushopdetail",query:{id: id}});
|
|
|
- },
|
|
|
- goSearch(){
|
|
|
- this.$router.push({path:"/searchshop",query:{type: "1"}});
|
|
|
- },
|
|
|
- // 条件列表
|
|
|
- selectData() {
|
|
|
- let _this = this;
|
|
|
- let url = this.changeData() + '/shop/findShopRentSearch'
|
|
|
- var data = {
|
|
|
- cityId: sessionStorage.cityId || 110100, //城市ID
|
|
|
- channel: "1",
|
|
|
- }
|
|
|
- axios(url,{
|
|
|
- method: 'post',
|
|
|
- params: data
|
|
|
- }).then(data => {
|
|
|
- // console.log(data);
|
|
|
- this.areaList = data.data.areaList; //区域
|
|
|
- this.yeTaiList = data.data.yeTaiList; //业态
|
|
|
- this.mianjiList = data.data.mianjiList; //面积
|
|
|
- this.monthlyList = data.data.monthlyRentList; //月租金
|
|
|
- this.transFeeList = data.data.transFeeList; //转让费
|
|
|
- }).catch(err => {
|
|
|
- console.log(err)
|
|
|
- });
|
|
|
- },
|
|
|
-
|
|
|
- // 条件列表
|
|
|
- listData() {
|
|
|
- let _this = this;
|
|
|
- let url = this.changeData() + '/shop/selectShopPage'
|
|
|
- var data = {
|
|
|
- titleAreaId: this.businessAreaId, //区域ID
|
|
|
- titleYeTaiId: this.yeTaiId, //行业
|
|
|
- titleMianjiId: this.mianjiId, //面积ID
|
|
|
- titleMonthlyId: this.monthlyRentListId, //月租ID
|
|
|
- titleTransfeeId: this.transFeeId, //转让费ID
|
|
|
- rentType: "1", // 销售类别:1:出租 2:出售 3:新盘出租 4-新盘出售
|
|
|
- pageSize: this.pageSize, // 每页显示条数
|
|
|
- pageNum: this.pageNum, //第几页
|
|
|
- cityId: sessionStorage.cityId || 110100, //城市ID
|
|
|
- sonManageTypeId: this.sonManageTypeId, //业态子集
|
|
|
- }
|
|
|
- axios(url,{
|
|
|
- method: 'post',
|
|
|
- params: data
|
|
|
- }).then(data => {
|
|
|
- // console.log(data);
|
|
|
- Indicator.open({
|
|
|
- text: '',
|
|
|
- spinnerType: 'fading-circle'
|
|
|
- });
|
|
|
- setTimeout(function () {
|
|
|
- Indicator.close();
|
|
|
- },1000);
|
|
|
- this.listArr = data.data.list; //列表
|
|
|
- if(this.listArr.length==0){
|
|
|
- this.noData = 0;
|
|
|
- }else{
|
|
|
- this.noData = 1;
|
|
|
- }
|
|
|
-
|
|
|
- }).catch(err => {
|
|
|
- console.log(err)
|
|
|
- });
|
|
|
- },
|
|
|
-
|
|
|
- //下拉刷新
|
|
|
- loadTop(){
|
|
|
- $(".shoplist ul li").removeClass("cur");
|
|
|
- this.shopIndex = 1;
|
|
|
- var _this = this;
|
|
|
- var data = {
|
|
|
- titleAreaId: this.businessAreaId, //区域ID
|
|
|
- titleYeTaiId: this.yeTaiId, //行业
|
|
|
- titleMianjiId: this.mianjiId, //面积ID
|
|
|
- titleMonthlyId: this.monthlyRentListId, //月租ID
|
|
|
- titleTransfeeId: this.transFeeId, //转让费ID
|
|
|
- rentType: "1", // 销售类别:1:出租 2:出售 3:新盘出租 4-新盘出售
|
|
|
- pageSize: this.pageSize, // 每页显示条数
|
|
|
- pageNum: "1", //第几页
|
|
|
- cityId: sessionStorage.cityId || 110100, //城市ID
|
|
|
- sonManageTypeId: this.sonManageTypeId, //业态子集
|
|
|
- }
|
|
|
- setTimeout(function () {
|
|
|
- _this.$http.post(_this.changeData() + '/shop/selectShopPage', qs.stringify(data)).then(function (data) {
|
|
|
- _this.listArr = data.data.list; //列表
|
|
|
- _this.$refs.loadmore.onTopLoaded();
|
|
|
- }.bind(_this)).catch(function (err) {
|
|
|
- console.log("商店列表页面错误:", err)
|
|
|
- })
|
|
|
- }, 2000);
|
|
|
- },
|
|
|
-
|
|
|
- //上拉加载
|
|
|
- loadBottom() {
|
|
|
- var _this = this;
|
|
|
- this.shopIndex++;
|
|
|
- var data = {
|
|
|
- titleAreaId: this.businessAreaId, //区域ID
|
|
|
- titleYeTaiId: this.yeTaiId, //行业
|
|
|
- titleMianjiId: this.mianjiId, //面积ID
|
|
|
- titleMonthlyId: this.monthlyRentListId, //月租ID
|
|
|
- titleTransfeeId: this.transFeeId, //转让费ID
|
|
|
- rentType: "1", // 销售类别:1:出租 2:出售 3:新盘出租 4-新盘出售
|
|
|
- pageSize: this.pageSize, // 每页显示条数
|
|
|
- pageNum: this.shopIndex, //第几页
|
|
|
- cityId: sessionStorage.cityId || 110100, //城市ID
|
|
|
- sonManageTypeId: this.sonManageTypeId, //业态子集
|
|
|
- }
|
|
|
- _this.$http.post(_this.changeData() + '/shop/selectShopPage',qs.stringify(data)).then(function(res){
|
|
|
- _this.listArr = _this.listArr.concat(res.data.list);
|
|
|
- if(res.data.list == ''){
|
|
|
- this.allLoaded = true;
|
|
|
- }
|
|
|
- _this.$refs.loadmore.onBottomLoaded();
|
|
|
- }.bind(_this)).catch(function(err){
|
|
|
- console.log("商店列表页面错误:",err);
|
|
|
- })
|
|
|
- },
|
|
|
- handleBottomChange(){
|
|
|
- var _this = this;
|
|
|
- if(this.allLoaded == true){
|
|
|
- this.more = true;
|
|
|
- setTimeout(function () {
|
|
|
- _this.more = false;
|
|
|
- },2000)
|
|
|
- }
|
|
|
- },
|
|
|
-
|
|
|
- tab1(e){
|
|
|
- if($(e.srcElement).hasClass("cur")){
|
|
|
- this.tab = "";
|
|
|
- }else{
|
|
|
- this.tab = 0;
|
|
|
- if(this.num === 0){
|
|
|
- $(".areaBox li").eq(0).children(".first").click();
|
|
|
- this.num++;
|
|
|
- }
|
|
|
- }
|
|
|
- },
|
|
|
- tab2(e){
|
|
|
- if($(e.srcElement).hasClass("cur")){
|
|
|
- this.tab = "";
|
|
|
- }else{
|
|
|
- this.tab = 1;
|
|
|
- if(this.num2 === 0){
|
|
|
- $(".twoYetai li").eq(0).children(".first2").click();
|
|
|
- this.num2++;
|
|
|
- }
|
|
|
- }
|
|
|
- },
|
|
|
- tab3(e){
|
|
|
- if($(e.srcElement).hasClass("cur")){
|
|
|
- this.tab = "";
|
|
|
- }else{
|
|
|
- this.tab = 2;
|
|
|
- }
|
|
|
- },
|
|
|
- tab4(e){
|
|
|
- if($(e.srcElement).hasClass("cur")){
|
|
|
- this.tab = "";
|
|
|
- }else{
|
|
|
- this.tab = 3;
|
|
|
- if(this.num1 === 0){
|
|
|
- $(".twoPrice li").eq(0).children(".first1").click();
|
|
|
- this.num1++;
|
|
|
- }
|
|
|
- }
|
|
|
- },
|
|
|
-
|
|
|
- // 区域筛选
|
|
|
- quyuFun(e,item){
|
|
|
- this.areaChild = item;
|
|
|
- this.areaId = item.id;
|
|
|
- $(e.srcElement).parent(".twoChild").addClass("cur").siblings().removeClass("cur");
|
|
|
- },
|
|
|
- quyuChildFun(e,item){
|
|
|
- this.shopIndex = 1;
|
|
|
- this.allLoaded = false;
|
|
|
- this.businessAreaId = item.id;
|
|
|
- this.areaTxt = item.name;
|
|
|
- $(e.srcElement).addClass("cur").siblings().removeClass("cur");
|
|
|
- this.tab = "";
|
|
|
- this.listData();
|
|
|
- },
|
|
|
- // 业态筛选
|
|
|
- yetaiFun(e,item){
|
|
|
- this.yetaiChild = item;
|
|
|
- $(e.srcElement).parent(".twoChild").addClass("cur").siblings().removeClass("cur");
|
|
|
- },
|
|
|
- yetaiChildFun(e,item){
|
|
|
- this.shopIndex = 1;
|
|
|
- this.allLoaded = false;
|
|
|
- this.yeTaiId = item.id;
|
|
|
- this.yeTaiTxt = item.name;
|
|
|
- $(e.srcElement).addClass("cur").siblings().removeClass("cur");
|
|
|
- this.tab = "";
|
|
|
- this.listData();
|
|
|
- },
|
|
|
- // 面积
|
|
|
- mianjiFun(e,item){
|
|
|
- this.shopIndex = 1;
|
|
|
- this.allLoaded = false;
|
|
|
- this.mianjiId = item.id;
|
|
|
- this.mianjiTxt = item.show_text;
|
|
|
- $(e.srcElement).addClass("cur").siblings().removeClass("cur");
|
|
|
- this.tab = "";
|
|
|
- this.listData();
|
|
|
- },
|
|
|
- // 价格
|
|
|
- priceFun(e,index){
|
|
|
- if(index == 0){
|
|
|
- this.priceChild = this.monthlyList; //月租金
|
|
|
- this.priceIndex = 0;
|
|
|
- }else{
|
|
|
- this.priceIndex = 1;
|
|
|
- this.priceChild = this.transFeeList; //转让费
|
|
|
- }
|
|
|
- $(e.srcElement).parent(".twoChild").addClass("cur").siblings().removeClass("cur");
|
|
|
- },
|
|
|
- priceChildFun(e,item){
|
|
|
- this.shopIndex = 1;
|
|
|
- this.allLoaded = false;
|
|
|
- if(this.priceIndex == 0){
|
|
|
- this.monthlyRentListId = item.id; //月租金id
|
|
|
- }else{
|
|
|
- this.transFeeId = item.id; //转让费id
|
|
|
- }
|
|
|
- $(e.srcElement).addClass("cur").siblings().removeClass("cur");
|
|
|
- this.priceTxt = item.show_text;
|
|
|
- this.tab = "";
|
|
|
- this.listData();
|
|
|
- },
|
|
|
- },
|
|
|
- mounted() {
|
|
|
- // 条件列表
|
|
|
- this.selectData();
|
|
|
- this.listData();
|
|
|
- },
|
|
|
-}
|
|
|
-</script>
|
|
|
-<style scoped lang="scss" type="text/scss">
|
|
|
-@import "../../../static/css/shopList.scss";
|
|
|
-</style>
|
|
|
-
|
|
|
+<template>
|
|
|
+<div class="shopWrap">
|
|
|
+ <div class="shopTop">
|
|
|
+ <dl class="searchNav">
|
|
|
+ <dt>
|
|
|
+ <img src="../../../static/images/common/back.png" @click="goHome();">
|
|
|
+ </dt>
|
|
|
+ <dd @click="goSearch();">
|
|
|
+ <img src="../../../static/images/shop/search.png">
|
|
|
+ <span>请搜索在租铺源</span>
|
|
|
+ </dd>
|
|
|
+ </dl>
|
|
|
+ <div class="shaixuan">
|
|
|
+ <div class="list">
|
|
|
+ <div @click="tab1($event)" :class="{'cur':tab===0}" v-if="this.areaTxt == '' || this.areaTxt == '全部'"><span>区域</span><i class="deltaBlack"></i><i class="deltaBlue"></i></div>
|
|
|
+ <div @click="tab1($event)" class="listTxt" v-else><span>{{areaTxt}}</span><i></i></div>
|
|
|
+
|
|
|
+ <div @click="tab2($event)" :class="{'cur':tab===1}" v-if="this.yeTaiTxt == '' || this.yeTaiTxt == '全部'"><span>业态</span><i class="deltaBlack"></i><i class="deltaBlue"></i></div>
|
|
|
+ <div @click="tab2($event)" class="listTxt" v-else><span>{{yeTaiTxt}}</span><i></i></div>
|
|
|
+
|
|
|
+ <div @click="tab3($event)" :class="{'cur':tab===2}" v-if="this.mianjiTxt == '' || this.mianjiTxt == '全部'"><span>面积</span><i class="deltaBlack"></i><i class="deltaBlue"></i></div>
|
|
|
+ <div @click="tab3($event)" class="listTxt" v-else><span>{{mianjiTxt}}</span><i></i></div>
|
|
|
+
|
|
|
+ <div @click="tab4($event)" :class="{'cur':tab===3}" v-if="this.priceTxt == '' || this.priceTxt == '全部'"><span>价格</span><i class="deltaBlack"></i><i class="deltaBlue"></i></div>
|
|
|
+ <div @click="tab4($event)" class="listTxt" v-else><span>{{priceTxt}}</span><i></i></div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="listContent">
|
|
|
+ <!-- <div class="modal" @click="modalHide()" ref="modal"></div> -->
|
|
|
+ <ul class="one">
|
|
|
+ <!-- 区域 -->
|
|
|
+ <li class="oneList" v-show="tab===0">
|
|
|
+ <ul class="two areaBox">
|
|
|
+ <li class="twoChild" v-for="(item,index) in areaList" ref="first">
|
|
|
+ <span class="first" @click="quyuFun($event,item)">{{item.area_name}}</span>
|
|
|
+ <ol class="three">
|
|
|
+ <li v-for="(item1,index1) in areaChild.regionsList" @click="quyuChildFun($event,item1)">{{item1.name}}</li>
|
|
|
+ </ol>
|
|
|
+ </li>
|
|
|
+ </ul>
|
|
|
+ </li>
|
|
|
+ <!-- 业态 -->
|
|
|
+ <li class="oneList" v-show="tab===1">
|
|
|
+ <ul class="four">
|
|
|
+ <ul class="two twoYetai">
|
|
|
+ <li class="twoChild" v-for="(item,index) in yeTaiList"><span class="first2" @click="yetaiFun($event,item)">{{item.name}}</span>
|
|
|
+ <ol class="three">
|
|
|
+ <li v-for="(item1,index1) in yetaiChild.childrenList" @click="yetaiChildFun($event,item1)">{{item1.name}}</li>
|
|
|
+ </ol>
|
|
|
+ </li>
|
|
|
+ </ul>
|
|
|
+ </ul>
|
|
|
+ </li>
|
|
|
+ <!-- 面积 -->
|
|
|
+ <li class="oneList" v-show="tab===2">
|
|
|
+ <ul class="four">
|
|
|
+ <li v-for="(item,index) in mianjiList" @click="mianjiFun($event,item)">{{item.show_text}}</li>
|
|
|
+ </ul>
|
|
|
+ </li>
|
|
|
+ <!-- 价格 -->
|
|
|
+ <li class="oneList" v-show="tab===3">
|
|
|
+ <ul class="two twoPrice">
|
|
|
+ <li class="twoChild" v-for="(item,index) in price">
|
|
|
+ <span class="first1" @click="priceFun($event,index)">{{item.name}}</span>
|
|
|
+ <ol class="three">
|
|
|
+ <li v-for="(item1,index1) in priceChild" @click="priceChildFun($event,item1)">{{item1.show_text}}</li>
|
|
|
+ </ol>
|
|
|
+ </li>
|
|
|
+ </ul>
|
|
|
+ </li>
|
|
|
+ </ul>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="shoplist" v-show="noData===1">
|
|
|
+ <div class="detail" ref="wrapper">
|
|
|
+ <mt-loadmore :top-method="loadTop" :bottom-method="loadBottom" @bottom-status-change="handleBottomChange" ref="loadmore" :bottom-all-loaded="allLoaded" :auto-fill="false">
|
|
|
+ <ul>
|
|
|
+ <li v-for="(item,index) in listArr" @click="goDetail(item.id);">
|
|
|
+ <div class="lisyImg">
|
|
|
+ <img :src="item.imgs" :onerror="defaultImg">
|
|
|
+ </div>
|
|
|
+ <div class="listBox">
|
|
|
+ <h3>{{item.title}}</h3>
|
|
|
+ <h5>{{item.name}}</h5>
|
|
|
+ <h6><span>月租金:</span>{{item.monthly_rent}}{{item.monthly_rent_u}}</h6>
|
|
|
+ <div class="tags"><span v-if="index1 < 3" v-for="(item1,index1) in item.label">{{item1}}</span></div>
|
|
|
+ <p><span>合作佣金:</span>{{item.commission}}</p>
|
|
|
+ </div>
|
|
|
+ </li>
|
|
|
+ </ul>
|
|
|
+ <div class="noMore" v-if="more" style=" margin-bottom: 1.8rem;">没有更多数据了...</div>
|
|
|
+ </mt-loadmore>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="noData" v-show="noData===0">
|
|
|
+ <dl>
|
|
|
+ <dt>
|
|
|
+ <img src="../../../static/images/common/noData.png">
|
|
|
+ </dt>
|
|
|
+ <p>暂无数据</p>
|
|
|
+ </dl>
|
|
|
+ </div>
|
|
|
+
|
|
|
+</div>
|
|
|
+</template>
|
|
|
+<script>
|
|
|
+import axios from 'axios';
|
|
|
+import qs from "qs";
|
|
|
+import { Indicator } from 'mint-ui';
|
|
|
+export default {
|
|
|
+ name: '',
|
|
|
+ data () {
|
|
|
+ return {
|
|
|
+ noData: 1,
|
|
|
+
|
|
|
+ tab: "",
|
|
|
+ pageSize: 10,
|
|
|
+ pageNum: 1,
|
|
|
+ shopIndex: 1,
|
|
|
+ allLoaded: false,
|
|
|
+ more: false,
|
|
|
+
|
|
|
+ num: 0,
|
|
|
+ num1: 0,
|
|
|
+ num2: 0,
|
|
|
+
|
|
|
+ areaList: [], //筛选区域
|
|
|
+ areaTxt: "", //区域文字
|
|
|
+ areaChild: [], //筛选区域子集
|
|
|
+ yeTaiList: [], //业态
|
|
|
+ yetaiChild: [], //业态子集
|
|
|
+ yeTaiTxt: "", //业态文案
|
|
|
+ mianjiList: [], //面积
|
|
|
+ mianjiTxt: "", //面积文案
|
|
|
+ price:[
|
|
|
+ {"name": "月租金",},
|
|
|
+ {"name": "转让费"}
|
|
|
+ ],
|
|
|
+ priceChild: [], //价格子集
|
|
|
+ priceTxt: "", //价格文案
|
|
|
+ monthlyList: [],
|
|
|
+ transFeeList: [],
|
|
|
+
|
|
|
+ areaId: "", //区域ID
|
|
|
+ businessAreaId: "", //商圈ID
|
|
|
+ typeId: "", //类型ID
|
|
|
+ yeTaiId: "", //行业ID
|
|
|
+ sonManageTypeId: "", //业态子集
|
|
|
+ mianjiId: "", //面积ID
|
|
|
+ monthlyRentListId: "", //月租ID
|
|
|
+ transFeeId: "", //转让费ID
|
|
|
+
|
|
|
+ listArr: [],
|
|
|
+
|
|
|
+ defaultImg: 'this.src="' + require('../../../static/images/errImg/err.png') + '"', //默认图
|
|
|
+ }
|
|
|
+ },
|
|
|
+ computed:{
|
|
|
+
|
|
|
+ },
|
|
|
+ methods:{
|
|
|
+ goHome(){
|
|
|
+ this.$router.push({path:"/home"});
|
|
|
+ },
|
|
|
+ goDetail(id){
|
|
|
+ this.$router.push({path:"/zushopdetail",query:{id: id}});
|
|
|
+ },
|
|
|
+ goSearch(){
|
|
|
+ this.$router.push({path:"/searchshop",query:{type: "1"}});
|
|
|
+ },
|
|
|
+ // 条件列表
|
|
|
+ selectData() {
|
|
|
+ let _this = this;
|
|
|
+ let url = this.changeData() + '/shop/findShopRentSearch'
|
|
|
+ var data = {
|
|
|
+ cityId: sessionStorage.cityId || 110100, //城市ID
|
|
|
+ channel: "1",
|
|
|
+ }
|
|
|
+ axios(url,{
|
|
|
+ method: 'post',
|
|
|
+ params: data
|
|
|
+ }).then(data => {
|
|
|
+ // console.log(data);
|
|
|
+ this.areaList = data.data.areaList; //区域
|
|
|
+ this.yeTaiList = data.data.yeTaiList; //业态
|
|
|
+ this.mianjiList = data.data.mianjiList; //面积
|
|
|
+ this.monthlyList = data.data.monthlyRentList; //月租金
|
|
|
+ this.transFeeList = data.data.transFeeList; //转让费
|
|
|
+ }).catch(err => {
|
|
|
+ console.log(err)
|
|
|
+ });
|
|
|
+ },
|
|
|
+
|
|
|
+ // 条件列表
|
|
|
+ listData() {
|
|
|
+ let _this = this;
|
|
|
+ let url = this.changeData() + '/shop/selectShopPage'
|
|
|
+ var data = {
|
|
|
+ titleAreaId: this.businessAreaId, //区域ID
|
|
|
+ titleYeTaiId: this.yeTaiId, //行业
|
|
|
+ titleMianjiId: this.mianjiId, //面积ID
|
|
|
+ titleMonthlyId: this.monthlyRentListId, //月租ID
|
|
|
+ titleTransfeeId: this.transFeeId, //转让费ID
|
|
|
+ rentType: "1", // 销售类别:1:出租 2:出售 3:新盘出租 4-新盘出售
|
|
|
+ pageSize: this.pageSize, // 每页显示条数
|
|
|
+ pageNum: this.pageNum, //第几页
|
|
|
+ cityId: sessionStorage.cityId || 110100, //城市ID
|
|
|
+ sonManageTypeId: this.sonManageTypeId, //业态子集
|
|
|
+ }
|
|
|
+ axios(url,{
|
|
|
+ method: 'post',
|
|
|
+ params: data
|
|
|
+ }).then(data => {
|
|
|
+ // console.log(data);
|
|
|
+ Indicator.open({
|
|
|
+ text: '',
|
|
|
+ spinnerType: 'fading-circle'
|
|
|
+ });
|
|
|
+ setTimeout(function () {
|
|
|
+ Indicator.close();
|
|
|
+ },1000);
|
|
|
+ this.listArr = data.data.list; //列表
|
|
|
+ if(this.listArr.length==0){
|
|
|
+ this.noData = 0;
|
|
|
+ }else{
|
|
|
+ this.noData = 1;
|
|
|
+ }
|
|
|
+
|
|
|
+ }).catch(err => {
|
|
|
+ console.log(err)
|
|
|
+ });
|
|
|
+ },
|
|
|
+
|
|
|
+ //下拉刷新
|
|
|
+ loadTop(){
|
|
|
+ $(".shoplist ul li").removeClass("cur");
|
|
|
+ this.shopIndex = 1;
|
|
|
+ var _this = this;
|
|
|
+ var data = {
|
|
|
+ titleAreaId: this.businessAreaId, //区域ID
|
|
|
+ titleYeTaiId: this.yeTaiId, //行业
|
|
|
+ titleMianjiId: this.mianjiId, //面积ID
|
|
|
+ titleMonthlyId: this.monthlyRentListId, //月租ID
|
|
|
+ titleTransfeeId: this.transFeeId, //转让费ID
|
|
|
+ rentType: "1", // 销售类别:1:出租 2:出售 3:新盘出租 4-新盘出售
|
|
|
+ pageSize: this.pageSize, // 每页显示条数
|
|
|
+ pageNum: "1", //第几页
|
|
|
+ cityId: sessionStorage.cityId || 110100, //城市ID
|
|
|
+ sonManageTypeId: this.sonManageTypeId, //业态子集
|
|
|
+ }
|
|
|
+ setTimeout(function () {
|
|
|
+ _this.$http.post(_this.changeData() + '/shop/selectShopPage', qs.stringify(data)).then(function (data) {
|
|
|
+ _this.listArr = data.data.list; //列表
|
|
|
+ _this.$refs.loadmore.onTopLoaded();
|
|
|
+ }.bind(_this)).catch(function (err) {
|
|
|
+ console.log("商店列表页面错误:", err)
|
|
|
+ })
|
|
|
+ }, 2000);
|
|
|
+ },
|
|
|
+
|
|
|
+ //上拉加载
|
|
|
+ loadBottom() {
|
|
|
+ var _this = this;
|
|
|
+ this.shopIndex++;
|
|
|
+ var data = {
|
|
|
+ titleAreaId: this.businessAreaId, //区域ID
|
|
|
+ titleYeTaiId: this.yeTaiId, //行业
|
|
|
+ titleMianjiId: this.mianjiId, //面积ID
|
|
|
+ titleMonthlyId: this.monthlyRentListId, //月租ID
|
|
|
+ titleTransfeeId: this.transFeeId, //转让费ID
|
|
|
+ rentType: "1", // 销售类别:1:出租 2:出售 3:新盘出租 4-新盘出售
|
|
|
+ pageSize: this.pageSize, // 每页显示条数
|
|
|
+ pageNum: this.shopIndex, //第几页
|
|
|
+ cityId: sessionStorage.cityId || 110100, //城市ID
|
|
|
+ sonManageTypeId: this.sonManageTypeId, //业态子集
|
|
|
+ }
|
|
|
+ _this.$http.post(_this.changeData() + '/shop/selectShopPage',qs.stringify(data)).then(function(res){
|
|
|
+ _this.listArr = _this.listArr.concat(res.data.list);
|
|
|
+ if(res.data.list == ''){
|
|
|
+ this.allLoaded = true;
|
|
|
+ }
|
|
|
+ _this.$refs.loadmore.onBottomLoaded();
|
|
|
+ }.bind(_this)).catch(function(err){
|
|
|
+ console.log("商店列表页面错误:",err);
|
|
|
+ })
|
|
|
+ },
|
|
|
+ handleBottomChange(){
|
|
|
+ var _this = this;
|
|
|
+ if(this.allLoaded == true){
|
|
|
+ this.more = true;
|
|
|
+ setTimeout(function () {
|
|
|
+ _this.more = false;
|
|
|
+ },2000)
|
|
|
+ }
|
|
|
+ },
|
|
|
+
|
|
|
+ tab1(e){
|
|
|
+ if($(e.srcElement).hasClass("cur")){
|
|
|
+ this.tab = "";
|
|
|
+ }else{
|
|
|
+ this.tab = 0;
|
|
|
+ if(this.num === 0){
|
|
|
+ $(".areaBox li").eq(0).children(".first").click();
|
|
|
+ this.num++;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ tab2(e){
|
|
|
+ if($(e.srcElement).hasClass("cur")){
|
|
|
+ this.tab = "";
|
|
|
+ }else{
|
|
|
+ this.tab = 1;
|
|
|
+ if(this.num2 === 0){
|
|
|
+ $(".twoYetai li").eq(0).children(".first2").click();
|
|
|
+ this.num2++;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ tab3(e){
|
|
|
+ if($(e.srcElement).hasClass("cur")){
|
|
|
+ this.tab = "";
|
|
|
+ }else{
|
|
|
+ this.tab = 2;
|
|
|
+ }
|
|
|
+ },
|
|
|
+ tab4(e){
|
|
|
+ if($(e.srcElement).hasClass("cur")){
|
|
|
+ this.tab = "";
|
|
|
+ }else{
|
|
|
+ this.tab = 3;
|
|
|
+ if(this.num1 === 0){
|
|
|
+ $(".twoPrice li").eq(0).children(".first1").click();
|
|
|
+ this.num1++;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+
|
|
|
+ // 区域筛选
|
|
|
+ quyuFun(e,item){
|
|
|
+ this.areaChild = item;
|
|
|
+ this.areaId = item.id;
|
|
|
+ $(e.srcElement).parent(".twoChild").addClass("cur").siblings().removeClass("cur");
|
|
|
+ },
|
|
|
+ quyuChildFun(e,item){
|
|
|
+ this.shopIndex = 1;
|
|
|
+ this.allLoaded = false;
|
|
|
+ this.businessAreaId = item.id;
|
|
|
+ this.areaTxt = item.name;
|
|
|
+ $(e.srcElement).addClass("cur").siblings().removeClass("cur");
|
|
|
+ this.tab = "";
|
|
|
+ this.listData();
|
|
|
+ },
|
|
|
+ // 业态筛选
|
|
|
+ yetaiFun(e,item){
|
|
|
+ this.yetaiChild = item;
|
|
|
+ $(e.srcElement).parent(".twoChild").addClass("cur").siblings().removeClass("cur");
|
|
|
+ },
|
|
|
+ yetaiChildFun(e,item){
|
|
|
+ this.shopIndex = 1;
|
|
|
+ this.allLoaded = false;
|
|
|
+ this.yeTaiId = item.id;
|
|
|
+ this.yeTaiTxt = item.name;
|
|
|
+ $(e.srcElement).addClass("cur").siblings().removeClass("cur");
|
|
|
+ this.tab = "";
|
|
|
+ this.listData();
|
|
|
+ },
|
|
|
+ // 面积
|
|
|
+ mianjiFun(e,item){
|
|
|
+ this.shopIndex = 1;
|
|
|
+ this.allLoaded = false;
|
|
|
+ this.mianjiId = item.id;
|
|
|
+ this.mianjiTxt = item.show_text;
|
|
|
+ $(e.srcElement).addClass("cur").siblings().removeClass("cur");
|
|
|
+ this.tab = "";
|
|
|
+ this.listData();
|
|
|
+ },
|
|
|
+ // 价格
|
|
|
+ priceFun(e,index){
|
|
|
+ if(index == 0){
|
|
|
+ this.priceChild = this.monthlyList; //月租金
|
|
|
+ this.priceIndex = 0;
|
|
|
+ }else{
|
|
|
+ this.priceIndex = 1;
|
|
|
+ this.priceChild = this.transFeeList; //转让费
|
|
|
+ }
|
|
|
+ $(e.srcElement).parent(".twoChild").addClass("cur").siblings().removeClass("cur");
|
|
|
+ },
|
|
|
+ priceChildFun(e,item){
|
|
|
+ this.shopIndex = 1;
|
|
|
+ this.allLoaded = false;
|
|
|
+ if(this.priceIndex == 0){
|
|
|
+ this.monthlyRentListId = item.id; //月租金id
|
|
|
+ }else{
|
|
|
+ this.transFeeId = item.id; //转让费id
|
|
|
+ }
|
|
|
+ $(e.srcElement).addClass("cur").siblings().removeClass("cur");
|
|
|
+ this.priceTxt = item.show_text;
|
|
|
+ this.tab = "";
|
|
|
+ this.listData();
|
|
|
+ },
|
|
|
+ },
|
|
|
+ mounted() {
|
|
|
+ // 条件列表
|
|
|
+ this.selectData();
|
|
|
+ this.listData();
|
|
|
+ },
|
|
|
+}
|
|
|
+</script>
|
|
|
+<style scoped lang="scss" type="text/scss">
|
|
|
+@import "../../../static/css/shopList.scss";
|
|
|
+</style>
|
|
|
+
|