提交 0cd0b1a6 编写于 作者: M maguohua

udpata

上级 e7043da4
......@@ -4,23 +4,23 @@ import * as city from './tempdata/city'
/**
* 获取首页默认地址
*/
// const cityGuess = () => fetch('GET', '/v1/cities', {type: 'guess'})
const cityGuess = () => fetch('GET', '/v1/cities', {type: 'guess'})
/**
* 获取首页热门城市
*/
// const hotcity = () => fetch('GET', '/v1/cities', {type: 'hot'})
const hotcity = () => fetch('GET', '/v1/cities', {type: 'hot'})
/**
* 获取首页所有城市
*/
// const groupcity = () => fetch('GET', '/v1/cities', {type: 'group'})
const groupcity = () => fetch('GET', '/v1/cities', {type: 'group'})
/**
* 获取当前所在城市
*/
//const currentcity = number => fetch('GET', '/v1/cities/' + number, {})
const currentcity = number => fetch('GET', '/v1/cities/' + number, {})
/**
* 获取搜索地址
*/
//const searchplace = (cityid, value) => fetch('GET', '/v1/pois', {type: 'search', city_id: cityid, keyword: value})
const searchplace = (cityid, value) => fetch('GET', '/v1/pois', {type: 'search', city_id: cityid, keyword: value})
......@@ -28,17 +28,17 @@ import * as city from './tempdata/city'
//临时数据
const setpromise = data => {
return new Promise((resolve, reject) => {
resolve(data)
})
}
const cityGuess = () => setpromise(home.guesscity)
const hotcity = () => setpromise(home.hotcity)
const groupcity = () => setpromise(home.groupcity)
const currentcity = number => setpromise(city.currentcity)
const searchplace = (cityid, value) => setpromise(city.searchdata)
// const setpromise = data => {
// return new Promise((resolve, reject) => {
// resolve(data)
// })
// }
// const cityGuess = () => setpromise(home.guesscity)
// const hotcity = () => setpromise(home.hotcity)
// const groupcity = () => setpromise(home.groupcity)
// const currentcity = number => setpromise(city.currentcity)
// const searchplace = (cityid, value) => setpromise(city.searchdata)
export {cityGuess, hotcity, groupcity, currentcity, searchplace}
\ No newline at end of file
......@@ -15,7 +15,7 @@ body, div, span, header, footer, nav, section, aside, article, ul, dl, dt, dd, l
}
}
input[type="button"], input[type="submit"], input[type="reset"] {
input[type="button"], input[type="submit"], input[type="search"], input[type="reset"] {
-webkit-appearance: none;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册