//户型列表
getHouseLists() {
var QueryJson = new Object()
QueryJson = {
Type: ‘4’,//1-楼盘(小区) 2,3-楼阁 4-楼层 5-房间
KeyWord: ‘’,//关键字
AreaId: ‘’,//区域id
PropertyId: ‘’,//小区id
RoomTypeName: ‘’,//户型
Rental: ‘’//租金
}
let data = {
QueryJson,
page: 1,
Rows: 10
}
// var data = new Object()
// data.QueryJson[‘Type’] = ‘4’
// data.QueryJson[‘KeyWord’] = ‘’
// data.QueryJson[‘AreaId’] = ‘’
// data.QueryJson[‘PropertyId’] = ‘’
// data.QueryJson[‘RoomTypeName’] = ‘’
// data.QueryJson[‘Rental’] = ‘’
// page.page = 1,
// page.Rows = 10
app.agriknow.getHouseLists(data)
.then(res => {
console.log(res)
})
.catch(res => {
})
},
请求头header:
‘Content-Type’:‘application/x-www-form-urlencoded;charset=utf-8’
其中QueryJson 一直是[object object]
然后后台接口一直提示接口参数错误
了解原因的大神解惑下
万分感激了在这