db.collection('dcdb')
.orderBy('ord', 'desc')
.where({
location: _.geoNear({
geometry: db.Geo.Point(app.globalData.longitude, app.globalData.latitude),
maxDistance: 10000,
minDistance: 0,
}),
type: 2,
i: that.data.i,
title: db.RegExp({
regexp: this.data.inputValue,
options: 'i',
})
})
.limit(that.data.pageSize)
.get({
success: function (res) {
console.info("找到集合:", res.data)
var con = res.data
that.setData({
list: con
})
console.info('最终集合', this.data.list)
},
fail(res) {
console.log('没有找到结果')
}
})
}
https://img-ask.csdn.net/upload/202004/17/1587090976_315351.png)!
https://img-ask.csdn.net/upload/202004/17/1587090983_13179.png
**官方文档上面说是从近到远的 实际都是乱的**