|
@@ -96,10 +96,8 @@ Vue.component('cqu-check', {
|
|
|
url: PATH + '/front/getSearchCondition',
|
|
|
async: false,
|
|
|
success: function (json) {
|
|
|
- console.log(json)
|
|
|
var index = 1;
|
|
|
var Area = json.data.area;
|
|
|
- console.log(Area)
|
|
|
// 区域 中心城区
|
|
|
for (var i = 0; i < Area.zxcq.length; i++) {
|
|
|
_this.coreList.push({
|
|
@@ -204,21 +202,12 @@ const retoot = new Vue({
|
|
|
moreShow: '',
|
|
|
getParam: {
|
|
|
page: 1,
|
|
|
- limit: 10,
|
|
|
- count: 0,
|
|
|
+ limit: 20,
|
|
|
QX: '',
|
|
|
- CJJG: '',
|
|
|
- HX: '',
|
|
|
- JZMJ: '',
|
|
|
- FWLX: '',
|
|
|
+ startDate: '2022-05-07',
|
|
|
+ endDate: '2022-07-07',
|
|
|
search: '',
|
|
|
- FYLX: 0,
|
|
|
- SZC: '',
|
|
|
- ZXCD: '',
|
|
|
- sort: 0,
|
|
|
- type: 1,
|
|
|
- startDate: '',
|
|
|
- endDate: ''
|
|
|
+ type: '',
|
|
|
},
|
|
|
}
|
|
|
},
|
|
@@ -236,29 +225,29 @@ const retoot = new Vue({
|
|
|
},
|
|
|
},
|
|
|
methods: {
|
|
|
- getHouseInfoList() {
|
|
|
- var _this = this;
|
|
|
- $.ajax({
|
|
|
- type: 'get',
|
|
|
- url: PATH + '/front/getHouseSourceTypeList',
|
|
|
- data: this.getParam,
|
|
|
- success: function (json) {
|
|
|
- if (json.msg == "SUCCESS") {
|
|
|
- _this.houseInfoList = JSON.parse(json.data);
|
|
|
- _this.getParam.count = json.count;
|
|
|
- } else {
|
|
|
- layer.msg('请求错误');
|
|
|
- }
|
|
|
- _this.loading = false;
|
|
|
- },
|
|
|
- error: function (err) {
|
|
|
- layer.msg('网络错误!');
|
|
|
- }
|
|
|
- })
|
|
|
- },
|
|
|
+ // getHouseInfoList() {
|
|
|
+ // var _this = this;
|
|
|
+ // $.ajax({
|
|
|
+ // type: 'get',
|
|
|
+ // url: PATH + '/front/getHouseSourceTypeList',
|
|
|
+ // data: this.getParam,
|
|
|
+ // success: function (json) {
|
|
|
+ // if (json.msg == "SUCCESS") {
|
|
|
+ // _this.houseInfoList = JSON.parse(json.data);
|
|
|
+ // _this.getParam.count = json.count;
|
|
|
+ // } else {
|
|
|
+ // layer.msg('请求错误');
|
|
|
+ // }
|
|
|
+ // _this.loading = false;
|
|
|
+ // },
|
|
|
+ // error: function (err) {
|
|
|
+ // layer.msg('网络错误!');
|
|
|
+ // }
|
|
|
+ // })
|
|
|
+ // },
|
|
|
gsGetAjax() {
|
|
|
- var _this = this
|
|
|
- _this.isSelect1 = true,
|
|
|
+ var _this = this
|
|
|
+ _this.isSelect1 = true,
|
|
|
_this.isSelect2 = false,
|
|
|
_this.isShow1 = true,
|
|
|
_this.isShow2 = false,
|
|
@@ -281,7 +270,7 @@ const retoot = new Vue({
|
|
|
}
|
|
|
_this.mechData = obj
|
|
|
if (_this.mechData.length > 0) {
|
|
|
- for (var j = 0; j < _this.mechData.length; j++) {
|
|
|
+ for (var j = 0; j < _this.mechData.length; j++) {
|
|
|
var conpenyhtml1 = ''
|
|
|
conpenyhtml1 += '<li class="rangkingli">'
|
|
|
conpenyhtml1 += '<a href="/zfjyjgfwpt/main/mobilepage/' + _this.mechData[j].url + '">'
|
|
@@ -311,10 +300,10 @@ const retoot = new Vue({
|
|
|
conpenyhtml1 += '</li>'
|
|
|
$('.ranking').append(conpenyhtml1)
|
|
|
$('.pranking').empty()
|
|
|
- obj=[]
|
|
|
+ obj = []
|
|
|
}
|
|
|
} else {
|
|
|
- conpenyhtml1 += '<div style="height: 100px;line-height: 100px;text-align: center;">暂无数据</div>'
|
|
|
+ conpenyhtml1 = '<div style="height: 100px;line-height: 100px;text-align: center;">暂无数据</div>'
|
|
|
$('.ranking').empty().append(conpenyhtml1)
|
|
|
}
|
|
|
_this.loading = false
|
|
@@ -337,7 +326,6 @@ const retoot = new Vue({
|
|
|
url: PATH + '/front/getTradeList',
|
|
|
data: this.getParam,
|
|
|
success: function (json) {
|
|
|
- console.log(json)
|
|
|
if (json.data) {
|
|
|
var obj = []
|
|
|
for (var i = 0; i < json.data.length; i++) {
|
|
@@ -385,7 +373,7 @@ const retoot = new Vue({
|
|
|
conpenyhtml2 += '</li>'
|
|
|
$('.ranking').empty()
|
|
|
$('.pranking').append(conpenyhtml2)
|
|
|
- obj=[]
|
|
|
+ obj = []
|
|
|
|
|
|
}
|
|
|
} else {
|
|
@@ -416,7 +404,7 @@ const retoot = new Vue({
|
|
|
})
|
|
|
this.moreShow = id
|
|
|
// this.show = true
|
|
|
- console.log(this.show);
|
|
|
+ // console.log(this.show);
|
|
|
if (this.show) {
|
|
|
this.show = false
|
|
|
} else {
|
|
@@ -438,7 +426,11 @@ const retoot = new Vue({
|
|
|
}
|
|
|
|
|
|
this.getParam.QX = rec.join(',');
|
|
|
- this.getHouseInfoList();
|
|
|
+ if (this.isSelect1) {
|
|
|
+ this.gsGetAjax()
|
|
|
+ } else {
|
|
|
+ this.ryGetAjax()
|
|
|
+ }
|
|
|
},
|
|
|
searchResult() {
|
|
|
console.log(this.isSelect1)
|
|
@@ -665,8 +657,7 @@ for (i = 0; i < myDate.getFullYear() - (myDate.getFullYear() - 2); i++) {
|
|
|
}
|
|
|
}
|
|
|
obj.childs = _data2;
|
|
|
- _data.push(obj)
|
|
|
-}
|
|
|
+ _data.push(obj)}
|
|
|
|
|
|
var dateStart = '' //起始日期值
|
|
|
var dateStart1 = '' //起始日期备份值
|
|
@@ -720,7 +711,6 @@ var mobileSelect2 = new MobileSelect({
|
|
|
}
|
|
|
dateEnd1 = dateEnd
|
|
|
dateEnd = ''
|
|
|
- console.log(bs)
|
|
|
retoot.$data.getParam.startDate = dateStart1
|
|
|
retoot.$data.getParam.endDate = dateEnd1
|
|
|
if (bs == "1") {
|
|
@@ -731,4 +721,4 @@ var mobileSelect2 = new MobileSelect({
|
|
|
retoot.ryGetAjax(retoot.$data.getParam.type, retoot.$data.getParam.startDate, retoot.$data.getParam.endDate)
|
|
|
}
|
|
|
},
|
|
|
-});
|
|
|
+});
|