|
传了,aMap.searchInCity({
city: city,
keyword: keyword,
offset: 10, //每页记录数
page: 1,//类型:数字描述:(可选项)当前页数,取值为1-100 默认:1
sortrule: 0 //0-距离排序;1-综合排序
}, function (ret) {
if (ret.status) {
//console.log(JSON.stringify(ret));
// var evalText = doT.template($("#evaluationtmpl").text());
// $("#datalist").html(evalText(ret.pois));
var evalText = doT.template($api.text($api.byId('evaluationtmpl')));
$api.html($api.byId('datalist'), evalText(ret.pois))
console.log(JSON.stringify(ret.pois));
}
});
|
|