//获取应用实例
var app = getApp()
Page({
data: {
suggests: []
},
//事件处理函数
getSug: function(e) {
wx.request({
url: 'http://222.178.203.72:19005/whst/63/=fnmfihZnzwhZnitjdihzbnl//api/transit/search/suggest',
method: 'POST',
header: {
'Content-Type': 'application/json'
},
data: {
imei:'general_app',
token:'t49GcWlrGxJ0d2tGQtC9zA_MYpKZXtCpEcwSEJk1jSpUjTsOAyEMRO8ytQucZY3t25B_KiJQlAJx91hKte28p3kTFQ4QzvCTci7ZipjJxplwhSvhBp941zG-rccSjnCYwoTRPv0SfF-E-xE94pZ342SJddMoPP-hFzytXwAAAP__',
lng:'116.29319741622',
lat:'40.041375934019',
city:1,
filter:'poi,line,banner',
pattern: e.detail.value
},
success: function(res){
if(res.data.matches && res.data.matches.length) {
console.log(res.data.matches);
this.setData({suggests: res.data.matches});
}
}.bind(this)
});
},
onLoad: function () {
console.log('onLoad')
var that = this
},
getRecommend: function() {
wx.request({
url: 'http://222.178.203.72:19005/whst/63/_fnmfihZnzwhZnitjdihzbnl//api/transit/line/recommendation',
method: 'POST',
header: {
'Content-Type': 'application/json'
},
data: {
imei:'general_app',
token:'t49GcWlrGxJ0d2tGQtC9zA_MYpKZXtCpEcwSEJk1jSpUjTsOAyEMRO8ytQucZY3t25B_KiJQlAJx91hKte28p3kTFQ4QzvCTci7ZipjJxplwhSvhBp941zG-rccSjnCYwoTRPv0SfF-E-xE94pZ342SJddMoPP-hFzytXwAAAP__',
lng:'116.29319741622',
lat:'40.041375934019',
city:1,
filter:'0,1'
},
success: function(res){
console.log(res.data);
}
});
}
})
大富大贵7
- 粉丝: 396
- 资源: 8870
最新资源
- 【年度调薪】年度薪酬预算执行情况报告.xls
- 【年度调薪】调薪考核表.xls
- 【年度调薪】调薪矩阵表(HR总监绝密).xls
- 【年度调薪】度员工调薪登记表.xlsx
- 【年度调薪】薪资等级结构表.xls
- 【年度调薪】调薪调岗流程表格.xls
- 【年度调薪】部门年度薪资调整套级审批表.xlsx
- 【年度调薪】调薪流程.xlsx
- 【年度调薪】年度员工调薪登记表.xlsx
- 【年度调薪】员工调薪评估.xlsx
- 【年度调薪】员工加薪明细表.xlsx
- 【年度调薪】员工调薪记录表.xlsx
- 【年度调薪】HR疑难操作之调岗调薪(实务篇).doc
- 【年度调薪】工资评定调薪方案.doc
- 【年度调薪】年度调薪方案.doc
- 【年度调薪】调岗调薪操作技巧.doc
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈